Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752804AbbDBIBp (ORCPT ); Thu, 2 Apr 2015 04:01:45 -0400 Received: from relmlor4.renesas.com ([210.160.252.174]:32086 "EHLO relmlie3.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752381AbbDBIBo (ORCPT ); Thu, 2 Apr 2015 04:01:44 -0400 X-IronPort-AV: E=Sophos;i="5.11,509,1422889200"; d="scan'208";a="184392511" From: Yoshihiro Shimoda To: CC: , , "Yoshihiro Shimoda" Subject: [PATCH] phy: phy-rcar-gen2: Fix USBHS_UGSTS_LOCK value Date: Thu, 2 Apr 2015 17:01:11 +0900 Message-ID: <1427961671-8064-1-git-send-email-yoshihiro.shimoda.uh@renesas.com> X-Mailer: git-send-email 1.9.4.msysgit.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [211.11.155.147] X-ClientProxiedBy: OS2PR01CA0009.jpnprd01.prod.outlook.com (25.161.74.147) To SINPR06MB329.apcprd06.prod.outlook.com (10.141.110.15) Authentication-Results: ti.com; dkim=none (message not signed) header.d=none; X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:SINPR06MB329;UriScan:;BCL:0;PCL:0;RULEID:;SRVR:SINPR06MB171; X-Microsoft-Antispam-PRVS: X-Forefront-Antispam-Report: BMV:1;SFV:NSPM;SFS:(10019020)(6009001)(6069001)(50226001)(66066001)(48376002)(77156002)(230783001)(33646002)(36756003)(42382002)(50986999)(76506005)(92566002)(78352002)(42186005)(47776003)(87976001)(2351001)(19580395003)(110136001)(19580405001)(50466002)(122386002)(40100003)(46102003)(62966003)(77096005)(575784001)(229853001);DIR:OUT;SFP:1102;SCL:1;SRVR:SINPR06MB329;H:localhost;FPR:;SPF:None;MLV:sfv;LANG:en; X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(5005006)(5002010);SRVR:SINPR06MB329;BCL:0;PCL:0;RULEID:;SRVR:SINPR06MB329; X-Forefront-PRVS: 0534947130 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Apr 2015 08:01:16.5436 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SINPR06MB329 X-OriginatorOrg: renesas.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1409 Lines: 40 According to the technical update (No. TN-RCS-B011A/E), the UGSTS LOCK bit location is bit 8, not bits 1 and 0. It also says that the register address offset of UGSTS is 0x88, not 0x90. So, this patch fixes the USBHS_UGSTS_LOCK value and some comments. Signed-off-by: Yoshihiro Shimoda --- drivers/phy/phy-rcar-gen2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/phy/phy-rcar-gen2.c b/drivers/phy/phy-rcar-gen2.c index 778276a..97d45f4 100644 --- a/drivers/phy/phy-rcar-gen2.c +++ b/drivers/phy/phy-rcar-gen2.c @@ -23,7 +23,7 @@ #define USBHS_LPSTS 0x02 #define USBHS_UGCTRL 0x80 #define USBHS_UGCTRL2 0x84 -#define USBHS_UGSTS 0x88 /* The manuals have 0x90 */ +#define USBHS_UGSTS 0x88 /* From technical update */ /* Low Power Status register (LPSTS) */ #define USBHS_LPSTS_SUSPM 0x4000 @@ -41,7 +41,7 @@ #define USBHS_UGCTRL2_USB0SEL_HS_USB 0x00000030 /* USB General status register (UGSTS) */ -#define USBHS_UGSTS_LOCK 0x00000300 /* The manuals have 0x3 */ +#define USBHS_UGSTS_LOCK 0x00000100 /* From technical update */ #define PHYS_PER_CHANNEL 2 -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/