mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-27 09:12:39 +00:00
4e74777fa8
These patches silence some mt762x PCIe driver error messeges by removing the useless debugging codes and replacing incorrectly used 'dev_err()' with 'dev_info()': PCI: mt7621: Use dev_info() to log PCIe card detection [1] mips: pci-mt7620: do not print NFTS register value as error log [2] mips: pci-mt7620: use dev_info() to log PCIe device detection result [3] Patch [1] has already been merged into the Linux 6.3 branch. Patches [2] and [3] have been merged into the "mips-next" tree, and they will be part of the upcoming Linux 6.5. [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?h=v6.4-rc7&id=50233e105a0332ec0f3bc83180c416e6b200471e [2] https://git.kernel.org/pub/scm/linux/kernel/git/mips/linux.git/commit/?id=9f9a035e6156a57d9da062b26d2a48d031744a1e [3] https://git.kernel.org/pub/scm/linux/kernel/git/mips/linux.git/commit/?id=89ec9bbe60b61cc6ae3eddd6d4f43e128f8a88de Signed-off-by: Shiji Yang <yangshiji66@qq.com>
32 lines
1.2 KiB
Diff
32 lines
1.2 KiB
Diff
From 50233e105a0332ec0f3bc83180c416e6b200471e Mon Sep 17 00:00:00 2001
|
|
From: Sergio Paracuellos <sergio.paracuellos@gmail.com>
|
|
Date: Fri, 24 Mar 2023 08:37:33 +0100
|
|
Subject: PCI: mt7621: Use dev_info() to log PCIe card detection
|
|
|
|
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 | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
--- a/drivers/pci/controller/pcie-mt7621.c
|
|
+++ b/drivers/pci/controller/pcie-mt7621.c
|
|
@@ -383,8 +383,8 @@ static int mt7621_pcie_init_ports(struct
|
|
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++;
|