Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp338885imu; Fri, 7 Dec 2018 01:51:15 -0800 (PST) X-Google-Smtp-Source: AFSGD/VTJn0cD7aaLD0mishz7hYUJaccGg1OHgvpxSu5Pj/kS8MUu94bQUmuxG19sjrOZLg6o8FB X-Received: by 2002:a17:902:6502:: with SMTP id b2mr1484185plk.44.1544176275352; Fri, 07 Dec 2018 01:51:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544176275; cv=none; d=google.com; s=arc-20160816; b=XOzeFSjpPYUHcKh4INdvxR52YROFZIV1fzCXs39K7PjpbgnPn/d4REuwwF9gwABnk+ 98J5hVEjDzXfBUw052uMzjRd8VcF4OsXIxDmh6fITdIDby90k9dBxncahKD9JmyNJq0x 9LWHRZatY3d4A+RNr+3k7L0m8AFAMeyhXEBbuxcM8O9YgrLkTl0l8HUJdvgOn934Oe1X a9zPuStDrRAP5pGNU4u3KTJUy9hzKQ2RYVKNZ2B2Fw/Re7Xgsf6EEIXOu8a2Ys9VIVOf t9g3a+MzUu2ZUlAq1uHT8NLp9+pf5lA28EY73ktQHJIDZThoyq4EfYdGjE8gsU6lDPTJ +nzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=zlJnRtWcTEH2naUwRkXpMOv8ek86ZzGrkCd8ixfBPeE=; b=hy1g7zUa/RcfAO+wR/MJb7YqbBfLGvjLklf/nbguO+PsQ/ubioq5rou11DEZBarK3+ C06ud3OFoeColCq6X3krNm4QF4Axs2aw8Rh9hIfkTjjUEC1rKf2tsEd80lvVI7nEvzqy tXaZzq1/yLeT3f/+yAPTNLH51u1pw/Z/5cUv4UAwwU6pL3KWR5PLjGbN8SDjdNJ3vomn bZaMxmLQnw6yl2SDbTPJgg/yhVd8VvI5je5TfQg5vermNPd7FyuNhr6Wq4kPfQQRD8Re QC0zAPRJoP0YmZvyUJN7mDRm6woahBa9ALHyFPGb2fs42Rcqirj7L53KEdJKcxDpKDlc cDZw== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a9si2496531pff.126.2018.12.07.01.51.00; Fri, 07 Dec 2018 01:51:15 -0800 (PST) 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726057AbeLGJuZ (ORCPT + 99 others); Fri, 7 Dec 2018 04:50:25 -0500 Received: from mga01.intel.com ([192.55.52.88]:18029 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726034AbeLGJuZ (ORCPT ); Fri, 7 Dec 2018 04:50:25 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Dec 2018 01:50:24 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,324,1539673200"; d="scan'208";a="99445578" Received: from pipin.fi.intel.com (HELO localhost) ([10.237.72.175]) by orsmga008.jf.intel.com with ESMTP; 07 Dec 2018 01:50:21 -0800 From: Felipe Balbi To: Minas Harutyunyan , Marek Szyprowski , Minas Harutyunyan , Dan Carpenter , Maynard CABIENTE Cc: "linux-kernel\@vger.kernel.org" , "linux-usb\@vger.kernel.org" , Greg Kroah-Hartman , Geert Uytterhoeven , Bartlomiej Zolnierkiewicz Subject: Re: [PATCH] usb: dwc2: Revert "usb: dwc2: Disable all EP's on disconnect" In-Reply-To: <410670D7E743164D87FA6160E7907A56013A7B47A2@am04wembxa.internal.synopsys.com> References: <20181121154504.13052-1-m.szyprowski@samsung.com> <410670D7E743164D87FA6160E7907A56013A7AA1EE@am04wembxa.internal.synopsys.com> <20181123144307.GC2970@unbuntlaptop> <410670D7E743164D87FA6160E7907A56013A7B19C2@am04wembxa.internal.synopsys.com> <2b48a7b5-f806-d761-97f6-885ae6c69a7e@samsung.com> <410670D7E743164D87FA6160E7907A56013A7B47A2@am04wembxa.internal.synopsys.com> Date: Fri, 07 Dec 2018 11:50:21 +0200 Message-ID: <87lg517jj6.fsf@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Minas Harutyunyan writes: > Hi Marek, > > On 12/6/2018 7:04 PM, Marek Szyprowski wrote: >> Dear Minas, >> >> On 2018-12-04 13:34, Minas Harutyunyan wrote: >>> On 11/23/2018 6:43 PM, Dan Carpenter wrote: >>>> Ugh... We also had a long thread about the v2 patch but it turns out >>>> the list was not CC'd. I should have checked for that. >>>> >>>> You have to pass a flag to say if the caller holds the lock or not... >>>> >>>> regards, >>>> dan carpenter >>>> >>> Hi Dan, Marek, Maynard, >>> >>> Could you please apply bellow patch over follow patches: >>> >>> dccf1bad4be7 usb: dwc2: Disable all EP's on disconnect >>> 6f774b501928 usb: dwc2: Fix ep disable spinlock flow. >>> >>> Please review and test. Feedback is appreciated :-) >> >> Okay, I finally managed to find some time to check this. Your diff is >> mangled, so I had to manually apply it. Frankly, it is very similar to >> the revert I proposed. I've checked it on my test machines and it fixes >> the issues. I'm not very happy about the unlock/lock design, but it >> should be safe in this case and doesn't make the code even more complex. >> Feel free to add a following tag to the final patch: >> >> Tested-by: Marek Szyprowski > Thanks for testing. should $Subject be applied? Can you resend rebased on testing/next with Tested-by tags collected if you're happy with it? thanks -- balbi