From patchwork Fri Mar 1 11:05:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrizio Castro X-Patchwork-Id: 10834969 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 28B4613B5 for ; Fri, 1 Mar 2019 11:06:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1A1882EE50 for ; Fri, 1 Mar 2019 11:06:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0D8A62EE57; Fri, 1 Mar 2019 11:06:10 +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 BC9B02EE5C for ; Fri, 1 Mar 2019 11:06:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728329AbfCALGG (ORCPT ); Fri, 1 Mar 2019 06:06:06 -0500 Received: from relmlor2.renesas.com ([210.160.252.172]:38537 "EHLO relmlie6.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725978AbfCALGG (ORCPT ); Fri, 1 Mar 2019 06:06:06 -0500 X-IronPort-AV: E=Sophos;i="5.58,427,1544454000"; d="scan'208";a="9011026" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie6.idc.renesas.com with ESMTP; 01 Mar 2019 20:06:04 +0900 Received: from fabrizio-dev.ree.adwin.renesas.com (unknown [10.226.36.184]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 388E24383227; Fri, 1 Mar 2019 20:06:01 +0900 (JST) From: Fabrizio Castro To: Geert Uytterhoeven , Simon Horman , Rob Herring , Mark Rutland , Yoshihiro Shimoda Cc: Fabrizio Castro , Magnus Damm , Kishon Vijay Abraham I , Greg Kroah-Hartman , Arnd Bergmann , linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-usb@vger.kernel.org, Chris Paterson , Biju Das , ebiharaml@si-linux.co.jp Subject: [PATCH 0/4] Add USB-HOST support to cat874 Date: Fri, 1 Mar 2019 11:05:44 +0000 Message-Id: <1551438348-22119-1-git-send-email-fabrizio.castro@bp.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 While trying to add USB-HOST support to the cat874 board, it came up that of_usb_get_dr_mode_by_phy was selecting the wrong DT node to use for dr_mode. Also, drivers/phy/renesas/phy-rcar-gen3-usb2.c was registering IRQs, no matter the dr_mode. This series adds all that is required to add USB-HOST support to the cat874 board, and also removes the hsusb from Draak's DT as not necessary anymore. Thanks, Fab Fabrizio Castro (4): usb: common: Consider only available nodes for dr_mode phy: renesas: rcar-gen3-usb2: No need to request IRQ for non-OTG arm64: dts: renesas: r8a774c0-cat874: Add USB-HOST support arm64: dts: renesas: r8a77995: draak: Remove hsusb node arch/arm64/boot/dts/renesas/r8a774c0-cat874.dts | 15 ++++++++++++++ arch/arm64/boot/dts/renesas/r8a77995-draak.dts | 5 ----- drivers/phy/renesas/phy-rcar-gen3-usb2.c | 26 ++++++++++++------------- drivers/usb/common/common.c | 2 ++ 4 files changed, 30 insertions(+), 18 deletions(-)