linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Revert "serial: 8250_mtk: Make sure to select the right FEATURE_SEL"
@ 2022-05-10 12:26 AngeloGioacchino Del Regno
  2022-05-10 12:45 ` Mark Brown
  0 siblings, 1 reply; 10+ messages in thread
From: AngeloGioacchino Del Regno @ 2022-05-10 12:26 UTC (permalink / raw)
  To: gregkh
  Cc: jirislaby, matthias.bgg, angelogioacchino.delregno, zhiyong.tao,
	colin.king, linux-serial, linux-arm-kernel, linux-mediatek,
	linux-kernel, wenst, broonie

It was found that some MediaTek SoCs are incompatible with this
change. Also, this register was mistakenly understood as it was
related to the 16550A register layout selection but, at least
on some IPs, if not all, it's related to something else unknown.

This reverts commit 6f81fdded0d024c7d4084d434764f30bca1cd6b1.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
---
 drivers/tty/serial/8250/8250_mtk.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/drivers/tty/serial/8250/8250_mtk.c b/drivers/tty/serial/8250/8250_mtk.c
index 21053db93ff1..54051ec7b499 100644
--- a/drivers/tty/serial/8250/8250_mtk.c
+++ b/drivers/tty/serial/8250/8250_mtk.c
@@ -54,9 +54,6 @@
 #define MTK_UART_TX_TRIGGER	1
 #define MTK_UART_RX_TRIGGER	MTK_UART_RX_SIZE
 
-#define MTK_UART_FEATURE_SEL	39	/* Feature Selection register */
-#define MTK_UART_FEAT_NEWRMAP	BIT(0)	/* Use new register map */
-
 #define MTK_UART_XON1		40	/* I/O: Xon character 1 */
 #define MTK_UART_XOFF1		42	/* I/O: Xoff character 1 */
 
@@ -575,10 +572,6 @@ static int mtk8250_probe(struct platform_device *pdev)
 		uart.dma = data->dma;
 #endif
 
-	/* Set AP UART new register map */
-	writel(MTK_UART_FEAT_NEWRMAP, uart.port.membase +
-	       (MTK_UART_FEATURE_SEL << uart.port.regshift));
-
 	/* Disable Rate Fix function */
 	writel(0x0, uart.port.membase +
 			(MTK_UART_RATE_FIX << uart.port.regshift));
-- 
2.35.1


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2022-05-23 13:25 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-10 12:26 [PATCH] Revert "serial: 8250_mtk: Make sure to select the right FEATURE_SEL" AngeloGioacchino Del Regno
2022-05-10 12:45 ` Mark Brown
2022-05-10 12:46   ` AngeloGioacchino Del Regno
2022-05-10 12:56     ` Mark Brown
2022-05-10 15:29       ` AngeloGioacchino Del Regno
2022-05-23 10:17         ` AngeloGioacchino Del Regno
2022-05-23 12:10           ` Greg KH
2022-05-23 12:13             ` AngeloGioacchino Del Regno
2022-05-23 12:32               ` Greg KH
2022-05-23 13:25                 ` AngeloGioacchino Del Regno

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).