[PATCH] spi: imx: Implement set_speed

Marek Vasut marex at denx.de
Wed Feb 3 17:54:17 CET 2021


On 2/2/21 4:10 AM, Bin Meng wrote:
> On Thu, Jan 28, 2021 at 12:01 AM Marek Vasut <marex at denx.de> wrote:
>>
>> The set_speed() callback should configure the bus speed, make it so.
>>
>> Signed-off-by: Marek Vasut <marex at denx.de>
>> Cc: Jagan Teki <jagan at amarulasolutions.com>
>> Cc: Stefano Babic <sbabic at denx.de>
>> ---
>>   drivers/spi/mxc_spi.c | 5 ++++-
>>   1 file changed, 4 insertions(+), 1 deletion(-)
>>
>> diff --git a/drivers/spi/mxc_spi.c b/drivers/spi/mxc_spi.c
>> index 553a0315df5..47100d89aef 100644
>> --- a/drivers/spi/mxc_spi.c
>> +++ b/drivers/spi/mxc_spi.c
>> @@ -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_platdata(bus);
> 
> This is now renamed to dev_get_plat()

Fixed in V2, thanks.


More information about the U-Boot mailing list