From nobody Mon Apr 13 21:42:27 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B8F1FC433FE for ; Wed, 16 Nov 2022 21:36:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233925AbiKPVgv (ORCPT ); Wed, 16 Nov 2022 16:36:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234328AbiKPVg2 (ORCPT ); Wed, 16 Nov 2022 16:36:28 -0500 Received: from angie.orcam.me.uk (angie.orcam.me.uk [IPv6:2001:4190:8020::34]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C306F12744 for ; Wed, 16 Nov 2022 13:36:22 -0800 (PST) Received: by angie.orcam.me.uk (Postfix, from userid 500) id 2A14892009C; Wed, 16 Nov 2022 22:36:22 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id 2318F92009B; Wed, 16 Nov 2022 21:36:22 +0000 (GMT) Date: Wed, 16 Nov 2022 21:36:22 +0000 (GMT) From: "Maciej W. Rozycki" To: Sudip Mukherjee cc: linux-kernel@vger.kernel.org Subject: [PATCH] parport_pc: Limit the number of PCI BAR pairs to 2 Message-ID: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Decrease the number of PCI BAR pair slots allocated for port subdrivers=20 from 4 to 2 as none wants more than 2 at this time, reducing the memory=20 footprint a little. No functional change. Signed-off-by: Maciej W. Rozycki --- drivers/parport/parport_pc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) linux-parport-pc-pci-bars.diff Index: linux-macro/drivers/parport/parport_pc.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- linux-macro.orig/drivers/parport/parport_pc.c +++ linux-macro/drivers/parport/parport_pc.c @@ -2657,7 +2657,7 @@ static struct parport_pc_pci { int lo; int hi; /* -1 if not there, >6 for offset-method (max BAR is 6) */ - } addr[4]; + } addr[2]; =20 /* Bit field of parport modes to exclude. */ unsigned int mode_mask;