From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f68.google.com (mail-wr1-f68.google.com [209.85.221.68]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F162C32E68F for ; Tue, 10 Feb 2026 19:10:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.68 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770750654; cv=none; b=uhjRSwOYb0U4kw0GHujdZudL9fxdQorCleByyNUmwrr2tBj8dhFZrar8vIbp35JyJwSnH6HlOGqvvMo7UGAlUcFEehTFnV16Sy7odNaR96E+j/Sj7DrEVjIpUUwv6T+klJ1gHE+Mj35WvlLqPLVffbN9joV3WlBlOyMuMQYKJo8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770750654; c=relaxed/simple; bh=2bvZWE7twF61uCF0RbEpKOmJhwGSwwSIQdWQwtDsiU0=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; b=hfTazbul0Fq4y212+7K39pWk1jjbDgJgXDJBN1u/YUh3aM1byrEJ1ivPWwh+EZB99TcLLoiLFCH7ynnr3ZPXXRWPU+itCBGmEzlBcMgHyyIjwr3ITkhVT7nGJh+Wn60AtTBLCo+XIb2iWwBGcpUBrYT2hyMKq+ARQF2Jo6BhLE0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=g80eRIjv; arc=none smtp.client-ip=209.85.221.68 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="g80eRIjv" Received: by mail-wr1-f68.google.com with SMTP id ffacd0b85a97d-4359a16a400so1143011f8f.1 for ; Tue, 10 Feb 2026 11:10:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1770750651; x=1771355451; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:message-id:subject:cc :to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=LHqbu9P1+Pumy4rK+s102NKjK+R22eZanNFM4YUrXEc=; b=g80eRIjvvWop8WSUIk47kVLCzgsCGz6WQypaQe8O0RVScChidgrgLm+k/H/51YiKem xkEPimJDIR1nvbaauO7HCIQQJUl1OxaUG5sVUeN/NdftC/p15t5ckpiLL8g63bG5L7LN H8cE1YwK4p7c6oazqgqfKExQW0irm4HBFMYaeAQRqpogYuJ6Sy8kHJqkDJywfrNexd0r ZjUbavKzcEGk3Rs4zp11FjaAs4eogI/0WlwHe/L8ZrMatCkLRUmw1qxKChbmK35NwFTQ KIQl4VGXqh7prJsK6Eb7MyGy/lwsJzXoE243qAoJPy+0Gr0L9FWVykGGcbym9rCPEfAF /mAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770750651; x=1771355451; h=in-reply-to:content-disposition:mime-version:message-id:subject:cc :to:from:date:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=LHqbu9P1+Pumy4rK+s102NKjK+R22eZanNFM4YUrXEc=; b=KB2S/J5feKZ4u0W7fIypsa8dSPHcZoJtpcHxQvOFgqIUmcuRlaO6iq0x3ppXgjJ36+ J3exwpuavoCNYd7OxF2z/GmnZQcX9YmDd6oVRbWbjUq6wa1CKxwD5CXQGUuMAPoSNFtP 0hPET92FuGiIr6uroIBuz4bRuxp5iU1awofDR3hFq+XIABCDj04/nWaAVoUtXU1+SXsw g9RtVPldU6ArWyfYygroOGj25eW8mtwNCn2UsRvmDVOCCVVCsf3kQZm1jn5VmWT14c/T kAy/JY0xeTzpGtnU9bfG+WR9gJs82SlQv1LWfYDy1K/QxDufJo0mNmwgi4gmvjE5jgV2 CcIw== X-Forwarded-Encrypted: i=1; AJvYcCW4+9Y7m18QOmc28Pjv2hUnPszpVNVUhaWYispDZv8hZSuGzJP/YN9pwZndBSQ9NdPR9WWvdLY8/khJ@vger.kernel.org X-Gm-Message-State: AOJu0YwPQ5MhNaPI/YtWtlQppRb9V6ttJmSWDU9TW9ncv7WvmLGuXIOs CF6HULyQ5I4O0x+sSDL2WN4KCHAL6FU1WHxaKcGoqIUsD2N62KwkZcH47dbUa42FlKs= X-Gm-Gg: AZuq6aJUDvW6QBHgN0tLUzSUPz3OsUhsn3PGhHsH5qoLDbEF5gldAm/OfNnuhIRPqf0 vZZsPYqn/Usm64mSwOeCsOM5qfHJTYNryb4kPFoMlArzuunrp7202EDvwvajTgMI+Xu034e0SEy ekEzag+J+pCTw+PEFTcpIYTjc7QMrLhXf0jV6/RtN4hAsuSkBDr/oF6M56G40A0an15lW/za81x m8RZADAm1JcP8EcqTEN2ttslfW26z5+geoXgxN4KIGdjcdUhkRDF0EDeHCzaKZNxJhXz0KwSW4l E9hTUzD40OmL9y9NZiSvktOEd1leG1Klh0lc/5AqG17YHdBDFsoi55kMwYLEkAAfVdjftGU6B+d iZeCiy29C7FfPos4r4GC7MYVvH1KU02cHExJUmxMqJom5EkBSIo5q1CpPVn2fj1NEqkv8dhks8n ly82vxyYUkZWDc57+osMxC4sLKDfPi X-Received: by 2002:a05:6000:288b:b0:435:e493:25f with SMTP id ffacd0b85a97d-436293818d5mr22821986f8f.34.1770750651166; Tue, 10 Feb 2026 11:10:51 -0800 (PST) Received: from localhost ([196.207.164.177]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-436309ed238sm35212929f8f.19.2026.02.10.11.10.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Feb 2026 11:10:50 -0800 (PST) Date: Tue, 10 Feb 2026 22:10:47 +0300 From: Dan Carpenter To: oe-kbuild@lists.linux.dev, Bartosz Golaszewski , Linus Walleij , Bartosz Golaszewski , Andy Shevchenko , Greg Kroah-Hartman , Dmitry Torokhov , Arnd Bergmann , Hans de Goede , Ilpo =?iso-8859-1?Q?J=E4rvinen?= Cc: lkp@intel.com, oe-kbuild-all@lists.linux.dev, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH] gpio: swnode: restore the swnode-name-against-chip-label matching Message-ID: <202602110128.BInRI9un-lkp@intel.com> Precedence: bulk X-Mailing-List: linux-gpio@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: <20260210094806.38146-1-bartosz.golaszewski@oss.qualcomm.com> Hi Bartosz, kernel test robot noticed the following build warnings: https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Bartosz-Golaszewski/gpio-swnode-restore-the-swnode-name-against-chip-label-matching/20260210-175012 base: https://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux.git gpio/for-next patch link: https://lore.kernel.org/r/20260210094806.38146-1-bartosz.golaszewski%40oss.qualcomm.com patch subject: [PATCH] gpio: swnode: restore the swnode-name-against-chip-label matching config: nios2-randconfig-r071-20260210 (https://download.01.org/0day-ci/archive/20260211/202602110128.BInRI9un-lkp@intel.com/config) compiler: nios2-linux-gcc (GCC) 8.5.0 smatch version: v0.5.0-8994-gd50c5a4c If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Reported-by: Dan Carpenter | Closes: https://lore.kernel.org/r/202602110128.BInRI9un-lkp@intel.com/ smatch warnings: drivers/gpio/gpiolib-swnode.c:62 swnode_get_gpio_device() error: we previously assumed 'gdev_node' could be null (see line 32) vim +/gdev_node +62 drivers/gpio/gpiolib-swnode.c b7b56e64a345e7 Bartosz Golaszewski 2023-09-27 26 static struct gpio_device *swnode_get_gpio_device(struct fwnode_handle *fwnode) e7f9ff5dc90c38 Dmitry Torokhov 2022-11-11 27 { b7b56e64a345e7 Bartosz Golaszewski 2023-09-27 28 const struct software_node *gdev_node; b7b56e64a345e7 Bartosz Golaszewski 2023-09-27 29 struct gpio_device *gdev; e7f9ff5dc90c38 Dmitry Torokhov 2022-11-11 30 b7b56e64a345e7 Bartosz Golaszewski 2023-09-27 31 gdev_node = to_software_node(fwnode); 6774a66d0e103d Bartosz Golaszewski 2025-12-15 @32 if (!gdev_node) 216c1204757190 Bartosz Golaszewski 2025-11-20 33 goto fwnode_lookup; gdev_node is NULL e7f9ff5dc90c38 Dmitry Torokhov 2022-11-11 34 9d50f95bc0d5df Charles Keepax 2024-04-16 35 /* 9d50f95bc0d5df Charles Keepax 2024-04-16 36 * Check for a special node that identifies undefined GPIOs, this is 9d50f95bc0d5df Charles Keepax 2024-04-16 37 * primarily used as a key for internal chip selects in SPI bindings. 9d50f95bc0d5df Charles Keepax 2024-04-16 38 */ 9d50f95bc0d5df Charles Keepax 2024-04-16 39 if (IS_ENABLED(CONFIG_GPIO_SWNODE_UNDEFINED) && 6774a66d0e103d Bartosz Golaszewski 2025-12-15 40 gdev_node == &swnode_gpio_undefined) 9d50f95bc0d5df Charles Keepax 2024-04-16 41 return ERR_PTR(-ENOENT); 9d50f95bc0d5df Charles Keepax 2024-04-16 42 216c1204757190 Bartosz Golaszewski 2025-11-20 43 fwnode_lookup: e5d527be7e6984 Bartosz Golaszewski 2025-11-03 44 gdev = gpio_device_find_by_fwnode(fwnode); 4a61b0b6de0480 Bartosz Golaszewski 2026-02-10 45 if (!gdev) 4a61b0b6de0480 Bartosz Golaszewski 2026-02-10 46 /* 4a61b0b6de0480 Bartosz Golaszewski 2026-02-10 47 * FIXME: We shouldn't need to compare the GPIO controller's 4a61b0b6de0480 Bartosz Golaszewski 2026-02-10 48 * label against the software node that is supposedly attached 4a61b0b6de0480 Bartosz Golaszewski 2026-02-10 49 * to it. However there are currently GPIO users that - knowing 4a61b0b6de0480 Bartosz Golaszewski 2026-02-10 50 * the expected label of the GPIO chip whose pins they want to 4a61b0b6de0480 Bartosz Golaszewski 2026-02-10 51 * control - set up dummy software nodes named after those GPIO 4a61b0b6de0480 Bartosz Golaszewski 2026-02-10 52 * controllers, which aren't actually attached to them. In this 4a61b0b6de0480 Bartosz Golaszewski 2026-02-10 53 * case gpio_device_find_by_fwnode() will fail as no device on 4a61b0b6de0480 Bartosz Golaszewski 2026-02-10 54 * the GPIO bus is actually associated with the fwnode we're 4a61b0b6de0480 Bartosz Golaszewski 2026-02-10 55 * looking for. 4a61b0b6de0480 Bartosz Golaszewski 2026-02-10 56 * 4a61b0b6de0480 Bartosz Golaszewski 2026-02-10 57 * As a fallback: continue checking the label if we have no 4a61b0b6de0480 Bartosz Golaszewski 2026-02-10 58 * match. However, the situation described above is an abuse 4a61b0b6de0480 Bartosz Golaszewski 2026-02-10 59 * of the software node API and should be phased out and the 4a61b0b6de0480 Bartosz Golaszewski 2026-02-10 60 * following line - eventually removed. 4a61b0b6de0480 Bartosz Golaszewski 2026-02-10 61 */ 4a61b0b6de0480 Bartosz Golaszewski 2026-02-10 @62 gdev = gpio_device_find_by_label(gdev_node->name); ^^^^^^^^^^^^^^^ Unchecked dereference 4a61b0b6de0480 Bartosz Golaszewski 2026-02-10 63 b7b56e64a345e7 Bartosz Golaszewski 2023-09-27 64 return gdev ?: ERR_PTR(-EPROBE_DEFER); e7f9ff5dc90c38 Dmitry Torokhov 2022-11-11 65 } -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) (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 DF874388849 for ; Tue, 10 Feb 2026 17:51:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.8 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770745916; cv=none; b=H5yKJ9tVJi0SQmmLtyqiT3OCEmgpYjbQQ6z1eh1xhADJdYj6ChgM1lHJNTag7e+eNHEGF7VcWVjelWd5Wey98T2AjungwONiC3znD56qlEplW3ujmbVYqE9ckBe3WWYY7477+hmMKDzAX9KpKuwtmL3LFmArhMMtU3JYagdeIgU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770745916; c=relaxed/simple; bh=fPGK4peFZfkgUvUON1+rXCW3QlP9CoXj9EcuVxnfFys=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=X6KNFRu7YaIpnggZcJ6y9msxcyJ3xtNP8ZuA6/Q3J6GAYcg3krjH7XHzthdgWxJD/UrGe1pi4vHSgJjKK0ZNb4i5XMZ/mvQb/OrbfObm4qlzFCFnKlRQ8sr/GYojD0KwOWh946zQOMnWlalI08VQ7fT9FFrRoX44eO24XiX6cZo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=COMdiLsN; arc=none smtp.client-ip=192.198.163.8 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="COMdiLsN" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1770745913; x=1802281913; h=date:from:to:cc:subject:message-id:mime-version: content-transfer-encoding; bh=fPGK4peFZfkgUvUON1+rXCW3QlP9CoXj9EcuVxnfFys=; b=COMdiLsNdHYAsBdIZqe3bqcL8vdXWDCUWEwwkwT+DBiAmBU4En+41e3B ZR3Zr4TuJ3drhBf+h67Z7wFTFsTw0JmE59rk/x7fu09jNManF+cgxsl2B u0/WVkacGKqTkgjeB0aN5vCkH03I9VJxqJsjo5VddOllVwoNm+krbtY4X dGU38mpU6s/JqEhrUI7nwt8AW/LPOJPjV+0Szcx9CrMG4Ll/ipRYAaMIe lpPKXvXvYiLn6wKa36vs7rH5autkhebxGG7ifW/802Yz5vbGgX2nmbFyr 2Pko/TrnNKB6umccwhpNy3mKVIHqVj3HSAEyFAv7EU0JviaEhdpHIsB73 Q==; X-CSE-ConnectionGUID: rKM6YxgKT1K205qCQv2AnA== X-CSE-MsgGUID: fQBFSVCkQCKLSJyPRAZl/Q== X-IronPort-AV: E=McAfee;i="6800,10657,11697"; a="89473468" X-IronPort-AV: E=Sophos;i="6.21,283,1763452800"; d="scan'208";a="89473468" Received: from fmviesa005.fm.intel.com ([10.60.135.145]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Feb 2026 09:51:52 -0800 X-CSE-ConnectionGUID: xbc/uyAVR9KtB5hjxUNJRQ== X-CSE-MsgGUID: 1ltQzJTOQ9m6HW862CnXjg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.21,283,1763452800"; d="scan'208";a="216495380" Received: from lkp-server01.sh.intel.com (HELO 765f4a05e27f) ([10.239.97.150]) by fmviesa005.fm.intel.com with ESMTP; 10 Feb 2026 09:51:51 -0800 Received: from kbuild by 765f4a05e27f with local (Exim 4.98.2) (envelope-from ) id 1vprtt-00000000pGy-0GMM; Tue, 10 Feb 2026 17:51:49 +0000 Date: Wed, 11 Feb 2026 01:51:30 +0800 From: kernel test robot To: oe-kbuild@lists.linux.dev Cc: lkp@intel.com, Dan Carpenter Subject: Re: [PATCH] gpio: swnode: restore the swnode-name-against-chip-label matching Message-ID: <202602110128.BInRI9un-lkp@intel.com> Precedence: bulk X-Mailing-List: oe-kbuild@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit BCC: lkp@intel.com CC: oe-kbuild-all@lists.linux.dev In-Reply-To: <20260210094806.38146-1-bartosz.golaszewski@oss.qualcomm.com> References: <20260210094806.38146-1-bartosz.golaszewski@oss.qualcomm.com> TO: Bartosz Golaszewski TO: Linus Walleij TO: Bartosz Golaszewski TO: Andy Shevchenko TO: "Greg Kroah-Hartman" TO: Dmitry Torokhov TO: Arnd Bergmann TO: Hans de Goede TO: "Ilpo Järvinen" CC: linux-gpio@vger.kernel.org CC: linux-kernel@vger.kernel.org CC: platform-driver-x86@vger.kernel.org CC: stable@vger.kernel.org Hi Bartosz, kernel test robot noticed the following build warnings: [auto build test WARNING on brgl/gpio/for-next] [also build test WARNING on linus/master v6.19 next-20260209] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Bartosz-Golaszewski/gpio-swnode-restore-the-swnode-name-against-chip-label-matching/20260210-175012 base: https://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux.git gpio/for-next patch link: https://lore.kernel.org/r/20260210094806.38146-1-bartosz.golaszewski%40oss.qualcomm.com patch subject: [PATCH] gpio: swnode: restore the swnode-name-against-chip-label matching :::::: branch date: 8 hours ago :::::: commit date: 8 hours ago config: nios2-randconfig-r071-20260210 (https://download.01.org/0day-ci/archive/20260211/202602110128.BInRI9un-lkp@intel.com/config) compiler: nios2-linux-gcc (GCC) 8.5.0 smatch version: v0.5.0-8994-gd50c5a4c If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Reported-by: Dan Carpenter | Closes: https://lore.kernel.org/r/202602110128.BInRI9un-lkp@intel.com/ smatch warnings: drivers/gpio/gpiolib-swnode.c:62 swnode_get_gpio_device() error: we previously assumed 'gdev_node' could be null (see line 32) vim +/gdev_node +62 drivers/gpio/gpiolib-swnode.c e7f9ff5dc90c38 Dmitry Torokhov 2022-11-11 25 b7b56e64a345e7 Bartosz Golaszewski 2023-09-27 26 static struct gpio_device *swnode_get_gpio_device(struct fwnode_handle *fwnode) e7f9ff5dc90c38 Dmitry Torokhov 2022-11-11 27 { b7b56e64a345e7 Bartosz Golaszewski 2023-09-27 28 const struct software_node *gdev_node; b7b56e64a345e7 Bartosz Golaszewski 2023-09-27 29 struct gpio_device *gdev; e7f9ff5dc90c38 Dmitry Torokhov 2022-11-11 30 b7b56e64a345e7 Bartosz Golaszewski 2023-09-27 31 gdev_node = to_software_node(fwnode); 6774a66d0e103d Bartosz Golaszewski 2025-12-15 @32 if (!gdev_node) 216c1204757190 Bartosz Golaszewski 2025-11-20 33 goto fwnode_lookup; e7f9ff5dc90c38 Dmitry Torokhov 2022-11-11 34 9d50f95bc0d5df Charles Keepax 2024-04-16 35 /* 9d50f95bc0d5df Charles Keepax 2024-04-16 36 * Check for a special node that identifies undefined GPIOs, this is 9d50f95bc0d5df Charles Keepax 2024-04-16 37 * primarily used as a key for internal chip selects in SPI bindings. 9d50f95bc0d5df Charles Keepax 2024-04-16 38 */ 9d50f95bc0d5df Charles Keepax 2024-04-16 39 if (IS_ENABLED(CONFIG_GPIO_SWNODE_UNDEFINED) && 6774a66d0e103d Bartosz Golaszewski 2025-12-15 40 gdev_node == &swnode_gpio_undefined) 9d50f95bc0d5df Charles Keepax 2024-04-16 41 return ERR_PTR(-ENOENT); 9d50f95bc0d5df Charles Keepax 2024-04-16 42 216c1204757190 Bartosz Golaszewski 2025-11-20 43 fwnode_lookup: e5d527be7e6984 Bartosz Golaszewski 2025-11-03 44 gdev = gpio_device_find_by_fwnode(fwnode); 4a61b0b6de0480 Bartosz Golaszewski 2026-02-10 45 if (!gdev) 4a61b0b6de0480 Bartosz Golaszewski 2026-02-10 46 /* 4a61b0b6de0480 Bartosz Golaszewski 2026-02-10 47 * FIXME: We shouldn't need to compare the GPIO controller's 4a61b0b6de0480 Bartosz Golaszewski 2026-02-10 48 * label against the software node that is supposedly attached 4a61b0b6de0480 Bartosz Golaszewski 2026-02-10 49 * to it. However there are currently GPIO users that - knowing 4a61b0b6de0480 Bartosz Golaszewski 2026-02-10 50 * the expected label of the GPIO chip whose pins they want to 4a61b0b6de0480 Bartosz Golaszewski 2026-02-10 51 * control - set up dummy software nodes named after those GPIO 4a61b0b6de0480 Bartosz Golaszewski 2026-02-10 52 * controllers, which aren't actually attached to them. In this 4a61b0b6de0480 Bartosz Golaszewski 2026-02-10 53 * case gpio_device_find_by_fwnode() will fail as no device on 4a61b0b6de0480 Bartosz Golaszewski 2026-02-10 54 * the GPIO bus is actually associated with the fwnode we're 4a61b0b6de0480 Bartosz Golaszewski 2026-02-10 55 * looking for. 4a61b0b6de0480 Bartosz Golaszewski 2026-02-10 56 * 4a61b0b6de0480 Bartosz Golaszewski 2026-02-10 57 * As a fallback: continue checking the label if we have no 4a61b0b6de0480 Bartosz Golaszewski 2026-02-10 58 * match. However, the situation described above is an abuse 4a61b0b6de0480 Bartosz Golaszewski 2026-02-10 59 * of the software node API and should be phased out and the 4a61b0b6de0480 Bartosz Golaszewski 2026-02-10 60 * following line - eventually removed. 4a61b0b6de0480 Bartosz Golaszewski 2026-02-10 61 */ 4a61b0b6de0480 Bartosz Golaszewski 2026-02-10 @62 gdev = gpio_device_find_by_label(gdev_node->name); 4a61b0b6de0480 Bartosz Golaszewski 2026-02-10 63 b7b56e64a345e7 Bartosz Golaszewski 2023-09-27 64 return gdev ?: ERR_PTR(-EPROBE_DEFER); e7f9ff5dc90c38 Dmitry Torokhov 2022-11-11 65 } e7f9ff5dc90c38 Dmitry Torokhov 2022-11-11 66 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki