Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2701586pxj; Mon, 31 May 2021 08:35:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwq8/8NYVY4X6WcihV+2NaBBCVYwtIETbg+VJN/BunUMoiVjvLJ8bsxKrlN6cQJ6wT3lC0A X-Received: by 2002:a17:906:1806:: with SMTP id v6mr23262439eje.454.1622475342388; Mon, 31 May 2021 08:35:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622475342; cv=none; d=google.com; s=arc-20160816; b=o51VxbWm9WZxHQT9RzquyDEGSycYiVi2Uhp+nzlOij0ILsA9g+bB10AHisVdD+sQ5B XPFepECQFth2EPj0op5OChcL0DfJFA40cGalkemrBpno9t2IN8xJjvrKwb9t9EoKVUHn S5REkNJVD7UsQuTLk7AufdrFXmwlkS4CxYUqVmCGTf95WvuJ2mPSu3zLVYXIBZn3m6fZ /cTXNv+RE7vsgNsBfxDaLTKSjnZ7tM8xQG7KR7DNHRFQhoElGg97j3Ikvbo1nHIa7VxB 16BKCZIUTb9fIek/jgQaKyJA3oBPsCTu8bKZp7ESqvzvssQp1KGJYc3ElEiN9+JCfx5a Fqaw== 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=qlRZZLMLBwa8c9DestRfDvVNFKq9TxJzmMLWGf7bniA=; b=LwqKj5+/udEWfY+UWSeXSKFSalG2B8GAuHewJeCBMAPbYmASR0y+zn3EHdZRPtiUsX NZT60pXQa0BrUsVOavxi3JvUR+e0BlGSqF5HXTLx61FXJs1hxIXTnKuAsLsy9u0jO5T7 MRtx2BjWwDGbL3BSjO+sZaX5Wy7DiYACOPBW/WQSlASfgejoXkONzdc5lI70WUwK5cRS rcMof43HFVF5loFAjGXPBzxE/Wiucyol2kNb9xItWGjmkipl4NWX9ol26OhO0HZ2o3f2 UYfLkDMZVUw/m9YwAGWOUZRjN32SQDVOYyeJqFXK5/bqfyIOpIywUOBh6ums8mvr5Su1 z1yQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=DXLRyy8k; 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 ay10si5564018edb.78.2021.05.31.08.35.20; Mon, 31 May 2021 08:35:42 -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=DXLRyy8k; 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 S232030AbhEaPd6 (ORCPT + 99 others); Mon, 31 May 2021 11:33:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:43918 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233477AbhEaOTH (ORCPT ); Mon, 31 May 2021 10:19:07 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id BACB9619B1; Mon, 31 May 2021 13:44:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622468659; bh=JBSLpIk7IyqoMi+9Q0jkhDuovnT7vIc/YhCLvxfejXM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DXLRyy8k8L+uVrXyZpPmh+pEZ3zukRyh9VGvWqNE1nVijM2ikPRJxvjzjQJHldibd dym0Zexu38mRh3/0GXOUXeWyJzgmRfNz4MbD8EJfCshpU/bpLv6LfBgfMcFeZXEWHm hCUjO2SJx+IUZ95b/SqL2uYvWdbYTFCWrnGmtFgE= 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.4 049/177] serial: 8250_pci: Add support for new HPE serial device Date: Mon, 31 May 2021 15:13:26 +0200 Message-Id: <20210531130649.622225112@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531130647.887605866@linuxfoundation.org> References: <20210531130647.887605866@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 @@ -58,6 +58,8 @@ struct serial_private { int line[0]; }; +#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) }, @@ -65,6 +67,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) }, { } }; @@ -1966,6 +1970,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 */ { @@ -4932,6 +4946,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,