diff options
author | Andrew Davis <[email protected]> | 2023-10-25 09:33:02 -0500 |
---|---|---|
committer | Vinod Koul <[email protected]> | 2023-11-16 16:57:50 +0530 |
commit | 0f40d5099cd6d828fd7de6227d3eabe86016724c (patch) | |
tree | 772d01939e060bd668fc73ed3f628f9127edd019 /lib/test-string_helpers.c | |
parent | b85ea95d086471afb4ad062012a4d73cd328fa86 (diff) |
phy: ti: gmii-sel: Fix register offset when parent is not a syscon node
When the node for this phy selector is a child node of a syscon node then the
property 'reg' is used as an offset into the parent regmap. When the node
is standalone and gets its own regmap this offset is pre-applied. So we need
to track which method was used to get the regmap and not apply the offset
in the standalone case.
Fixes: 1fdfa7cccd35 ("phy: ti: gmii-sel: Allow parent to not be syscon node")
Signed-off-by: Andrew Davis <[email protected]>
Reviewed-by: Roger Quadros <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions