010-v6.5-01-mips-pci-mt7620-do-not-print-NFTS-register-value-as-.patch 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. From 9f9a035e6156a57d9da062b26d2a48d031744a1e Mon Sep 17 00:00:00 2001
  2. From: Shiji Yang <[email protected]>
  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. These codes are used to read NFTS_TIMEOUT_DELAY register value and
  7. write it into kernel log after writing the register. they are only
  8. used for debugging during driver development, so there is no need
  9. to keep them now.
  10. Tested on MT7628AN router Motorola MWR03.
  11. Signed-off-by: Shiji Yang <[email protected]>
  12. Reviewed-by: Sergio Paracuellos <[email protected]>
  13. Signed-off-by: Thomas Bogendoerfer <[email protected]>
  14. ---
  15. arch/mips/pci/pci-mt7620.c | 3 ---
  16. 1 file changed, 3 deletions(-)
  17. --- a/arch/mips/pci/pci-mt7620.c
  18. +++ b/arch/mips/pci/pci-mt7620.c
  19. @@ -274,9 +274,6 @@ static int mt7628_pci_hw_init(struct pla
  20. val |= 0x50 << 8;
  21. pci_config_write(NULL, 0, 0x70c, 4, val);
  22. - pci_config_read(NULL, 0, 0x70c, 4, &val);
  23. - dev_err(&pdev->dev, "Port 0 N_FTS = %x\n", (unsigned int) val);
  24. -
  25. return 0;
  26. }