Received: by 10.213.65.68 with SMTP id h4csp1856674imn; Sun, 1 Apr 2018 17:23:25 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+Ya1qzTE1QmLg6QFyk5EPhdw602EqEjrFS3hKuiEtbIrfzi+at6+XlHJqE2ypP411CtkG/ X-Received: by 2002:a17:902:6547:: with SMTP id d7-v6mr7807622pln.253.1522628605006; Sun, 01 Apr 2018 17:23:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522628604; cv=none; d=google.com; s=arc-20160816; b=MSCjt3Adp9xh8YH1iJNkLrBLU660ZiZQc4lsBbGoZZSIdXJSKlUjQ7kZN+wOmMnnEA 8KotAeHIGCxaYs/fee4aiM+KrdeviqDYXuHpxJjG24FP/oLoD6kpFDfpZO3xNxmx+Q8P AMuWy91ldMydUTLEFZr8TJQBjJAP8KVtwwMZI0piuoq/urBJHdzRg0DKDbU563ghObJo DiYs6NiaTGcVM0RlK8i4IDS7kIAYZTvp2/VYb/ER5V9p8Yq4DNxaew1CEXZF1wUMw9cc fIEKZNMGo/5sYNAsAi//6mgy+HcNKePWCA+L3+ngismcs7CfDz6VsxIV6XTEOTUgc24p ABrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:subject:cc:date :to:from:arc-authentication-results; bh=dHKo/FUoE1pf+uUFzJIILTx57ub9huBEDBR/a+0lwB4=; b=gTZiN7v5KJpkO33BFxg7BJVF008y8Rdbbyytj5peMY1gxNoVhSeuFleIvKAwCnerTN pfAY0M2Lo7v+jXN4Ob6PmBGWLA95h0OzjZmr0m/npPSejAUiugG5wwwzzf3/kr3mbkXU sM5M9mmS5srIB5yp8S1eUk1nTKPqml/2ETHJ5OUJXP2BcD0zSkiWSGbifAtBz+4mArLH m5kpTJ4FWoiNE/9AdlAoF6My0Cr1lUGmCcoDCvyz/mcgfSyvP6GARnJTLtX5HUUI78or KYi5cqHtVORU2/uukToO4Hc6Q7/xEXlA1kN1GLQjcKmyIoddqNKIFBPs89Hz8vhrYO1u IgaQ== 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 l13-v6si14008588pln.437.2018.04.01.17.22.39; Sun, 01 Apr 2018 17:23:24 -0700 (PDT) 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 S1754050AbeDBAUY (ORCPT + 99 others); Sun, 1 Apr 2018 20:20:24 -0400 Received: from mx2.suse.de ([195.135.220.15]:56224 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751874AbeDBAUX (ORCPT ); Sun, 1 Apr 2018 20:20:23 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 48807ADDF; Mon, 2 Apr 2018 00:20:22 +0000 (UTC) From: NeilBrown To: Greg Kroah-Hartman Date: Mon, 02 Apr 2018 10:20:15 +1000 Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH] staging: mt7621-pci: Hack 2 more PCI interrupts for gnubee1 Message-ID: <87sh8e1mtc.fsf@notabene.neil.brown.name> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable The mt7621-pci support 3 pci devices and has 3 interrupts. Each of these need to be enabled by the same sort of hack to map hwirq number to virq number. This is a hack which will go as soon as I understand how this is supposed to work. Signed-off-by: NeilBrown =2D-- drivers/staging/mt7621-pci/pci-mt7621.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/drivers/staging/mt7621-pci/pci-mt7621.c b/drivers/staging/mt76= 21-pci/pci-mt7621.c index 1fa41eb8a87f..602321522198 100644 =2D-- a/drivers/staging/mt7621-pci/pci-mt7621.c +++ b/drivers/staging/mt7621-pci/pci-mt7621.c @@ -441,11 +441,16 @@ pcibios_map_irq(const struct pci_dev *dev, u8 slot, u= 8 pin) /* * 'irq' here is a hwirq, but a virq is needed. Until we know how and wh= ere * to convert one to the other, we have this hack for the GNUBEE1 + * Similarly 31->23 and 32->24. */ =2D return irq =3D=3D 11 ? 22 : irq; =2D#else =2D return irq; + if (irq =3D=3D 11) + return 22; + if (irq =3D=3D 31) + return 23; + if (irq =3D=3D 32) + return 24; #endif + return irq; } =20 void =2D-=20 2.14.0.rc0.dirty --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEG8Yp69OQ2HB7X0l6Oeye3VZigbkFAlrBdz8ACgkQOeye3VZi gbnb3A/9EN6LAJa2RxS94acW9mpk9klSLEXlS4R+F5fUTRaw2M+JJytT0qWR24kN 2vjcHE3r54+GTqPhu6dwr+ozem2QndA5JS0dGMvSdQXB4pRBtQIDJ2fheyVmaGRd a//YmjbG4wD/oTcepjM99dfNyw5uau10EQ6IBz981tAqXpDL7vXRHJi/gilLJ7SN kgdBXHg7kjR2kRiJw57mUKRTDGNC+Ah0eYJg3ejaE3AAaWROZ4xnTAr5ozR9c4xk LigeIsMGXZdWf6qHMQxzOPmgvtpZevzABk4O0vrJJcemxezpVnN3AkHPlKeBpgOw IGYrdhwEPibGhnGcSHi46W+Mf53RZrqkcSbY7HWESajoyXIxsfONmRE106inE3Rq cYLRInCZn6c+LSUJLB4hbELwCoGNnhqaDx3slvsWv6AgL+i6Ahg+xgALJeViyBCM LuXE2dEnG8fk9oWwh8pncRjiTNGpuk4Fab4oOQnNCC8s5mYsAZp1nP8jQG5UvJsZ ueTeBtcc0FlwOp7IzVIcXAYHEKljP3CLZYHq9WURehIiN93m9v5yWvbhHglYjaoa /mK6DszBStAb5/ZiqWCIF6xKaKEjrCeYwzN8OuptCfpGeP16gknu30QcdLIINwYS C8rbrDkm2COpkYY/R7mzH9gqTur6mGAtIaKJ6fs7s0mk60Q88AM= =naNs -----END PGP SIGNATURE----- --=-=-=--