Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2654273pxj; Mon, 31 May 2021 07:29:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwFUc2yUQkYl0sXxwvcDx3tIpnoFSZuPMwrCaL1Qw+2q9At3CNZiFkXkQbfgkS0I5DTGu/O X-Received: by 2002:a5d:9a97:: with SMTP id c23mr17403953iom.38.1622471383669; Mon, 31 May 2021 07:29:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622471383; cv=none; d=google.com; s=arc-20160816; b=evA8Z0bGWaffU4PcmQw9ENEgXt0ZL1ci+PXjmb5T7U6Trb0lkfyLETteFK+wAdGCos WkUeVmnvYjxXthmX1s2XlONdlRidJwTrUoh//vpH4xGTSpFAtEiHI9sCKh1e0KvEhjNF 3pRXwEukJTaL8IGkLirIKmLLUpAxKHZ9RwsfRS/YdfT1F3rEmGm97F3Qgg/FJmrArw+8 S1aS8FdOzlo1GUz4hU09ycQWht/K5nR+TBHFvpZOQEV1BnUEi4NdIcNMUYRo5mOxUs7y NQri/AobO9xC16MIAv7S0UF1P6xXaRdGLTvFSZC+AolkCd1icBZMMbmrrxp7ggZnM5Me NtJQ== 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=l2qIjejNBvXxLpWCyaxQN3sCqVPuXTfaNCnck6bMUJPLGNW0eGrNjuV82tKh55ojjP /iLHn8C0Asy0PK4C/1fcB1B9F7vjcUsPTmF7Qwe1goAUHvbiLxlpkmtf7kqeuYEingeG kr/oQtA/n6KRQuAqJ3+HeJdF/D/wVpnaBZhKwWGlyZiPeS0JGBhMYi2Vi7cWzvJCLoFI LtGKehP6AAw7+YzumhF9IwUjvs+XxjaBV2OdbLDExNFGnrUMNraXgj/YK0p2Id22qK5c ptgNujLvFHDJxRHLycmJiLMO8rMZWOO/io0bUCRp0vAL7iJl53lVJatu6Og3MVAjvxTx guTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=t3wuTPDy; 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 o14si14743566iow.26.2021.05.31.07.29.30; Mon, 31 May 2021 07:29:43 -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=t3wuTPDy; 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 S231722AbhEaO3D (ORCPT + 99 others); Mon, 31 May 2021 10:29:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:55012 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232947AbhEaNxF (ORCPT ); Mon, 31 May 2021 09:53:05 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 084FC61878; Mon, 31 May 2021 13:33:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622467983; bh=d2nawnXXADBk0RGIBscywxEwhRc6o5WLal3NtqIXGhQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=t3wuTPDyvy7iWK+pey5DOGsk5NasUAUgHFJ7keg1EyeTxmy8l0q1/3RFdi20W955u NTnxjaabBs4InlqnHTF9kQubdtOVaSIy7b0QGedvfQPodXbVejR+5fTJoDlMxPD0lL /L6fnG+OVIKd+GAxf5eW7pVPSGA15n/9RLq2uWek= 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.10 072/252] serial: 8250_pci: Add support for new HPE serial device Date: Mon, 31 May 2021 15:12:17 +0200 Message-Id: <20210531130700.444095570@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531130657.971257589@linuxfoundation.org> References: <20210531130657.971257589@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,