ramips: 6.1: copy config and patches
[openwrt/staging/jow.git] / target / linux / ramips / patches-6.1 / 110-v6.4-PCI-mt7621-Use-dev_info-to-log-PCIe-card-detection.patch
1 From 50233e105a0332ec0f3bc83180c416e6b200471e Mon Sep 17 00:00:00 2001
2 From: Sergio Paracuellos <sergio.paracuellos@gmail.com>
3 Date: Fri, 24 Mar 2023 08:37:33 +0100
4 Subject: PCI: mt7621: Use dev_info() to log PCIe card detection
5
6 When there is no card plugged on a PCIe port a log reporting that
7 the port will be disabled is flagged as an error (dev_err()).
8
9 Since this is not an error at all, change the log level by using
10 dev_info() instead.
11
12 Link: https://lore.kernel.org/r/20230324073733.1596231-1-sergio.paracuellos@gmail.com
13 Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
14 Signed-off-by: Lorenzo Pieralisi <lpieralisi@kernel.org>
15 ---
16 drivers/pci/controller/pcie-mt7621.c | 4 ++--
17 1 file changed, 2 insertions(+), 2 deletions(-)
18
19 --- a/drivers/pci/controller/pcie-mt7621.c
20 +++ b/drivers/pci/controller/pcie-mt7621.c
21 @@ -383,8 +383,8 @@ static int mt7621_pcie_init_ports(struct
22 u32 slot = port->slot;
23
24 if (!mt7621_pcie_port_is_linkup(port)) {
25 - dev_err(dev, "pcie%d no card, disable it (RST & CLK)\n",
26 - slot);
27 + dev_info(dev, "pcie%d no card, disable it (RST & CLK)\n",
28 + slot);
29 mt7621_control_assert(port);
30 port->enabled = false;
31 num_disabled++;