From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 40899C43603 for ; Thu, 12 Dec 2019 17:26:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2138321655 for ; Thu, 12 Dec 2019 17:26:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730101AbfLLR0S (ORCPT ); Thu, 12 Dec 2019 12:26:18 -0500 Received: from muru.com ([72.249.23.125]:46496 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730086AbfLLR0S (ORCPT ); Thu, 12 Dec 2019 12:26:18 -0500 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 9C59780C0; Thu, 12 Dec 2019 17:26:56 +0000 (UTC) Date: Thu, 12 Dec 2019 09:26:14 -0800 From: Tony Lindgren To: Bin Liu , Sergei Shtylyov , Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-omap@vger.kernel.org, Merlijn Wajer , Pavel Machek , Sebastian Reichel Subject: Re: [PATCH] usb: musb: fix idling for suspend after disconnect interrupt Message-ID: <20191212172614.GZ35479@atomide.com> References: <20191126034151.38154-1-tony@atomide.com> <5ae7f3aa-3992-a810-f5d4-0b5bb8fa6356@cogentembedded.com> <20191126174515.GZ35479@atomide.com> <20191212172157.GJ16429@iaqt7> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191212172157.GJ16429@iaqt7> User-Agent: Mutt/1.12.2 (2019-09-21) Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org * Bin Liu [191212 17:23]: > On Tue, Nov 26, 2019 at 09:45:15AM -0800, Tony Lindgren wrote: > > * Sergei Shtylyov [191126 10:21]: > > > Hello! > > > > > > On 26.11.2019 6:41, Tony Lindgren wrote: > > > > > > > When disconnected as USB B-device, we sometimes get a suspend interrupt > > > > after disconnect interrupt. In that case we have devctl set to 99 with > > > > VBUS still valid and musb_pm_runtime_check_session() wrongly things we > > > > > > Thinks? > > > > Thanks will fix. > > Is this the only update needed? I can fix it locally when queuing the > patch. So it seems. Maybe also add your explanation for why the wrong ordering of interrupts can happen while at it. Regards, Tony