8250_men_mcb: Make UART config auto configurable
authorRodríguez Barbarin, José Javier <JoseJavier.Rodriguez@duagon.com>
Wed, 5 Jul 2023 13:15:14 +0000 (13:15 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Jul 2023 18:21:26 +0000 (20:21 +0200)
commitc563831ba879480ea16afb56fb2f81a0a0eb17a6
tree4803f168ba2674096a13f9f1a67fce0a72a5d4dd
parent2554e6ba28a25f00cf1258d984a695e7ae391af2
8250_men_mcb: Make UART config auto configurable

The UART ports created by this driver were not usable out of
the box, so let the configuration be handled by the 8250 UART
subsystem. This makes the implementation simpler and the UART
port more usable.

The 8250 UART subsystem will take care of requesting the memory
resources, but the driver needs to first read the register where
the num ports is set, so a request of the resource is needed
before registering the UART port.

Co-developed-by: Jorge Sanjuan Garcia <jorge.sanjuangarcia@duagon.com>
Signed-off-by: Jorge Sanjuan Garcia <jorge.sanjuangarcia@duagon.com>
Signed-off-by: Javier Rodriguez <josejavier.rodriguez@duagon.com>
Link: https://lore.kernel.org/r/20230705131423.30552-4-josejavier.rodriguez@duagon.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_men_mcb.c