reset: fix bulk API when DM_RESET is disabled
PATCH 1/1 reset: fix bulk API when DM_RESET is disabled
In the commit "reset: Add get/assert/deassert/release for bulk of reset signals" the disabled reset_release_bulk() and reset_get_bulk() used the wrong struct clk_bulk instead of struct reset_ctl_bulk.
--- include/reset.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
include/reset.h +3 -2
@@ -243,7 +243,8 @@ static inline int reset_get_by_index(struct udevice *dev, int index,return -ENOTSUPP ; } -static inline int reset_get_bulk (struct udevice *dev,struct clk_bulk *bulk) +static inline int reset_get_bulk (struct udevice *dev, +struct reset_ctl_bulk *bulk) {return -ENOTSUPP ; }
@@ -284,7 +285,7 @@ static inline int reset_release_all(struct reset_ctl *reset_ctl, int count)return 0 ; } -static inline int reset_release_bulk (struct clk_bulk *bulk) +static inline int reset_release_bulk (struct reset_ctl_bulk *bulk) {return 0 ; }
Signature · 1 line
2.7.4
PATCH 1/1 reset: fix bulk API when DM_RESET is disabled
Quoted 10 lines · Neil Armstrong
In the commit "reset: Add get/assert/deassert/release for bulk of reset signals" the disabled
reset_release_bulk()andreset_get_bulk()used the wrong structclk_bulkinstead of structreset_ctl_bulk.Fixes 0c28233903b5 ("reset: Add get/assert/deassert/release for bulk of reset signals")Reported-by Jean-Jacques Hiblot <[email protected]>Signed-off-by Neil Armstrong <[email protected]>--- include/reset.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
We don't have build coverage for this at the moment I suppose. It would be a bit of pain to add that with sandbox, although I wonder if it could be done with some horrible #define hackery in a C file that includes this header?
- Simon
PATCH 1/1 reset: fix bulk API when DM_RESET is disabled
Quoted 12 lines · Simon Glass
Quoted 10 lines · Neil Armstrong
In the commit "reset: Add get/assert/deassert/release for bulk of reset signals" the disabled
reset_release_bulk()andreset_get_bulk()used the wrong structclk_bulkinstead of structreset_ctl_bulk.Fixes 0c28233903b5 ("reset: Add get/assert/deassert/release for bulk of reset signals")Reported-by Jean-Jacques Hiblot <[email protected]>Signed-off-by Neil Armstrong <[email protected]>--- include/reset.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
Quoted 9 lines
Reviewed-by Simon Glass <[email protected]>We don't have build coverage for this at the moment I suppose. It would be a bit of pain to add that with sandbox, although I wonder if it could be done with some horrible #define hackery in a C file that includes this header?
- Simon
It could but it will be horrible indeed.
Neil