diff options
author | Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com> | 2019-03-28 21:11:48 +0100 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2019-04-25 00:00:49 +0200 |
commit | 36821b3f55adc26c593520d8c207eea36c5c264a (patch) | |
tree | 72be8704e3eb332c48903f1cd6f191befaba5400 /drivers/ddr/marvell/axp/ddr3_spd.c | |
parent | bbecfd4cf2a8f7baeef6037303b8b4380a71aa12 (diff) |
i2c: designware: fix reset handling on socfpga gen5
Using this driver on socfpga gen5 with DM_I2C enabled leads to a data abort
as the 'i2c' reset property cannot be found (the gen5 dtsi does not provide
reset-names).
The actual bug was to check 'if (&priv->reset_ctl)', which is never false.
While at it, convert the driver to use 'reset_get_bulk' instead of looking
at a specific named reset and also make it release the reset on driver
remove before starting the OS.
Fixes: 622597dee4f6 ("i2c: designware: add reset ctrl to driver")
Signed-off-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'drivers/ddr/marvell/axp/ddr3_spd.c')
0 files changed, 0 insertions, 0 deletions