From patchwork Tue Jun 25 05:38:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoshihiro Shimoda X-Patchwork-Id: 11014715 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 93B661908 for ; Tue, 25 Jun 2019 05:39:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8663928623 for ; Tue, 25 Jun 2019 05:39:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7A86A2899B; Tue, 25 Jun 2019 05:39:36 +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,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 1E59628AD6 for ; Tue, 25 Jun 2019 05:39:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728358AbfFYFjf (ORCPT ); Tue, 25 Jun 2019 01:39:35 -0400 Received: from relmlor1.renesas.com ([210.160.252.171]:53837 "EHLO relmlie5.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728311AbfFYFjf (ORCPT ); Tue, 25 Jun 2019 01:39:35 -0400 X-IronPort-AV: E=Sophos;i="5.62,413,1554735600"; d="scan'208";a="19607549" Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie5.idc.renesas.com with ESMTP; 25 Jun 2019 14:39:32 +0900 Received: from localhost.localdomain (unknown [10.166.17.210]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 5AAC240031EF; Tue, 25 Jun 2019 14:39:32 +0900 (JST) From: Yoshihiro Shimoda To: gregkh@linuxfoundation.org Cc: linux-usb@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Yoshihiro Shimoda Subject: [PATCH 00/13] usb: renesas_usbhs: refactor this driver Date: Tue, 25 Jun 2019 14:38:44 +0900 Message-Id: <1561441137-3090-1-git-send-email-yoshihiro.shimoda.uh@renesas.com> X-Mailer: git-send-email 2.7.4 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 series is based on Greg's usb.git / usb-next branch. The previous code had redundant memory allocations so that the code readability was not good. I believe this patch series makes it better. Yoshihiro Shimoda (13): usb: renesas_usbhs: revise the irq_vbus comments usb: renesas_usbhs: remove notify_hotplug callback usb: renesas_usbhs: move macros from mod.c to the mod.h usb: renesas_usbhs: Avoid to write platform_data's value usb: renesas_usbhs: Use a specific flag instead of type for multi_clks usb: renesas_usbhs: Remove type member from renesas_usbhs_driver_param usb: renesas_usbhs: Use dev_of_node macro instead of open coded usb: renesas_usbhs: Add has_new_pipe_configs flag usb: renesas_usbhs: Add struct device * declaration in usbhs_probe() usb: renesas_usbhs: move device tree properties parsing usb: renesas_usbhs: Add a common function for the .get_id usb: renesas_usbhs: Use renesas_usbhs_platform_info on of_device_id.data usb: renesas_usbhs: Use struct platform_callback pointer drivers/usb/renesas_usbhs/common.c | 197 +++++++++++---------------------- drivers/usb/renesas_usbhs/common.h | 11 +- drivers/usb/renesas_usbhs/fifo.c | 3 +- drivers/usb/renesas_usbhs/mod.c | 23 ++-- drivers/usb/renesas_usbhs/mod.h | 26 ++++- drivers/usb/renesas_usbhs/mod_gadget.c | 7 +- drivers/usb/renesas_usbhs/rcar2.c | 22 ++-- drivers/usb/renesas_usbhs/rcar2.h | 3 +- drivers/usb/renesas_usbhs/rcar3.c | 33 ++++-- drivers/usb/renesas_usbhs/rcar3.h | 5 +- drivers/usb/renesas_usbhs/rza.c | 18 +-- drivers/usb/renesas_usbhs/rza.h | 4 +- drivers/usb/renesas_usbhs/rza2.c | 22 ++-- include/linux/usb/renesas_usbhs.h | 35 +----- 14 files changed, 168 insertions(+), 241 deletions(-)