From patchwork Thu Apr 27 22:16:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Berger X-Patchwork-Id: 88398 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp567529vqo; Thu, 27 Apr 2023 15:35:00 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6/sRNlXlDXijDKkDkkfBQH5AtHsF1kyDUL2QWAzX0fwYA2ErLzqc1qOAVIs/K3DrtemsOU X-Received: by 2002:a17:902:d488:b0:1a6:961e:fd0b with SMTP id c8-20020a170902d48800b001a6961efd0bmr3721963plg.4.1682634900666; Thu, 27 Apr 2023 15:35:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682634900; cv=none; d=google.com; s=arc-20160816; b=RVg8yYVIDv6MwReHLboyNdkyrTOy4dQwBapQsISkg4avO11xE+7JvtTo33kXpwMFmc ldd92VDqvmZbkKlKW4GUbSjNnwWtgZel4DXV2czHb/l4oX1GTSZd2CjWR/7gGL5wFSkm skDDB/94k9C1lFwSH21ZGOt0hZZ0bssSYvBTFOGW/i1/YDSdgBMvTtxybYAyK3vUXaRP thYI2fA7RLCXnz+xyjPsnhM5o8i8mRXHLRlPKWOZALqricLtgaLHCBQRaHYx4NMcTtk4 BU/cPooGH/zvwD6tJy1G7qUZW9J/W6adGVrL/VgZeLdJPtvC1RM6qD9JjoEr8JQ6tMx2 DjkQ== 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=Es1k5EjqLrEC+NljuMDyo0wk9bQclI6Hf3tCC6xmdYE=; b=g60d8ZSHEs1ETvcWdyqzRdIAyY6SZbViDlxoonknqWP93AoRxGrWTc2pLytyhT/OH8 wAbq1fzjyKqyf908n3/xW0fDF4Y3bNVvHDrHFDe9SavAZDFr/uACZDXmnbGHNNKlF/G4 SMvek36gaekAhceWsygHGfP1k7m0M2ZqrVz45da8PKp1F9THeBTMesN9e7vptbcxM/Zr mg8ifDSxYB/1woQ+XWrjos1ocFFLJsFD134RjbcQncSqfqlDBSJ+7pFxNCQl64iVxicD Y6H69ZIwON8oHAZHGkLuA7OyBGgE/G9Lo3QjmLyy9C5/vS5HUdYJp/VcPDoXwsF5mZb8 Oyvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=cFuXRwsZ; 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 p5-20020a170902780500b0019ad97d72cfsi19089391pll.590.2023.04.27.15.34.48; Thu, 27 Apr 2023 15:35:00 -0700 (PDT) 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=20221208 header.b=cFuXRwsZ; 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 S1344231AbjD0WSO (ORCPT + 99 others); Thu, 27 Apr 2023 18:18:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344058AbjD0WSH (ORCPT ); Thu, 27 Apr 2023 18:18:07 -0400 Received: from mail-pg1-x52a.google.com (mail-pg1-x52a.google.com [IPv6:2607:f8b0:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A18483584; Thu, 27 Apr 2023 15:18:03 -0700 (PDT) Received: by mail-pg1-x52a.google.com with SMTP id 41be03b00d2f7-51b4ef5378bso8828709a12.1; Thu, 27 Apr 2023 15:18:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682633883; x=1685225883; 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=Es1k5EjqLrEC+NljuMDyo0wk9bQclI6Hf3tCC6xmdYE=; b=cFuXRwsZ34marh8kZZRpUTpL2f+2CNidWexMSC05HsB5LNA2k7PcxL0TI81mPuE96y E1uYQysxlmBglOt3Uddn3IURTYpY/3yBNAfPKDoKQrp0cnA3VFxOTNosvKsEPM4DmdSa wMJcheix1fLAy0dSipLDPw5su9sBEBl7T7knR6IFsUQapa784f29M9Gb/ffMocYx8rZs VeVyJk6N7plQEZDyvRjJK/XvrD86rd2NY68r4xc/jcP7UwNkPNAZF+yApaRVaRDFP7xF jaRPyCd23uHhd1AmCkiJXjsySb3Z9F5Py6164HvofmlUKnKOtyrnLVld+D1lT+AANiEo 1j4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682633883; x=1685225883; 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=Es1k5EjqLrEC+NljuMDyo0wk9bQclI6Hf3tCC6xmdYE=; b=bS/dFTSofMrad1VfGJMaIBV0IhwtiZQBQm05EOI0gqY9HtHxBYKE/3X/cT0oiDDFM6 FbyMDdLUBDORWTvW+paYNLzmr1J98wFVsILRkFHIbTBdK+CWnTtJ4h1Ro984++EfJkwz hXHXVJm8n2RgXj8cKs8nxatY4nwNJ0OWNgofo3trID3hA3JU8/VkpChMNJruJUsIgSKa MmpS2N//EvKaS/XgmMLHzarROBAyo+nRmTfD6F9EUguwvwWFM4no/yKY2BCvwyudiQuF e3plVLrSkB6vTHH88K2cuAFGiODrm05Yua5Dqf3MEcIJrlqeFY/FJbAATzaF4qYMckwN iAZg== X-Gm-Message-State: AC+VfDxh2TpY/7tLmk81ijHKpWbWYIyW9bkQliO4As4EjvY+EntRKrC0 AO6NrGdzygeL4TSw9K3uREc= X-Received: by 2002:a17:902:f790:b0:1a6:d15f:3ce1 with SMTP id q16-20020a170902f79000b001a6d15f3ce1mr3038657pln.34.1682633883167; Thu, 27 Apr 2023 15:18:03 -0700 (PDT) Received: from stbirv-lnx-1.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id w8-20020a1709027b8800b001a661000398sm12022783pll.103.2023.04.27.15.18.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Apr 2023 15:18:02 -0700 (PDT) From: Doug Berger To: Greg Kroah-Hartman , "Rafael J. Wysocki" , Dmitry Torokhov Cc: Lad Prabhakar , Gergo Koteles , Jonathan Cameron , Andy Shevchenko , Dan Williams , Hans de Goede , Thomas Gleixner , Kees Cook , Kishon Vijay Abraham I , Saravana Kannan , Florian Fainelli , linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, Doug Berger Subject: [RFC PATCH 1/3] input: gpio-keys - use device_pm_move_to_tail Date: Thu, 27 Apr 2023 15:16:23 -0700 Message-Id: <20230427221625.116050-2-opendmb@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230427221625.116050-1-opendmb@gmail.com> References: <20230427221625.116050-1-opendmb@gmail.com> MIME-Version: 1.0 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,T_SCC_BODY_TEXT_LINE 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764370573534645549?= X-GMAIL-MSGID: =?utf-8?q?1764370573534645549?= The gpio-keys device driver implements the functionality of its child nodes which do not receive dedicated drivers. This means it should inherit the dependencies of these child nodes and their effects on suspend/resume and shutdown order. This commit exposes the device_pm_move_to_tail function to allow the driver to move itself to the end of the lists upon a successful probe to allow proper sequencing when other methods are not available. Fixes: 722e5f2b1eec ("driver core: Partially revert "driver core: correct device's shutdown order"") Signed-off-by: Doug Berger --- drivers/base/core.c | 1 + drivers/input/keyboard/gpio_keys.c | 2 ++ include/linux/device.h | 1 + 3 files changed, 4 insertions(+) diff --git a/drivers/base/core.c b/drivers/base/core.c index 6878dfcbf0d6..8385df4d9677 100644 --- a/drivers/base/core.c +++ b/drivers/base/core.c @@ -428,6 +428,7 @@ void device_pm_move_to_tail(struct device *dev) device_pm_unlock(); device_links_read_unlock(idx); } +EXPORT_SYMBOL_GPL(device_pm_move_to_tail); #define to_devlink(dev) container_of((dev), struct device_link, link_dev) diff --git a/drivers/input/keyboard/gpio_keys.c b/drivers/input/keyboard/gpio_keys.c index c42f86ad0766..0516c6279d8a 100644 --- a/drivers/input/keyboard/gpio_keys.c +++ b/drivers/input/keyboard/gpio_keys.c @@ -810,6 +810,8 @@ static int gpio_keys_probe(struct platform_device *pdev) int i, error; int wakeup = 0; + device_pm_move_to_tail(dev); + if (!pdata) { pdata = gpio_keys_get_devtree_pdata(dev); if (IS_ERR(pdata)) diff --git a/include/linux/device.h b/include/linux/device.h index 1508e637bb26..dad40bd45509 100644 --- a/include/linux/device.h +++ b/include/linux/device.h @@ -1082,6 +1082,7 @@ void device_link_del(struct device_link *link); void device_link_remove(void *consumer, struct device *supplier); void device_links_supplier_sync_state_pause(void); void device_links_supplier_sync_state_resume(void); +void device_pm_move_to_tail(struct device *dev); extern __printf(3, 4) int dev_err_probe(const struct device *dev, int err, const char *fmt, ...); From patchwork Thu Apr 27 22:16:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Berger X-Patchwork-Id: 88395 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp561587vqo; Thu, 27 Apr 2023 15:22:52 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7UO/mMXbFrRO1eR3Hn8YL+sJh8hRJ0WhT9wtCF6ykuZldf+a7muKSTEUiZhNKNLh34E2dM X-Received: by 2002:a17:902:fad0:b0:1a6:3e45:8df with SMTP id ld16-20020a170902fad000b001a63e4508dfmr6945935plb.33.1682634172424; Thu, 27 Apr 2023 15:22:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682634172; cv=none; d=google.com; s=arc-20160816; b=o88jN6qWKczNVeqOKw93m+egZk4EG0kLRotf5wlb1Dlzkfd9cwcTZRGxizHMCug3kX C7oRpSFAtyOR2Gaq6buK+T7GaL+2FiLemjM3OynC7DJBvILFPbSsPCZy0HCbFjWCFrOl z48C32zBgkirUUIil512WyMAG4LVzO8s9dsAi3JV9xCNtCcVPjCWb/yN+3C6e3ClgcPp cbQ7S7zDnJETwMpoVV74n2dRz5wLORaslss8KVuTF6iE71TAqvkLyCBOdkCAR3fyZnC/ JpMOQJDc2rvdty7NSU1SYqPxHSqWPPSHn1nCsqkap2vzSYo9xgJ4d+Xy5B+EqAh3fcdN sx9Q== 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=HrgbNBTkkVblpvAn2v9YOOmUXIXg/Fdyqm0l3sunmw8=; b=z1s0IaJoONdLLtOFsmzsuKBmtZ2DxY0W94cCyoP5Ics2+SGBUgV/L/jLXUuiUrSk8B Xlbg8+mjyKeeJiCN6MvZmWzsR224Ut7n+cGUJtaod97YXuTSXLxjrFqtsK40eM7BMR/p laIWEdWJ1Bromdx0LAx3okrJpExn2ty+SBCJ+RLWZ+T1jzHu2nfTRcvEzdE1YTiJKwjQ eQCVI0+XhptyAuQwvvMnDaRL2v0cS6Om8fAqSMg90wVNTPYhnpEIJ9BF1MMmcEPf1QrZ xGnEN1n4kNlH3pdwFpo4kGln7DXClXL8k4MOvZ9Z6sch1R5KW+WocHnYLg0Vc7yUlCWT 0Etw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=K7EwckKG; 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 l14-20020a170902f68e00b001a69d1be184si16496416plg.506.2023.04.27.15.22.38; Thu, 27 Apr 2023 15:22:52 -0700 (PDT) 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=20221208 header.b=K7EwckKG; 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 S1344218AbjD0WSL (ORCPT + 99 others); Thu, 27 Apr 2023 18:18:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344052AbjD0WSH (ORCPT ); Thu, 27 Apr 2023 18:18:07 -0400 Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A452235BD; Thu, 27 Apr 2023 15:18:05 -0700 (PDT) Received: by mail-pf1-x42d.google.com with SMTP id d2e1a72fcca58-64115e652eeso8320948b3a.0; Thu, 27 Apr 2023 15:18:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682633885; x=1685225885; 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=HrgbNBTkkVblpvAn2v9YOOmUXIXg/Fdyqm0l3sunmw8=; b=K7EwckKGPdG1c9lc16yhp7Rv4+pouv9SGrkYiLp+rc/pUobLUEA0b1iekkOupx/Kjj z8R8rNf2UlV8nrZ01T1h8Po/2qh8fNirp3P3EkQKzF2Yg0mPEjIAQe55S4XzDqoxUDEn vR+hUt7KqTOKOB5whmA0I+4DWvwbkhUyOYCEohfFxZ0HVciVB1fF7W58b5IxmlcK0LbP nshKB7UHMusdA79/aolgAGmMsraUxU3A9C/ybW8ewegfQ4IhxcmBo1XgSay9pSYiuUsH s1YjF8lWSY3jYSf0lL6gSGTVxypSPkKHzwNVp9J7ynxzoUrgrJdieul3WSbxIirdSbHL tHvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682633885; x=1685225885; 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=HrgbNBTkkVblpvAn2v9YOOmUXIXg/Fdyqm0l3sunmw8=; b=HLu1wtVGXC+3Uv15+aeEauLChZ2tCmIslBOIJnapc74rGCE5YA7cDF3ZLctIJpNrRi Z2x7+ge4vgj9JaAFhZdiVLo/7n9UtsHX/+ELyy/VImep3KFJbT9Iq5skRrPSlOvJPoB6 Xx405ecVY2eVFeGOWMJJeG3n9VdCFo12R/R27LH+Ns+Q322RtftK0wbIQDASU/3P0M+k 67B2fHjfSKTY0AclDtuX+bPSBbn7oDBHYpXyxK+Zgwnt3+VZh++K81OtVj7T1yYOhvAx JUEkxsawDk8XEg5+nxX2jmjDmEasKSIWsbTAZ+zyIVzbuknUptea0m82/knEW9xIAJ9p QyEw== X-Gm-Message-State: AC+VfDxPmZBh92MJAAEV9gJ+7dbvneqO13pBjhJx1DeQbBgF/j91bYfy 67aE8/V45JfJgksucIhZN5E= X-Received: by 2002:a17:902:d4c7:b0:1a6:dc3b:9ed2 with SMTP id o7-20020a170902d4c700b001a6dc3b9ed2mr4197913plg.13.1682633885089; Thu, 27 Apr 2023 15:18:05 -0700 (PDT) Received: from stbirv-lnx-1.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id w8-20020a1709027b8800b001a661000398sm12022783pll.103.2023.04.27.15.18.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Apr 2023 15:18:04 -0700 (PDT) From: Doug Berger To: Greg Kroah-Hartman , "Rafael J. Wysocki" , Dmitry Torokhov Cc: Lad Prabhakar , Gergo Koteles , Jonathan Cameron , Andy Shevchenko , Dan Williams , Hans de Goede , Thomas Gleixner , Kees Cook , Kishon Vijay Abraham I , Saravana Kannan , Florian Fainelli , linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, Doug Berger Subject: [RFC PATCH 2/3] input: gpio-keys - add device links of children Date: Thu, 27 Apr 2023 15:16:24 -0700 Message-Id: <20230427221625.116050-3-opendmb@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230427221625.116050-1-opendmb@gmail.com> References: <20230427221625.116050-1-opendmb@gmail.com> MIME-Version: 1.0 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,T_SCC_BODY_TEXT_LINE 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764369809839157320?= X-GMAIL-MSGID: =?utf-8?q?1764369809839157320?= Since the child nodes of gpio-keys are implemented by the gpio-keys device driver, that driver should explicitly create the appropriate device links to support proper device power management and shutdown sequencing. Fixes: f9aa460672c9 ("driver core: Refactor fw_devlink feature") Signed-off-by: Doug Berger --- drivers/input/keyboard/gpio_keys.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/input/keyboard/gpio_keys.c b/drivers/input/keyboard/gpio_keys.c index 0516c6279d8a..7a0dcfeb02dc 100644 --- a/drivers/input/keyboard/gpio_keys.c +++ b/drivers/input/keyboard/gpio_keys.c @@ -865,6 +865,7 @@ static int gpio_keys_probe(struct platform_device *pdev) for (i = 0; i < pdata->nbuttons; i++) { const struct gpio_keys_button *button = &pdata->buttons[i]; + struct fwnode_link *link; if (!dev_get_platdata(dev)) { child = device_get_next_child_node(dev, child); @@ -882,6 +883,12 @@ static int gpio_keys_probe(struct platform_device *pdev) fwnode_handle_put(child); return error; } + if (child) { + list_for_each_entry(link, &child->suppliers, c_hook) { + device_link_add(dev, link->supplier->dev, + DL_FLAG_AUTOREMOVE_CONSUMER); + } + } if (button->wakeup) wakeup = 1; From patchwork Thu Apr 27 22:16:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Berger X-Patchwork-Id: 88397 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp567335vqo; Thu, 27 Apr 2023 15:34:34 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6som8fZZqxFdmbix/bpXwqcb1Mot4FtRIANXyXihiDwx+3L6Zqcv9V3/eaLuSyAe8hTqvL X-Received: by 2002:a05:6a20:3d91:b0:ef:4944:21d4 with SMTP id s17-20020a056a203d9100b000ef494421d4mr4233797pzi.16.1682634874426; Thu, 27 Apr 2023 15:34:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682634874; cv=none; d=google.com; s=arc-20160816; b=zPboFd4/yzGKoAhPMQVcCqS2N9g0uJT5ooQGxYONzYvGy3azZDw5b6JVZqUUitW4hJ c87pdWd6nYyc+2Y7s6tYTzb36jQnSUo6LesuIO8jntsaviFxYt5dsYTWgKD3nDAMl2WE +RpVCHUDS9AuF7Eh267MJKNZoNyWiCBwjBcBXF8WLtMV9984PHVbRXtaDNgU3tixOqw4 xUzjBp7MoBc3Esq+VquYfR8F6DSP6mgtvjPJcmpsuHBsErz78GZ+czGg2d1wup4tMtPe OJ3RVweG4ow6p0DOt+YWkvpksRvkQQZ73R9xg8EmKK1U+mDd6LoGLGfJ2ghPpWlqeWRo Qmwg== 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=0ELp9fgud3UdxJ+O/AE6SN/Ok6X9uyjRmf7Sz0Ap8bU=; b=flQ1EEVxXddfIvTt0UOAZXmjVTL2fR3PygapUuPFaA38F/KLgIi4IN9Ym3RqAtGsDX d0o0u1dVSkavbgcpNPUNVGflvCFNbw4xQJGrlrDAWd/adI6sDea4rcMKadUTicYTUuLn 9gqCCf9id0044ifI0rZZ8mVa4THKQfK1qNZBgqtdH45tR+Umk7tX2OEYkAarF/SoFfAi q55KjeEn4KseH0tR3Hs1hHJLfSr1mZ7rcgPH/fWNmXrnmQl6mBheHGQY/PKOA4+dSSYR BKtFr3TkcLLnrMZCvkOUAVSNByJgT1go1dQRlwjJgGMoOoZPdvu4aP92Qc22lPPbqItA Xw8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=rutWmViH; 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 bv186-20020a632ec3000000b0051460f12600si19026334pgb.554.2023.04.27.15.34.19; Thu, 27 Apr 2023 15:34:34 -0700 (PDT) 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=20221208 header.b=rutWmViH; 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 S1344238AbjD0WSQ (ORCPT + 99 others); Thu, 27 Apr 2023 18:18:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344151AbjD0WSI (ORCPT ); Thu, 27 Apr 2023 18:18:08 -0400 Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F20C30EE; Thu, 27 Apr 2023 15:18:07 -0700 (PDT) Received: by mail-pl1-x633.google.com with SMTP id d9443c01a7336-1a66911f5faso71049525ad.0; Thu, 27 Apr 2023 15:18:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682633887; x=1685225887; 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=0ELp9fgud3UdxJ+O/AE6SN/Ok6X9uyjRmf7Sz0Ap8bU=; b=rutWmViHAVTCnPlrOdFrruYI9nWxH/zuvPxIMijiltKm8YZfif8gK1a5xq1WwaOH5n cC82n3hxMjk591mM1MXheDJIrz6pg/7YZ+sM2+uljG7FM4v2UFcglWZjs780Ce6OlxK0 Twla7eFxpx3OzebpqAmJcM89cBFW+klKLuXotR2cGCIvGvykR2r59LWxJhgic/SrsaDG Yk0lfnvEs3sQl3KPvPg6JLIsnO6D5UwB1cAKSO5UkBuaF7nCrYJwun++f2wdJGqD4LIP CgVynXRWwqPGh8jYpBgCQwWSDvx3Wi96ucJtYaqD61OdkPxCz50BNuz44vB9Tul7OMRm tQMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682633887; x=1685225887; 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=0ELp9fgud3UdxJ+O/AE6SN/Ok6X9uyjRmf7Sz0Ap8bU=; b=bbkZ+JlDvhgbbBq2zimuk+CwVzbZoxLNTvHCfu2JLR+yoAj1P50V4lha3eu3p1/9/Y U/woVqrMVgXqD6mIVY8TOl44Dso3CfZH0Z9i4BvScBeoNm3k6y8ZVtLMQ0mUivm2VyHv Hbl3VIGw2gUhyYp7OjN3YurHFyO2qiUrqLZZy7yXNqUMz+GgNddYR3Ml0DmvdpFlMJhP Ic0Ocenih0d6xIerpRj+uc0B1Mt+NCxbWoR60QvjURUqJPGpjCumi/6rit+Er08qbjhv DU3B4ZEBvY13kNikKoB/sQLgtXr9vVCRrSlMHFN/VvFv0XlgrI2BmnRlVb4O8pGw0mOx Ko6w== X-Gm-Message-State: AC+VfDyAJJ48vAQKgy/TCQDrvZcEdE3CEwy25aCi8q+DY8R3XJs2aNRw cK36EVlK5iv37ra0nvtqw/k= X-Received: by 2002:a17:902:c950:b0:1a9:546c:1593 with SMTP id i16-20020a170902c95000b001a9546c1593mr3199355pla.14.1682633887039; Thu, 27 Apr 2023 15:18:07 -0700 (PDT) Received: from stbirv-lnx-1.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id w8-20020a1709027b8800b001a661000398sm12022783pll.103.2023.04.27.15.18.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Apr 2023 15:18:06 -0700 (PDT) From: Doug Berger To: Greg Kroah-Hartman , "Rafael J. Wysocki" , Dmitry Torokhov Cc: Lad Prabhakar , Gergo Koteles , Jonathan Cameron , Andy Shevchenko , Dan Williams , Hans de Goede , Thomas Gleixner , Kees Cook , Kishon Vijay Abraham I , Saravana Kannan , Florian Fainelli , linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, Doug Berger Subject: [RFC PATCH 3/3] Revert "input: gpio-keys - use device_pm_move_to_tail" Date: Thu, 27 Apr 2023 15:16:25 -0700 Message-Id: <20230427221625.116050-4-opendmb@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230427221625.116050-1-opendmb@gmail.com> References: <20230427221625.116050-1-opendmb@gmail.com> MIME-Version: 1.0 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,T_SCC_BODY_TEXT_LINE 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764370546465716249?= X-GMAIL-MSGID: =?utf-8?q?1764370546465716249?= This reverts commit 2569873096f7eb1acf63624e9772d82b23923bf4. Signed-off-by: Doug Berger --- drivers/base/core.c | 1 - drivers/input/keyboard/gpio_keys.c | 2 -- include/linux/device.h | 1 - 3 files changed, 4 deletions(-) diff --git a/drivers/base/core.c b/drivers/base/core.c index 8385df4d9677..6878dfcbf0d6 100644 --- a/drivers/base/core.c +++ b/drivers/base/core.c @@ -428,7 +428,6 @@ void device_pm_move_to_tail(struct device *dev) device_pm_unlock(); device_links_read_unlock(idx); } -EXPORT_SYMBOL_GPL(device_pm_move_to_tail); #define to_devlink(dev) container_of((dev), struct device_link, link_dev) diff --git a/drivers/input/keyboard/gpio_keys.c b/drivers/input/keyboard/gpio_keys.c index 7a0dcfeb02dc..e5af0a254a3f 100644 --- a/drivers/input/keyboard/gpio_keys.c +++ b/drivers/input/keyboard/gpio_keys.c @@ -810,8 +810,6 @@ static int gpio_keys_probe(struct platform_device *pdev) int i, error; int wakeup = 0; - device_pm_move_to_tail(dev); - if (!pdata) { pdata = gpio_keys_get_devtree_pdata(dev); if (IS_ERR(pdata)) diff --git a/include/linux/device.h b/include/linux/device.h index dad40bd45509..1508e637bb26 100644 --- a/include/linux/device.h +++ b/include/linux/device.h @@ -1082,7 +1082,6 @@ void device_link_del(struct device_link *link); void device_link_remove(void *consumer, struct device *supplier); void device_links_supplier_sync_state_pause(void); void device_links_supplier_sync_state_resume(void); -void device_pm_move_to_tail(struct device *dev); extern __printf(3, 4) int dev_err_probe(const struct device *dev, int err, const char *fmt, ...);