Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2723730rwb; Mon, 19 Sep 2022 09:03:27 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5WtjnzXKhsCN/u0TGwhCsoxxlN3OSmR1jobXy3yjSReV9yGCYg7yb1DP2EE46ZPMaB9a50 X-Received: by 2002:a17:90a:a69:b0:202:8a60:c869 with SMTP id o96-20020a17090a0a6900b002028a60c869mr21044452pjo.2.1663603406478; Mon, 19 Sep 2022 09:03:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663603406; cv=none; d=google.com; s=arc-20160816; b=0nG5GTpYyQh7ecIEJEmZMSTo/0UGqEL3Bl8CBq/6MgstbmWy1joMyCNCIGsqnJP9em D+MvTBXKC7rCgXGi+fXS/hBm93RkmE1DI1Uvwkl0zHfXDTBW6jGCTEPl+ansiR2V6HnQ q6+6OdqugnwMhk2EYt81HFgmgJIlVP3FWu0lEH6X2x2YJQpNGbfucQOb+qkp8w5VUann X6oWKGLXEhIJi1/q6HqrhC/tr+AF7w62UvXbrx6UYUMkXm2IIn+N3TYZDSpQroFbM3uf 4SlBayjgHgJKIp5LYGQ9owSe9rzuKaYeSN7afbzowyPKKB4Kgd+TO8WhKOahW9X3qnrp 75YA== 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=Tzm/qE0nIcj5tRamCrRt6njHA6IRj7QMwAd5TFMNttM=; b=gJ1Gt03ilXj8fNsy8dtgX3ZNSjQxK1/aHbMu8vGozvZRyyxRvSV5C8Kay3HbbTLSRe wLUoHlvV8SOFWJsYoIavetERVFvsAnVxMCREPR/qpaiW2z0khzKQCiR0qX2lx8mjyHWH ZTZpvNKQBc0FwsQgqp7LG8Ncjc6GtI7dx2O01aFRp1cOlUp/FBBA2PGnJNyL39NLCzng dbC0PEy0UbX1vyrIvZ61JTCFJUkkKrnZ9YUxSLyeEg4llmDWBAXByWmc13lY9BzE/Wt+ QNd+95mmvUy+udLQQdUmuegB6dmvF8KDNf+dQ0+mC4wKHp1MDBMEOkglJxv51DYMQLnm axtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="DXGmrXM/"; 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 x81-20020a633154000000b004387f5d9130si37511pgx.511.2022.09.19.09.03.14; Mon, 19 Sep 2022 09:03:26 -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="DXGmrXM/"; 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 S230144AbiISQAf (ORCPT + 99 others); Mon, 19 Sep 2022 12:00:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230004AbiISP7m (ORCPT ); Mon, 19 Sep 2022 11:59:42 -0400 Received: from mail-il1-x132.google.com (mail-il1-x132.google.com [IPv6:2607:f8b0:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19D72289 for ; Mon, 19 Sep 2022 08:59:30 -0700 (PDT) Received: by mail-il1-x132.google.com with SMTP id y9so1348228ily.11 for ; Mon, 19 Sep 2022 08:59:30 -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; bh=Tzm/qE0nIcj5tRamCrRt6njHA6IRj7QMwAd5TFMNttM=; b=DXGmrXM/FAQkex6T1sl2ujol2NIi1taXqx1n31CU5bFYFLfY3foESYyc7JawaMLuUe JkzOcFWBF84Xv+d9v0uDpPyRQNl3nQ3oVv4OMuzfaTwJCHh9X7yE64PMItpivc9JGQuQ hfdIPTishauaidNJtedqxMS0UDQ30byvm+f4g= 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; bh=Tzm/qE0nIcj5tRamCrRt6njHA6IRj7QMwAd5TFMNttM=; b=47OfAYKAC4KhzcNH/ScQNP7QfHN8VHNqJrY8+FH+ruKWhXKieGkCzPRCp7A3uc2Par NkCJOC0Xwfw0KMQewV5ztolYhXofwC3sklyXjb6RsvjMy+b/sf8DOJdl/nVdvny7WafF AFpubNAfQmF4tYCp3aJiTvBCmN3qP33W4nlB3uplfI27Y+rXe9JEbYc5mY8PR/KiceGa hWo8P0kFSUdUJefi4tC4iS7eNPpNu48LGJsRf6RowaSr0fyudlRM+ADlQjn+aFW5tjkP apD+TYafl6GaMTiW4Uir/3JlE+5ePQB+J6WIWjeoYj9OMSc2BoPKrQpFJ05mjkF0inFA QNPQ== X-Gm-Message-State: ACrzQf2emWVkbYkK58hYIWcMrqqj4GPsjA9N9xH1DBqsmjPEx56lI+94 zaw7UPTi2NmMzqL4GgN4tEu7RQ== X-Received: by 2002:a92:ca4f:0:b0:2f6:1136:e8f6 with SMTP id q15-20020a92ca4f000000b002f61136e8f6mr785287ilo.154.1663603169461; Mon, 19 Sep 2022 08:59:29 -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 t70-20020a025449000000b00349fb9b1abesm5634154jaa.106.2022.09.19.08.59.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Sep 2022 08:59:29 -0700 (PDT) From: Raul E Rangel To: linux-acpi@vger.kernel.org, linux-input@vger.kernel.org Cc: timvp@google.com, hdegoede@redhat.com, andriy.shevchenko@linux.intel.com, rafael@kernel.org, mario.limonciello@amd.com, jingle.wu@emc.com.tw, mika.westerberg@linux.intel.com, dmitry.torokhov@gmail.com, linus.walleij@linaro.org, Raul E Rangel , Angela Czubak , Bartosz Szczepanek , Benjamin Tissoires , Jiri Kosina , Yang Li , linux-kernel@vger.kernel.org Subject: [PATCH v4 10/13] HID: i2c-hid: Don't set wake_capable and wake_irq Date: Mon, 19 Sep 2022 09:59:12 -0600 Message-Id: <20220919095504.v4.10.Id22d056440953134d8e8fe2c2aff79c79bc78424@changeid> X-Mailer: git-send-email 2.37.3.968.ga6b4b080e4-goog In-Reply-To: <20220919155916.1044219-1-rrangel@chromium.org> References: <20220919155916.1044219-1-rrangel@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 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=unavailable 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 --- (no changes since v1) 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 a2fa40dec04ea5..65b7a95956866d 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.968.ga6b4b080e4-goog