Skip to content
Snippets Groups Projects
Forked from Reform / reform-boundary-uboot
Source project has a limited visibility.
  • Hannes Schmelzer's avatar
    9cddf70e
    spi: omap3: fix set_speed and set_mode dm callbacks · 9cddf70e
    Hannes Schmelzer authored
    
    commit 84807922
    ("spi: omap3: Skip set_mode, set_speed from claim") did break SPI
    support on my AM335x board.
    
    The named commit:
    
    - ignored the responsible arguments (speed, mode)
    The set speed/mode function must use the supplied function arguments to
    work properly. With this commit we take those arguments and transfer
    them to the priv-data.
    
    - used wrong udevice pointer for getting priv data
    the udevice-pointer within function argument is already the spi-bus
    device, so it is wrong looking here for some parent (ocp-bus in this
    case) and getting priv-pointer from there.
    
    Signed-off-by: default avatarHannes Schmelzer <oe5hpm@oevsv.at>
    Reviewed-by: default avatarJagan Teki <jagan@openedev.com>
    9cddf70e
    History
    spi: omap3: fix set_speed and set_mode dm callbacks
    Hannes Schmelzer authored
    
    commit 84807922
    ("spi: omap3: Skip set_mode, set_speed from claim") did break SPI
    support on my AM335x board.
    
    The named commit:
    
    - ignored the responsible arguments (speed, mode)
    The set speed/mode function must use the supplied function arguments to
    work properly. With this commit we take those arguments and transfer
    them to the priv-data.
    
    - used wrong udevice pointer for getting priv data
    the udevice-pointer within function argument is already the spi-bus
    device, so it is wrong looking here for some parent (ocp-bus in this
    case) and getting priv-pointer from there.
    
    Signed-off-by: default avatarHannes Schmelzer <oe5hpm@oevsv.at>
    Reviewed-by: default avatarJagan Teki <jagan@openedev.com>