From: Chen-Yu Tsai <wens@kernel.org> To: Maxime Ripard <maxime.ripard@bootlin.com>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Kishon Vijay Abraham I <kishon@ti.com> Cc: Chen-Yu Tsai <wens@csie.org>, Grygorii Strashko <grygorii.strashko@ti.com>, 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 [thread overview] Message-ID: <20190322085108.18693-1-wens@kernel.org> (raw) From: Chen-Yu Tsai <wens@csie.org> 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
WARNING: multiple messages have this Message-ID (diff)
From: Chen-Yu Tsai <wens@kernel.org> To: Maxime Ripard <maxime.ripard@bootlin.com>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Kishon Vijay Abraham I <kishon@ti.com> Cc: Chen-Yu Tsai <wens@csie.org>, Grygorii Strashko <grygorii.strashko@ti.com>, 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 [thread overview] Message-ID: <20190322085108.18693-1-wens@kernel.org> (raw) From: Chen-Yu Tsai <wens@csie.org> 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
next reply other threads:[~2019-03-22 8:51 UTC|newest] Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top 2019-03-22 8:51 Chen-Yu Tsai [this message] 2019-03-22 8:51 ` [PATCH 0/2] ARM: sunxi: Fix USB host init fail on v5.1-rc1 Chen-Yu Tsai 2019-03-22 8:51 ` [PATCH 1/2] phy: sun4i-usb: Support set_mode to USB_HOST for non-OTG PHYs Chen-Yu Tsai 2019-03-22 8:51 ` Chen-Yu Tsai 2019-03-22 8:51 ` [1/2] " Chen-Yu Tsai 2019-03-22 8:51 ` [PATCH 2/2] usb: core: Try generic PHY_MODE_USB_HOST if usb_phy_roothub_set_mode fails Chen-Yu Tsai 2019-03-22 8:51 ` Chen-Yu Tsai 2019-03-22 8:51 ` [2/2] " Chen-Yu Tsai 2019-03-22 12:56 ` [PATCH 2/2] " Neil Armstrong 2019-03-22 12:56 ` Neil Armstrong 2019-03-22 12:56 ` Neil Armstrong 2019-03-22 12:56 ` [2/2] " Neil Armstrong 2019-03-22 9:05 ` [PATCH 0/2] ARM: sunxi: Fix USB host init fail on v5.1-rc1 Maxime Ripard 2019-03-22 9:05 ` Maxime Ripard 2019-03-26 7:49 ` Greg Kroah-Hartman 2019-03-26 7:49 ` Greg Kroah-Hartman
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20190322085108.18693-1-wens@kernel.org \ --to=wens@kernel.org \ --cc=gregkh@linuxfoundation.org \ --cc=grygorii.strashko@ti.com \ --cc=kishon@ti.com \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-usb@vger.kernel.org \ --cc=maxime.ripard@bootlin.com \ --cc=wens@csie.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.