[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1490995780.3177.245.camel@kernel.crashing.org>
Date: Sat, 01 Apr 2017 08:29:40 +1100
From: Benjamin Herrenschmidt <benh@...nel.crashing.org>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Joel Stanley <joel@....id.au>
Cc: Jiri Slaby <jslaby@...e.com>, Mark Rutland <mark.rutland@....com>,
Rob Herring <robh+dt@...nel.org>, Jeremy Kerr <jk@...abs.org>,
linux-serial@...r.kernel.org, linux-kernel@...r.kernel.org,
openbmc@...ts.ozlabs.org, devicetree@...r.kernel.org
Subject: Re: [PATCH 2/2] drivers/serial: Add driver for Aspeed virtual UART
On Fri, 2017-03-31 at 15:31 +0200, Greg Kroah-Hartman wrote:
> DEVICE_ATTR_RW()?
>
> And why random sysfs files for a uart? Where have you documented
> these?
We should stick a file somewhere in Documentation I suppose or
at least put that in a comment blob at the head of the file.
FYI:
The VUART is basically two UART 'front ends' connected by their FIFO
(no actual serial line in between). One is on the BMC side (management
controller) and one is on the host CPU side.
It allows the BMC to provide to the host a "UART" that pipes into
the BMC itself and can then be turned by the BMC into a network console
of some sort for example.
This driver is for the BMC side. The sysfs files allow the BMC
userspace which owns the system configuration policy, to specify
at what IO port and interrupt number the host side will appear
to the host on the Host <-> BMC LPC bus. It could be different on a
different system (though most of them use 3f8/4).
Cheers,
Ben.
Powered by blists - more mailing lists