spi: imx: Implement set_speed
Subsystems (2)
PATCH v2 1/1 spi: imx: Implement set_speed
The set_speed() callback should configure the bus speed, make it so.
Signed-off-by Marek Vasut <[email protected]>
Cc Jagan Teki <[email protected]>
Cc Stefano Babic <[email protected]>
---
V2: Rename dev_get_platdata() to dev_get_plat()
--- drivers/spi/mxc_spi.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/spi/mxc_spi.c +4 -1
@@ -661,7 +661,10 @@ static int mxc_spi_release_bus(struct udevice *dev)static int mxc_spi_set_speed (struct udevice *bus,uint speed) { -/* Nothing to do */ +struct mxc_spi_slave *mxcs =dev_get_plat (bus); + + mxcs->max_hz = speed; +return 0 ; }
Signature · 1 line
2.29.2
PATCH v2 1/1 spi: imx: Implement set_speed
Quoted 12 lines · Marek Vasut
The
set_speed()callback should configure the bus speed, make it so.Signed-off-by Marek Vasut <[email protected]>Cc Jagan Teki <[email protected]>Cc Stefano Babic <[email protected]>---
V2: Renamedev_get_platdata()todev_get_plat()--- drivers/spi/mxc_spi.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
Reviewed-by Bin Meng <[email protected]>
PATCH v2 1/1 spi: imx: Implement set_speed
Quoted 14 lines · Bin Meng
Quoted 12 lines · Marek Vasut
The
set_speed()callback should configure the bus speed, make it so.Signed-off-by Marek Vasut <[email protected]>Cc Jagan Teki <[email protected]>Cc Stefano Babic <[email protected]>---
V2: Renamedev_get_platdata()todev_get_plat()--- drivers/spi/mxc_spi.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
Quoted 1 line
Reviewed-by Bin Meng <[email protected]>
Jagan, any news on this patch ?
PATCH v2 1/1 spi: imx: Implement set_speed
In reply to Marek VasutQuoted 9 lines · Marek Vasut
The
set_speed()callback should configure the bus speed, make it so.Signed-off-by Marek Vasut <[email protected]>Cc Jagan Teki <[email protected]>Cc Stefano Babic <[email protected]>---
V2: Renamedev_get_platdata()todev_get_plat()
---
Applied to u-boot-spi/master