8250: add AgeStar AS-PRS2-009
PATCH 1/2 8250: add AgeStar AS-PRS2-009
From: Alan Cox <[email protected]>
Signed-off-by Alan Cox <[email protected]>
Resolves-bug: https://bugzilla.kernel.org/show_bug.cgi?id=22502
---
drivers/tty/serial/8250/8250_pci.c | 8 ++++++++ 1 file changed, 8 insertions(+)
drivers/tty/serial/8250/8250_pci.c +8 -0
@@ -1194,6 +1194,8 @@ pci_xr17c154_setup(struct serial_private *priv,#define PCIE_DEVICE_ID_NEO_2_OX_IBM 0x00F6#define PCI_DEVICE_ID_PLX_CRONYX_OMEGA 0xc001#define PCI_DEVICE_ID_INTEL_PATSBURG_KT 0x1d3d +#define PCI_VENDOR_ID_AGESTAR 0x5372 +#define PCI_DEVICE_ID_AGESTAR_9375 0x6872#define PCI_VENDOR_ID_ASIX 0x9710/* Unknown vendors/cards - this should not be in linux/pci_ids.h */
@@ -4189,6 +4191,12 @@ static struct pci_device_id serial_pci_tbl[] = { pbn_omegapci },/* +* AgeStar as-prs2-009 +*/ + {PCI_VENDOR_ID_AGESTAR ,PCI_DEVICE_ID_AGESTAR_9375 , +PCI_ANY_ID ,PCI_ANY_ID , + 0, 0, pbn_b0_bt_2_115200 }, +/* * These entries match devices with class COMMUNICATION_SERIAL, * COMMUNICATION_MODEM or COMMUNICATION_MULTISERIAL */
PATCH 2/2 Remove BUG_ON from n_tty_read()
From: Stanislav Kozina <[email protected]>
Change the BUG_ON to WARN_ON and return in case of tty->read_buf==NULL. We want to track a couple of long standing reports of this but at the same time we can avoid killing the box.
Signed-off-by Stanislav Kozina <[email protected]>
Signed-off-by Alan Cox <[email protected]>
Cc Horses <[email protected]>
---
drivers/tty/n_tty.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/tty/n_tty.c +2 -1
@@ -1734,7 +1734,8 @@ static ssize_t n_tty_read(struct tty_struct *tty, struct file *file, do_it_again: -BUG_ON (!tty->read_buf); +if (WARN_ON (!tty->read_buf)) +return -EAGAIN ; c =job_control (tty, file);if (c <0 )
Greg KH
maintainerRe: [PATCH 2/2] Remove BUG_ON from n_tty_read()
Quoted 8 lines · Alan Cox
From: Stanislav Kozina <[email protected]>
Change the
BUG_ONtoWARN_ONand return in case of tty->read_buf==NULL. We want to track a couple of long standing reports of this but at the same time we can avoid killing the box.Signed-off-by Stanislav Kozina <[email protected]>Signed-off-by Alan Cox <[email protected]>Cc Horses <[email protected]>
Heh, "Horses"? That's a first...