From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C2B24C43381 for ; Fri, 22 Mar 2019 08:51:42 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9244D218D3 for ; Fri, 22 Mar 2019 08:51:42 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="MTeqICKp" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9244D218D3 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=u++FLqL1Z1FH+T3zbzeW4YhoxjEyX5ivU4qKqXfWJXs=; b=MTeqICKp5K+3UF bN8BaUOJ0FOIk5WwGKjM6yybAqe5pLgAv1YlOSKSqITsUe8wAOyczI/gM+p9bGUsV9q6JXVD5VXhi WIX316WL+MA0IA0pkSv8FCn5nRyT6jq4vhCUwmm8xrHZ0IffdWHsC3Kn34Viu3vhaHfn10KhvKIjB 3ZUBU7qa+w4JNnOw2BYPt6WkUIiCO8o3HhixS/mZc0gt3XTXWnrZkotJPxuGmkcaAMhU+YkkSfWqW /znVZRFrJgGiz82KIn4bRJEVqS4p9WIx2Ze36JlnM0zJ9iS5J9WXO/sNNHgAWoACPstwUiuOmFD/T P019LCvetGukEuJz525Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h7Ftp-0000G8-FP; Fri, 22 Mar 2019 08:51:37 +0000 Received: from mirror2.csie.ntu.edu.tw ([140.112.30.76] helo=wens.csie.org) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h7Ftf-00007I-DW for linux-arm-kernel@lists.infradead.org; Fri, 22 Mar 2019 08:51:29 +0000 Received: by wens.csie.org (Postfix, from userid 1000) id BB9A75FCDD; Fri, 22 Mar 2019 16:51:15 +0800 (CST) From: Chen-Yu Tsai To: Maxime Ripard , Greg Kroah-Hartman , Kishon Vijay Abraham I Subject: [PATCH 0/2] ARM: sunxi: Fix USB host init fail on v5.1-rc1 Date: Fri, 22 Mar 2019 16:51:06 +0800 Message-Id: <20190322085108.18693-1-wens@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190322_015127_594036_B9784310 X-CRM114-Status: UNSURE ( 9.13 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Chen-Yu Tsai , Grygorii Strashko , linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Chen-Yu Tsai Hi everyone, As previously reported [1], USB EHCI/OHCI hosts are broken on Allwinner SoCs on v5.1-rc1. This is partially triggered by commit b97a31348379 ("usb: core: comply to PHY framework"), and partially due to how the Allwinner USB PHY driver handles phy_set_mode for non-OTG PHYs. This series fixes this in both places. Patch 1 makes phy-sun4i-usb accept PHY_MODE_USB_HOST for non-OTG PHYs. Patch 2 makes the usb core fall back to setting the mode PHY_MODE_USB_HOST if set_mode with PHY_MODE_USB_HOST_SS fails. If that fails then the failure path is the same as before. This should make it so existing USB 3.0 drivers are affected. The patches don't have any dependencies on each other, and could go in through separate branches. However this affects usability of USB input devices and Ethernet dongles, I'd rather they go in sooner than later. Regards ChenYu [1] https://lkml.org/lkml/2019/3/18/74 Chen-Yu Tsai (2): phy: sun4i-usb: Support set_mode to USB_HOST for non-OTG PHYs usb: core: Try generic PHY_MODE_USB_HOST if usb_phy_roothub_set_mode fails drivers/phy/allwinner/phy-sun4i-usb.c | 5 ++++- drivers/usb/core/hcd.c | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) -- 2.20.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel