From 2177f80076ebc15cc58fb521b58e49c83315f34e Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Wed, 23 May 2012 11:20:07 +0200 Subject: linux-ti33x-psp 3.2: update to 3.2.18 Duplicate patches between PSP and 3.2.17 have been dropped from the 3.2.17 series Signed-off-by: Koen Kooi Signed-off-by: Denys Dmytriyenko --- ...ap-fix-the-error-check-for-pm_runtime_get.patch | 48 ++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.17/0034-usb-musb-omap-fix-the-error-check-for-pm_runtime_get.patch (limited to 'recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.17/0034-usb-musb-omap-fix-the-error-check-for-pm_runtime_get.patch') diff --git a/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.17/0034-usb-musb-omap-fix-the-error-check-for-pm_runtime_get.patch b/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.17/0034-usb-musb-omap-fix-the-error-check-for-pm_runtime_get.patch new file mode 100644 index 00000000..035b0002 --- /dev/null +++ b/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.17/0034-usb-musb-omap-fix-the-error-check-for-pm_runtime_get.patch @@ -0,0 +1,48 @@ +From 150f1a9111e30cc70efdac57e72af7d537754099 Mon Sep 17 00:00:00 2001 +From: Shubhrajyoti D +Date: Thu, 22 Mar 2012 12:48:06 +0530 +Subject: [PATCH 034/165] usb: musb: omap: fix the error check for + pm_runtime_get_sync + +commit ad579699c4f0274bf522a9252ff9b20c72197e48 upstream. + +pm_runtime_get_sync returns a signed integer. In case of errors +it returns a negative value. This patch fixes the error check +by making it signed instead of unsigned thus preventing register +access if get_sync_fails. Also passes the error cause to the +debug message. + +Cc: Kishon Vijay Abraham I +Signed-off-by: Shubhrajyoti D +Signed-off-by: Felipe Balbi +Signed-off-by: Ben Hutchings +--- + drivers/usb/musb/omap2430.c | 5 +++-- + 1 files changed, 3 insertions(+), 2 deletions(-) + +diff --git a/drivers/usb/musb/omap2430.c b/drivers/usb/musb/omap2430.c +index bd93e9f..522ac37 100644 +--- a/drivers/usb/musb/omap2430.c ++++ b/drivers/usb/musb/omap2430.c +@@ -283,7 +283,8 @@ static void musb_otg_notifier_work(struct work_struct *data_notifier_work) + + static int omap2430_musb_init(struct musb *musb) + { +- u32 l, status = 0; ++ u32 l; ++ int status = 0; + struct device *dev = musb->controller; + struct musb_hdrc_platform_data *plat = dev->platform_data; + struct omap_musb_board_data *data = plat->board_data; +@@ -302,7 +303,7 @@ static int omap2430_musb_init(struct musb *musb) + + status = pm_runtime_get_sync(dev); + if (status < 0) { +- dev_err(dev, "pm_runtime_get_sync FAILED"); ++ dev_err(dev, "pm_runtime_get_sync FAILED %d\n", status); + goto err1; + } + +-- +1.7.7.6 + -- cgit v1.2.3-54-g00ecf