Skip to content

PCI: brcmstb: Stop using chip numbers for conditions

Jim Quinlan linux-arm-kernel linux-pci lkml sashiko-reviews 1 version Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest13 patches 21 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/13PCI: brcmstb: Remove redundant const specifier for struct fieldsdrivers/pci/controller/pcie-brcmstb.c+3 -31 reply
2/13PCI: brcmstb: Use flags u32 instead of boolsdrivers/pci/controller/pcie-brcmstb.c+17 -102 replies
3/13PCI: brcmstb: Add Broadcom quirks macrodrivers/pci/controller/pcie-brcmstb.c+4 -11 reply
4/13PCI: brcmstb: Declare and assign quirk OB_WIN_32BIT_ADDRdrivers/pci/controller/pcie-brcmstb.c+5 -11 reply
5/13PCI: brcmstb: Declare and assign quirk OB_WIN_MAXSZ_128MBdrivers/pci/controller/pcie-brcmstb.c+8 -42 replies
6/13PCI: brcmstb: Declare and assign flag IS_BMIPSdrivers/pci/controller/pcie-brcmstb.c+6 -81 reply
7/13PCI: brcmstb: Declare and assign quirk 32BIT_PCI_OPSdrivers/pci/controller/pcie-brcmstb.c+6 -41 reply
8/13PCI: brcmstb: Declare and assign quirk NO_RGR1_TIMERdrivers/pci/controller/pcie-brcmstb.c+7 -31 reply
9/13PCI: brcmstb: Declare and assign quirk EARLY_PERST_ASSERTdrivers/pci/controller/pcie-brcmstb.c+5 -21 reply
10/13PCI: brcmstb: Declare and assign quirk PERST_PCIE_REV_CUTOFFdrivers/pci/controller/pcie-brcmstb.c+4 -11 reply
11/13PCI: brcmstb: Put max_burst_size setting in cfg_datadrivers/pci/controller/pcie-brcmstb.c+13 -162 replies
12/13PCI: brcmstb: Use order-0 indexing for inbound BAR window arraydrivers/pci/controller/pcie-brcmstb.c+21 -281 reply
13/13PCI: brcmstb: Split up complicated function into two variantsdrivers/pci/controller/pcie-brcmstb.c+68 -372 replies

Reviews trailers per patch

12 of 13 patches have a Reviewed-by or Acked-by.

PatchFlorian Fainelli
1/13R-b
2/13R-b
3/13R-b
4/13R-b
5/13R-b
6/13R-b
7/13R-b
8/13R-b
9/13R-b
10/13R-b
11/13
12/13R-b
13/13R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/13] PCI: brcmstb: Stop using chip numbers for conditions

Much of the brcmstb PCIe driver code does (essentially) this:

        if (pcie->chip == 0x1234 || pcie->chip == 0x5678) {
                /* ... */
        }

when it should instead do this:

        if (behavior_xyz(pcie)) {
                /* ... */
        }

This series does the above. In addition, some other minor improvements are added in the hopes of making the code more readable.

Jim Quinlan (13):
PCI: brcmstb: Remove redundant const specifier for struct fields
PCI: brcmstb: Use flags u32 instead of bools
PCI: brcmstb: Add Broadcom quirks macro
PCI: brcmstb: Declare and assign quirk OB_WIN_32BIT_ADDR
PCI: brcmstb: Declare and assign quirk OB_WIN_MAXSZ_128MB
PCI: brcmstb: Declare and assign flag IS_BMIPS
PCI: brcmstb: Declare and assign quirk 32BIT_PCI_OPS
PCI: brcmstb: Declare and assign quirk NO_RGR1_TIMER
PCI: brcmstb: Declare and assign quirk EARLY_PERST_ASSERT
PCI: brcmstb: Declare and assign quirk PERST_PCIE_REV_CUTOFF
PCI: brcmstb: Put max_burst_size setting in cfg_data
PCI: brcmstb: Use order-0 indexing for inbound BAR window array
PCI: brcmstb: Split up complicated function into two variants

 drivers/pci/controller/pcie-brcmstb.c | 267 +++++++++++++++-----------
 1 file changed, 158 insertions(+), 109 deletions(-)

base-commit: bc35965f6940a9bf834d54187b6088b8eb09206d

Signature · 1 line
2.34.1