diff options
author | Hugo Villeneuve <hvilleneuve@dimonoff.com> | 2023-12-21 18:18:10 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-02-23 08:12:39 +0100 |
commit | 5733959d6770324020e30dd9313cbeac0aec07ef (patch) | |
tree | c4615355b0928144d97bdfa821a7941259558142 /include/linux | |
parent | fe79b37c6a59c623c9e64e53d5d9a0fffcfe977f (diff) | |
download | linux-stable-5733959d6770324020e30dd9313cbeac0aec07ef.tar.gz linux-stable-5733959d6770324020e30dd9313cbeac0aec07ef.tar.bz2 linux-stable-5733959d6770324020e30dd9313cbeac0aec07ef.zip |
serial: sc16is7xx: set safe default SPI clock frequency
[ Upstream commit 3ef79cd1412236d884ab0c46b4d1921380807b48 ]
15 MHz is supported only by 76x variants.
If the SPI clock frequency is not specified, use a safe default clock value
of 4 MHz that is supported by all variants.
Also use HZ_PER_MHZ macro to improve readability.
Fixes: 2c837a8a8f9f ("sc16is7xx: spi interface is added")
Cc: <stable@vger.kernel.org>
Signed-off-by: Hugo Villeneuve <hvilleneuve@dimonoff.com>
Link: https://lore.kernel.org/r/20231221231823.2327894-4-hugo@hugovil.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions