• Peter Hurley's avatar
    serial: 8250: Only get RSA resource when required · 3b81c26c
    Peter Hurley authored
    The probe for Remote Supervisor Adapter is limited to port i/o
    addresses which match one of the probe_rsa[] module parameter
    addresses. Limit RSA resource acquire to matching i/o ports.
    
    The result is a saner probe policy: only perform optional probes
    when specified rather than by default.
    
    NB: It is possible for userspace to set the port type == PORT_RSA
    with ioctl(TIOCSSERIAL) and then autoconfig with ioctl(TIOCSERCONFIG),
    which if it fails, may leave the port type set to PORT_RSA. Since
    this may have previously resulted in a working RSA port, this behavior
    is preserved.
    Signed-off-by: default avatarPeter Hurley <peter@hurleysoftware.com>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    3b81c26c
8250_core.c 99.5 KB