Skip to content
Commit 159bc8c6 authored by Daniel Mack's avatar Daniel Mack Committed by Greg Kroah-Hartman
Browse files

sc16is7xx: Set iobase to device index

[ Upstream commit 5da6b1c0

 ]

Some derivates of sc16is7xx devices expose more than one tty device to
userspace. If multiple such devices exist in a system, userspace
currently has no clean way to infer which tty maps to which physical
line.

Set the .iobase value to the relative index within the device to allow
infering the order through sysfs.

Signed-off-by: default avatarDaniel Mack <daniel@zonque.org>
Link: https://lore.kernel.org/r/20200901120329.4176302-1-daniel@zonque.org
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Stable-dep-of: 2861ed4d

 ("serial: sc16is7xx: fix broken port 0 uart init")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 355ac795
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment