Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754184AbcKOVxE (ORCPT ); Tue, 15 Nov 2016 16:53:04 -0500 Received: from mail-pf0-f181.google.com ([209.85.192.181]:36014 "EHLO mail-pf0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751749AbcKOVxD (ORCPT ); Tue, 15 Nov 2016 16:53:03 -0500 From: John Stultz To: lkml Cc: John Stultz , Wei Xu , Guodong Xu , Amit Pundir , Rob Herring , John Youn , Douglas Anderson , Chen Yu , Felipe Balbi , Greg Kroah-Hartman , linux-usb@vger.kernel.org Subject: [RFC][PATCH 0/3] DWC2 fixes and hacks to make things work on HiKey Date: Tue, 15 Nov 2016 13:47:33 -0800 Message-Id: <1479246456-21652-1-git-send-email-john.stultz@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1896 Lines: 53 Hey folks, I wanted to send out these patches again for comment. These three patches are basically required to get otg/gadget mode working reliably on HiKey. I admit they do feel a bit hackish, but without them we run into a number of problems related to autosuspend and incorrect connection state handling. So I wanted to resend these for feedback and guidance. I suspect that some of these issues may be due to the phy driver on hikey being somewhat minimal: https://git.linaro.org/people/john.stultz/android-dev.git/plain/drivers/phy/phy-hi6220-usb.c?h=dev/hikey-mainline-WIP So I've tried to hacked together extconn support into the phy driver, and I'm getting phy notifications, but I've not yet sorted out how to get the phy->gadget signaling to work properly (or if my appraoch is even correct). See: https://git.linaro.org/people/john.stultz/android-dev.git/commit/?h=dev/hikey-mainline-WIP&id=c608f263240f7c54dbf5439f2210cba1ab8e0136 I've had a difficult time trying to understand how the usb contoller driver, phy driver and extcon shoudl properly fit together, and I'm not sure what would be a good reference driver to follow. So suggestions or pointers here would be greatly appreciated. Cc: Wei Xu Cc: Guodong Xu Cc: Amit Pundir Cc: Rob Herring Cc: John Youn Cc: Douglas Anderson Cc: Chen Yu Cc: Felipe Balbi Cc: Greg Kroah-Hartman Cc: linux-usb@vger.kernel.org Chen Yu (1): usb: dwc2: Force port resume on switching to device mode John Stultz (2): usb: dwc2: Avoid suspending if we're in gadget mode usb: dwc2: Make sure we disconnect the gadget state drivers/usb/dwc2/hcd.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) -- 2.7.4