Received: by 10.223.185.116 with SMTP id b49csp6348124wrg; Wed, 28 Feb 2018 08:00:01 -0800 (PST) X-Google-Smtp-Source: AH8x224xvF6Ozuv5HU/IOZwTscPAP75hQZebN5vDDGxh4l8+ZJVNME/rjBnAi2PbRkFWcGaMDvdk X-Received: by 2002:a17:902:8501:: with SMTP id bj1-v6mr18878483plb.110.1519833601556; Wed, 28 Feb 2018 08:00:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519833601; cv=none; d=google.com; s=arc-20160816; b=NlWND8lW7gY4yi1xdfJAeXkw3/ELGbvA0JNQN1hj1tpb5j7q8VNa7DeorG+bq+5rJy i1QP8Z/wdHh75JNxo3Lyrjydy3NUY8F0w3nMbrI2OuXKznMdfy99tMAtkuU8UBnMLnA1 J+ypxTtEzGX2cmD4T61zOll67KUV8Hs19lta9syhUObY//q6wf4U6qUNQmPUdv+GPQ65 ljvej3bx10C1Ii4V4miwlqxj3oF77iu8NTJdEm6ubdWVa24x89SjV26YGxLLIECHSBRQ 2CoDTZg1wK6BiZhiAjYaWnS8e72Xi2MMMXqO2x1nGpwNPR8iYE0QKR+299sspfiJWP29 DXwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:subject:message-id:date:cc:to :from:mime-version:content-transfer-encoding:content-disposition :arc-authentication-results; bh=BWcCQhGV/LRO50KpucMAgC9raNShEsMJ8MkrxwWejPs=; b=PtikPll2tRB9/WNbjE22AAekffpClmclXtWUHGw2u/ZNeyM/3aNjfMowWMXsdLOx4D aS2NfLONiQqp6LbYOoTOwKm34adrj/8VEomfnHWSPs3jNQ3GUAWvWjSLVq6Zay0UMLdA QjbILfALDqOoMwWtmbG+CUShr91ZrI7ZVblH+Xs4igan280qo+ESLtgGASaSL1J5+rQ3 rIbm/DSMYn6VD3D1XAQ7+CmxcaK5CprfzWRwl3WqscD48Bj226dDZHmq96MGWqkwkJ0N eBF2ovt0ujTQjuvZmvuOWOPbPgzDYbJ3nyUz2qMbfdk9/ZANsSoxLQOLeaT1Lh0ofCkY 4z2w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q12-v6si1440601plk.518.2018.02.28.07.59.46; Wed, 28 Feb 2018 08:00:01 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752966AbeB1P6L (ORCPT + 99 others); Wed, 28 Feb 2018 10:58:11 -0500 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:34548 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752340AbeB1P6I (ORCPT ); Wed, 28 Feb 2018 10:58:08 -0500 Received: from [2a02:8011:400e:2:6f00:88c8:c921:d332] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1er3Yi-0006Xj-II; Wed, 28 Feb 2018 15:22:20 +0000 Received: from ben by deadeye with local (Exim 4.90_1) (envelope-from ) id 1er3Yg-00006P-QN; Wed, 28 Feb 2018 15:22:18 +0000 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org, "Helge Deller" Date: Wed, 28 Feb 2018 15:20:18 +0000 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) Subject: [PATCH 3.16 118/254] parisc: Hide Diva-built-in serial aux and graphics card In-Reply-To: X-SA-Exim-Connect-IP: 2a02:8011:400e:2:6f00:88c8:c921:d332 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.16.55-rc1 review patch. If anyone has any objections, please let me know. ------------------ From: Helge Deller commit bcf3f1752a622f1372d3252d0fea8855d89812e7 upstream. Diva GSP card has built-in serial AUX port and ATI graphic card which simply don't work and which both don't have external connectors. User Guides even mention that those devices shouldn't be used. So, prevent that Linux drivers try to enable those devices. Signed-off-by: Helge Deller Signed-off-by: Ben Hutchings --- drivers/parisc/lba_pci.c | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) --- a/drivers/parisc/lba_pci.c +++ b/drivers/parisc/lba_pci.c @@ -1652,3 +1652,36 @@ void lba_set_iregs(struct parisc_device iounmap(base_addr); } + +/* + * The design of the Diva management card in rp34x0 machines (rp3410, rp3440) + * seems rushed, so that many built-in components simply don't work. + * The following quirks disable the serial AUX port and the built-in ATI RV100 + * Radeon 7000 graphics card which both don't have any external connectors and + * thus are useless, and even worse, e.g. the AUX port occupies ttyS0 and as + * such makes those machines the only PARISC machines on which we can't use + * ttyS0 as boot console. + */ +static void quirk_diva_ati_card(struct pci_dev *dev) +{ + if (dev->subsystem_vendor != PCI_VENDOR_ID_HP || + dev->subsystem_device != 0x1292) + return; + + dev_info(&dev->dev, "Hiding Diva built-in ATI card"); + dev->device = 0; +} +DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_ATI_RADEON_QY, + quirk_diva_ati_card); + +static void quirk_diva_aux_disable(struct pci_dev *dev) +{ + if (dev->subsystem_vendor != PCI_VENDOR_ID_HP || + dev->subsystem_device != 0x1291) + return; + + dev_info(&dev->dev, "Hiding Diva built-in AUX serial device"); + dev->device = 0; +} +DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_HP, PCI_DEVICE_ID_HP_DIVA_AUX, + quirk_diva_aux_disable);