Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2727898pxj; Mon, 31 May 2021 09:14:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwNcMtSXuScX5zGRZ/s8zTIs8nS8ohn/ycbjUdwuCMDyurbjIV+zlPN8R6R7s0CkP5R4Ldh X-Received: by 2002:a5e:8613:: with SMTP id z19mr2250982ioj.33.1622477644438; Mon, 31 May 2021 09:14:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622477644; cv=none; d=google.com; s=arc-20160816; b=KiVjF2xWizdLqGHyi1dxJXS6MBqTpZGME/xrzDN8o/eqOShYqgo5gSk6ff1UQcKYcZ VIMzo9Um7S2jRfMgVK5gVO5DD87gMlbdg1+ZJQstvaN812qNaCngW4zmFPNlE9CjKZQv Ug9woN45ZccXSOG9FDSbPb7PeouQkgL0kyv9BjUYx5mEInkrtJdWr2bYr/0NtBOdmCsG Stj4S5Z9MdNz5NRmqrM9ARLv3oHP5G/5qAHp9Zece8bD3HYbLb1sFsCAY7ET6h1t/JtU gKrmdesNNMyJLlKlKrs63+dr2CKPfcfg0WGm4az2DVeF7fz8IfQlceYyhshRswKlfuv8 IXwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=IhtzCSt34hW8CvJ8wAeOrsUTB2LCfx2f6FFBwA6K/X8=; b=CgennEexzND45lhzhYOFVNyWUmNN52mJ9hK/guEGZaW/jZIzGWk0BjA2NYZFZpVjBD wbG9ay9KahcnNnWFMtvq6JflCueGehkiDBossEZks++dSbn9kBrT7jUhIaglHEL87p51 942u3Pql0bbsDZaKjii1zEmm9OJDPiDKfdwJ7ztqnyqbhVNonr7oVC9w+E4FFdX6TpNA 6faJLVpZx/7QlXwr1oc2OCpwbram3D2QDQafZGSpYTc0lwtGKGk19FQs34v8t0uF5Wh3 hrY9CU1gv97dgOG1NWe8Dd9wcSXuBdZP3Aq8DPIGFZu+k/DsiAwaiqdJJh8VxigZY2Kv vTVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=sMNBjhF6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 4si13610279iln.143.2021.05.31.09.13.50; Mon, 31 May 2021 09:14:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=sMNBjhF6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234667AbhEaQO5 (ORCPT + 99 others); Mon, 31 May 2021 12:14:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:36376 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234139AbhEaOja (ORCPT ); Mon, 31 May 2021 10:39:30 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2E30761C5A; Mon, 31 May 2021 13:52:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622469150; bh=d2nawnXXADBk0RGIBscywxEwhRc6o5WLal3NtqIXGhQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sMNBjhF6WKuBjiHJv4/ZI1YF83lIWxitZ/7DM77QvMnQyPPYYSqb1t9iq5BlbjjiW RVoIIXcN6Ao8PTFFlzgJG3lw3Zz+iVHKAzGC46EddX4EEWdjoW2SxPc4I86fGLGAk2 tbHVvVK3Ng3mNleModYUihsIMk2ivXU3Q12QCTaU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jerry Hoemann , Randy Wright Subject: [PATCH 5.12 087/296] serial: 8250_pci: Add support for new HPE serial device Date: Mon, 31 May 2021 15:12:22 +0200 Message-Id: <20210531130706.813206100@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531130703.762129381@linuxfoundation.org> References: <20210531130703.762129381@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Randy Wright commit e0e24208792080135248f23fdf6d51aa2e04df05 upstream. Add support for new HPE serial device. It is MSI enabled, but otherwise similar to legacy HP server serial devices. Tested-by: Jerry Hoemann Signed-off-by: Randy Wright Cc: stable Link: https://lore.kernel.org/r/1621009614-28836-1-git-send-email-rwright@hpe.com Signed-off-by: Greg Kroah-Hartman --- drivers/tty/serial/8250/8250_pci.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) --- a/drivers/tty/serial/8250/8250_pci.c +++ b/drivers/tty/serial/8250/8250_pci.c @@ -56,6 +56,8 @@ struct serial_private { int line[]; }; +#define PCI_DEVICE_ID_HPE_PCI_SERIAL 0x37e + static const struct pci_device_id pci_use_msi[] = { { PCI_DEVICE_SUB(PCI_VENDOR_ID_NETMOS, PCI_DEVICE_ID_NETMOS_9900, 0xA000, 0x1000) }, @@ -63,6 +65,8 @@ static const struct pci_device_id pci_us 0xA000, 0x1000) }, { PCI_DEVICE_SUB(PCI_VENDOR_ID_NETMOS, PCI_DEVICE_ID_NETMOS_9922, 0xA000, 0x1000) }, + { PCI_DEVICE_SUB(PCI_VENDOR_ID_HP_3PAR, PCI_DEVICE_ID_HPE_PCI_SERIAL, + PCI_ANY_ID, PCI_ANY_ID) }, { } }; @@ -1998,6 +2002,16 @@ static struct pci_serial_quirk pci_seria .setup = pci_hp_diva_setup, }, /* + * HPE PCI serial device + */ + { + .vendor = PCI_VENDOR_ID_HP_3PAR, + .device = PCI_DEVICE_ID_HPE_PCI_SERIAL, + .subvendor = PCI_ANY_ID, + .subdevice = PCI_ANY_ID, + .setup = pci_hp_diva_setup, + }, + /* * Intel */ { @@ -4973,6 +4987,10 @@ static const struct pci_device_id serial { PCI_VENDOR_ID_HP, PCI_DEVICE_ID_HP_DIVA_AUX, PCI_ANY_ID, PCI_ANY_ID, 0, 0, pbn_b2_1_115200 }, + /* HPE PCI serial device */ + { PCI_VENDOR_ID_HP_3PAR, PCI_DEVICE_ID_HPE_PCI_SERIAL, + PCI_ANY_ID, PCI_ANY_ID, 0, 0, + pbn_b1_1_115200 }, { PCI_VENDOR_ID_DCI, PCI_DEVICE_ID_DCI_PCCOM2, PCI_ANY_ID, PCI_ANY_ID, 0, 0,