Re: [PATCH v1 1/3] serial: 8250_exar: Move the Exar bits from 8250_port

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2018-07-17 at 11:12 +0300, Andy Shevchenko wrote:

Aaron, while addressing your comment I noticed that your patch
(c7e1b4059075) actually might bring a regression in some cases.

See below what I have as a patch in my WIP tree (https://bitbucket.org/a
ndy-shev/linux/branch/topic/uart/rpm)

I wouldn't go further with 8250_exar until I hear from you about this.
Some clarifications would be nice to have.

--- 8< --- 8< ---

>From 19e0b71fe8bd7b2562c05c993f0e60315f2a3205 Mon Sep 17 00:00:00 2001
From: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
Date: Tue, 17 Jul 2018 19:31:06 +0300
Subject: [PATCH] serial: 8250_exar: Revert "Relocate sleep wake-up
handling"

While benefits listed in the commit c7e1b4059075 sounds plausible, it
seems it breaks expansion board support.

Unfortunately the data sheet doesn't show what happens to interrupts for
the slave UARTs. However, the description of INT0-INT3 register is
clearly points to the fact that the register has covered only 8
channels, and it's unclear how the rest would behave.

By the way, pay attention that INT0-INT3 is actually 32-bit register and
ioread8() used in the mentioned patch is wrong, though might work,
by two reasons:
 - register is 32-bit and we need a corresponding I/O accessor,
 - readl() would be consistent with the rest of the code.

Considering above revert the commit c7e1b4059075.

Note, the sequential change would move IRQ handler to 8250_exar.c to fix
what is mentioned in Fixme comment.

--- 8< --- 8< ---


-- 
Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
Intel Finland Oy
--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux