Re: [PATCH] staging: dwc2: Fix code that gets the nummber of host channels

2013-09-30 Thread Dan Carpenter
On Mon, Sep 30, 2013 at 04:54:51PM -0500, dingu...@altera.com wrote: > From: Dinh Nguyen > > The variable host_channels of dwc2_hw_params struct is only 4-bits. Adding > a 1 to a 0xf results in a 0 for host_channels. Thus, the driver was always > thinking it had 0 host channels. > > Represent th

[PATCH] staging: dwc2: Fix code that gets the nummber of host channels

2013-09-30 Thread dinguyen
From: Dinh Nguyen The variable host_channels of dwc2_hw_params struct is only 4-bits. Adding a 1 to a 0xf results in a 0 for host_channels. Thus, the driver was always thinking it had 0 host channels. Represent the correct number of host channels by using the host_channels variable of dwc2_core_