serial:Remove the spam samsung serial messges
authora17671 <a17671@motorola.com>
Wed, 26 Sep 2018 09:05:30 +0000 (17:05 +0800)
committerxiest1 <xiest1@lenovo.com>
Tue, 5 Nov 2019 09:30:17 +0000 (17:30 +0800)
Samsung serial driver will generate spam kernel messages
If the rx pin got floated, disable the log for now

Change-Id: I58738083f67b6e72d8694613cfb9f1e55113b70c
Signed-off-by: a17671 <a17671@motorola.com>
Reviewed-on: https://gerrit.mot.com/1246579
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

drivers/tty/serial/samsung.c

index 7a4cbe16659fd07abd46e87612b427e4f922e425..d0e8fdd05a0c703fc0e51be33595e280018a38bb 100644 (file)
@@ -108,7 +108,7 @@ EXPORT_SYMBOL_GPL(s3c2410_serial_wake_peer);
 
 #define RTS_PINCTRL                    (1)
 #define DEFAULT_PINCTRL                (0)
-
+#if 0
 static void uart_sfr_dump(struct s3c24xx_uart_port *ourport)
 {
        struct uart_port *port = &ourport->port;
@@ -136,7 +136,7 @@ static void uart_sfr_dump(struct s3c24xx_uart_port *ourport)
                , readl(port->membase + S3C64XX_UINTM)
        );
 }
-
+#endif
 static void change_uart_gpio(int value, struct s3c24xx_uart_port *ourport)
 {
        int status = 0;
@@ -490,9 +490,9 @@ s3c24xx_serial_rx_chars(int irq, void *dev_id)
                if (unlikely(uerstat & S3C2410_UERSTAT_ANY)) {
                        dbg("rxerr: port ch=0x%02x, rxs=0x%08x\n",
                            ch, uerstat);
-
+#if 0
                        uart_sfr_dump(ourport);
-
+#endif
                        /* check for break */
                        if (uerstat & S3C2410_UERSTAT_BREAK) {
                                dbg("break!\n");