]> git.itanic.dy.fi Git - linux-stable/commit
staging: mt7621-pci: make cleaner 'mt7621_pcie_enable_ports'
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Mon, 7 Jun 2021 12:01:48 +0000 (14:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Jun 2021 12:19:21 +0000 (14:19 +0200)
commita3bb1d050e436e5ad301491315ea42c9ac0821c5
treed89b584d5d3c1bd6d3e7465fade3181697aff906
parent6771fb0b940eb74f1a68fe3f180a7668103397d3
staging: mt7621-pci: make cleaner 'mt7621_pcie_enable_ports'

Function 'mt7621_pcie_enable_ports' call 'mt7621_pcie_enable_port'
for each available pcie port. Instead of having two for loops
there just move needed initialization. There is one setting
that can be removed which is the set for 'PCI_COMMAND_MASTER'
bit. Pci drivers are in charge of set that bit if is really
needed and should be not a mission of the controller to do that.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Link: https://lore.kernel.org/r/20210607120153.24989-2-sergio.paracuellos@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/mt7621-pci/pci-mt7621.c