diff options
author | Vamshi Gajjela <vamshigajjela@google.com> | 2023-11-26 21:34:20 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-11-28 19:24:14 +0000 |
commit | d804987153e7bedf503f8e4ba649afe52cfd7f6d (patch) | |
tree | 13ac419317b50dd92e7159797b9f9caaca741585 /include/linux/ascii85.h | |
parent | 068ab2135b3fe0d8957f099a5b860117457825ec (diff) | |
download | linux-d804987153e7bedf503f8e4ba649afe52cfd7f6d.tar.gz linux-d804987153e7bedf503f8e4ba649afe52cfd7f6d.tar.bz2 linux-d804987153e7bedf503f8e4ba649afe52cfd7f6d.zip |
serial: 8250_dw: Decouple DLF register check from UCV
Designware UART has an optional feature to enable Fractional Baud Rate
Divisor (DLF) through the FRACTIONAL_BAUD_DIVISOR_EN configuration
parameter, and it is not dependent on ADDITIONAL_FEATURES.
dw8250_setup_port() checks DLF to determine dlf_size only when UART
Component Version (UCV) is non-zero. As mentioned above DLF and UCV are
independent features. Move the logic corresponding to DLF size
calculation ahead of the UCV check to prevent early return. Otherwise,
dlf_size will be zero and driver will not be able to use the
controller's fractional baud rate divisor (DLF) feature.
Signed-off-by: Vamshi Gajjela <vamshigajjela@google.com>
Link: https://lore.kernel.org/r/20231126160420.2442330-1-vamshigajjela@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/ascii85.h')
0 files changed, 0 insertions, 0 deletions