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 41AEAC433F5 for ; Thu, 21 Apr 2022 16:41:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231915AbiDUQoY (ORCPT ); Thu, 21 Apr 2022 12:44:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231175AbiDUQoX (ORCPT ); Thu, 21 Apr 2022 12:44:23 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B19648336; Thu, 21 Apr 2022 09:41:33 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id EA0C461D5B; Thu, 21 Apr 2022 16:41:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DB542C385A1; Thu, 21 Apr 2022 16:41:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1650559292; bh=qsSa29ZVIijQPDOasnD79F6vz5mQNkIXHBD9K4SMkVA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=OnXeE15N0Pwh7xAiiVi6DJlLORJusNTEsEi/1jr/uRyMijiQM7n7AQHC1McIT0zEm asunapcYmTopT32jKZRazIr+PRikwYvcGM7G6kZAYR95oWHGUNjZZzgThHGLrK2JmN sp3BFbJMBCIMqF6E6TXjcAeW9Z8gFaDqQjuMzH80= Date: Thu, 21 Apr 2022 18:41:29 +0200 From: Greg KH To: Surong Pang Cc: mathias.nyman@intel.com, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH V1 1/1] usb/host: To get "usb3-slow-suspend" property, then to set xhci quirks Message-ID: References: <20220412025952.21062-1-surong.pang@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220412025952.21062-1-surong.pang@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 12, 2022 at 10:59:52AM +0800, Surong Pang wrote: > From: Surong Pang > > To set xhci->quirks value according to "usb3-slow-suspend" property > > Signed-off-by: Surong Pang > --- > drivers/usb/host/xhci-plat.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c > index 649ffd861b44..6bc456bc6468 100644 > --- a/drivers/usb/host/xhci-plat.c > +++ b/drivers/usb/host/xhci-plat.c > @@ -302,6 +302,9 @@ static int xhci_plat_probe(struct platform_device *pdev) > if (device_property_read_bool(tmpdev, "usb3-lpm-capable")) > xhci->quirks |= XHCI_LPM_SUPPORT; > > + if (device_property_read_bool(tmpdev, "usb3-slow-suspend")) > + xhci->quirks |= XHCI_SLOW_SUSPEND; Device properties need to be documented somewhere.