Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2414562rwb; Thu, 29 Sep 2022 09:54:34 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7LmmCFJEcj6HHITSYTFmNKGBhSbUYSWkUst0Ij4PI/6OaGa3nnDt3R20M/VswszgK7WxYZ X-Received: by 2002:a63:cd55:0:b0:43c:e24b:e45d with SMTP id a21-20020a63cd55000000b0043ce24be45dmr3567652pgj.223.1664470473832; Thu, 29 Sep 2022 09:54:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664470473; cv=none; d=google.com; s=arc-20160816; b=U5NsWXPpujUWXdShqEViBltQ+11O6PWxs2qvzHMC/DORMJJkjVA5rVCgYa6SMQDsS/ M8s5jjwy2iD0cd5Lu1G5pM6uxuKUBwSAsLnM6s7BlYqHLhLEx47G/zj9hQZJKnccBCmS BvyrYl3QWbh/tYGzN1gpFyXQ9j4myj9WVDNZTKhyGm7fS7dRLbVJ8PiHM45aW6VL+QUS L1n+53XkVEnTZ1EtGcTJ30ZV+Y8VjoOEg2Jv7zaO7qKB2bV/6UllIt0LOpLw2C5Hx0NK /Jaz7FvDfZzABopX5rlzwfT7TTqSSVc8Y2RjzOV/EDQ/NCky3e8jIsfOc58LogtQCCnC G/EA== 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=1YwA9OG5h99U5Mh4Bxi4p8qnOV6bB/36joe3czuhguQ=; b=odydM/KlPjB8A9DcbYJfjOSkNyItwKS1B/ixGbg/lX4VWfFqOWVGD3xo/C2MUsPwkZ 13Zcu07qg7oc+KwYFJ/sc6cUO6VmXhxlzlodNeTE68p51ttQAOqxAPoUUYpaNcYQP38P 5GsbGhMZ5vfdUTw85vEPbqGm1i4XoyICktMe9VBC1cAsZNRv2pZZw2s19VLOG6Uwd74J elXK9XM53aXRvBH3GtkIuxYs8JB39ZIobvcr12soRUB14XOAOnrpr7S9ulJ81Be+F9DS w6zJbK8fjjkz0iYYNWWd24yoglpppstQH+lUKlbdo0mrwDSUrgL0hTEj99LDO0JEcG8F UH1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=f8rp6laB; 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 oo18-20020a17090b1c9200b00205b268cd58si6901405pjb.181.2022.09.29.09.54.19; Thu, 29 Sep 2022 09:54:33 -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=f8rp6laB; 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 S236317AbiI2QVi (ORCPT + 99 others); Thu, 29 Sep 2022 12:21:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236205AbiI2QTo (ORCPT ); Thu, 29 Sep 2022 12:19:44 -0400 Received: from mail-il1-x134.google.com (mail-il1-x134.google.com [IPv6:2607:f8b0:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EFD5E62F9 for ; Thu, 29 Sep 2022 09:19:35 -0700 (PDT) Received: by mail-il1-x134.google.com with SMTP id j7so945288ilu.7 for ; Thu, 29 Sep 2022 09:19:35 -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=1YwA9OG5h99U5Mh4Bxi4p8qnOV6bB/36joe3czuhguQ=; b=f8rp6laB5CllBNN6zmwzHaNksz23qPzNXd3klrxB2Tih5E5FbT+lysIU7wKpaPFQVe nHZujXWLGw83SUCABT4xfNixfsQUy/yNPksAaJIujHN1qtOi4kFKYRPwQIcwPJmP9/vE 4+YxGwkFM97QAiup1JSyAimIHlzWLd/C0dD7k= 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=1YwA9OG5h99U5Mh4Bxi4p8qnOV6bB/36joe3czuhguQ=; b=qnw+TnpYaGgMSIZjF+oQPjqeu4kEIGbB+kFHjKkKBZe4IeBMXY2bj0Y8MkmJq+BzwA 5QdHqa3Y4UWDmI+RYqMsjPwiAlmwVFZiYOL3aRv15tn7HprED8T0BQ1PXJsq3/CanFIM 3pmz+1L/FTmTXzTlGzyCg9S3ksLvGdTHlLMpm/ebGGD3VtSAe4QIKNEV2fp9vNlEo3tB NR1c3G+bjofMCZZsR9hVhdwD7CNUlOB1Cz12LHjnTrOqzrwiFM1mC0AA/EGdvN7DgNeu Pdbh7vcZBe3mI1KlMf0mPFy7rHAp3eJgjG6EEzb00klcIvhu5NXZyQyo2cXqVyXkpIi8 dQOA== X-Gm-Message-State: ACrzQf2OvuqgwnXCUEwEXjoMn3Y/ylO11Vhg65OCmtUAg67GZqsDidB3 XZnzqlI3nz/g7qLCTKEtWl2LlA== X-Received: by 2002:a92:6811:0:b0:2f8:f381:1bd5 with SMTP id d17-20020a926811000000b002f8f3811bd5mr2149221ilc.145.1664468375544; Thu, 29 Sep 2022 09:19:35 -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.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Sep 2022 09:19:35 -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 , Douglas Anderson , Guenter Roeck , Johnny Chuang , linux-kernel@vger.kernel.org Subject: [PATCH v6 12/13] Input: elants_i2c - Don't set wake_capable and wake_irq Date: Thu, 29 Sep 2022 10:19:16 -0600 Message-Id: <20220929093200.v6.12.I031ffbe411e1bae20bf16a1876da5baf444c7928@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 and wake capability for DT and ACPI systems. Signed-off-by: Raul E Rangel --- (no changes since v1) drivers/input/touchscreen/elants_i2c.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/drivers/input/touchscreen/elants_i2c.c b/drivers/input/touchscreen/elants_i2c.c index 80e16b533c452a0..3500293bb1d8e14 100644 --- a/drivers/input/touchscreen/elants_i2c.c +++ b/drivers/input/touchscreen/elants_i2c.c @@ -1575,22 +1575,6 @@ static int elants_i2c_probe(struct i2c_client *client) return error; } - /* - * Systems using device tree should set up wakeup via DTS, - * the rest will configure device as wakeup source by default. - */ - if (!client->dev.of_node) - device_init_wakeup(&client->dev, true); - - /* - * 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); - error = devm_device_add_group(&client->dev, &elants_attribute_group); if (error) { dev_err(&client->dev, "failed to create sysfs attributes: %d\n", -- 2.37.3.998.g577e59143f-goog