staging: mt7621-pci: fix two messages in driver code [Linux 5.3]

This Linux kernel change "staging: mt7621-pci: fix two messages in driver code" is included in the Linux 5.3 release. This change is authored by Sergio Paracuellos <sergio.paracuellos [at] gmail.com> on Wed Jun 19 09:44:55 2019 +0200. The commit for this change in Linux stable tree is fdd228c (patch).

staging: mt7621-pci: fix two messages in driver code

There are two messages in driver code which are not correct.
Fix both of them to clarify boot runs.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

There are 4 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 drivers/staging/mt7621-pci/pci-mt7621.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/mt7621-pci/pci-mt7621.c b/drivers/staging/mt7621-pci/pci-mt7621.c
index 03d919a..7ba6ec9 100644
--- a/drivers/staging/mt7621-pci/pci-mt7621.c
+++ b/drivers/staging/mt7621-pci/pci-mt7621.c
@@ -394,7 +394,7 @@ static int mt7621_pcie_init_port(struct mt7621_pcie_port *port)
    mt7621_reset_port(port);

    val = read_config(pcie, slot, PCIE_FTS_NUM);
-   dev_info(dev, "Port %d N_FTS = %x\n", (unsigned int)val, slot);
+   dev_info(dev, "Port %d N_FTS = %x\n", slot, (unsigned int)val);

    err = phy_init(port->phy);
    if (err) {
@@ -511,7 +511,7 @@ static void mt7621_pcie_enable_ports(struct mt7621_pcie *pcie)
                    port->slot);
                continue;
            }
-           dev_info(dev, "PCIE%d enabled\n", slot);
+           dev_info(dev, "PCIE%d enabled\n", num_slots_enabled);
            num_slots_enabled++;
        }
    }

Leave a Reply

Your email address will not be published. Required fields are marked *