From patchwork Mon Sep 10 09:52:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoshihiro Shimoda X-Patchwork-Id: 10593855 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 A859914E5 for ; Mon, 10 Sep 2018 09:54:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9ABBB28CB7 for ; Mon, 10 Sep 2018 09:54:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8EEDA28E30; Mon, 10 Sep 2018 09:54:16 +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 2FB4728CB7 for ; Mon, 10 Sep 2018 09:54:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728085AbeIJOr2 (ORCPT ); Mon, 10 Sep 2018 10:47:28 -0400 Received: from relmlor3.renesas.com ([210.160.252.173]:4933 "EHLO relmlie2.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726738AbeIJOr1 (ORCPT ); Mon, 10 Sep 2018 10:47:27 -0400 Received: from unknown (HELO relmlir2.idc.renesas.com) ([10.200.68.152]) by relmlie2.idc.renesas.com with ESMTP; 10 Sep 2018 18:54:11 +0900 Received: from relmlii2.idc.renesas.com (relmlii2.idc.renesas.com [10.200.68.66]) by relmlir2.idc.renesas.com (Postfix) with ESMTP id 42B197DA72; Mon, 10 Sep 2018 18:54:11 +0900 (JST) X-IronPort-AV: E=Sophos;i="5.53,355,1531753200"; d="scan'208";a="292071056" Received: from mail-hk2apc01lp0208.outbound.protection.outlook.com (HELO APC01-HK2-obe.outbound.protection.outlook.com) ([65.55.88.208]) by relmlii2.idc.renesas.com with ESMTP/TLS/AES256-SHA256; 10 Sep 2018 18:54:09 +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=32ws9+Vmb95eKv9WUdmgT9ww/RMcCcxYBFKzXbnXf+c=; b=XWQw55VlMuVkhZY7K7bNJUF8NZz/7RaFQOqATdraCKo3xXr40Ku+L5tIfipU9P1ITPn2EzHpEOmzwFFJX7MFYnaDjqwgC+j8NnEkPI0RVgxjPoiUhKDgfZLVeNFutM9imc2USm+IXEiGScZjDwb/8Ka25g9pXZ3HBr1rwNg9eLE= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=<>; Received: from localhost.localdomain (211.11.155.144) by TY2PR01MB2298.jpnprd01.prod.outlook.com (2603:1096:404:10::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1122.18; Mon, 10 Sep 2018 09:54:07 +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 v4 0/3] usb: renesas_usbhs: add reset_control and multiple clocks management Date: Mon, 10 Sep 2018 18:52:17 +0900 Message-Id: <1536573140-24123-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: TYAPR01CA0147.jpnprd01.prod.outlook.com (2603:1096:404:7e::15) To TY2PR01MB2298.jpnprd01.prod.outlook.com (2603:1096:404:10::15) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3fc9e223-1441-4102-35d7-08d6170359c6 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:TY2PR01MB2298; X-Microsoft-Exchange-Diagnostics: 1;TY2PR01MB2298;3:wIbwFuFWpo9WfHaQLi9oPotlEQZxg4Ztx4N7nlmw3AN9j8XZVBFUt16DzKbzfqWfKEnPTV/x8PcUq6kHDhttwuLt4m1VGX7yTBQsSV+2bkUBFueW1nBQx39RpH6THckSl8HZa+VER3foL5EIXdd1mws/1i9khzGcai+dZ5NezGt8Eq2/WB7eh3nNaVKzLpg3J3UXXZdSpl9odTOo+US2nd5lZbT4I3mFi7qUY6TMr0q8hEtzbBfWcBhXT99+JS3W;25:xJhG8qdS6BULSqfRXF1MUFpPdy9e+xkMi4l7fd27r69PG+KFWm38bbbKfo0FfufZ1RDZcZ8Abf4ULt3G7lYQGC2XNOYQgOOcEKXxqvIn+R0LxjpRUptqWLaRZ/5YxPqM9sNMHVztN1EKu9/4nvp5fqvpQ5zuWEwUMOVVME28h5ChB9wMKKB2EuzzrJo40bGrQbcKccYzU8Cb5/Jx/UTBBDtn+Oj/o6auuNvJleAKncMlnWceT6E4hc+8BWZXoJzxWg75P4hDVlH8e56/Hlltp0vLYK6FWgepBqkzVsm1xfSrAtwmPv5EAg0tVpKJCDmV+6KftkuI33uxTVd6HlmoYw==;31:mBX/mu/uzMs3hAGHN2hkAZY1NhuEs86Hl5ocUTAkxdDXHvSFwYkPEVN9OaojJw646eGGXUcDi5R5FWVrVR26Omn/qks+xL353rU7ZFt6ppAY3w5/4w56p6uvvbshWtTb4A0VNYsflMyOH/ObrrmdYnmxys0gsdCguXnu4oQ/geGaiHVRtecIQcT8tCZKKNNB4V3bVc3MBtj9wFJX+clHEfGnHPlHFOKIVcvJS8lufUM= X-MS-TrafficTypeDiagnostic: TY2PR01MB2298: X-Microsoft-Exchange-Diagnostics: 1;TY2PR01MB2298;20:Ya9vzeNbrdO1z2GT04Zlk9o0vR0RiKyd208k7pq70OTmpnjssEZr/oXfjj0hLaGXVO7Ucs7Bc0rjv0XEuHLlMfYAAEcODHwjAPk/DldCcakmvx5Iaz7gpd1JvZWtRpX+TYjDnAH22Qa+HDqt1Xk1p1USn/ngxynuihcY7Wn0W4bNJwU2pykLdPKYxIQ9ugl97w2Z3zVbWreJ9UnRQbDcN72IN7WU7z7UnVAMQ7BG5ZQ7LIkIOBtUeJb/wvCdwwiR9UtUYzkQPDJ11n/iom38LrHUKEATdvXaRjYbmOf89B2kbbencjKRvCsyfkFkKqRtd16H/vJuV6Hv4ChZ8Zro1S4OO09bYGBQcQ5gI7oQUo0gyD1uUWRhhRnqf3FVp9u7EUewiAdP9WSwxpLcrbDbaoG0FVUhvBVflPWraXfHnh2co1Cm+WelZyHjvJkSgNEL/nXNYTzqGCMNxfzhlUQ/JjgZxqRkyd51kkpjpe9IImp4ZggX1J/4SHQcM+2eN/Wz;4:g70viwyyoNalpQA1r2RRkaBG2LjIwQLKx99NTYgRyCmx7G0FYWOeFHFbJE0RwylqsG86ivvnS7xah3rS2DOq9k38ToNWoqlMz9oIl3AZxsrT6E7aIHdgWnbNWfYT8ak02Emto0Xzcno+qj++/znaI/4J0e8HSizG5BTDDn9Df3rkyz8HcQmDG2lHVrKyrbUc2Y7LKJEBtk7UcfrOf16j6PqZHINJToE1asRPtZHU77bfFXLhNng7hfuYhlLQpLl/BWgLD0w1vCW4Tatug1G70Q== 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)(823301075)(3002001)(93006095)(3231311)(944501410)(52105095)(10201501046)(6055026)(149027)(150027)(6041310)(20161123562045)(20161123558120)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061750153)(20161123564045)(201708071742011)(7699050);SRVR:TY2PR01MB2298;BCL:0;PCL:0;RULEID:;SRVR:TY2PR01MB2298; X-Forefront-PRVS: 07915F544A X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(6069001)(136003)(366004)(396003)(39860400002)(376002)(346002)(199004)(189003)(2906002)(498600001)(6506007)(3846002)(7736002)(305945005)(53936002)(386003)(5660300001)(97736004)(81166006)(81156014)(52116002)(6512007)(78352004)(16526019)(6306002)(51416003)(6116002)(486006)(476003)(966005)(14444005)(42882007)(26005)(69590400006)(956004)(2616005)(107886003)(16586007)(8676002)(8936002)(105586002)(6486002)(4326008)(316002)(6666003)(36756003)(68736007)(66066001)(47776003)(106356001)(48376002)(50226002)(25786009)(50466002)(3720700003);DIR:OUT;SFP:1102;SCL:1;SRVR:TY2PR01MB2298;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;TY2PR01MB2298;23:QAEYhX7E8NeEOFCAoIexMPG/GFVAIDNvnYL6/8HLOc9YU/0a/OvX2tzF5yukoOVc0RF4zX0zxx5G3bLmg7dpebAFAK17Be9rPbstTlOP34in7NUwRa4Vo7ZgAUpFACfvfLpBH02YepK2yYhqsrnb+YDjetzDFQNXWdXRBrgQYm2lR4Jmznzr4dcWPhlF1mNM+6uNQwQQqcxAxewZd7lJUDbBdWW0xdt007zfdwMZumeQV6vdJO/OFE769/BRPNMPwp3Y3vNnYzSth6FtMfQ1+ttWaUcra0CfjUNYcUARDpX9JxdVyLQnTebwkljuLvh/8K/36TvYusMS54n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SDcnf21rtWmQsv+HYzo0OwkShsFjJ12kVnv2FjhmAzOmOVrT/n/49qpBOw6wOBuzT2z5j3DQaWJxs3k7KFg9rOg8Ho+aQbqz/4FxYQOccFaTL19JQV0 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;TY2PR01MB2298;20:lA+f8WfyQLLdB1CzAdrvySeYy7BnLq5tWnK+91Hrtuho0xAqb4W2PqqG1QLjbZn0YquI1ojtYyvXIqqoYAKLnUW8DIHpeWSeDvauy3zZHeb1jQg4QzXyVzWrw917B2OjDQKsdTXEPKvTAGWXDDRmVkFRPKfHi2rKNKp4QV4nMCo= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Sep 2018 09:54:07.7226 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3fc9e223-1441-4102-35d7-08d6170359c6 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY2PR01MB2298 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 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 | 4 +- drivers/usb/renesas_usbhs/common.c | 100 +++++++++++++++++++++ drivers/usb/renesas_usbhs/common.h | 4 + 3 files changed, 107 insertions(+), 1 deletion(-)