Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp470472img; Fri, 22 Mar 2019 01:54:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqyUbDKn6gh3VueIGEG78FHBCMwH5fLILErY9R6HMhXQrbq16SQ1qw6MGUhOOlFZaTRNWMN8 X-Received: by 2002:a17:902:7084:: with SMTP id z4mr6462042plk.305.1553244843928; Fri, 22 Mar 2019 01:54:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553244843; cv=none; d=google.com; s=arc-20160816; b=J+D2y4iBvWx8DbNdpD15jTr0uSqmiVG5XaNcOd6lsHUFNU131zoBb2+G+ZOQdVi0PH vYpRzlFlkSQenkEIyWZz5WxAT2dgMwFFSU8cKpItzgGVdp+M7N/JX4E7Ycmrcg4y2PdU 98GhPrKyqD4qt7RJrsFQdEE3X93t+W+s+PnhaoBiylR0fd6BjFvEqVGJ+cuWvIpNAVLU +AfROOABM/G06fbL1qko0FjrIydF544F8VOPvrpJsUtFIdy9u/ptl3n/uLJQ+0WwSjJn ib+qN95yzPXLEDLI9Xs0OproS5hNF/grKUtrD8FlVf0cp8rpP5fpRK85Y4eOvathX8Ao KPOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=+fiBOZCx8FBUye8lrGUOkLrPKEYPI+sDEj3LwW3cvVM=; b=v6iMYUSyw7qjFVc6MHvB2h/otiHt8tZcSjD2C1LIGRLyEBYejUTN5TF6bEwDgByL8W +78T1CPvm+/jc0ljAGZE0/kb+hx9ZJQhNAZKtJFq1fLgcxfcsoh1hpG/AWAvhWsdM7Rm 8Ov09Tl2RDS7S+FcvHKgZ1U9+usWBVoOwXM+J0RUJACmmbt1xrNzp7TWFppnJqEIkSlB vcs6vrU1LpYunZjrinbmFiFGiaJnq+Y2Nw7EVcIo9PF0fDJQv+9Mklo3JN4Rx0ExE5PI kaHHHwyWwuIbMuVwHi3hsAXr52lhP4yNZ1EpaihrN9s3FoRf6nxy8OudsJT2XcK1itOP 6nsA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l90si6459650pfb.265.2019.03.22.01.53.48; Fri, 22 Mar 2019 01:54:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727713AbfCVIvS (ORCPT + 99 others); Fri, 22 Mar 2019 04:51:18 -0400 Received: from mirror2.csie.ntu.edu.tw ([140.112.30.76]:41762 "EHLO wens.csie.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726667AbfCVIvR (ORCPT ); Fri, 22 Mar 2019 04:51:17 -0400 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 Cc: Chen-Yu Tsai , Grygorii Strashko , linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org 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 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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