diff options
| author | Stefan Wahren <[email protected]> | 2024-09-05 11:15:37 +0000 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2024-09-05 11:55:59 +0000 |
| commit | ff949d981c775332be94be70397ee1df20bc68e5 (patch) | |
| tree | 422dbf55af089fa0366c92e9f035952aab4c04a8 /drivers/net/ethernet/intel/igc/igc_main.c | |
| parent | spi: spidev: Add missing spi_device_id for jg10309-01 (diff) | |
| download | kernel-ff949d981c775332be94be70397ee1df20bc68e5.tar.gz kernel-ff949d981c775332be94be70397ee1df20bc68e5.zip | |
spi: spi-fsl-lpspi: Fix off-by-one in prescale max
The commit 783bf5d09f86 ("spi: spi-fsl-lpspi: limit PRESCALE bit in
TCR register") doesn't implement the prescaler maximum as intended.
The maximum allowed value for i.MX93 should be 1 and for i.MX7ULP
it should be 7. So this needs also a adjustment of the comparison
in the scldiv calculation.
Fixes: 783bf5d09f86 ("spi: spi-fsl-lpspi: limit PRESCALE bit in TCR register")
Signed-off-by: Stefan Wahren <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/igc/igc_main.c')
0 files changed, 0 insertions, 0 deletions
