This is a version of reset_get_bulk() that does not treat no resets
definition as an error.
Signed-off-by: Nikita Yushchenko
---
drivers/reset/reset-uclass.c | 10 ++
include/reset.h | 21 +
2 files changed, 31 insertions(+)
diff --git a/drivers/reset/re
On Wed, Feb 16, 2022 at 1:24 AM Nikita Yushchenko
wrote:
>
> This is a version of reset_get_bulk() that does not treat no resets
> definition as an error.
>
> Signed-off-by: Nikita Yushchenko
> ---
> drivers/reset/reset-uclass.c | 10 ++
> include/reset.h | 21 ++
+int reset_get_bulk_optional(struct udevice *dev, struct reset_ctl_bulk *bulk)
+{
+ int ret = reset_get_bulk(dev, bulk);
+
+ if (ret == -ENODEV)
Are you sure about this return type? I think it would be -ENODATA if
I'm not wrong.
It shall be -ENOENT on master. Oops.
3 matches
Mail list logo