Skip to contentSkip to conversation

PCI: mt7621: Use dev_info for PCIe no card plugged on port trace

PATCH Applied Sergio Paracuellos 2 participants 3 messages Mar 24, 2023 – Mar 28, 2023

Subsystems (4)
lore
Share & tools
lore

Sergio Paracuellos

author maintainer
#0 lore raw

PATCH 1/1 PCI: mt7621: Use dev_info for PCIe no card plugged on port trace

When there is no card plugged on PCIe port a trace that says the port will be disabled appears. This is expected behaviour but currently is using 'dev_err' for doing that. Since this is not an error at all, change the trace to use 'dev_info' instead.

---
 drivers/pci/controller/pcie-mt7621.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/pci/controller/pcie-mt7621.c +2 -2
index 63a5f4463a9f..a445ec314375 100644
@@ -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++;
Signature · 1 line
2.25.1
maintainer Applied
#1 lore raw
Quoted 6 lines · Sergio Paracuellos

When there is no card plugged on PCIe port a trace that says the port will be disabled appears. This is expected behaviour but currently is using 'dev_err' for doing that. Since this is not an error at all, change the trace to use 'dev_info' instead.

Applied to controller/mt7621, thanks!

[1/1] PCI: mt7621: Use dev_info for PCIe no card plugged on port trace

      https://git.kernel.org/pci/pci/c/50233e105a03

Thanks,
Lorenzo

author maintainer
#2 lore raw
Quoted 9 lines · Lorenzo Pieralisi
Quoted 6 lines · Sergio Paracuellos

When there is no card plugged on PCIe port a trace that says the port will be disabled appears. This is expected behaviour but currently is using 'dev_err' for doing that. Since this is not an error at all, change the trace to use 'dev_info' instead.

Quoted 7 lines

Applied to controller/mt7621, thanks!

[1/1] PCI: mt7621: Use dev_info for PCIe no card plugged on port trace

      https://git.kernel.org/pci/pci/c/50233e105a03

Thanks,
Lorenzo

Thanks, Lorenzo!

Best regards,
Sergio Paracuellos