From patchwork Sun May 21 21:16:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Helge Deller X-Patchwork-Id: 9739437 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 43AF56034C for ; Sun, 21 May 2017 21:16:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 34638285E2 for ; Sun, 21 May 2017 21:16:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2923F28657; Sun, 21 May 2017 21:16:36 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B156F285E2 for ; Sun, 21 May 2017 21:16:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757006AbdEUVQf (ORCPT ); Sun, 21 May 2017 17:16:35 -0400 Received: from mout.gmx.net ([212.227.17.22]:56601 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756987AbdEUVQe (ORCPT ); Sun, 21 May 2017 17:16:34 -0400 Received: from ls3530.fritz.box ([193.159.21.211]) by mail.gmx.com (mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id 0M8axL-1e7gyX2wSp-00wE98; Sun, 21 May 2017 23:16:26 +0200 Date: Sun, 21 May 2017 23:16:23 +0200 From: Helge Deller To: linux-parisc@vger.kernel.org, James Bottomley , John David Anglin Subject: [RFC][PATCH] parisc: Ignore AUX port of DIVA on rp34xx machines Message-ID: <20170521211623.GA22326@ls3530.fritz.box> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.8.0 (2017-02-23) X-Provags-ID: V03:K0:vAUPrvhjnpZEng203gNJFRg1S8NlorntmK0pL1PPh8nzqTgZaao 4/OkevEONCgRNud9OT93LxJqyXHefPZYcGydb3EHrkQaUG6BbMfmoayG8yJ5Gpqf12YXFYu PdGa987T1Bqf19oi23ZHSV3DziJM8xewVU+g48R8zmX+iEo3OlJtEi8Nd5OyNWAVTNV7v4n 7S/ByrO1iHyo2fwL74Wxg== X-UI-Out-Filterresults: notjunk:1; V01:K0:EygX6YRZYvQ=:fQOzjcMIVhZjl1993aPjLd E6O7jNNv4eaVFwVbq07BlwgxKRX1q6AVJe/zNuexaSCv74xuwnPAoqwIlmSOF4z3po6c0Hi0f FTWYWwlJj6gDyaZtTPpNMh3mVmfSqAHDfRLnSGwYGIW5REKrJeAC3J2ZUiMwgKdEZFcHybYzv QUnm9/m7DHSCG3+g7uu+Sat+mw1v5KT23jAbL/gRehlLEYgmqA4KWwEhdJtp1Pw/FrDEnTwa/ 3sIGjwzC3OxRV0ZRndtpgZvrq9UADm7CgAr/x24vDbIjd3xUq6ei9WHWWJ7ADmGg/+d7EBq0m dIMxO5aIXMP67ydVqCVlInluvOAe85JT1B89T8qTEZAxLT+7+hZmssL3bQ7KRDxy2HxopYP04 e00dVU2A+YyHIa22LuTZbzr1H51NnxLATnHkGjNdr6+REMrYntPnOtNSqYm4eqZMW5B6Lv6Bk lvZcmkTonsOAhpxvBxtbniA1mdZOONIkJiytrioIy4VMNHuaKwYDEmnBPBg4PR4Ej86WtUQ6N MOJewShDMHa+fbKHkdCCERZJRcV9lEXLNRYXHzQ+PrCKaaPHt5BFIvsqkQJmdOyUhoQuoWz+u pO4XiWtW0qlXjSfLzeW5klgIsdPfc0c7ja0j7EBqsNg9cucg/hK3EMcmlKlBV+E2iwb5INquv UHJ/y8YMN+mYgfteOjNMqabsTeT3t2JtBATe3waabRHECuCsBVn/JC/zQGBmm7brVjAKw9XyY 9qTMqMp5rmymnGFe6UeQdiG2tF3iKtd9fKLTfdLFPA1+bwt5NtoJnTYb7WI= Sender: linux-parisc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP On rp34xx machines Linux detects the AUX port of the DIVA GSP card (PCI subsystem id 0x1291) before the console port of DIVA GSP and as such the AUX port becomes ttyS0 and the console port becomes ttyS1. Since the palo bootloader by default sets the console output to ttyS0 if no keyboard & monitor is attached, all Linux kernel boot messages get lost. Avoid this problem by ignoring the AUX port. There is no external serial port connector for AUX, so we won't miss this serial port either. (RFC, patch untested) Signed-off-by: Helge Deller --- To unsubscribe from this list: send the line "unsubscribe linux-parisc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/tty/serial/8250/8250_pci.c b/drivers/tty/serial/8250/8250_pci.c index 22d32d2..98261aa 100644 --- a/drivers/tty/serial/8250/8250_pci.c +++ b/drivers/tty/serial/8250/8250_pci.c @@ -174,6 +174,9 @@ static int pci_hp_diva_init(struct pci_dev *dev) case PCI_DEVICE_ID_HP_DIVA_HURRICANE: rc = 1; break; + case PCI_DEVICE_ID_HP_DIVA_AUX2: + rc = -ENODEV; /* ignore on rp34xx */ + break; } return rc; diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h index 3e5dbbe..633e738 100644 --- a/include/linux/pci_ids.h +++ b/include/linux/pci_ids.h @@ -760,6 +760,7 @@ #define PCI_DEVICE_ID_HP_SX1000_IOC 0x127c #define PCI_DEVICE_ID_HP_DIVA_EVEREST 0x1282 #define PCI_DEVICE_ID_HP_DIVA_AUX 0x1290 +#define PCI_DEVICE_ID_HP_DIVA_AUX2 0x1291 #define PCI_DEVICE_ID_HP_DIVA_RMP3 0x1301 #define PCI_DEVICE_ID_HP_DIVA_HURRICANE 0x132a #define PCI_DEVICE_ID_HP_CISSA 0x3220