+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.