• Emil Renner Berthing's avatar
    spi: rockchip: set min/max speed · 420b82f8
    Emil Renner Berthing authored
    The driver previously checked each transfer if the
    requested speed was higher than possible with the
    current spi clock rate and raised the clock rate
    accordingly.
    
    However, there is no check to see if the spi clock
    was actually set that high and no way to dynamically
    lower the spi clock rate again.
    
    So it seems any potiential users of this functionality
    are better off just setting the spi clock rate at init
    using the assigned-clock-rates devicetree property.
    
    Removing this dynamic spi clock rate raising allows
    us let the spi framework handle min/max speeds
    for us.
    Signed-off-by: default avatarEmil Renner Berthing <kernel@esmil.dk>
    Tested-by: default avatarHeiko Stuebner <heiko@sntech.de>
    Signed-off-by: default avatarMark Brown <broonie@kernel.org>
    420b82f8
spi-rockchip.c 20.3 KB