]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
PCI: xilinx-nwl: Fix register misspelling
authorSean Anderson <sean.anderson@linux.dev>
Fri, 31 May 2024 16:13:33 +0000 (12:13 -0400)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 22 Aug 2024 18:38:03 +0000 (13:38 -0500)
MSIC -> MISC

Fixes: c2a7ff18edcd ("PCI: xilinx-nwl: Expand error logging")
Link: https://lore.kernel.org/r/20240531161337.864994-4-sean.anderson@linux.dev
Signed-off-by: Sean Anderson <sean.anderson@linux.dev>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/controller/pcie-xilinx-nwl.c

index 437927e3bccab44cf1ab4cf322d68186b1171b76..ce881baac6d83c9f50999c9c39f8f379dca4078a 100644 (file)
@@ -80,8 +80,8 @@
 #define MSGF_MISC_SR_NON_FATAL_DEV     BIT(22)
 #define MSGF_MISC_SR_FATAL_DEV         BIT(23)
 #define MSGF_MISC_SR_LINK_DOWN         BIT(24)
-#define MSGF_MSIC_SR_LINK_AUTO_BWIDTH  BIT(25)
-#define MSGF_MSIC_SR_LINK_BWIDTH       BIT(26)
+#define MSGF_MISC_SR_LINK_AUTO_BWIDTH  BIT(25)
+#define MSGF_MISC_SR_LINK_BWIDTH       BIT(26)
 
 #define MSGF_MISC_SR_MASKALL           (MSGF_MISC_SR_RXMSG_AVAIL | \
                                        MSGF_MISC_SR_RXMSG_OVER | \
@@ -96,8 +96,8 @@
                                        MSGF_MISC_SR_NON_FATAL_DEV | \
                                        MSGF_MISC_SR_FATAL_DEV | \
                                        MSGF_MISC_SR_LINK_DOWN | \
-                                       MSGF_MSIC_SR_LINK_AUTO_BWIDTH | \
-                                       MSGF_MSIC_SR_LINK_BWIDTH)
+                                       MSGF_MISC_SR_LINK_AUTO_BWIDTH | \
+                                       MSGF_MISC_SR_LINK_BWIDTH)
 
 /* Legacy interrupt status mask bits */
 #define MSGF_LEG_SR_INTA               BIT(0)
@@ -299,10 +299,10 @@ static irqreturn_t nwl_pcie_misc_handler(int irq, void *data)
        if (misc_stat & MSGF_MISC_SR_FATAL_DEV)
                dev_err(dev, "Fatal Error Detected\n");
 
-       if (misc_stat & MSGF_MSIC_SR_LINK_AUTO_BWIDTH)
+       if (misc_stat & MSGF_MISC_SR_LINK_AUTO_BWIDTH)
                dev_info(dev, "Link Autonomous Bandwidth Management Status bit set\n");
 
-       if (misc_stat & MSGF_MSIC_SR_LINK_BWIDTH)
+       if (misc_stat & MSGF_MISC_SR_LINK_BWIDTH)
                dev_info(dev, "Link Bandwidth Management Status bit set\n");
 
        /* Clear misc interrupt status */