Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp729601rdb; Sat, 6 Jan 2024 06:50:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IGKM8M4QZOg5EUWBCKM+7XdxYN3ZYYJDmUgEJooN3BrFeiW5nSgm3waBzC4xr5JZ8NhXHY5 X-Received: by 2002:a17:902:db03:b0:1d4:cf60:4eb6 with SMTP id m3-20020a170902db0300b001d4cf604eb6mr1383060plx.38.1704552618254; Sat, 06 Jan 2024 06:50:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704552618; cv=none; d=google.com; s=arc-20160816; b=kkurxRA+jBlSlAO2Kfr+9vheSB2/nyMpXUD72ktUzdqtD62JXQxEukd91GTLB3j9uW w3JWXEJJ/Ewupsjl3bbrCjQ1e0QsKupZCyZxbjHXFPB46qnyFycdULsijHvGMZrncW+a CkdFhTIWxyOS6/8dro4ojhSdvW6spyg4cHcsjA0UDvDVDLH0MQU7QnTG1XwvlL23CW89 YekFPm7AniLoRplREUV6MEkLcldsUeQdfNwwjTK/H+dQvGt4FdzWbvZ7soWw6WHnHgch ohNz2Pe1YOeGWENyrP6tPwjKSAm5SmfDOsXZwoPolNA1IIs1t8kgOZJmnwwTuiXW19Pc +Itw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=organization:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=poEv9aUgzpWHSBCjrSHlH5FV8/vrdIeJoHLcaH34aNc=; fh=xLd5ptgi5YJ8R+WRt0h+z/mzaaAg5j4lUl4gkPvM59w=; b=JeoT70ylyDpwypzNmTEH9hqk/vlRLDYbTNOCzA2BG3wi164xtjNoQOlPheqreh/NA/ ty7Wz+JZlBfEVR4//BeQj9T4Z4FzllP2gxTwgT7hQkLC90WCpXzycq6JRvqQwW1y/aNp sbv/TKPscLfzdHWt7FY0TBNvc1cS4wNMlcIMy2qVr/322pZR4XupZTiDwY6liNvSl4fS fVYwurqkpKtz/Mhur0iSjmS/I/YAekvbKZUFaSK2+WewFfrTFNnAlUXwKzHgD/dP/g3K YuMKfG4k5r7ZigTqpSg6cQLnqDiaJ0VtF7kyCjxU61iLUaN8pxi+2vKplkZAwgAbaYm+ t3Zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=W36lyC2I; spf=pass (google.com: domain of linux-kernel+bounces-18604-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18604-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id w4-20020a170902e88400b001d40f21f11bsi3059834plg.156.2024.01.06.06.50.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Jan 2024 06:50:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-18604-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=W36lyC2I; spf=pass (google.com: domain of linux-kernel+bounces-18604-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18604-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id B275FB21418 for ; Sat, 6 Jan 2024 14:49:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9ACFC7469; Sat, 6 Jan 2024 14:49:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="W36lyC2I" X-Original-To: linux-kernel@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 855BD8830; Sat, 6 Jan 2024 14:49:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1704552549; x=1736088549; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=HJZn9Bd9/mDRcam41rK8W3n5XGqyC9dgm7NvSJ76+b4=; b=W36lyC2ITrVGz6L88dJ12pIfOXh8YQaJUeup4YVvpolrCIslgfx0mBTA 7EvoRFidmn9vOW9YmJ84nD4oQh5lvYFbTuLkKmwFiJ+/FoDso8bRFSEjN kPnKitLS5XIgvGePeDucwgFzucJ+pC5s49/8e3J9Z+N213HknS+D6CEQs 4NLter4LGbo5b1qUpKkxVIMlF1cLnkIU2nKKpxmZ6SwFkCMrZgcJ7jh+j dvcCI11BB4VHDbLp10uzZn1zTLlT0WYPSlJyhN5ht4smpN4CeeURgW/AI yFKTntXtiSmtkqKWDB+6hXW15TXxRWlc663sHY3AmmGK8eCOgv4UmepCE A==; X-IronPort-AV: E=McAfee;i="6600,9927,10945"; a="464062410" X-IronPort-AV: E=Sophos;i="6.04,337,1695711600"; d="scan'208";a="464062410" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jan 2024 06:49:08 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10945"; a="851384333" X-IronPort-AV: E=Sophos;i="6.04,337,1695711600"; d="scan'208";a="851384333" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga004.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jan 2024 06:49:04 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1rM7uA-0000000Bvpg-0Juu; Sat, 06 Jan 2024 16:44:06 +0200 Date: Sat, 6 Jan 2024 16:44:05 +0200 From: Andy Shevchenko To: Mark Hasemeyer Cc: LKML , Sudeep Holla , AngeloGioacchino Del Regno , Rob Herring , Krzysztof Kozlowski , Konrad Dybcio , Raul Rangel , Tzung-Bi Shih , Bartosz Golaszewski , Len Brown , Linus Walleij , Mika Westerberg , "Rafael J. Wysocki" , Wolfram Sang , linux-acpi@vger.kernel.org, linux-gpio@vger.kernel.org, linux-i2c@vger.kernel.org Subject: Re: [PATCH v4 02/24] gpiolib: acpi: Modify acpi_dev_irq_wake_get_by() to use resource Message-ID: References: <20240102210820.2604667-1-markhas@chromium.org> <20240102140734.v4.2.Ifd0903f1c351e84376d71dbdadbd43931197f5ea@changeid> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240102140734.v4.2.Ifd0903f1c351e84376d71dbdadbd43931197f5ea@changeid> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Tue, Jan 02, 2024 at 02:07:26PM -0700, Mark Hasemeyer wrote: > Other information besides wake capability can be provided about GPIO > IRQs such as triggering, polarity, and sharability. Use resource flags > to provide this information to the caller if they want it. > > This should keep the API more robust over time as flags are added, > modified, or removed. It also more closely matches acpi_irq_get() which > take a resource as an argument. > > Rename the function to acpi_dev_get_gpio_irq_resource() to better > describe the function's new behavior. Missing blank line. We put a commit message as $SUMARY ...blank line... $DESCRIPTION (can contain blank lines) ...blank line... $TAG block (may not contain blank lines) > Signed-off-by: Mark Hasemeyer ... > + unsigned long res_flags; Why not calling it irq_flags? ... > +struct resource; This... > + struct resource r = {}; > + return ret ?: r.start; ...does _not_ cover these cases. Hence ioport.h must be included. Did I miss it? -- With Best Regards, Andy Shevchenko