]> git.dujemihanovic.xyz Git - u-boot.git/commit
spi: kirkwood: prevent configuring speed exceeding max controller freq
authorMarcin Wojtas <mw@semihalf.com>
Fri, 30 Apr 2021 13:26:30 +0000 (15:26 +0200)
committerStefan Roese <sr@denx.de>
Sun, 16 May 2021 04:48:45 +0000 (06:48 +0200)
commit562f8d5b36e4d35365aa9a545e4d11b5c2557ec1
treebc07999e224f8a663a7ed0159dd4ec095a822172
parent037818c544c44b31dd532409e3abc3747e24a60d
spi: kirkwood: prevent configuring speed exceeding max controller freq

This patch adds a limitation in the kirkwood_spi driver
set_speed hook, which prevents setting too high transfer
speed.

Signed-off-by: Marcin Wojtas <mw@semihalf.com>
Reviewed-by: Kostya Porotchkin <kostap@marvell.com>
Tested-by: Kostya Porotchkin <kostap@marvell.com>
Signed-off-by: Stefan Roese <sr@denx.de>
drivers/spi/kirkwood_spi.c