[PATCH v3 0/2] serial: 8250_pci: replace switch-case by formula

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

 



This is third generation of the patch series to reduce code size of the
8250_pci.c driver by using formula approach instead of switch-case. Previous
can be found here [1].

There is [2] a gist in Python which represents the algorithm.

The changes were tested on Intel Medfield, Tangier, and Braswell.

[1] 1426256053-16505-1-git-send-email-andriy.shevchenko@xxxxxxxxxxxxxxx
[2] https://gist.github.com/8b2a73aeca2874f4cc89.git

Changelog v3:
- better support low baud rates for BayTrail / Braswell

Changelog v2:
- completely rewritten...
- ...thus addressed comments by Peter and Heikki

Andy Shevchenko (2):
  serial: 8250_pci: replace switch-case by formula
  serial: 8250_pci: replace switch-case by formula for Intel MID

 drivers/tty/serial/8250/8250_pci.c | 118 ++++++++++++++-----------------------
 drivers/tty/serial/8250/Kconfig    |   1 +
 2 files changed, 44 insertions(+), 75 deletions(-)

-- 
2.1.4

--
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