Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp3647658pxt; Tue, 10 Aug 2021 08:14:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwn2wnCEDk0Xu3LTUykn8COaArGjcTLGoCUR4rOzIXYvEvMGZXPAR2hUc8G5UUZpDHKxZar X-Received: by 2002:aa7:c6d0:: with SMTP id b16mr5534156eds.257.1628608478711; Tue, 10 Aug 2021 08:14:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628608478; cv=none; d=google.com; s=arc-20160816; b=UCIK/AnrSdoNWLy+4SOtuUj2QPzW+GSsJJxrugKvXgHHXLHwKNIfrxBCX5KxdY0S0r 9+WeQeFaqW9ipkm5nczVPeKYCG5+XRiViTWBPKoTSwaP7ydNo+0ROCrL/EOMwWCHJQ7F ya6s/eUKCFGDIsoufSfW/Dq6qlBL+iei0owZ/682aF/RtGXV34uUOC0RX46MFix21PBk FMU/tDz54JHHsTXdDUfQNapzyb4IEeN96tCke+StVj7/jm1pGB6y+GIo2tcJn6HAOQjb lPtTHb//ZXnHw6wzZAs2iougo9G+GBZ/4iZaFWJmv4M/CdA3ZtFrPdxJ84T5jyHaHGKY CG5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=M4ZAU8U7sg7dgQr0606gTz6jIQWIWU52Rj6jSkOq2XU=; b=h9aOjIo2T8CDfPm7L9Q/2tJubaR/MykPoESXb0ssTUp/ryy/6xPLFGv2QOcGMpMHhx rU052v7wmeoceG2irWmbwavdTRyNLo9f46mZH67gtNN7tcxoDADQMq2ZjSfv8IM6lrqV e2a5g6G5no5+NVtS+IZ6uBwaZcQO+iXTKzixnmxh9sK6PDfff12ZjaKxx550igJXwwKb CtfH70JlWuo49liGAxdZa/RpwIMR6Jk+ce6ZHfKrkbqsJj5GkMj/HB1Wj9i0pyODwHt2 zwPMWeGGvACHpeMBw+FGCEni0EpQsuUCvI6wUZrvCd3tglnravHgror5rpqg7VG5HOh0 tDgQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id fd7si19889998ejc.312.2021.08.10.08.14.11; Tue, 10 Aug 2021 08:14:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242562AbhHJPKz (ORCPT + 99 others); Tue, 10 Aug 2021 11:10:55 -0400 Received: from foss.arm.com ([217.140.110.172]:57658 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242538AbhHJPKx (ORCPT ); Tue, 10 Aug 2021 11:10:53 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 803A01FB; Tue, 10 Aug 2021 08:10:31 -0700 (PDT) Received: from [192.168.122.166] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 1016E3F718; Tue, 10 Aug 2021 08:10:31 -0700 (PDT) Subject: Re: [PATCH 1/3] PCI: brcmstb: Break register definitions into separate header To: Florian Fainelli , linux-pci@vger.kernel.org Cc: lorenzo.pieralisi@arm.com, nsaenz@kernel.org, bhelgaas@google.com, rjw@rjwysocki.net, lenb@kernel.org, robh@kernel.org, kw@linux.com, bcm-kernel-feedback-list@broadcom.com, linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rpi-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20210805211200.491275-1-jeremy.linton@arm.com> <20210805211200.491275-2-jeremy.linton@arm.com> From: Jeremy Linton Message-ID: Date: Tue, 10 Aug 2021 10:10:30 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Thanks for taking a look at this! On 8/10/21 5:07 AM, Florian Fainelli wrote: > > > On 8/5/2021 2:11 PM, Jeremy Linton wrote: >> We are about to create a standalone ACPI quirk module for the >> bcmstb controller. Lets move the register definitions into a separate >> file so they can be shared between the APCI quirk and the normal >> host bridge driver. >> >> Signed-off-by: Jeremy Linton >> --- >>   drivers/pci/controller/pcie-brcmstb.c | 179 +------------------------ >>   drivers/pci/controller/pcie-brcmstb.h | 182 ++++++++++++++++++++++++++ >>   2 files changed, 183 insertions(+), 178 deletions(-) >>   create mode 100644 drivers/pci/controller/pcie-brcmstb.h > > You moved more than just register definitions into pcie-brcmstb.h you > also moved internal structure definitions, enumerations, etc. which are > not required since pcie-brcmstb-acpi.c does not access the brcm_pcie > structure but open codes accesses to the MISC_STATUS register instead. > > There are no include guards added to this file (it is debatable whether > we should add them), and it is also not covered by the existing BROADCOM > BCM2711/BCM2835 ARM ARCHITECTURE MAINTAINERS file entry. Sure, I will reduce the .h to just the register definitions, guard it, and tweak maintainers to cover pcie-brcmstb*. > > Given that there can be new platforms supported by this PCIe controller > in the future possibly with the same limitations as the 2711, but with a > seemingly different MISC_STATUS layout, you will have to think about a > solution that scales, maybe we cross that bridge when we get there. Yes, given I don't know what those changes are I can't predict how they would have to be handled, or even if the platform would be a target of the community maintaining the UEFI/ACPI port on the RPi. So punting on that topic seems a reasonable solution at the moment. Better yet, more of the linux community will see the advantage of the firmware interface and this platform can utilize that method.