From patchwork Wed Sep 2 12:30:15 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 45184 Received: from comal.ext.ti.com (comal.ext.ti.com [198.47.26.152]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n82CUd51013464 for ; Wed, 2 Sep 2009 12:30:39 GMT Received: from dlep34.itg.ti.com ([157.170.170.115]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id n82CSZIB001776; Wed, 2 Sep 2009 07:28:40 -0500 Received: from linux.omap.com (localhost [127.0.0.1]) by dlep34.itg.ti.com (8.13.7/8.13.7) with ESMTP id n82CSYGc025690; Wed, 2 Sep 2009 07:28:35 -0500 (CDT) Received: from linux.omap.com (localhost [127.0.0.1]) by linux.omap.com (Postfix) with ESMTP id A385280627; Wed, 2 Sep 2009 07:28:34 -0500 (CDT) X-Original-To: davinci-linux-open-source@linux.davincidsp.com Delivered-To: davinci-linux-open-source@linux.davincidsp.com Received: from dflp52.itg.ti.com (dflp52.itg.ti.com [128.247.22.96]) by linux.omap.com (Postfix) with ESMTP id EC6CE80626 for ; Wed, 2 Sep 2009 07:28:32 -0500 (CDT) Received: from neches.ext.ti.com (localhost [127.0.0.1]) by dflp52.itg.ti.com (8.13.7/8.13.7) with ESMTP id n82CSWm2026956 for ; Wed, 2 Sep 2009 07:28:32 -0500 (CDT) Received: from mail105-va3-R.bigfish.com (mail-va3.bigfish.com [216.32.180.113]) by neches.ext.ti.com (8.13.7/8.13.7) with ESMTP id n82CSRtU015923 for ; Wed, 2 Sep 2009 07:28:32 -0500 Received: from mail105-va3 (localhost.localdomain [127.0.0.1]) by mail105-va3-R.bigfish.com (Postfix) with ESMTP id 571C215D00AE for ; Wed, 2 Sep 2009 12:28:27 +0000 (UTC) X-SpamScore: -5 X-BigFish: vps-5(zz936eMzz1202hzzz2dh6bh65h) X-Spam-TCS-SCL: 4:0 X-MS-Exchange-Organization-Antispam-Report: OrigIP: 63.81.120.155; Service: EHS Received: by mail105-va3 (MessageSwitch) id 1251894504827491_7452; Wed, 2 Sep 2009 12:28:24 +0000 (UCT) Received: from imap.sh.mvista.com (unknown [63.81.120.155]) by mail105-va3.bigfish.com (Postfix) with ESMTP id ACE11990057 for ; Wed, 2 Sep 2009 12:28:24 +0000 (UTC) Received: from wasted.dev.rtsoft.ru (unknown [10.150.0.9]) by imap.sh.mvista.com (Postfix) with ESMTP id 62D693EC9; Wed, 2 Sep 2009 05:28:22 -0700 (PDT) From: Sergei Shtylyov Organization: MontaVista Software Inc. To: linux-usb@vger.kernel.org, gregkh@suse.de, david-b@pacbell.net Date: Wed, 2 Sep 2009 16:30:15 +0400 User-Agent: KMail/1.5 MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200909021630.15607.sshtylyov@ru.mvista.com> Cc: davinci-linux-open-source@linux.davincidsp.com Subject: [PATCH] MUSB: fix DM644xEVM DRVVBUS GPIO number X-BeenThere: davinci-linux-open-source@linux.davincidsp.com X-Mailman-Version: 2.1.4 Precedence: list List-Id: davinci-linux-open-source.linux.davincidsp.com List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: davinci-linux-open-source-bounces@linux.davincidsp.com Errors-To: davinci-linux-open-source-bounces@linux.davincidsp.com Commit 30899ca7f20571c4bd64544dec261171f6ec255b (USB: musb: davinci dm6446evm GPIO renumbering) has updated GPIO_nVBUS_DRV to a wrong value which causes a kernel oops. The DaVinci chips have 104 GPIOs max, not 128, hence the correct value is 120 (that is 104 + 8 + 8), not 144. Signed-off-by: Sergei Shtylyov --- Please, apply it before 2.6.31 is out as it fixes a kernel oops... drivers/usb/musb/davinci.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: linux-2.6/drivers/usb/musb/davinci.c =================================================================== --- linux-2.6.orig/drivers/usb/musb/davinci.c +++ linux-2.6/drivers/usb/musb/davinci.c @@ -42,7 +42,7 @@ #include "musb_core.h" #ifdef CONFIG_MACH_DAVINCI_EVM -#define GPIO_nVBUS_DRV 144 +#define GPIO_nVBUS_DRV 120 #endif #include "davinci.h"