From patchwork Fri Sep 21 12:26:27 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoshihiro Shimoda X-Patchwork-Id: 10609985 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2221A5A4 for ; Fri, 21 Sep 2018 12:28:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 131FE2C2BD for ; Fri, 21 Sep 2018 12:28:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 069B02D536; Fri, 21 Sep 2018 12:28:35 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A3E422C2BD for ; Fri, 21 Sep 2018 12:28:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389880AbeIUSRM (ORCPT ); Fri, 21 Sep 2018 14:17:12 -0400 Received: from relmlor3.renesas.com ([210.160.252.173]:14472 "EHLO relmlie2.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2389684AbeIUSRL (ORCPT ); Fri, 21 Sep 2018 14:17:11 -0400 Received: from unknown (HELO relmlir1.idc.renesas.com) ([10.200.68.151]) by relmlie2.idc.renesas.com with ESMTP; 21 Sep 2018 21:28:27 +0900 Received: from relmlii1.idc.renesas.com (relmlii1.idc.renesas.com [10.200.68.65]) by relmlir1.idc.renesas.com (Postfix) with ESMTP id C236F7EA97; Fri, 21 Sep 2018 21:28:27 +0900 (JST) X-IronPort-AV: E=Sophos;i="5.54,284,1534777200"; d="scan'208";a="291576165" Received: from mail-ty1jpn01lp0175.outbound.protection.outlook.com (HELO JPN01-TY1-obe.outbound.protection.outlook.com) ([23.103.139.175]) by relmlii1.idc.renesas.com with ESMTP/TLS/AES256-SHA256; 21 Sep 2018 21:28:27 +0900 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesasgroup.onmicrosoft.com; s=selector1-renesas-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=84CzauLOVtSN8VeOvkXjnvMRh3ux5FEW68VXWfajriA=; b=pDaJc5l6octazBQVL6zAlnFzYS4YK59xT211WH+8mlSpD/POa8pfNBhM7+2a8PrcFdVTLz/EDj/xFm6Qj4S4RDodFuxocHpstTSGmNbknBUYuP9JtkTdf1u2hNN+V3nfjuA8TJIZTJqN1dPnZCMEzF7rcqQ2kLaZ05IEZe7dzQ0= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=<>; Received: from localhost.localdomain (211.11.155.144) by OSBPR01MB2293.jpnprd01.prod.outlook.com (2603:1096:603:26::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1143.18; Fri, 21 Sep 2018 12:28:23 +0000 From: Yoshihiro Shimoda To: balbi@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com Cc: gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, Yoshihiro Shimoda Subject: [PATCH 0/5] usb: renesas_usbhs: use otg mode and add support for R-Car E3 Date: Fri, 21 Sep 2018 21:26:27 +0900 Message-Id: <1537532792-20376-1-git-send-email-yoshihiro.shimoda.uh@renesas.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: OSAPR01CA0129.jpnprd01.prod.outlook.com (2603:1096:604:f::21) To OSBPR01MB2293.jpnprd01.prod.outlook.com (2603:1096:603:26::14) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1b8e1dc9-f698-4926-3912-08d61fbdb8f6 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989299)(4534165)(4627221)(201703031133081)(8559020)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020);SRVR:OSBPR01MB2293; X-Microsoft-Exchange-Diagnostics: 1;OSBPR01MB2293;3:ifQYqSnVrMmo48JFqMDLIBU1roR/xhosfG7/iUXT5r/0VefrzVYMXTIfGwqYUNyOkPvYvTSm6p07Qo1OJX8zqIy9wfFMdsBVlee6Bp/GxpD9B53FcRcSvTBXSPSlWizONKR1Zy/hbkrLTDMbanpD9ObP5A81QnYsD4BcOErGZSiDqhaCEA7lONxVlKtxUuxJStJWF/HTglbRj21GTHUmTdbR7TKiwzKmUcKwAAHDG8G8b2LqPIAroEFXHsdL9s/l;25:u3JRCjX3KahY9TiHEPnuqga6tBczI6S+53NCt9Mr+YlKUg80VHdUk5xIDW/1R598Cj07kXZpXGKzyTdJ49JKfVuPRD/VfNR5nF/WJBQtx89n8Cs4jW9L5hqSCAgSvkDW8UdskwBR20gITL4I4IVMjLaNr0AO/NJQA2y6zjZWUkU75CKdSAhALLxjS4eMJA76uAMccWzmYjVP+vujINsoIqRc2cat5oMsaIWLry1Hs7QhsdRvLOyaeC1zOvXa5ShpzXmTAJMMmgEfnSG5XGHl5wuO4Tju3W7uTkKOa8EX/z/E1W2imOZMhiRtQavaumjBYHT3qORRXAJv1CBKPzp1TA==;31:Pz7shpfjxYQIiJpIFy++qCf8VS/j5EsGN0EAyWGT6OWMLpy7wqxsaIHmz+scQCeTvAhtt+ROdagGiIuIfUwLy3pKca3nDXwdDcDQtDSqEa7H89h7LegzdUM7mBy+81ynrLXRqV9KQNg6wMWk7W/l1PVrWi9ldBx1LMZS7RCa+bIKQDO8bF4nSpuOtt77UJq5BlI0Jo79vKJK5l5QvrdvOwuyzRlvWpjuaCWrcwIWIuA= X-MS-TrafficTypeDiagnostic: OSBPR01MB2293: X-Microsoft-Exchange-Diagnostics: 1;OSBPR01MB2293;20:++LNRBZ2dGFm0eMLlfC48sHJCuaB1/5hmSOSPDsXmg4OA82zp06fYwe6sTjd6DTKuDWsQa60SDHRVsoOTdF3sFTt/mAjMy7B4G26y9vQqJdETwAIOhBppQpoy/HRL+9a6XmoYcHMg4tr4TIxlE5jhqCcvCD6gp7QAgwItIH9PCvxUCpDJwHDa2t/L9gD1Idhc8GREC70fKpytbx7QZvELue+pIvIZEG0E4TaJ6oOQ7eC+eDzO2jkHRDojfxTX2iHhPFfFMckt0aL/Lqg4/5T+xeK+YFD1Zq/qt0KsIK5JH1pDPxXotuZjSdIhqGrHjRCTOyebwkQx0ZCqv4z1BWhs76gnVAosJD/eR8bg3/TCu4Waom3gggWxeV7wY1Es53TgDsGmdpfGhqQBY6iBO2Lsge9Ek40M03PiOsNaJTVDeP1xWG2YBMXsbvnnNtj8LAewIGfc0ZWAWMKL8ZyGjTTeBzdgKK/gVSiYO1PcLOiZJdCHgOMjlNS4jkzHArE24ps;4:RRKFbqqWuxR0758C6wrOcb+iNFyolUznOxSx3+SEjp+qXpjETUzrmEgfM6iTTwNmu6MedVPKCVA8eX4GH45yepeEtUv+fPHEqLsAx9KCITNJNu3yNuxOwwJuaeqiBCmwUd8Cys0oTxN+XsLSimsX09eFR/j9zkjhEGkFfTtLKY4q4kYZA6+OIwqcJtscRCQPYl/Vu+ErmHDBoNLqEOYXjMqjlE1c1xNLqIZiHyoWbcDn3HQ1V/Zyb5NXQqLB9AqwykpXKNto9SwxQWMcptmj8A== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(10201501046)(3231355)(944501410)(52105095)(93006095)(6055026)(149027)(150027)(6041310)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061750153)(20161123560045)(20161123564045)(201708071742011)(7699051);SRVR:OSBPR01MB2293;BCL:0;PCL:0;RULEID:;SRVR:OSBPR01MB2293; X-Forefront-PRVS: 0802ADD973 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(6069001)(346002)(366004)(376002)(136003)(396003)(39860400002)(199004)(189003)(6506007)(6486002)(107886003)(956004)(2616005)(476003)(42882007)(97736004)(386003)(48376002)(47776003)(25786009)(4326008)(26005)(7736002)(305945005)(8936002)(8676002)(78352004)(6306002)(69590400006)(50226002)(81166006)(81156014)(68736007)(51416003)(52116002)(36756003)(3846002)(2906002)(6116002)(53936002)(316002)(16586007)(16526019)(486006)(498600001)(66066001)(6512007)(966005)(5660300001)(105586002)(106356001)(50466002)(3720700003);DIR:OUT;SFP:1102;SCL:1;SRVR:OSBPR01MB2293;H:localhost.localdomain;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:0;MX:0; Received-SPF: None (protection.outlook.com: localhost.localdomain does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: 1;OSBPR01MB2293;23:bfHQhWOqoozDdaMSUYGZdIl+ZBcK1MlWw0hq6FRsbq+9DQp0GdAB6DGldboAupJGujzAmgunCzKGXNSaqGwLWICUn0CU2qCyeZi/3ZsLI1b3f2Yo+LPalSXu9Se/ZBW8FglrzAzpLHa0a+shBa0XQzJMXW8W4k6lF/aic/qQz+VpJ80OPPacB0M1VZlTinL54L3tpRy10Ds422DGUbmb/F5Jxzfz+TIYFXKDZ/eG0XgzQ388vpb58BCPSj/Thn5UZ5FHQ1PDw/qoUJBGhM0If2BSTxOCbNd5EnXp4hK4Y3A0qek+73f9PE4twEfg/dBlIjW6RcvleJzdIg4nE532TCesPL2dBLNfT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8pmp5RvuS21j2a2a4sBdIqyii05HunG93 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;OSBPR01MB2293;20:G1f7Vl41wb+GHk8DOAEnRt4KSoofTjxbzHdUXLcqayUBO/Pn8EpwFUAs7pk+gfxxEZ02D1IgpLATZIgzU3stRVDlgiMO7xuJeK7sx4De3FqAho3MHDIz4NBRtHxBXaR76vBKvmIH298QJTu65GaZff2suu/mARgWCZtIbzolhyU= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Sep 2018 12:28:23.0537 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1b8e1dc9-f698-4926-3912-08d61fbdb8f6 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-Transport-CrossTenantHeadersStamped: OSBPR01MB2293 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch set is based on the latest Greg's usb.git / usb-testing branch (the commit id is ae8a2ca8a2215c7e31e6d874f7303801bb15fbbc) The previous code set the mode as peripheral mode by the UGCTRL2 register for R-Car D3. But, this SoC can select OTG mode in fact. So, at first, I'd like to revert related patches I submitted in patch 1 and 2. Then, in patch 3, it sets the mode as "OTG" and in patch 4 and 5, it supports for R-Car E3. To use this controller for R-Car D3 and E3, we need the following patch set. Otherwize, the mode will not be changed to peripheral mode by the phy's COMMCTRL register: https://patchwork.kernel.org/project/linux-renesas-soc/list/?series=21629 Yoshihiro Shimoda (5): Revert "usb: renesas_usbhs: add extcon notifier to set mode for non-otg channel" Revert "usb: renesas_usbhs: set the mode by using extcon state for non-otg channel" usb: renesas_usbhs: rcar3: Use OTG mode for R-Car D3 dt-bindings: usb: renesas_usbhs: add bindings for r8a77990 usb: renesas_usbhs: add support for R-Car E3 .../devicetree/bindings/usb/renesas_usbhs.txt | 1 + drivers/usb/renesas_usbhs/common.c | 13 ++++------- drivers/usb/renesas_usbhs/common.h | 1 - drivers/usb/renesas_usbhs/rcar3.c | 27 ++-------------------- 4 files changed, 7 insertions(+), 35 deletions(-) Reviewed-by: Simon Horman