From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751796AbdITT5e (ORCPT ); Wed, 20 Sep 2017 15:57:34 -0400 Received: from mail-pf0-f176.google.com ([209.85.192.176]:51952 "EHLO mail-pf0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751484AbdITT5c (ORCPT ); Wed, 20 Sep 2017 15:57:32 -0400 X-Google-Smtp-Source: AOwi7QDK2INk+sJdBpTDw4yPTZsMBFGXP6i5yP2z81rtVI3Z1jN0HW55tAQFNZ2zZyD4Bro5gk7rlQ== From: John Stultz To: lkml Cc: John Stultz , Wei Xu , Guodong Xu , Amit Pundir , YongQin Liu , John Youn , Minas Harutyunyan , Douglas Anderson , Chen Yu , Felipe Balbi , Greg Kroah-Hartman , linux-usb@vger.kernel.org Subject: [RESEND x2][PATCH 0/3] dwc2 fixes for edge cases on hikey Date: Wed, 20 Sep 2017 12:57:25 -0700 Message-Id: <1505937448-13475-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 So here are a few dwc2 fixes that I've been using with HiKey. I'm not totally sure these are all ideal, but they avoid edge case issues that we have been running into with switching between gadget mode and host mode. I'd guess the first two are potentially -stable material, and the last might be worth sending to -stable too, as its a relatively simple fix, but to my understanding the UDC state tracking has always been broken so its not really a regression. But still. I'd love to get some feedback on the patches and consideration to be merged upstream. thanks -john Cc: Wei Xu Cc: Guodong Xu Cc: Amit Pundir Cc: YongQin Liu Cc: John Youn Cc: Minas Harutyunyan Cc: Douglas Anderson Cc: Chen Yu Cc: Felipe Balbi Cc: Greg Kroah-Hartman Cc: linux-usb@vger.kernel.org John Stultz (3): usb: dwc2: Improve gadget state disconnection handling usb: dwc2: Error out of dwc2_hsotg_ep_disable() if we're in host mode usb: dwc2: Fix UDC state tracking drivers/usb/dwc2/gadget.c | 7 +++++++ drivers/usb/dwc2/hcd.c | 8 ++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) -- 2.7.4