]> git.itanic.dy.fi Git - linux-stable/commitdiff
PCI: mt7621: Use dev_info() to log PCIe card detection
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Fri, 24 Mar 2023 07:37:33 +0000 (08:37 +0100)
committerLorenzo Pieralisi <lpieralisi@kernel.org>
Fri, 24 Mar 2023 15:36:22 +0000 (16:36 +0100)
When there is no card plugged on a PCIe port a log reporting that
the port will be disabled is flagged as an error (dev_err()).

Since this is not an error at all, change the log level by using
dev_info() instead.

Link: https://lore.kernel.org/r/20230324073733.1596231-1-sergio.paracuellos@gmail.com
Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: Lorenzo Pieralisi <lpieralisi@kernel.org>
drivers/pci/controller/pcie-mt7621.c

index 63a5f4463a9f6964e453598eee56f61f6950344a..a445ec314375d4a8adcc79e2fd1eab6662c805bd 100644 (file)
@@ -378,8 +378,8 @@ static int mt7621_pcie_init_ports(struct mt7621_pcie *pcie)
                u32 slot = port->slot;
 
                if (!mt7621_pcie_port_is_linkup(port)) {
-                       dev_err(dev, "pcie%d no card, disable it (RST & CLK)\n",
-                               slot);
+                       dev_info(dev, "pcie%d no card, disable it (RST & CLK)\n",
+                                slot);
                        mt7621_control_assert(port);
                        port->enabled = false;
                        num_disabled++;