Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2375929rwb; Thu, 29 Sep 2022 09:23:47 -0700 (PDT) X-Google-Smtp-Source: AMsMyM41g1caVAp1QxOk97XPOJ63q13RN8/LIwe1UXKrFhJifwuLidJgsti7A4m5L2vutao/ymp+ X-Received: by 2002:a17:906:cc58:b0:76f:c119:acb5 with SMTP id mm24-20020a170906cc5800b0076fc119acb5mr3255481ejb.651.1664468627188; Thu, 29 Sep 2022 09:23:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664468627; cv=none; d=google.com; s=arc-20160816; b=QjU1WkASdX4qzxVo+ThwM+5fSexmdo+MEnkCr4u43AxJNnxx0PQp1ucEfctRjuDR+1 GicodL4K3Nj3vuJZTp21c5ky+qizgId4bEyBn3lV17iJ+cGHYVIRVwkgrBbJVFdLe0cw kvAlnXiXR6+ju0Rg48sspAKgpYCab5ljPT+TiXShxzylDsIpXezzv3xzFkNayz+cMKnB fSD+/Uy64NwRxng1hvz92HnjD4IsgiDhwmkC0tEOvm3fCvxuIAisvv4WJgbViRLkiRNU 05hLfMVBvp4WABHmnlM90vs/JaMw/jyBpb8eCk1Azjebsox8pbkKEJyTlzqKtqhR7wIG f4dQ== 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=9+q7R3sPe7VmgkNvugXIKprRovdD1yE7rr86lSl3yYE=; b=N6tTnhMnkXKoUpjgpwG14UhsMXX8ZRbCXBa2ZP6TpAm1Cr1L0trG9UDFwHmrVAcWie v2IEoKsZNTQ3236XeL9AJ1Ql85dYwNNP19RyGh1sns1ZRKr4Y2IVKl4I0EAEVEuAnZWf t1btwUc6LxnAWbmAYF9CpREyjYs2/sPZzXah5lNHk+QbAJcfHO1xCMKDXXzPp4dxQzYe wGZJRiBhfhWW3r3YR+Nd70rlSAdJmDO8oy1YXt6cf3cumCa8PT0tNytiaP6DEozOFMMx u/h32QB4B2+ynKruDPUKryVWv7FJmGRvZXwjGgrv5wqopykiuo9+gyRBC0BhTvwIj7Yf sv2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=hHXdRPsS; 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=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id go35-20020a1709070da300b007826f117d6asi8149579ejc.281.2022.09.29.09.22.50; Thu, 29 Sep 2022 09:23:47 -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=@chromium.org header.s=google header.b=hHXdRPsS; 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=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236285AbiI2QVI (ORCPT + 99 others); Thu, 29 Sep 2022 12:21:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236176AbiI2QTm (ORCPT ); Thu, 29 Sep 2022 12:19:42 -0400 Received: from mail-il1-x135.google.com (mail-il1-x135.google.com [IPv6:2607:f8b0:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63AB3E98 for ; Thu, 29 Sep 2022 09:19:33 -0700 (PDT) Received: by mail-il1-x135.google.com with SMTP id o2so963464ils.0 for ; Thu, 29 Sep 2022 09:19:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; 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=9+q7R3sPe7VmgkNvugXIKprRovdD1yE7rr86lSl3yYE=; b=hHXdRPsSlArTrcZhEGh+FwbHdpoD0Zz/lT45kQxb7kPLSCF80Rv6xZHpkugsrZ9Y35 swTaT4ZtNOp2Kzg/MKJ2yAdrzE8mDhhaiaH6ZLWb93lnYEQJqMCKGpq0rAZS6yxAl5FT G35obwK/9W2tV2f/4H9kMH79GlQFeG45miAE0= 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=9+q7R3sPe7VmgkNvugXIKprRovdD1yE7rr86lSl3yYE=; b=h2gR1I1UyglGg72d8g59RILfWpjFHEfXh0dJJLA7WEjDOWJ3IGTGqPd46HBibivR7I g2xlAcFD6aJB3oPR6tV/eUP2lh9xcrAz91qFnwIjOFkuZq2obZYB3kj7s0xGuCO2lNgl P+FlVjoOCR7bNDCxNsX94yOTcwXzD9F0ik3OcPk4uJk+lj6Pw7gUBBzdZqsnfmVga/vc ef33iOV6CfZ3bEfhGJ5tyitk1IXCPT1I2HpeYVP1mOgN6SwRkD02Gc/odinpdLhFeMbT ++4Vh/fmfR8tSSr6u6EJD49qJm6TQ6H83TR9DyOnqyFC82buQGXpI3istqg8OUVobnVU cxjw== X-Gm-Message-State: ACrzQf3D/F/UqQucUWgjBYXMnNDFuliVpyRm4qDzUx5Vdi/dJtq5KHn3 kDWCGIsFo+5SdtMW3gzgBv1Eaw== X-Received: by 2002:a05:6e02:1c46:b0:2f8:e9cc:7ed3 with SMTP id d6-20020a056e021c4600b002f8e9cc7ed3mr2031171ilg.69.1664468373068; Thu, 29 Sep 2022 09:19:33 -0700 (PDT) Received: from rrangel920.bld.corp.google.com (h24-56-189-219.arvdco.broadband.dynamic.tds.net. [24.56.189.219]) by smtp.gmail.com with ESMTPSA id f12-20020a02848c000000b0035aab2f1ab1sm2965451jai.134.2022.09.29.09.19.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Sep 2022 09:19:32 -0700 (PDT) From: Raul E Rangel To: linux-acpi@vger.kernel.org, linux-input@vger.kernel.org Cc: andriy.shevchenko@linux.intel.com, dmitry.torokhov@gmail.com, hdegoede@redhat.com, rafael@kernel.org, mika.westerberg@linux.intel.com, mario.limonciello@amd.com, timvp@google.com, linus.walleij@linaro.org, jingle.wu@emc.com.tw, Raul E Rangel , Benjamin Tissoires , Alistair Francis , Bartosz Szczepanek , Jiri Kosina , Matthias Kaehlcke , linux-kernel@vger.kernel.org Subject: [PATCH v6 10/13] HID: i2c-hid: Don't set wake_capable and wake_irq Date: Thu, 29 Sep 2022 10:19:14 -0600 Message-Id: <20220929093200.v6.10.Id22d056440953134d8e8fe2c2aff79c79bc78424@changeid> X-Mailer: git-send-email 2.37.3.998.g577e59143f-goog In-Reply-To: <20220929161917.2348231-1-rrangel@chromium.org> References: <20220929161917.2348231-1-rrangel@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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: X-Mailing-List: linux-kernel@vger.kernel.org The i2c-core will now handle setting the wake_irq for DT and ACPI systems. Signed-off-by: Raul E Rangel Acked-by: Benjamin Tissoires --- (no changes since v5) Changes in v5: - Added Acked-by: Benjamin Tissoires drivers/hid/i2c-hid/i2c-hid-core.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/drivers/hid/i2c-hid/i2c-hid-core.c b/drivers/hid/i2c-hid/i2c-hid-core.c index a2fa40dec04ea59..65b7a95956866d1 100644 --- a/drivers/hid/i2c-hid/i2c-hid-core.c +++ b/drivers/hid/i2c-hid/i2c-hid-core.c @@ -1036,15 +1036,6 @@ int i2c_hid_core_probe(struct i2c_client *client, struct i2chid_ops *ops, if (ret < 0) goto err_powered; - /* - * The wake IRQ should be declared via device tree instead of assuming - * the IRQ can wake the system. This is here for legacy reasons and - * will be removed once the i2c-core supports querying ACPI for wake - * capabilities. - */ - if (!client->dev.power.wakeirq) - dev_pm_set_wake_irq(&client->dev, client->irq); - hid = hid_allocate_device(); if (IS_ERR(hid)) { ret = PTR_ERR(hid); -- 2.37.3.998.g577e59143f-goog