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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E20B3C001DE for ; Wed, 2 Aug 2023 09:39:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232602AbjHBJjG (ORCPT ); Wed, 2 Aug 2023 05:39:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229629AbjHBJjF (ORCPT ); Wed, 2 Aug 2023 05:39:05 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E909DE4D; Wed, 2 Aug 2023 02:39:04 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 86B39618AC; Wed, 2 Aug 2023 09:39:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7DD1EC433C9; Wed, 2 Aug 2023 09:39:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1690969143; bh=usG9b09TPI2Nm0uCNY/vSjiTKmjnQWhtZ5dO4cYwwig=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XwJ62TxKvGgJhMGEgM2pZLcgxplb3ZeWc6W5W29lGpkjpj5Gge5VoVJLOEjCljVhv u3DtGOHBY1IhzmNMXdlMoV+tQ5JMkCEzfOT0emeXPuaIzQjr+4uG2exxAgJS7Z0SpY 3QnxmY6FaJfRAcnFAq0sFlE+xV9AXt5TguaS91V8= Date: Wed, 2 Aug 2023 11:39:00 +0200 From: Greg Kroah-Hartman To: Yinbo Zhu Cc: Mathias Nyman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Jianmin Lv , wanghongliang@loongson.cn, Liu Peibao , loongson-kernel@lists.loongnix.cn Subject: Re: [PATCH] usb: xhci-plat: fix usb disconnect issue after s4 Message-ID: <2023080243-matted-abnormal-0fb0@gregkh> References: <20230802090642.1642-1-zhuyinbo@loongson.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230802090642.1642-1-zhuyinbo@loongson.cn> Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org On Wed, Aug 02, 2023 at 05:06:42PM +0800, Yinbo Zhu wrote: > The xhci retaining bogus hardware states cause usb disconnect devices > connected before hibernation(s4) and refer to the commit '547d55fa83 > ("usb: ohci-platform: fix usb disconnect issue after s4")' which set > flag "hibernated" as true when resume-from-hibernation and that the > drivers will reset the hardware to get rid of any existing state and > make sure resume from hibernation re-enumerates everything for xhci. > > Signed-off-by: Yinbo Zhu > --- > drivers/usb/host/xhci-plat.c | 21 ++++++++++++++++++--- > 1 file changed, 18 insertions(+), 3 deletions(-) What commit id does this fix? Should it go to stable kernels? thanks, greg k-h