[PATCH] usb: gadget: s3c-hsotg: fix kernel panic

Lukasz Majewski l.majewski at samsung.com
Mon Mar 19 16:52:08 UTC 2012


On Fri, 16 Mar 2012 13:35:20 +0000
Sangwook Lee <sangwook.lee at linaro.org> wrote:

> Fix kernel panic from s3c_hsotg_udc_stop.
> if udc_is_newstyle is true, s3c_hsotg_udc_stop should not
> call disconnect, unbind.
> 
> As running rmmod g_mass_storage, kernel panic happens.
> 
> (composite_unbind+0x14/0x164 [g_mass_storage])
> from [<c023e950>] (s3c_hsotg_udc_stop)
> 
> This patch is based on Lukasz Majewski's patches:
> [PATCH 0/9] USB: s3c-hsotg: USB S3C-HSOTG driver fixes and code cleanu
> 
> in order to test g_mass_storage in Origen board:
> 
> Signed-off-by: Sangwook Lee <sangwook.lee at linaro.org>
> ---
>  drivers/usb/gadget/s3c-hsotg.c |   12 ++++++------
>  1 files changed, 6 insertions(+), 6 deletions(-)
> 

Hi Sangwook,

Test HW: GONI S5PV210 
module: g_ether.ko

Yes, this patch works. Thanks for spotting the error.

Tested-by: Lukasz Majewski <l.majewski at samsung.com>


-- 
Best regards,

Lukasz Majewski

Samsung Poland R&D Center
Platform Group



More information about the linaro-dev mailing list