Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp26210245rwd; Mon, 3 Jul 2023 06:54:22 -0700 (PDT) X-Google-Smtp-Source: APBJJlGxdoX1f6Xs3KUGV1KV1bUylC6g/Hz8NF5LIfqPZltad5xQLCV5n9dfbAbWMCyLEXLQpu4R X-Received: by 2002:a05:6870:9b09:b0:1b3:656a:94de with SMTP id hq9-20020a0568709b0900b001b3656a94demr7299264oab.40.1688392461983; Mon, 03 Jul 2023 06:54:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688392461; cv=none; d=google.com; s=arc-20160816; b=rwlKbR1VnXfMYoUxls1Vlzpes3TOQZ9024Ffe803UlkfzNpV3haWx4jKGBz53qBZKn r2FH7CpD8cK8aHUltyMrALtqrxfDMMyCBGxjrB/JhROCxidT8OwlPzgrJqvuAiBbzIPF yDwCmLsA3ULUxxZj0ZzN0IJRintA4Hx1O3ugvRPOhXHYOXEnN0Vw4eN7PDWDFpvoqtfv Vex7vsRVKiZgeCTjaimGxKPZ/2m70JkgQ+eY2x3AiMq+1RrM8wcZZsExClfCVYqiwcX0 1viofVpkV7mJHJjJMAnVBzDTvKgef4f903C3HdjzNDg8GC/KHi7ghb8VlQJcI3zU3+dS 8MfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=kbaDQMfdFcdWoMlrItNmLUvmPOCCx8wenEiJbwjzXUY=; fh=N12HkoNwxfqwC6btTscq+34vl1uluIt8O7ac04Wbuqo=; b=hWTdI9Z/WtdN9rTYOv6qHx4sEVZGySoHFLt6nBZmT1u6tCvHIiaeDSyfB3HkU2R62I T9LLv5yIIP4Gc2U6aZahGRWZzSO6qJISJU0pcKvQTlubxV5oL2fP6PinWTeGoMzhyVkY 19uXWaxt275B7LLYAxjKp3vMH7qLWvhMnUdp0LgF3P1YUDLVC4CnqheyMrQVwowLQKYc BFcxzh56o98NZNFjan38yoRdsgR0u1aedJeGeZr3HVH1SNT55aFT1/DVK1zEIYyvCFAj XKhBW7OvckEO5NRMmcPdmx4UEQRMCJzrSmtZlocqvCJvHukaqFjIpNcXAIGEl1BQyZma FcrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=krpm+KvV; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id em22-20020a17090b015600b0026359a2e980si8748085pjb.21.2023.07.03.06.54.08; Mon, 03 Jul 2023 06:54:21 -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=@intel.com header.s=Intel header.b=krpm+KvV; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231370AbjGCNPU (ORCPT + 99 others); Mon, 3 Jul 2023 09:15:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229454AbjGCNPT (ORCPT ); Mon, 3 Jul 2023 09:15:19 -0400 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6FF50DD; Mon, 3 Jul 2023 06:15:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1688390118; x=1719926118; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=8GrbQ9RA64erjYeBtLXVBNh/OeM1HDqe39pSdWb3L4U=; b=krpm+KvVzEm6Rh8gfY28bVyqVfi0ue/zbRYBb187e/qxf89fmVeWI3A6 WGakH/6ysdaxAKk0s5uY7bg8lq7tTiMCQKCLDhaDxydWHM+lrLItG6EhQ zmXeC5siBtdvVx31xN0xOrjwngSZnySqAEK20U3B6Adtt12M+rPq1FWzq DxBH9ORYkR4kTZsIqsDwhrWTQ9wc+UYewikAC00NnfBwo1+n5p9yo+1zr PeOpCHF1gmEcC+7TR86c8opWTTql803wYNC7IRzHlXq11m81jAVRpUmAP br1lukIz3S3yTaxYFinfdA4oMQWTrt1CQl2kJsGemWGYESdzvtZhpyAqk A==; X-IronPort-AV: E=McAfee;i="6600,9927,10760"; a="365450030" X-IronPort-AV: E=Sophos;i="6.01,178,1684825200"; d="scan'208";a="365450030" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Jul 2023 06:15:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10760"; a="863085347" X-IronPort-AV: E=Sophos;i="6.01,178,1684825200"; d="scan'208";a="863085347" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga001.fm.intel.com with ESMTP; 03 Jul 2023 06:15:15 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1qGJOb-001rz3-1f; Mon, 03 Jul 2023 16:15:13 +0300 Date: Mon, 3 Jul 2023 16:15:13 +0300 From: Andy Shevchenko To: Dmitry Torokhov , Bartosz Golaszewski , linux-gpio@vger.kernel.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Mika Westerberg , Linus Walleij , Bartosz Golaszewski , Benjamin Tissoires Subject: Re: [PATCH v1 2/3] gpiolib: acpi: Don't use GPIO chip fwnode in acpi_gpiochip_find() Message-ID: References: <20230703121838.70898-1-andriy.shevchenko@linux.intel.com> <20230703121838.70898-3-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230703121838.70898-3-andriy.shevchenko@linux.intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE 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 On Mon, Jul 03, 2023 at 03:18:37PM +0300, Andy Shevchenko wrote: ... > static int acpi_gpiochip_find(struct gpio_chip *gc, void *data) > { > - return ACPI_HANDLE_FWNODE(gc->fwnode) == data; > + return ACPI_HANDLE(&gc->gpiodev->dev) == data; > } And after all this may be changed to device_match_acpi_handle(). I'll update it locally, but still wait for the Benjamin to test this before sending a v2. -- With Best Regards, Andy Shevchenko