704e861b8211dc6045c4cf604641a5262421082c
[openwrt/staging/linusw.git] /
1 From 9f9a035e6156a57d9da062b26d2a48d031744a1e Mon Sep 17 00:00:00 2001
2 From: Shiji Yang <yangshiji66@outlook.com>
3 Date: Tue, 20 Jun 2023 18:43:22 +0800
4 Subject: [PATCH 1/2] mips: pci-mt7620: do not print NFTS register value as
5 error log
6
7 These codes are used to read NFTS_TIMEOUT_DELAY register value and
8 write it into kernel log after writing the register. they are only
9 used for debugging during driver development, so there is no need
10 to keep them now.
11
12 Tested on MT7628AN router Motorola MWR03.
13
14 Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
15 Reviewed-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
16 Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
17 ---
18 arch/mips/pci/pci-mt7620.c | 3 ---
19 1 file changed, 3 deletions(-)
20
21 --- a/arch/mips/pci/pci-mt7620.c
22 +++ b/arch/mips/pci/pci-mt7620.c
23 @@ -274,9 +274,6 @@ static int mt7628_pci_hw_init(struct pla
24 val |= 0x50 << 8;
25 pci_config_write(NULL, 0, 0x70c, 4, val);
26
27 - pci_config_read(NULL, 0, 0x70c, 4, &val);
28 - dev_err(&pdev->dev, "Port 0 N_FTS = %x\n", (unsigned int) val);
29 -
30 return 0;
31 }
32