Hi, Am 27.02.24 um 17:41 schrieb Andy Shevchenko:
On Sun, Feb 04, 2024 at 11:08:51PM +0100, Stefan Wahren wrote: ...+ if (gpiod_cansleep(gpwm->gpio)) { + return dev_err_probe(dev, -EINVAL, + "sleeping GPIO %d not supported\n", + desc_to_gpio(gpwm->gpio));Do not use plain GPIO numbers.
Uwe already complained this, but i didn't receive a reply on the question how do we provide a useful log message (reference to the affected GPIO) here? AFAIK the GPIO names are optional. Regards