From: Maxime Ripard <hidden> Date: 2017-08-25 09:49:52
The reset hook was left implemented. Provide a dumb implementation so that
client drivers can depend on it.
Signed-off-by: Maxime Ripard <redacted>
---
drivers/clk/sunxi-ng/ccu_reset.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
From: Maxime Ripard <hidden> Date: 2017-08-25 09:49:53
We might be into some troubles if the bootloader misconfigured the MMC
controller.
We currently only de-assert the reset line at probe time, which means that
if the device was already out of reset, we're going to keep whatever state
was set already.
Switch to a reset instead of the deassert to have a device in a pristine
state when we start operating.
Signed-off-by: Maxime Ripard <redacted>
---
drivers/mmc/host/sunxi-mmc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
On 25 August 2017 at 11:49, Maxime Ripard
[off-list ref] wrote:
We might be into some troubles if the bootloader misconfigured the MMC
controller.
We currently only de-assert the reset line at probe time, which means that
if the device was already out of reset, we're going to keep whatever state
was set already.
Switch to a reset instead of the deassert to have a device in a pristine
state when we start operating.
Signed-off-by: Maxime Ripard <redacted>
The reset hook was left implemented. Provide a dumb implementation so
that
client drivers can depend on it.
I think some clients should also convert to use this.
For example:
- The TCON driver in sun4i-drm. (It now uses reset_control_status, but
this is also not implemented in CCU.)
- The EPHY in dwmac-sun8i driver. (It uses explicit assert then
deassert)
P.S. maybe the status hook should also be implemented?
On Sun, Aug 27, 2017 at 9:01 PM, [off-list ref] wrote:
在 2017-08-25 17:49,Maxime Ripard 写道:
quoted
The reset hook was left implemented. Provide a dumb implementation so that
client drivers can depend on it.
I think some clients should also convert to use this.
For example:
- The TCON driver in sun4i-drm. (It now uses reset_control_status, but
this is also not implemented in CCU.)
I have patches for both sides of this.
- The EPHY in dwmac-sun8i driver. (It uses explicit assert then deassert)
P.S. maybe the status hook should also be implemented?