Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp5592852rwb; Wed, 21 Sep 2022 09:44:42 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6K1wrMdV/Psf1RGk4PH2hKGeGUrLVQi9hUz5otMKhC0iGv0wdLqjPJVOb344XqYuwT8+s4 X-Received: by 2002:a17:907:b1b:b0:772:1dcc:a512 with SMTP id h27-20020a1709070b1b00b007721dcca512mr21651429ejl.247.1663778682552; Wed, 21 Sep 2022 09:44:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663778682; cv=none; d=google.com; s=arc-20160816; b=U4nCP4oaDkYRzKgFiiVdCXLEAt2He5cLaiabbJ5Zw2d5uRFvsHw2DF3UFwMfhmSYZj UFqENkGhk8B1IHVUhlkjDG8VlnL8MjIEtzcJEC2YohdDONRX4+3LQPtBP9+hbp18kkOZ bq8S/lAPh5cj3J3DscaexmxyG1Xsg4jC/5HvakhI5M0PAH2i3Ew5K+IlqvJllMbAPXoB bEnR9aY0A8tahDH3ML6MDJeZdZzwIeJPUKTU3atJvMbm79hDA3s11ZYnOgwRtbQ77mM1 zSQiX3gTMPaeBRHO1D2Pq7PZQuao1qcqsfukJyKH/2z0NF8a3EwQcGlmuz4PsRGq9nDh EKAg== 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=THUFniOK+VEaZvk3WrlhDVy764x1MLYSOQIxcILEvxQ=; b=TfzPwDp4RXKitnfbjcjvlZiVhn48YDq9Ma+cn/dmIc4FCgRwTadSoAO8BuAaLMrYKj OUfuZorE2JmhFv2aj1OTagza/O/ASeLQ/xPSCVpt+DUYnnmRxec4P0Tut0whvs1x+SAB sDCNJmAuTJWVth0FQxZ30Y1BmZ6jfsLi/4c1bbLRazknh7FcPN4O7frBiYTSXMXFSE6j HplJKFbhLFBkIzqKQCx/IJtb425YOKRuL9KGNuJjX5qRU2F1jbBJq6HaDT+KzeEYa6gx 9bwyGB0PmbM8QVMWMdSN78xajwfWiKuhfWl/wlbFYTV6oaJIh+mYqSyqiqhj47VlaFVM zZWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=X0gOecgO; 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 cr19-20020a170906d55300b0076f4306dff7si3075324ejc.941.2022.09.21.09.44.13; Wed, 21 Sep 2022 09:44:42 -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=X0gOecgO; 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 S231274AbiIUQWa (ORCPT + 99 others); Wed, 21 Sep 2022 12:22:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232300AbiIUQV5 (ORCPT ); Wed, 21 Sep 2022 12:21:57 -0400 Received: from mail-pf1-x430.google.com (mail-pf1-x430.google.com [IPv6:2607:f8b0:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23E1DADCC9 for ; Wed, 21 Sep 2022 09:05:18 -0700 (PDT) Received: by mail-pf1-x430.google.com with SMTP id e5so6398673pfl.2 for ; Wed, 21 Sep 2022 09:05:18 -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=THUFniOK+VEaZvk3WrlhDVy764x1MLYSOQIxcILEvxQ=; b=X0gOecgOXbR09B7uWiGNA3l57ZH5gzdV7m2fMkuQmBtbM0SHP5TFh/xGTkWyKMdd6k bYpQNI35i3B3pvOfI+0U3gvY9f46t3tfzi3Cngcf2p06SP/YugBowaJzwFQnjtycWsIm yvQwRVcp/HB0tQHhH92QQfiTU3aLyBnLZx8zo= 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=THUFniOK+VEaZvk3WrlhDVy764x1MLYSOQIxcILEvxQ=; b=Am6/dBz4guy56t7XBk4va/i7Fm54PJLCVzc8MasW8HlPfxvI7PIyiUWlvakf9Q7m8l FsM+LxRzhANRDarjhZHTYlBRFty6qmPEUTNUov8bouhXBPL4ribYess4Eemmbe40KkP4 jzAiJ9ql5xYxWtf7dyRurL+EeDxT6AxR0gJCF5tbE2udJPRlhtFgzehBRMuhyL/pKQuf FNbrTs+vjP+iHEWrfoQJccee8/cWiOdGozgUCrIC7+G5Dw3rjUmfIs2QEUKVXxbplgQg 0wfhXU5m/4CuW1gipkRJ8eqx4nfRENNLpWydDZ5xCErxzlZEqqSoPwFHu3eXN41TXUyJ 4m9w== X-Gm-Message-State: ACrzQf0JdZ647jvuNRquUzoEC8vWfZDzZoF6BY/mLp9CdZSoHgturf7y t8NiRHsLMEAPP8WHxSWi5L4G8nBYiEG4Lw== X-Received: by 2002:a05:6e02:1c48:b0:2f1:db4b:66df with SMTP id d8-20020a056e021c4800b002f1db4b66dfmr12601061ilg.35.1663775541555; Wed, 21 Sep 2022 08:52:21 -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 c14-20020a023b0e000000b0035a8d644a31sm1148061jaa.117.2022.09.21.08.52.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Sep 2022 08:52:21 -0700 (PDT) From: Raul E Rangel To: linux-acpi@vger.kernel.org, linux-input@vger.kernel.org Cc: rafael@kernel.org, timvp@google.com, mika.westerberg@linux.intel.com, andriy.shevchenko@linux.intel.com, dmitry.torokhov@gmail.com, jingle.wu@emc.com.tw, hdegoede@redhat.com, mario.limonciello@amd.com, linus.walleij@linaro.org, Raul E Rangel , Benjamin Tissoires , Alistair Francis , Bartosz Szczepanek , Jiri Kosina , Rob Herring , Yang Li , linux-kernel@vger.kernel.org Subject: [PATCH v5 10/13] HID: i2c-hid: Don't set wake_capable and wake_irq Date: Wed, 21 Sep 2022 09:52:02 -0600 Message-Id: <20220921094736.v5.10.Id22d056440953134d8e8fe2c2aff79c79bc78424@changeid> X-Mailer: git-send-email 2.37.3.968.ga6b4b080e4-goog In-Reply-To: <20220921155205.1332614-1-rrangel@chromium.org> References: <20220921155205.1332614-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 Acked-by: Benjamin Tissoires --- 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 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