Skip to content

Improve Synopsys DesignWare Root Complex driver code

Gustavo Pimentel linux-pci 2 versions – Applied

Status from this message: Applied to pci/dwc for v5.1, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest8 patches 1 replyApplied
  2. v19 patches 5 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/8PCI: dwc: Remove unnecessary header include (of_gpio.h)drivers/pci/controller/dwc/pcie-designware-plat.c+0 -10 replies
2/8PCI: dwc: Remove unnecessary header include (signal.h)drivers/pci/controller/dwc/pcie-designware-plat.c+0 -10 replies
3/8PCI: dwc: Rename variable name from data to d on dw_pci_bottom_mask/unmask()drivers/pci/controller/dwc/pcie-designware-host.c+10 -100 replies
4/8PCI: dwc: Rename variable name from data to d on dw_pci_setup_msi_msg()drivers/pci/controller/dwc/pcie-designware-host.c+5 -50 replies
5/8PCI: dwc: Rename variable name from data to d on dw_pci_msi_set_affinity()drivers/pci/controller/dwc/pcie-designware-host.c+1 -10 replies
6/8PCI: dwc: Rename variable name from data to d on dw_pcie_irq_domain_free()drivers/pci/controller/dwc/pcie-designware-host.c+3 -30 replies
7/8PCI: dwc: Improve code readability and simplifies mask/unmask operationsdrivers/pci/controller/dwc/pcie-designware-host.c drivers/pci/controller/dwc/pcie-designware.h+7 -70 replies
8/8PCI: dwc: Replace bit rotation operation (1 << bit) by BIT(bit)drivers/pci/controller/dwc/pcie-designware-host.c+3 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/8] Improve Synopsys DesignWare Root Complex driver code

This patch series aims to improve Synopsys DesignWare Root Complex driver code by:
- removing unnecessary header files
- enforcing variable naming coherency among similar functions
- simplifing code readability of mask/unmask function operations
- replacing bit rotation operation (1 << bit) by BIT(bit)

No functional changes are intended.

All patches are independent so they can be easily analyzed and accepted or discarded.

This patches organization also allows to easily merge (squash) some patches, if desired.

Cc Lorenzo Pieralisi <[email protected]>
Cc Joao Pinto <[email protected]>
Cc Jingoo Han <[email protected]>

Gustavo Pimentel (8):
PCI: dwc: Remove unnecessary header include (of_gpio.h)
PCI: dwc: Remove unnecessary header include (signal.h)
PCI: dwc: Rename variable name from data to d on
dw_pci_bottom_mask/unmask()
PCI: dwc: Rename variable name from data to d on

    dw_pci_setup_msi_msg()

PCI: dwc: Rename variable name from data to d on
dw_pci_msi_set_affinity()
PCI: dwc: Rename variable name from data to d on
dw_pcie_irq_domain_free()
PCI: dwc: Improve code readability and simplifies mask/unmask
operations
PCI: dwc: Replace bit rotation operation (1 << bit) by BIT(bit)

 drivers/pci/controller/dwc/pcie-designware-host.c | 52 +++++++++++------------
 drivers/pci/controller/dwc/pcie-designware-plat.c |  2 -
 drivers/pci/controller/dwc/pcie-designware.h      |  2 +-
 3 files changed, 27 insertions(+), 29 deletions(-)
Signature · 1 line
2.7.4