mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-30 08:02:30 +00:00
54da3e381c
Previously this driver's use of devm_ioremap_resource() led to duplicated calls to __release_region() when unbinding it (one from serial8250_release_std_resource() and one from devres_release_all()), the second of which resulted in a warning message: # echo 1e787000.serial > /sys/bus/platform/drivers/aspeed-vuart/unbind [33091.774200] Trying to free nonexistent resource <000000001e787000-000000001e78703f> With this change the driver uses the generic serial8250 code's UPF_IOREMAP to take care of the register mapping automatically instead of doing its own devm_ioremap_resource(), thus avoiding the duplicate __release_region() on unbind. In doing this we eliminate vuart->regs, since it merely duplicates vuart->port->port.membase, which we now use for our I/O accesses. Reported-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Zev Weiss <zev@bewilderbeest.net> Link: https://lore.kernel.org/r/20210510014231.647-4-zev@bewilderbeest.net Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
||
---|---|---|
.. | ||
8250.h | ||
8250_accent.c | ||
8250_acorn.c | ||
8250_aspeed_vuart.c | ||
8250_bcm2835aux.c | ||
8250_bcm7271.c | ||
8250_boca.c | ||
8250_core.c | ||
8250_dma.c | ||
8250_dw.c | ||
8250_dwlib.c | ||
8250_dwlib.h | ||
8250_early.c | ||
8250_em.c | ||
8250_exar.c | ||
8250_exar_st16c554.c | ||
8250_fintek.c | ||
8250_fourport.c | ||
8250_fsl.c | ||
8250_gsc.c | ||
8250_hp300.c | ||
8250_hub6.c | ||
8250_ingenic.c | ||
8250_ioc3.c | ||
8250_lpc18xx.c | ||
8250_lpss.c | ||
8250_men_mcb.c | ||
8250_mid.c | ||
8250_mtk.c | ||
8250_of.c | ||
8250_omap.c | ||
8250_pci.c | ||
8250_pnp.c | ||
8250_port.c | ||
8250_pxa.c | ||
8250_tegra.c | ||
8250_uniphier.c | ||
Kconfig | ||
Makefile | ||
serial_cs.c |