Commit 779ae223 authored by Jon Hunter's avatar Jon Hunter Committed by Bartosz Golaszewski
Browse files

gpiolib: Make deferral warnings debug messages



With the recent addition of the shared GPIO support, warning messages
such as the following are being observed ...

 reg-fixed-voltage regulator-vdd-3v3-pcie: cannot find GPIO chip
  gpiolib_shared.proxy.6, deferring

These are seen even with GPIO_SHARED_PROXY=y.

Given that the GPIOs are successfully found a bit later during boot and
the code is intentionally returning -EPROBE_DEFER when they are not
found, downgrade these messages to debug prints to avoid unnecessary
warnings being observed.

Note that although the 'cannot find GPIO line' warning has not been
observed in this case, it seems reasonable to make this print a debug
print for consistency too.

Signed-off-by: default avatarJon Hunter <jonathanh@nvidia.com>
Link: https://patch.msgid.link/20260401133441.47641-1-jonathanh@nvidia.com


Signed-off-by: default avatarBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
parent 802c51a8
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -4618,7 +4618,7 @@ static struct gpio_desc *gpio_desc_table_match(struct device *dev, const char *c
				return desc;
			}

			dev_warn(dev, "cannot find GPIO line %s, deferring\n",
			dev_dbg(dev, "cannot find GPIO line %s, deferring\n",
				p->key);
			return ERR_PTR(-EPROBE_DEFER);
		}
@@ -4633,7 +4633,7 @@ static struct gpio_desc *gpio_desc_table_match(struct device *dev, const char *c
			 * consumer be probed again or let the Deferred
			 * Probe infrastructure handle the error.
			 */
			dev_warn(dev, "cannot find GPIO chip %s, deferring\n",
			dev_dbg(dev, "cannot find GPIO chip %s, deferring\n",
				p->key);
			return ERR_PTR(-EPROBE_DEFER);
		}