Skip to content

Commit 779ae22

Browse files
jonhunterBartosz Golaszewski
authored andcommitted
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: Jon Hunter <jonathanh@nvidia.com> Link: https://patch.msgid.link/20260401133441.47641-1-jonathanh@nvidia.com Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
1 parent 802c51a commit 779ae22

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

drivers/gpio/gpiolib.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4618,8 +4618,8 @@ static struct gpio_desc *gpio_desc_table_match(struct device *dev, const char *c
46184618
return desc;
46194619
}
46204620

4621-
dev_warn(dev, "cannot find GPIO line %s, deferring\n",
4622-
p->key);
4621+
dev_dbg(dev, "cannot find GPIO line %s, deferring\n",
4622+
p->key);
46234623
return ERR_PTR(-EPROBE_DEFER);
46244624
}
46254625

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

0 commit comments

Comments
 (0)