openbmc / obmc-console

OpenBMC host console infrastructure
Apache License 2.0
17 stars 25 forks source link

How commit my patch? #16

Open AlooGS opened 4 years ago

AlooGS commented 4 years ago

From 6f21f2dc57bb5b469e370946d998a6efce0c9c93 Mon Sep 17 00:00:00 2001 From: Ainux wangyao@lemote.com Date: Thu, 7 May 2020 14:57:08 +0800 Subject: [PATCH] console-server: Add sirq polarity support

Kernel upstream: commit 8d310c9107a2a3f19dc7bb54dd50f70c65ef5409

drivers/tty/serial/8250: Make Aspeed VUART SIRQ polarity configurable

Make the SIRQ polarity for Aspeed AST24xx/25xx VUART configurable via sysfs. This setting need to be changed on specific host platforms depending on the selected host interface (LPC / eSPI).

The setting is configurable via sysfs rather than device-tree to stay in line with other related configurable settings.

On AST2500 the VUART SIRQ polarity can be auto-configured by reading a bit from a configuration register, e.g. the LPC/eSPI interface configuration bit.

So we need add sirq polarity support.


console-server.c | 10 ++++++++++ 1 file changed, 10 insertions(+)

diff --git a/console-server.c b/console-server.c index d814dff..6e4925f 100644 --- a/console-server.c +++ b/console-server.c @@ -49,6 +49,7 @@ struct console { char tty_sysfs_devnode; char tty_dev; int tty_sirq;

mdmillerii commented 4 years ago

Please follow the instructions at openbmc/docs CONTRIBUTING.md. Please read the whole document for other considerations.