Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp1071016lqb; Wed, 17 Apr 2024 21:50:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXtJOF84jQo0XMy5O2djubzKJeYS7Q5hLQCLeAlAsvQlpWxOE2s/bRPS9SKZOYmIK1B7sinNB6ZL7yuAl2NkMD7PwuSIYlL3e4WEn1Ckg== X-Google-Smtp-Source: AGHT+IHX3rb+YL3i/1o7OPEvLqVwvh1M2feTPDTT3HUWoSy79MOhxBYgoBPSxqQBBpsS+3Ac+Q6g X-Received: by 2002:a05:6214:1d0c:b0:69b:7143:c58a with SMTP id e12-20020a0562141d0c00b0069b7143c58amr2198985qvd.26.1713415803792; Wed, 17 Apr 2024 21:50:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713415803; cv=pass; d=google.com; s=arc-20160816; b=QEfJMKiscoqGsJgraG23GzW+eKNOg3atH14MuxBglaV6fQDKJYV0eHS84JgctpyArR J5vNPc7CUYcmGQyqapC2GR1VB7yk+6MO1mZdJY2SJB7Ci+wpiRV2TkN6DHmxH3cpWygO AqsvRl6ML8xx33g1O0w0PNZ4kZuRHTZ68NhYXcX5NRPm1Q0CIWGvhtHWxnE+JxFoQ8ib AWLkTotnUMSzuNG2VEmEbreG7vmEHHAg/t2KIfXEDZXzYlOHnGYDnA2avjuZSjqyNxEC 79HZtIfV1xePVbdRr9YB61nckG3DUSRXzytYDVAGPzaeTfOPqg/zjpEBBo6ZB6Jbm2U5 Ovrg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=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=htNoYpZL4Zeb5lFQS1cxhGNH02ZDFY4qYNsZr8iKwGA=; fh=qnQZ0ZPPGMZKaDnKxIHD7c6GqSxPjfKvDtCVRbWLrcQ=; b=0LBfNHJKDOyz3og9qWj31PuY67wE9kK0PBG1yY7SQsxhs/DPRwarIYuDt3tx4+7cFO e6BeS2NkFiGY5N03bbcnenoqHx5WqLbIccgkhKIIBZonlUPl8tsD2g9I6zti6bw2dY9K 4V+FMH4LQ+9+kx5rcc1t6F/PcSUnjsD6wyk9zPCb6zNdAU7pMCG8Gf0BSZOhq2bjFeV6 eTMD3Xtt0QdJg6ptqGlCleTosWgohS5xe00HOqdVOLze6PM45mqFDvihjb2biMUzhSHE R/I3TK8UTuGjgbhX+YJVIEOg/mBjmzwEdSATA0FpJCJqpHiwXZ0/MBFlS5y2t1CYHiL+ 962w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=DNcGa2Cj; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-149507-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-149507-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id q11-20020a056214194b00b006969ff20618si699102qvk.351.2024.04.17.21.50.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 21:50:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-149507-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=DNcGa2Cj; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-149507-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-149507-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 71B5C1C217FB for ; Thu, 18 Apr 2024 04:50:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 11D845427E; Thu, 18 Apr 2024 04:49:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="DNcGa2Cj" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.12]) (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 9006F548EA; Thu, 18 Apr 2024 04:49:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713415796; cv=none; b=cFQXHt212DCrzKkQm1m7WCH8hBLJYQqRZ0cMc/xsmPtoZtf4J3HXLEKuJSkxnw0hK9GBtMybnO8rORi42UMb4/XrtAwRj4ZpGQL4+1qUZxFls9+j99tqEaGolgqJF/6GWpcgEeuWMtzC8naZprbfUCGiKaE1gWgiQ/nFC6NMA8U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713415796; c=relaxed/simple; bh=YgfbawDaEosSQPgL5ER2TNOIJpY3m3K6GdM7my7NOvk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=hTFTEwtkKYy2EtcVkbGqWBVht+J+3oas5Hu52ILQU5lFdTRJnESwe6s7CH06qPeN+Dt8NPdqlEVPOFcrzKrnH9zBuQWN5Q6fIMxXAFtfkyrIBeiq7ZdAd2dYM+09Ps8fw21lKi94N7MJ5YBCXZFNiJpNWgxpuOMnEVg6BTXXgXQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=DNcGa2Cj; arc=none smtp.client-ip=198.175.65.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1713415794; x=1744951794; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=YgfbawDaEosSQPgL5ER2TNOIJpY3m3K6GdM7my7NOvk=; b=DNcGa2CjCaXyB9A3LustnuHdM7UTb0uOcxG7QDkyYj7GEAbI+fO/ad5v Hw6nOvAwUkOwwJIY2TDco0MHixJJVJPZrNlFixBzPeyD1qW2DkacidM1l 3TgvXRg27F1vAzDhYDYO3DR1uZ6tG9kchi9L1uLVGtPqQCrK03ucog/YJ u980DmN92mX4xjlinPbuwV/pS2uxHJrdszohPaQ7oP+fC8B9oRfJubSUO /KnsfQDkxLYwVJKcNdvzL610zodICWaHOw/KqLmFIU8XePOjA/B2hC4b/ E/Kn/OgP5llDZ1U7f04iamKri0+DPmrBvXVmTZC3znOodvkqm3yZP9t0l A==; X-CSE-ConnectionGUID: LPnEL1iURNSCA8HnF6Xz1A== X-CSE-MsgGUID: vrerF21ZT9qcEX8Ymrm6yg== X-IronPort-AV: E=McAfee;i="6600,9927,11047"; a="20363074" X-IronPort-AV: E=Sophos;i="6.07,211,1708416000"; d="scan'208";a="20363074" Received: from fmviesa006.fm.intel.com ([10.60.135.146]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Apr 2024 21:49:54 -0700 X-CSE-ConnectionGUID: 1uJNOl/URpqJCu7GMfBidA== X-CSE-MsgGUID: jGdWLmCmTI6fGQcrvY8OcA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,211,1708416000"; d="scan'208";a="22888101" Received: from black.fi.intel.com ([10.237.72.28]) by fmviesa006.fm.intel.com with ESMTP; 17 Apr 2024 21:49:52 -0700 Received: by black.fi.intel.com (Postfix, from userid 1001) id 0FC5024D; Thu, 18 Apr 2024 07:49:50 +0300 (EEST) Date: Thu, 18 Apr 2024 07:49:50 +0300 From: Mika Westerberg To: Andy Shevchenko Cc: linux-gpio@vger.kernel.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, Linus Walleij , Bartosz Golaszewski Subject: Re: [PATCH v1 2/2] gpiolib: acpi: Set label for IRQ only lines Message-ID: <20240418044950.GP112498@black.fi.intel.com> References: <20240417103829.2324960-1-andriy.shevchenko@linux.intel.com> <20240417103829.2324960-3-andriy.shevchenko@linux.intel.com> 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=utf-8 Content-Disposition: inline In-Reply-To: <20240417103829.2324960-3-andriy.shevchenko@linux.intel.com> On Wed, Apr 17, 2024 at 01:37:28PM +0300, Andy Shevchenko wrote: > When line locked as IRQ it has no label assigned. Assign > the meaningful value to it. Same here. > > Signed-off-by: Andy Shevchenko > --- > drivers/gpio/gpiolib-acpi.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/gpio/gpiolib-acpi.c b/drivers/gpio/gpiolib-acpi.c > index 0b0c8729fc6e..553a5f94c00a 100644 > --- a/drivers/gpio/gpiolib-acpi.c > +++ b/drivers/gpio/gpiolib-acpi.c > @@ -1066,6 +1066,10 @@ int acpi_dev_gpio_irq_wake_get_by(struct acpi_device *adev, const char *con_id, > acpi_gpio_update_gpiod_lookup_flags(&lflags, &info); > > snprintf(label, sizeof(label), "%pfwP GpioInt(%d)", fwnode, index); > + ret = gpiod_set_consumer_name(desc, con_id ?: label); > + if (ret) > + return ret; > + > ret = gpiod_configure_flags(desc, label, lflags, dflags); > if (ret < 0) > return ret; > -- > 2.43.0.rc1.1336.g36b5255a03ac