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 2D371C433EF for ; Wed, 29 Dec 2021 10:21:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235472AbhL2KVo (ORCPT ); Wed, 29 Dec 2021 05:21:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231732AbhL2KVn (ORCPT ); Wed, 29 Dec 2021 05:21:43 -0500 Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F28E6C061574 for ; Wed, 29 Dec 2021 02:21:42 -0800 (PST) Received: by mail-pj1-x1035.google.com with SMTP id y16-20020a17090a6c9000b001b13ffaa625so24201851pjj.2 for ; Wed, 29 Dec 2021 02:21:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=YugLlpOMd0/4DC/hza11ghcrjL7VsurmcHoSEit8QkM=; b=lqqxidN8xwGBrMIBF+eODNuDxi538IYYZOEEnr2qHGn8JHuf5yaiPA3x0uC4uXQSgh CfQ7iT+LNARDyohFNYoqKuM9DX2pup59EM43W4dUrQvZ9hyCFavForVUL9dAawDC8RUP ZgqKAhtNy3Wp8Vqs8riaZ2EkfAelorWbFmEYebu0O8nIRjkMqwvrGiDJajl83iPLqEX1 BSi6hOpE7814Q6RBSVSBmDkAtR47OoTnR7tO57ab2KwW2HHOsTYoHrAgR5LYCaQALVh4 E6WjGTbEyivuNTrk/QGM+UqJIDIxa9rczd8tHls3bYpPyE4gD4hVkty2PGJsjuieNZCL pX5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=YugLlpOMd0/4DC/hza11ghcrjL7VsurmcHoSEit8QkM=; b=2mQGv2Gcj4Yz7lH5NwK5gYvZDdHsH/g8B983cfG2csn0G2Qi7bntQx1PjYLydDqzEW MCKpGU9ZSED27+Qhz2LGwXgFS+VXjUrYH+kPeyVI5sRIOsY5ZPlzButBUCmb0CNtRp9k HTfNaDgMO2J0/mekwwLeMoL/QKnn/HFH7P4WtlgnTZrKfuH+E30yxUNFKwUXVUskDF7K Q8XJCSwvxq09Yyx+gFd9/5SjWWA31oa7iaB/YMWSyHXHBXJRc1ZJ937kbAqF2jnt5OQd L3nXeOfTWRNNEg+4P29/RfM29PZ+3v9UABC9Nyf5tTyA73q2Uy/tnJA8ptNLVfjE3d7u Z9tQ== X-Gm-Message-State: AOAM531nkc+G1XRxGatAhnZyud8b4QcX+WlAhGcmpHj9vUOT9Ba+POsR ZBxRS27iIh2Oh14syPGGjS3LDvKfwf+91BLauo4XVA== X-Google-Smtp-Source: ABdhPJyvNx3o/xQnohHsi5zv4TBC74fIG6q5Tdg9Rfz9y0bZrhC2TSALAVSRZbpSAK1iD8AxBI+vv5nBqWgdU43nAyU= X-Received: by 2002:a17:90b:4f4c:: with SMTP id pj12mr31315751pjb.121.1640773302093; Wed, 29 Dec 2021 02:21:42 -0800 (PST) MIME-Version: 1.0 References: <20211228060246.2958070-1-pumahsu@google.com> In-Reply-To: From: Puma Hsu Date: Wed, 29 Dec 2021 18:21:05 +0800 Message-ID: Subject: Re: [PATCH] xhci: re-initialize the HC during resume if HCE was set To: Greg KH Cc: mathias.nyman@intel.com, Albert Wang , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 29, 2021 at 5:51 PM Greg KH wrote: > > On Wed, Dec 29, 2021 at 05:11:47PM +0800, Puma Hsu wrote: > > On Wed, Dec 29, 2021 at 4:30 PM Greg KH wrote: > > > > > > A: http://en.wikipedia.org/wiki/Top_post > > > Q: Were do I find info about this thing called top-posting? > > > A: Because it messes up the order in which people normally read text. > > > Q: Why is top-posting such a bad thing? > > > A: Top-posting. > > > Q: What is the most annoying thing in e-mail? > > > > > > A: No. > > > Q: Should I include quotations after my reply? > > > > > > http://daringfireball.net/2007/07/on_top > > > > > > On Wed, Dec 29, 2021 at 01:53:04PM +0800, Puma Hsu wrote: > > > > This commit is not used to fix a specific commit. We find a condition > > > > that when XHCI runs the resume process but the HCE flag is set, then > > > > the Run/Stop bit of USBCMD cannot be set so that HC would not be > > > > enabled. In fact, HC may already meet a problem at this moment. > > > > Besides, in xHCI requirements specification revision 1.2, Table 5-21 > > > > BIT(12) claims that Software should re-initialize the xHC when HCE is > > > > set. Therefore, I think this commit could be the error handling for > > > > HCE. > > > > > > So this does not actually fix an issue that you have seen in any device > > > or testing? So it is not relevant for older kernels but just "nice to > > > have"? > > > > > > How did you test this if you can not duplicate the problem? > > > > > > > Yes, we actually see that the HCE may be detected while running xhci_resume > > on our product platform, so I'm able to verify this commit can fix > > such a condition. > > Given that your product platform is an older kernel version than 5.17, I > think that you also want this in the older kernel releases, so please > mark it for stable backporting. > Thank you for advising. Could I know how to do this? Just add "Cc: " to the commit message? Thanks. Puma Hsu