Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1196311rwb; Wed, 16 Nov 2022 13:40:15 -0800 (PST) X-Google-Smtp-Source: AA0mqf4rSoC61MeC99BgM5lcnk5o384AboSQknGHWM4+4rfJTjQElt7mutkHjKmXqknHkv7s6A33 X-Received: by 2002:a50:d4d1:0:b0:467:6ffe:e94c with SMTP id e17-20020a50d4d1000000b004676ffee94cmr19203563edj.417.1668634815628; Wed, 16 Nov 2022 13:40:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668634815; cv=none; d=google.com; s=arc-20160816; b=CDpN29ePZc/d9V45qfeGUd5JOuCuTjfkMAH1M/iOVk1eij3C1On+Wa9VzWVZrfo9al tsj9iLFTcSBcQZXim2QOUxUB6JCbjoZNRTbRTFH7RwDLH8puADE2qqgW8JtWO5TjKg/G M3r2O7XGmlFkXZ/LVkS2wQZsq/Q56H449nN0D6CgjnUwBfPVueJ19zeM5yomZD/gMVPJ AME15ovd/cHL9daKsfCrg2QJBtXncgkwad+nb02EXsOE5uuL1/lDdQbmOOAxXJaPshL+ c6cM4LaHBJ0rnJGVwNbyWePRz3XxvN7kWKrz00tMhu/VR+mcfmOEOxTg24bZcaaITy5k IdgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:subject:cc:to :from:date; bh=IVZPfPQPMLiU03Y10S4//Iyc/DyrqgAxMJAXogP5aq8=; b=QtmGHzUJrXdJLEk0yeX75+lMIbDPE1/gzn04mCy9QihcFr7QLtalRWWp0/lrMhf1Aj ZeuJWUqSemrt030dJQpkce33bJz/fS5mhWvmEVu7nVbiND2vuZJeRhpzxa7LbG0vI/kN EQoLBotn8TxIm9bbhklbJmnOdfToeCpIClwDND88tbPvWvVm5UbTCpW9oFyLw2ekmbk4 e0RIK/EppEj0L73Z6GJZqmH4RFfPHHZFYwkADxftGPPULigsCdYKLYOAHTK1GnwUeYgZ pnPoUPAF5HQ0xQoI+EnXBczD+7cdvSdeOEbLE9omRHzN57Mm80aNEkbaAtakTEHlacwO j0Hw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id xh9-20020a170906da8900b007820f00167fsi7624299ejb.260.2022.11.16.13.39.54; Wed, 16 Nov 2022 13:40:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234249AbiKPVgt (ORCPT + 91 others); Wed, 16 Nov 2022 16:36:49 -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 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,T_HDRS_LCASE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Decrease the number of PCI BAR pair slots allocated for port subdrivers from 4 to 2 as none wants more than 2 at this time, reducing the memory 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 =================================================================== --- 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]; /* Bit field of parport modes to exclude. */ unsigned int mode_mask;