Message ID | 20230201174404.32777-2-f.fainelli@gmail.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp418318wrn; Wed, 1 Feb 2023 09:53:25 -0800 (PST) X-Google-Smtp-Source: AK7set/mNLXAbeog6W9zNjO4FrIlpBsOwUNir8KAbdjjFac5Ke0yJHc8JqgBcMso+gzVEieOTjx/ X-Received: by 2002:a17:906:7955:b0:888:b764:54e5 with SMTP id l21-20020a170906795500b00888b76454e5mr4293995ejo.71.1675274005633; Wed, 01 Feb 2023 09:53:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675274005; cv=none; d=google.com; s=arc-20160816; b=EpJrDvuiW4nDEdnEfQyaSzUcIiP4WUZUtLZL67SYgtuUTmVRNNTzrY/MFUOMxtF5IU tanFQFBesw0uHSGbdb83lNDD7Woc82vCQjDDo80MTN4BVxs84x1BLY8mdkoo5QP/IsbG ToYr0kltbRo4uDwdfYdbJpUuFZzmmNhP9PnzjsLIRhGffUy80zUahvWcoWSfC3b/1Lc+ ediH/sc+MrZc4aTQe0da1KOLwXsfc2Kmmh0SakUfXin2S8w2k8u1eBdXocG2ytLG9INh QB2cq0GCJlRJF1kh8bZZdXXfy3t9dV+LwcJUZKwAU29z/77QHQtGOk946wxgq4cpddmi r7vQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=OAlxWpOyE8wRsJOXBCXiv/nkAGyEl3lqtZ+cp+0vZ6c=; b=zGjyMiAkZS9TImX9DAv2RGZJDMLcqLDsQXtERuLqBP2wyJd4+ndLNsWJ/DpV1L5q0f gLWAJCglf72v4XBg/0KG0TGTfQshVgOaKZtfiqoN1OGbeRPb3pPQN7/eFU9LhdFHfIzY yzdqykSgXSWSmzcwkFvWRkwtszAlj+v1TT/SdbDE5JxZljLK4IEyf6NpclhlQS9ujVfI 5x/d73p+SNZSHDbWsNV69LFnlAQ93ltToF0ogmxr2CYUGdxt9AtzJszywaz7aqBvhLLW +5UkBXObj9HFhkD+V8kfiZFS6gZAPiD6uJ4dcrYxr0k5964HD9TIM2hhDb4JkrmaGnnI Baag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=VFb8UYsu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id up18-20020a170907cc9200b008712e3633f6si21458155ejc.594.2023.02.01.09.53.01; Wed, 01 Feb 2023 09:53:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=VFb8UYsu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231907AbjBARoZ (ORCPT <rfc822;duw91626@gmail.com> + 99 others); Wed, 1 Feb 2023 12:44:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230214AbjBARoX (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 1 Feb 2023 12:44:23 -0500 Received: from mail-qt1-x835.google.com (mail-qt1-x835.google.com [IPv6:2607:f8b0:4864:20::835]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C23AF86A9; Wed, 1 Feb 2023 09:44:22 -0800 (PST) Received: by mail-qt1-x835.google.com with SMTP id bb40so10326105qtb.2; Wed, 01 Feb 2023 09:44:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=OAlxWpOyE8wRsJOXBCXiv/nkAGyEl3lqtZ+cp+0vZ6c=; b=VFb8UYsu27ate0K8pAh48CNR3pqQhmRGgiSyBDRK0lzMpMUsrcVnUpLiSKGsialNLV /rFkNSg9fYlJxkOJG/qdY29EY/pR5c39wYsP1tVdE1Im55dztHN27Xh0jTe7enyE/AsQ Ls6q+ANEVBUhgHHC18NLip8YeBO7ZGHdaSjqexvxrSdmwl5LGTSzmXPHlEqR05KJS1dP y7MJzd7sHXtqxWKrAVeB6KXfAsqA316biylGwtFkrwdShf3EtRX9IoIPKjNQntGGeXEF 7zbWDF97IwaTdc+Km4U3T8LUNKoY9B4tyJQaMyHtxSW1k1/NlhGypoGONjsoU7lAvFfz gRyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=OAlxWpOyE8wRsJOXBCXiv/nkAGyEl3lqtZ+cp+0vZ6c=; b=hBoJKQ0XulTdWdlYGG46kJFSocZA6vF3enhH637PHJkgAZ6EPFDT2v3zu0riwcwxEL CFELg5CNW3ft7SJ/DjruWWNQdC88yS2rBh9sJFBcoPAKxnp7elwyzKC6PFR4Q2hsfYaP 1Jl9zdbKM96cElJFRiAAQnivPQYebOqhIIAn5kcbhjEvVKHZ1vVYNG8d5nBTq69tbHVt 6fK8Omx/oOUckjoCZ+1YQGntmSiknd9euakIp+p9/0h1F8/l5JXVy5dk5Tn7tVK6HFbK 1WNPRrc5+0H2tkr8mlHFxjbktLJWTbhhj7SYxa4NkfEuDMgbPxSEC8l0Wc9ABPjQIVtP LoFQ== X-Gm-Message-State: AO0yUKW4cqWePyuDpIYTmkjJHr5NXo62skYcmlumpT2F5dK2BNUnrBvQ XyKRdTq8dJwgVO258/pJdtriVrn+zFMqkQ== X-Received: by 2002:a05:622a:130b:b0:3a8:2f65:6ccb with SMTP id v11-20020a05622a130b00b003a82f656ccbmr5619884qtk.65.1675273461541; Wed, 01 Feb 2023 09:44:21 -0800 (PST) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id f23-20020ac80157000000b003b868cdc689sm6681784qtg.5.2023.02.01.09.44.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Feb 2023 09:44:19 -0800 (PST) From: Florian Fainelli <f.fainelli@gmail.com> To: linux-kernel@vger.kernel.org Cc: stable@vger.kernel.org, Peter Chen <peter.chen@nxp.com>, Matthias Kaehlcke <mka@chromium.org>, Mathias Nyman <mathias.nyman@linux.intel.com>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Florian Fainelli <f.fainelli@gmail.com>, Mathias Nyman <mathias.nyman@intel.com>, linux-usb@vger.kernel.org (open list:USB XHCI DRIVER) Subject: [PATCH stable 4.19] usb: host: xhci-plat: add wakeup entry at sysfs Date: Wed, 1 Feb 2023 09:44:03 -0800 Message-Id: <20230201174404.32777-2-f.fainelli@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230201174404.32777-1-f.fainelli@gmail.com> References: <20230201174404.32777-1-f.fainelli@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756651969513113918?= X-GMAIL-MSGID: =?utf-8?q?1756652115756662283?= |
Series |
[stable,4.19] usb: host: xhci-plat: add wakeup entry at sysfs
|
|
Commit Message
Florian Fainelli
Feb. 1, 2023, 5:44 p.m. UTC
From: Peter Chen <peter.chen@nxp.com> commit 4bb4fc0dbfa23acab9b762949b91ffd52106fe4b upstream With this change, there will be a wakeup entry at /sys/../power/wakeup, and the user could use this entry to choose whether enable xhci wakeup features (wake up system from suspend) or not. Tested-by: Matthias Kaehlcke <mka@chromium.org> Reviewed-by: Matthias Kaehlcke <mka@chromium.org> Signed-off-by: Peter Chen <peter.chen@nxp.com> Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com> Link: https://lore.kernel.org/r/20200918131752.16488-6-mathias.nyman@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> --- drivers/usb/host/xhci-plat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c index adc437ca83b8..cb3ba2adae64 100644 --- a/drivers/usb/host/xhci-plat.c +++ b/drivers/usb/host/xhci-plat.c @@ -261,7 +261,7 @@ static int xhci_plat_probe(struct platform_device *pdev) *priv = *priv_match; } - device_wakeup_enable(hcd->self.controller); + device_set_wakeup_capable(&pdev->dev, true); xhci->clk = clk; xhci->reg_clk = reg_clk;