From patchwork Tue Sep 11 08:47:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoshihiro Shimoda X-Patchwork-Id: 10595305 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 456E7920 for ; Tue, 11 Sep 2018 08:48:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 35C1C2924C for ; Tue, 11 Sep 2018 08:48:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 296F12924A; Tue, 11 Sep 2018 08:48:57 +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 BC9B42924A for ; Tue, 11 Sep 2018 08:48:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726601AbeIKNrM (ORCPT ); Tue, 11 Sep 2018 09:47:12 -0400 Received: from relmlor4.renesas.com ([210.160.252.174]:27700 "EHLO relmlie3.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726546AbeIKNrL (ORCPT ); Tue, 11 Sep 2018 09:47:11 -0400 Received: from unknown (HELO relmlir3.idc.renesas.com) ([10.200.68.153]) by relmlie3.idc.renesas.com with ESMTP; 11 Sep 2018 17:48:52 +0900 Received: from relmlii1.idc.renesas.com (relmlii1.idc.renesas.com [10.200.68.65]) by relmlir3.idc.renesas.com (Postfix) with ESMTP id 4F37C6BAC3; Tue, 11 Sep 2018 17:48:52 +0900 (JST) X-IronPort-AV: E=Sophos;i="5.53,359,1531753200"; d="scan'208";a="290617684" Received: from mail-os2jpn01lp0147.outbound.protection.outlook.com (HELO JPN01-OS2-obe.outbound.protection.outlook.com) ([23.103.139.147]) by relmlii1.idc.renesas.com with ESMTP/TLS/AES256-SHA256; 11 Sep 2018 17:48:52 +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=A0e/TLSUUgAfEycLL3zzUuz8TduuInbyi3Cdm4Tc3kI=; b=g8vd6TTk+XBet1RZxcHbKiEUJpeV9AM3E69vi0qoqpQm2OrMEwKqliRxgux6/0ihLPet+xqRuKygEKR5NuHzt2H5iRvq91pPg4IebPMkDfuOzssSJt3Svlb7D29rmC7EzBJE08an8gymCZNQq2yJghR8Pob76I9M/0nYVO2sBcI= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=<>; Received: from localhost.localdomain (211.11.155.144) by TYAPR01MB2302.jpnprd01.prod.outlook.com (2603:1096:404:3::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1122.16; Tue, 11 Sep 2018 08:48:46 +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 v5 0/3] usb: renesas_usbhs: add reset_control and multiple clocks management Date: Tue, 11 Sep 2018 17:47:02 +0900 Message-Id: <1536655625-10550-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: OS2PR01CA0132.jpnprd01.prod.outlook.com (2603:1096:602::26) To TYAPR01MB2302.jpnprd01.prod.outlook.com (2603:1096:404:3::22) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 7b799b1f-7290-41a0-a96a-08d617c362c3 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(8559020)(8990107)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020);SRVR:TYAPR01MB2302; X-Microsoft-Exchange-Diagnostics: 1;TYAPR01MB2302;3:R0s5PXFZduW9zDXiMxN4cs0wAR/Sc1NbiQYqQixa6qG7f63vKs5D0BWtQtMdnTVVRrLRUxdOzW0iXF4YoyyXRVwVS4XX/3m3NnowJi95Vtr7AMc9EJODJGDDHLqBHoblfMbu4xJix/LLco5SRQpy0LRbqehq4+FIKW1ZFJ8Upg2bo26aosYR90x6PJ/bl8ZJgp6RcZlMHKqYIC31qavvDbul/OaZlLfihMTwS9aZi6EzsUMvuVWT9XzfQ2bmGhhC;25:863Rzl0VxuJbpzguC+4ertlA0BkE8lqCuFpFn11Ad+IWnWhLz3mVc0SdFJhgBo2Zpx3Tnl7KQzAjfbc8uMP0LCK3A5nvNqWKwbpAgXa4e0C4dlmVV57IAjpGcWlDUWuD2A3YSq/fEB0EXlV0N6AWZm9B4+7wljasRu+jCJdRTXJQ9uAPmAF98suGnWjsvBdS+RpzpPico7KAWqQml8eJwmER82nfR5gKMFNwN5VO1WbNYjuhMDiwx7zD32fRUJsO7vSL+eFNGKPOZ/2c1Lr8eBTwqWKMOfH3npfPwublhi3HAlU/pZtTWFC1FrMT81sdBeAmzs35b+iNbBdQx5Qg0g==;31:XepcxgJP2RoNY7zW0+W9yX3rYzqnNnO3/kfEYou09p15zECFLu5tF2kERvCiE0SJWuumJOY8pj+uZH+Fn+KGm9mywwEjjObysUlSHA+gHvz9ktGHkFkNNqu6gSkMlYQDf4LJwe/2NyfNtSxeSPwQf2t/yepmzToMKKiZNPGc9WQqPy/PufzDxLyAMQm21WZi4KTSN9ySCHwdfCy3p4faJMMyFKvMpRSsLVM9wd/PPEo= X-MS-TrafficTypeDiagnostic: TYAPR01MB2302: X-Microsoft-Exchange-Diagnostics: 1;TYAPR01MB2302;20:GH97YqZ8y+I6HMtzPMkG4g70FfMmz70/395pj49ksTygc6sxWOFS0xAoVu6q9bKjuiYptqsFZHAsk5bS8Utg4DXXpDVsCH28ckoR5Jzfre1ltd+hPfvbQ16YW4309tV/K9t7HyibBuvaConwsp2JNroJ1O/xj8ozK+65Zdh6xKZ3YZP03X7R8OvPWot46WxjL2ZSGRCG+y0/TdEOAdhHh3iuInVZCW0B1f5EnAJNHYRT1Pfj6dJbtbmtXh7qc8p6okLTSt81xI3SJxzmq+1ohku3qInIU4CCpt9xoBVj3vY1NoDRBewtwxh6rdV4YFoze+qv2LGv5n0eJmErPGqbRbuTS23Fkg02HU5THajJsjx9oswNhQkjtZFZzmQZrwLKiT1E97Le6GxsLBlZwYDwncIWNbChskQsl3y4VsP5LwHRrPr6K9R6VymvLolMF9UikUdVkUpai4C8XPd6ZSoRpqbcrkwBvEEfUIdxZdxu095P1W9dmsZJcP6q46deD1Yk;4:/llQaik3qK79Cm8Pio4EyVy5UlkoDoGqj9bccHVDucgvadq0qgvUfa9QaX1nG/B4vSfiQwvA/J15X+I6zoOY5kJ+azAtqkd78G9ASTPa6acAh2UbSzyfZIvpm/GdJbHPGruECGzrriGGw0+hR4gFsBttz8d5YXJitdU7NtQBs8IdR+3V2HPsqjKQSik6D9v2TpcDsjZbvM0fyF1mLLT3riasITp4ZQvH+6lA7g9b8fdpEuJZwe9PtdnSq5rtnR8mas6I9jkJpVIEyma+eDMODw== 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)(5005006)(8121501046)(823301075)(10201501046)(3002001)(3231311)(944501410)(52105095)(93006095)(6055026)(149027)(150027)(6041310)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061750153)(20161123564045)(20161123560045)(201708071742011)(7699050);SRVR:TYAPR01MB2302;BCL:0;PCL:0;RULEID:;SRVR:TYAPR01MB2302; X-Forefront-PRVS: 0792DBEAD0 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(6069001)(396003)(366004)(376002)(39860400002)(346002)(136003)(199004)(189003)(107886003)(6306002)(97736004)(2906002)(5660300001)(966005)(53936002)(4326008)(25786009)(6486002)(78352004)(8676002)(305945005)(7736002)(14444005)(16586007)(316002)(105586002)(106356001)(6666003)(6512007)(6506007)(52116002)(51416003)(26005)(386003)(476003)(2616005)(956004)(486006)(3846002)(47776003)(68736007)(42882007)(498600001)(48376002)(6116002)(50466002)(36756003)(16526019)(66066001)(81156014)(81166006)(50226002)(69590400006)(8936002)(3720700003);DIR:OUT;SFP:1102;SCL:1;SRVR:TYAPR01MB2302;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;TYAPR01MB2302;23:EhLsBmh8nvNESerHUmvwoz33xyum7WZ5CRm6oJ+C4DVqYU1pSK5NYU/nXzCi0Ob5U9I0BiII5xBg61IpckINhPHDNMDPU1Mro3QD0bTBGgN95jUSU22IwyluiVIR9P4W8+JP58Clj8KLdWl4XBOkW3qJ/cl+k2UiCdIRXbgzhZeCL+4v8nA+IjlYz4M1urmqlaGzWieca0bPezFHqydLLGGlE2xXCyf2q4q3RIoXqG5oUQAMQmaQKom5n5oP2lCVTYQrL836cvPBzB6bBCe0ZcgCJKOYoPCRQa2r26+WYv6t/kp4sLMrjXpQTZB8Wy7oga8zJmRoCp16Qqk8iwxkThRdTOPh4Av+vv/Jwwb6ecCQ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0UJob3n4mqD6i5CnN4CvxNaUOKFJLvDmw0zXjJpzGZQzBdVZAD/vmtyPVa+Uf5fY5Fad SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;TYAPR01MB2302;20:W9Evpg0aANCCMeirphgWR5PD+lNvWUSICR9Zy6mQGEQmvdxRGVozrgY7x7tXUOc+qgOazvak3P+hDOtwYJFfXfX2QDpBJUTwrL6LpVQINlHZeX+JvibzVgXUCn7VuKiHvktqaN2hM8B9khJ4q/dJeZ5IRNe1DC6zLxZ5mANf+Sg= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Sep 2018 08:48:46.0113 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7b799b1f-7290-41a0-a96a-08d617c362c3 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYAPR01MB2302 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 Felipe's usb.git / testing/next branch (the commit id is 5b394b2ddf0347bef56e50c69a58773c94343ff3) with the following patch: https://patchwork.kernel.org/patch/10574875/ Changes from v4: - Revise the dt-bindings to add how many clocks are required and expect for "renesas,rcar-gen3-usbhs". Changes from v3: - Change the dt-bindings not to use clock-names in patch 2. - To achieve backward compatibility with old DT, the driver should get the first clock and the second clock is an optional. - Add "clk_put" calling in the remove function. Changes from v2: - Use clk_bulk_enable_prepare() instead of two functions on patch 3/3. Changes from v1: - Fix error path on patch 3/3. - Use clk_bulk_disable_unprepare() instead of two functions on patch 3/3. - Use staic array of struct clk_bulk_data instead of a pointer on patch 3/3. Yoshihiro Shimoda (3): usb: renesas_usbhs: Add reset_control dt-bindings: usb: renesas_usbhs: add clock-names property usb: renesas_usbhs: Add multiple clocks management .../devicetree/bindings/usb/renesas_usbhs.txt | 6 +- drivers/usb/renesas_usbhs/common.c | 100 +++++++++++++++++++++ drivers/usb/renesas_usbhs/common.h | 4 + 3 files changed, 109 insertions(+), 1 deletion(-)