Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp5691569rwb; Wed, 21 Sep 2022 11:00:46 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6jtSVViueGdyYJxm0hNErvgwD/mijroN8D7uHvzEgyWnE8WnA5odjVtDtWRRLIRPj5GNrr X-Received: by 2002:a17:90a:bc83:b0:203:9dd:15ed with SMTP id x3-20020a17090abc8300b0020309dd15edmr10647679pjr.171.1663783240763; Wed, 21 Sep 2022 11:00:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663783240; cv=none; d=google.com; s=arc-20160816; b=flG29/kA7oM542HJIr9Ahr4S0b5867eDmPfsASmjvkxMH3D1Ajj/v5VGeTOlGgPShm 38ftaVd03kc5iKhASCltDB5BJIB7LelpkZNG6IudiSG10Xi8+AeBMeym5b95SrnOhTpt TvWAu3/UBbL7nj5c3tQstr27BM5Cg551HHx5x4hZ5EQmJRMq7bI3bNME8iI3Tq51rYOl 6k/yib+qvXn9e5ejRvqJ4T1NVbO0NeRTCujhJIz2OEGQDmMUwUQRykb9dI2iTJVdanf+ kLDofQGMzSbr6re6Ra+LNDPNx8/ylzq+R6Eaj58c6mFCltbaTTrg2Yqfi94hB/SqGJcB Jcug== 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=H54d0G6AAErtN9paRV2+6Wo2Il0gAFeOcBLywRUXXa0=; b=CLSrWi4t5nTqeRc7HYPrJwTtcJwLpGzNUyYUgAslxENpAKO55445mPUIwr5g1oQc3c Sj/FgFfKpUqM8Tlj4nHrEZxBmpzBEtaG8jFf/XsR0QCAragi+AiRdxU9hNTDMr574J80 nk61ipwmjgPruU8WVVPZYT/b4DyYp48bZ1vBOAfHx45i7ub5nZslqqNrKuf+8vDja0KI Zg2exIxmqlG7NfAwvBkoNNnwR1GAmrwAdCr2WPsOx/wrsHrSVfqWXUzK2xoP7LTBYL5b T/7oQfA2JW/QidpAiIp5cD8khg4C7kEHkRz7n44T09LgXCNDZJE2HSqMA7wgguxz5BLd ZK0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=aPT4P7qo; 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 u5-20020a056a00098500b0053abea59ab7si3348379pfg.336.2022.09.21.11.00.28; Wed, 21 Sep 2022 11:00:40 -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=aPT4P7qo; 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 S231262AbiIUQY6 (ORCPT + 99 others); Wed, 21 Sep 2022 12:24:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232410AbiIUQYh (ORCPT ); Wed, 21 Sep 2022 12:24:37 -0400 Received: from mail-pf1-x436.google.com (mail-pf1-x436.google.com [IPv6:2607:f8b0:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3360EB1BA0 for ; Wed, 21 Sep 2022 09:07:32 -0700 (PDT) Received: by mail-pf1-x436.google.com with SMTP id d82so6361499pfd.10 for ; Wed, 21 Sep 2022 09:07:32 -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=H54d0G6AAErtN9paRV2+6Wo2Il0gAFeOcBLywRUXXa0=; b=aPT4P7qoRZWdL5Bmar/LZHlelSGaUIcO+KvnefvZmwjLeCnKyFua9Sdj/jZ3OYL968 cQxDi+jSWtUu8TdBqWCYELC8kdx3qAM2gxeRYH8iHLqWA9+l0/9xs6ERSCp/n70oZaHw z/ZVSYsY35pX3YiNhdheaP4Q62BbzLzk4j470= 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=H54d0G6AAErtN9paRV2+6Wo2Il0gAFeOcBLywRUXXa0=; b=WjthROr6P/7hT6ILeaKPYw7AkvcdhLRxrJ5EwzqnLO/N32zIb8RirNFnWJLI54q6l1 9qExI+K1vuHxJE8idDhsR5LAHtryrzEEwR1C9fEcU1woJrwBH6ao1AWZoL2qx33R+NJ4 uNHdN5j1Rdem7RPMxS4UlJDAuYfdq/yHtezWoA25SwznMwBpNuE21HAUdSnxY6rJ7RFZ gWyumf0zqtA6LSmaXQnlOj1z0W2sCN0wRUzwj6hx9HraqL/Y0VrqQ5tJTG7Sw7qkAr/Z yCIzufrhqe86ZFV/x0+p5g2zRyIzpJeC2mMG/17mfiExbpHswdgb1mF/2Jf+/yr9uAbR 0AtQ== X-Gm-Message-State: ACrzQf38w8AgZzbepE6IzGVBqCft6vHM4SZAgwfTNu+ldoNHGiABUJJx /Ps8GyEM6VpUww9iPgSv9BDYBDgP4aHOfg== X-Received: by 2002:a92:c546:0:b0:2f1:ceaf:89f8 with SMTP id a6-20020a92c546000000b002f1ceaf89f8mr12931327ilj.195.1663775542631; Wed, 21 Sep 2022 08:52:22 -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.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Sep 2022 08:52:22 -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 , linux-kernel@vger.kernel.org Subject: [PATCH v5 11/13] Input: elan_i2c - Don't set wake_capable and wake_irq Date: Wed, 21 Sep 2022 09:52:03 -0600 Message-Id: <20220921094736.v5.11.I7309b8f322082437b93581c6e2953886eeb998d7@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 and wake capability for DT and ACPI systems. Signed-off-by: Raul E Rangel --- (no changes since v2) Changes in v2: - I chose not to keep the legacy code around since systems without DT or ACPI should be rare. drivers/input/mouse/elan_i2c_core.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/drivers/input/mouse/elan_i2c_core.c b/drivers/input/mouse/elan_i2c_core.c index 3947474e93d16a..b25b94aba3e88e 100644 --- a/drivers/input/mouse/elan_i2c_core.c +++ b/drivers/input/mouse/elan_i2c_core.c @@ -1332,22 +1332,6 @@ static int elan_probe(struct i2c_client *client, } } - /* - * Systems using device tree should set up wakeup via DTS, - * the rest will configure device as wakeup source by default. - */ - if (!dev->of_node) - device_init_wakeup(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 (!dev->power.wakeirq) - dev_pm_set_wake_irq(dev, client->irq); - return 0; } -- 2.37.3.968.ga6b4b080e4-goog