]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
treewide: strip trailing whitespace where present 24255/head
authorMieczyslaw Nalewaj <namiltd@yahoo.com>
Thu, 16 Jul 2026 14:34:54 +0000 (16:34 +0200)
committerJonas Jelonek <jelonek.jonas@gmail.com>
Fri, 17 Jul 2026 07:21:38 +0000 (09:21 +0200)
Ran a treewide trailing-whitespace cleanup for *.c, *.h, *.dts and *.dtsi.
Only files under target/linux/lantiq/... and target/linux/qualcommax/...
required changes, so the diff is limited to those paths.

Done by executing commands:
find . -type f | grep "\.c$" | xargs sed -i 's/[ \t]\+$//'
find . -type f | grep "\.h$" | xargs sed -i 's/[ \t]\+$//'
find . -type f | grep "\.dts$" | xargs sed -i 's/[ \t]\+$//'
find . -type f | grep "\.dtsi$" | xargs sed -i 's/[ \t]\+$//'

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/24255
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
14 files changed:
target/linux/lantiq/files/arch/mips/pci/fixup-lantiq-pcie.c
target/linux/lantiq/files/arch/mips/pci/ifxmips_pci_common.h
target/linux/lantiq/files/arch/mips/pci/ifxmips_pcie.c
target/linux/lantiq/files/arch/mips/pci/ifxmips_pcie.h
target/linux/lantiq/files/arch/mips/pci/ifxmips_pcie_ar10.h
target/linux/lantiq/files/arch/mips/pci/ifxmips_pcie_msi.c
target/linux/lantiq/files/arch/mips/pci/ifxmips_pcie_phy.c
target/linux/lantiq/files/arch/mips/pci/ifxmips_pcie_pm.c
target/linux/lantiq/files/arch/mips/pci/ifxmips_pcie_pm.h
target/linux/lantiq/files/arch/mips/pci/ifxmips_pcie_reg.h
target/linux/lantiq/files/arch/mips/pci/ifxmips_pcie_vr9.h
target/linux/lantiq/files/arch/mips/pci/pcie-lantiq.h
target/linux/qualcommax/dts/ipq5018-redmi-ax5400.dts
target/linux/qualcommax/files/drivers/net/ethernet/stmicro/stmmac/dwmac-ipq5018.c

index a8180313ea21d0ae769eb462e33da1a7c51f26cd..f78cf15f61a6bec1d82aae79d48b5515b02cda08 100644 (file)
@@ -2,7 +2,7 @@
 **
 ** FILE NAME    : ifxmips_fixup_pcie.c
 ** PROJECT      : IFX UEIP for VRX200
-** MODULES      : PCIe 
+** MODULES      : PCIe
 **
 ** DATE         : 02 Mar 2009
 ** AUTHOR       : Lei Chuanhua
@@ -21,7 +21,7 @@
 *******************************************************************************/
 /*!
  \file ifxmips_fixup_pcie.c
- \ingroup IFX_PCIE  
+ \ingroup IFX_PCIE
  \brief PCIe Fixup functions source file
 */
 #include <linux/pci.h>
@@ -39,11 +39,11 @@ ifx_pcie_fixup_resource(struct pci_dev *dev)
 
     IFX_PCIE_PRINT(PCIE_MSG_FIXUP, "%s dev %s: enter\n", __func__, pci_name(dev));
 
-    printk("%s: fixup host controller %s (%04x:%04x)\n", 
-        __func__, pci_name(dev), dev->vendor, dev->device); 
+    printk("%s: fixup host controller %s (%04x:%04x)\n",
+        __func__, pci_name(dev), dev->vendor, dev->device);
 
    /* Setup COMMAND register */
-    reg = PCI_COMMAND_IO | PCI_COMMAND_MEMORY | PCI_COMMAND_MASTER /* | 
+    reg = PCI_COMMAND_IO | PCI_COMMAND_MEMORY | PCI_COMMAND_MASTER /* |
           PCI_COMMAND_INTX_DISABLE */| PCI_COMMAND_SERR;
     pci_write_config_word(dev, PCI_COMMAND, reg);
     IFX_PCIE_PRINT(PCIE_MSG_FIXUP, "%s dev %s: exit\n", __func__, pci_name(dev));
index 0d7a1a2503fa58077a43b0b8ea090df36403057d..adba0cfd7a4e4b2eda80aaa915f6e0330e9790c2 100644 (file)
@@ -24,7 +24,7 @@
 #define IFXMIPS_PCI_COMMON_H
 #include <linux/version.h>
 /*!
- \defgroup IFX_PCI_COM  IFX PCI/PCIe common parts for OS integration  
+ \defgroup IFX_PCI_COM  IFX PCI/PCIe common parts for OS integration
  \brief  PCI/PCIe common parts
 */
 
index da3d54d077bd2b306652a9990b3ff3a0c990f2ef..d19c82fcb1161ce20e4839621934b2eb7bcd7c2f 100644 (file)
@@ -154,8 +154,8 @@ static inline void pcie_mem_io_setup(int pcie_port)
 {
     u32 reg;
     /*
-     * BAR[0:1] readonly register 
-     * RC contains only minimal BARs for packets mapped to this device 
+     * BAR[0:1] readonly register
+     * RC contains only minimal BARs for packets mapped to this device
      * Mem/IO filters defines a range of memory occupied by memory mapped IO devices that
      * reside on the downstream side fo the bridge.
      */
@@ -177,12 +177,12 @@ static inline void pcie_mem_io_setup(int pcie_port)
 #else
     /* PCIe_PBML, same as MBML */
     IFX_REG_W32(IFX_REG_R32(PCIE_MBML(pcie_port)), PCIE_PMBL(pcie_port));
-#endif 
+#endif
 
     /* IO Address Range */
     reg = SM((PCIE_IO_PHY_PORT_TO_END(pcie_port) >> 12), PCIE_IOBLSECS_IO_LIMIT_ADDR)
         | SM((PCIE_IO_PHY_PORT_TO_BASE(pcie_port) >> 12), PCIE_IOBLSECS_IO_BASE_ADDR);
-#ifdef IFX_PCIE_IO_32BIT    
+#ifdef IFX_PCIE_IO_32BIT
     reg |= PCIE_IOBLSECS_32BIT_IO_ADDR;
 #endif /* IFX_PCIE_IO_32BIT */
     IFX_REG_W32(reg, PCIE_IOBLSECS(pcie_port));
@@ -213,8 +213,8 @@ pcie_device_setup(int pcie_port)
     /* Set Maximum Read Request size for the device as a Requestor */
     reg = IFX_REG_R32(PCIE_DCTLSTS(pcie_port));
 
-    /* 
-     * Request size can be larger than the MPS used, but the completions returned 
+    /*
+     * Request size can be larger than the MPS used, but the completions returned
      * for the read will be bounded by the MPS size.
      * In our system, Max request size depends on AHB burst size. It is 64 bytes.
      * but we set it as 128 as minimum one.
@@ -234,7 +234,7 @@ pcie_link_setup(int pcie_port)
     u32 reg;
 
     /*
-     * XXX, Link capability register, bit 18 for EP CLKREQ# dynamic clock management for L1, L2/3 CPM 
+     * XXX, Link capability register, bit 18 for EP CLKREQ# dynamic clock management for L1, L2/3 CPM
      * L0s is reported during link training via TS1 order set by N_FTS
      */
     reg = IFX_REG_R32(PCIE_LCAP(pcie_port));
@@ -249,8 +249,8 @@ pcie_link_setup(int pcie_port)
     reg &= ~PCIE_LCTLSTS_LINK_DISABLE;
 
 #ifdef CONFIG_PCIEASPM
-    /*  
-     * We use the same physical reference clock that the platform provides on the connector 
+    /*
+     * We use the same physical reference clock that the platform provides on the connector
      * It paved the way for ASPM to calculate the new exit Latency
      */
     reg |= PCIE_LCTLSTS_SLOT_CLK_CFG;
@@ -264,9 +264,9 @@ pcie_link_setup(int pcie_port)
     reg &= ~PCIE_LCTLSTS_ASPM_ENABLE;
 #endif /* CONFIG_PCIEASPM */
 
-    /* 
-     * The maximum size of any completion with data packet is bounded by the MPS setting 
-     * in  device control register 
+    /*
+     * The maximum size of any completion with data packet is bounded by the MPS setting
+     * in  device control register
      */
 
     /* RCB may cause multiple split transactions, two options available, we use 64 byte RCB */
@@ -279,9 +279,9 @@ static inline void pcie_error_setup(int pcie_port)
 {
        u32 reg;
 
-       /* 
-       * Forward ERR_COR, ERR_NONFATAL, ERR_FATAL to the backbone 
-       * Poisoned write TLPs and completions indicating poisoned TLPs will set the PCIe_PCICMDSTS.MDPE 
+       /*
+       * Forward ERR_COR, ERR_NONFATAL, ERR_FATAL to the backbone
+       * Poisoned write TLPs and completions indicating poisoned TLPs will set the PCIe_PCICMDSTS.MDPE
        */
        reg = IFX_REG_R32(PCIE_INTRBCTRL(pcie_port));
        reg |= PCIE_INTRBCTRL_SERR_ENABLE | PCIE_INTRBCTRL_PARITY_ERR_RESP_ENABLE;
@@ -469,7 +469,7 @@ static inline int pcie_app_loigc_setup(int pcie_port)
 }
 
 /*
- * The numbers below are directly from the PCIe spec table 3-4/5. 
+ * The numbers below are directly from the PCIe spec table 3-4/5.
  */
 static inline void pcie_replay_time_update(int pcie_port)
 {
@@ -550,7 +550,7 @@ static int pcie_valid_config(int pcie_port, int bus, int dev)
        }
 
        /* Bus zero only has RC itself
-       * XXX, check if EP will be integrated 
+       * XXX, check if EP will be integrated
        */
        if ((bus == 0) && (dev != 0)) {
                return 0;
@@ -561,8 +561,8 @@ static int pcie_valid_config(int pcie_port, int bus, int dev)
                return 0;
        }
 
-       /* 
-        * PCIe is PtP link, one bus only supports only one device 
+       /*
+        * PCIe is PtP link, one bus only supports only one device
         * except bus zero and PCIe switch which is virtual bus device
         * The following two conditions really depends on the system design
         * and attached the device.
@@ -668,29 +668,29 @@ static int ifx_pcie_read_config(struct pci_bus *bus, u32 devfn,
         goto out;
     }
 
-    /* 
-     * If we are second controller, we have to cheat OS so that it assume 
+    /*
+     * If we are second controller, we have to cheat OS so that it assume
      * its bus number starts from 0 in host controller
      */
     bus_number = ifx_pcie_bus_nr_deduct(bus_number, pcie_port);
 
-    /* 
-     * We need to force the bus number to be zero on the root 
-     * bus. Linux numbers the 2nd root bus to start after all 
-     * busses on root 0. 
-     */ 
+    /*
+     * We need to force the bus number to be zero on the root
+     * bus. Linux numbers the 2nd root bus to start after all
+     * busses on root 0.
+     */
     if (bus->parent == NULL) {
-        bus_number = 0; 
+        bus_number = 0;
     }
 
-    /* 
-     * PCIe only has a single device connected to it. It is 
-     * always device ID 0. Don't bother doing reads for other 
-     * device IDs on the first segment. 
-     */ 
+    /*
+     * PCIe only has a single device connected to it. It is
+     * always device ID 0. Don't bother doing reads for other
+     * device IDs on the first segment.
+     */
     if ((bus_number == 0) && (PCI_SLOT(devfn) != 0)) {
         ret = PCIBIOS_FUNC_NOT_SUPPORTED;
-        goto out; 
+        goto out;
     }
 
     if (pcie_valid_config(pcie_port, bus_number, PCI_SLOT(devfn)) == 0) {
@@ -761,19 +761,19 @@ static int ifx_pcie_write_config(struct pci_bus *bus, u32 devfn,
                ret = PCIBIOS_BAD_REGISTER_NUMBER;
                goto out;
        }
-       /* 
-       * If we are second controller, we have to cheat OS so that it assume 
+       /*
+       * If we are second controller, we have to cheat OS so that it assume
        * its bus number starts from 0 in host controller
        */
        bus_number = ifx_pcie_bus_nr_deduct(bus_number, pcie_port);
 
-       /* 
-       * We need to force the bus number to be zero on the root 
-       * bus. Linux numbers the 2nd root bus to start after all 
-       * busses on root 0. 
-       */ 
+       /*
+       * We need to force the bus number to be zero on the root
+       * bus. Linux numbers the 2nd root bus to start after all
+       * busses on root 0.
+       */
        if (bus->parent == NULL) {
-               bus_number = 0; 
+               bus_number = 0;
        }
 
        if (pcie_valid_config(pcie_port, bus_number, PCI_SLOT(devfn)) == 0) {
@@ -784,7 +784,7 @@ static int ifx_pcie_write_config(struct pci_bus *bus, u32 devfn,
        /* XXX, some PCIe device may need some delay */
        PCIE_IRQ_LOCK(ifx_pcie_lock);
 
-       /* 
+       /*
        * To configure the correct bus topology using native way, we have to cheat Os so that
        * it can configure the PCIe hardware correctly.
        */
@@ -911,12 +911,12 @@ int  ifx_pcie_bios_plat_dev_init(struct pci_dev *dev)
 {
     u16 config;
 #ifdef IFX_PCIE_ERROR_INT
-    u32 dconfig; 
+    u32 dconfig;
     int pos;
 #endif
 
-    /* Enable reporting System errors and parity errors on all devices */ 
-    /* Enable parity checking and error reporting */ 
+    /* Enable reporting System errors and parity errors on all devices */
+    /* Enable parity checking and error reporting */
     pci_read_config_word(dev, PCI_COMMAND, &config);
     config |= PCI_COMMAND_PARITY | PCI_COMMAND_SERR /*| PCI_COMMAND_INVALIDATE |
           PCI_COMMAND_FAST_BACK*/;
@@ -944,7 +944,7 @@ int  ifx_pcie_bios_plat_dev_init(struct pci_dev *dev)
         pci_read_config_word(dev, pos + PCI_EXP_DEVSTA, &config);
         pci_write_config_word(dev, pos + PCI_EXP_DEVSTA, config);
 
-        /* Update Device Control */ 
+        /* Update Device Control */
         pci_read_config_word(dev, pos + PCI_EXP_DEVCTL, &config);
         /* Correctable Error Reporting */
         config |= PCI_EXP_DEVCTL_CERE;
@@ -960,17 +960,17 @@ int  ifx_pcie_bios_plat_dev_init(struct pci_dev *dev)
     /* Find the Advanced Error Reporting capability */
     pos = pci_find_ext_capability(dev, PCI_EXT_CAP_ID_ERR);
     if (pos) {
-        /* Clear Uncorrectable Error Status */ 
+        /* Clear Uncorrectable Error Status */
         pci_read_config_dword(dev, pos + PCI_ERR_UNCOR_STATUS, &dconfig);
         pci_write_config_dword(dev, pos + PCI_ERR_UNCOR_STATUS, dconfig);
         /* Enable reporting of all uncorrectable errors */
         /* Uncorrectable Error Mask - turned on bits disable errors */
         pci_write_config_dword(dev, pos + PCI_ERR_UNCOR_MASK, 0);
-        /* 
-        * Leave severity at HW default. This only controls if 
-        * errors are reported as uncorrectable or 
-        * correctable, not if the error is reported. 
-        */ 
+        /*
+        * Leave severity at HW default. This only controls if
+        * errors are reported as uncorrectable or
+        * correctable, not if the error is reported.
+        */
         /* PCI_ERR_UNCOR_SEVER - Uncorrectable Error Severity */
         /* Clear Correctable Error Status */
         pci_read_config_dword(dev, pos + PCI_ERR_COR_STATUS, &dconfig);
@@ -978,7 +978,7 @@ int  ifx_pcie_bios_plat_dev_init(struct pci_dev *dev)
         /* Enable reporting of all correctable errors */
         /* Correctable Error Mask - turned on bits disable errors */
         pci_write_config_dword(dev, pos + PCI_ERR_COR_MASK, 0);
-        /* Advanced Error Capabilities */ 
+        /* Advanced Error Capabilities */
         pci_read_config_dword(dev, pos + PCI_ERR_CAP, &dconfig);
         /* ECRC Generation Enable */
         if (dconfig & PCI_ERR_CAP_ECRC_GENC) {
@@ -995,7 +995,7 @@ int  ifx_pcie_bios_plat_dev_init(struct pci_dev *dev)
         pci_write_config_dword(dev, pos + PCI_ERR_ROOT_COMMAND,
               PCI_ERR_ROOT_CMD_COR_EN |
               PCI_ERR_ROOT_CMD_NONFATAL_EN |
-              PCI_ERR_ROOT_CMD_FATAL_EN); 
+              PCI_ERR_ROOT_CMD_FATAL_EN);
         /* Clear the Root status register */
         pci_read_config_dword(dev, pos + PCI_ERR_ROOT_STATUS, &dconfig);
         pci_write_config_dword(dev, pos + PCI_ERR_ROOT_STATUS, dconfig);
@@ -1032,9 +1032,9 @@ pcie_rc_initialize(int pcie_port)
 
        pcie_ep_gpio_rst_init(pcie_port);
 
-       /* 
-       * XXX, PCIe elastic buffer bug will cause not to be detected. One more 
-       * reset PCIe PHY will solve this issue 
+       /*
+       * XXX, PCIe elastic buffer bug will cause not to be detected. One more
+       * reset PCIe PHY will solve this issue
        */
        for (i = 0; i < IFX_PCIE_PHY_LOOP_CNT; i++) {
                ret = phy_init(ltq_pcie_phy);
@@ -1149,7 +1149,7 @@ static int ifx_pcie_bios_probe(struct platform_device *pdev)
 
     for (pcie_port = startup_port; pcie_port < IFX_PCIE_CORE_NR; pcie_port++){
        if (pcie_rc_initialize(pcie_port) == 0) {
-           IFX_PCIE_PRINT(PCIE_MSG_INIT, "%s: ifx_pcie_cfg_base 0x%p\n", 
+           IFX_PCIE_PRINT(PCIE_MSG_INIT, "%s: ifx_pcie_cfg_base 0x%p\n",
                  __func__, PCIE_CFG_PORT_TO_BASE(pcie_port));
             /* Otherwise, warning will pop up */
             io_map_base = ioremap(PCIE_IO_PHY_PORT_TO_BASE(pcie_port), PCIE_IO_SIZE);
@@ -1174,8 +1174,8 @@ static int ifx_pcie_bios_probe(struct platform_device *pdev)
             register_pci_controller(&ifx_pcie_controller[pcie_port].pcic);
             /* XXX, clear error status */
 
-            IFX_PCIE_PRINT(PCIE_MSG_INIT, "%s: mem_resource 0x%p, io_resource 0x%p\n", 
-                              __func__, &ifx_pcie_controller[pcie_port].pcic.mem_resource, 
+            IFX_PCIE_PRINT(PCIE_MSG_INIT, "%s: mem_resource 0x%p, io_resource 0x%p\n",
+                              __func__, &ifx_pcie_controller[pcie_port].pcic.mem_resource,
                               &ifx_pcie_controller[pcie_port].pcic.io_resource);
 
         #ifdef IFX_PCIE_ERROR_INT
index cd7bc32a55bb9301325cc5d9b695f1718bda37c6..345fc435a75a5e2c14b5a4b5730089f5194c576a 100644 (file)
@@ -29,8 +29,8 @@
 #include "ifxmips_pcie_reg.h"
 
 /*!
- \defgroup IFX_PCIE  PCI Express bus driver module   
- \brief  PCI Express IP module support VRX200 
+ \defgroup IFX_PCIE  PCI Express bus driver module
+ \brief  PCI Express IP module support VRX200
 */
 
 /*!
@@ -41,7 +41,7 @@
 
 /*!
  \file ifxmips_pcie.h
- \ingroup IFX_PCIE  
+ \ingroup IFX_PCIE
  \brief header file for PCIe module common header file
 */
 #define PCIE_IRQ_LOCK(lock) do {             \
@@ -81,7 +81,7 @@
         ifx_pcie_debug((_fmt), ##args);          \
 } while (0)
 
-#define INLINE 
+#define INLINE
 #else
 #define IFX_PCIE_PRINT(_m, _fmt, args...)   \
     do {} while(0)
@@ -90,7 +90,7 @@
 
 struct ifx_pci_controller {
        struct pci_controller   pcic;
-    
+
        /* RC specific, per host bus information */
        u32   port;  /* Port index, 0 -- 1st core, 1 -- 2nd core */
 };
index dfd30a42708931beabf692c88459d1b2eab7ae6e..d1e23ace4ddba404f2d9bab56346118ae9ae71c2 100644 (file)
@@ -31,14 +31,14 @@ static inline void pcie_ep_gpio_rst_init(int pcie_port)
 {
     ifx_ebu_led_enable();
     if (pcie_port == 0) {
-        ifx_ebu_led_set_data(11, 1);        
+        ifx_ebu_led_set_data(11, 1);
     }
     else {
-        ifx_ebu_led_set_data(12, 1);  
+        ifx_ebu_led_set_data(12, 1);
     }
 }
 
-static inline void pcie_ahb_pmu_setup(void) 
+static inline void pcie_ahb_pmu_setup(void)
 {
     /* XXX, moved to CGU to control AHBM */
 }
@@ -219,7 +219,7 @@ static inline void pcie_core_pmu_setup(int pcie_port)
         PCIE0_CTRL_PMU_SETUP(IFX_PMU_ENABLE);
     }
     else {
-        PCIE1_CTRL_PMU_SETUP(IFX_PMU_ENABLE); 
+        PCIE1_CTRL_PMU_SETUP(IFX_PMU_ENABLE);
     }
 }
 
@@ -243,7 +243,7 @@ ifx_pcie_bus_nr_deduct(u32 bus_number, int pcie_port)
     if (pcie_port == IFX_PCIE_PORT1) { /* Port 1 must check if there are two cores enabled */
         if (pcibios_host_nr() > 1) {
             tbus_number -= pcibios_1st_host_bus_nr();
-        }        
+        }
     }
 #endif /* CONFIG_IFX_PCI */
     return tbus_number;
index de4031db4eeb503e4c338bed900b4ff55bd33980..8db77a5334a53eec5a312c412b6f4a996e6f9997 100644 (file)
@@ -27,7 +27,7 @@
 
 /*!
  \file ifxmips_pcie_msi.c
- \ingroup IFX_PCIE 
+ \ingroup IFX_PCIE
  \brief PCIe MSI OS interface file
 */
 
@@ -79,15 +79,15 @@ typedef struct ifx_msi_irq {
     const u32 msi_phy_base;
     const ifx_msi_irq_idx_t msi_irq_idx[IFX_MSI_IRQ_NUM];
     /*
-     * Each bit in msi_free_irq_bitmask represents a MSI interrupt that is 
+     * Each bit in msi_free_irq_bitmask represents a MSI interrupt that is
      * in use.
      */
     u16 msi_free_irq_bitmask;
 
     /*
-     * Each bit in msi_multiple_irq_bitmask tells that the device using 
-     * this bit in msi_free_irq_bitmask is also using the next bit. This 
-     * is used so we can disable all of the MSI interrupts when a device 
+     * Each bit in msi_multiple_irq_bitmask tells that the device using
+     * this bit in msi_free_irq_bitmask is also using the next bit. This
+     * is used so we can disable all of the MSI interrupts when a device
      * uses multiple.
      */
     u16 msi_multiple_irq_bitmask;
@@ -131,10 +131,10 @@ static ifx_msi_irq_t msi_irqs[IFX_PCIE_CORE_NR] = {
 #endif /* CONFIG_IFX_PCIE_2ND_CORE */
 };
 
-/* 
- * This lock controls updates to msi_free_irq_bitmask, 
+/*
+ * This lock controls updates to msi_free_irq_bitmask,
  * msi_multiple_irq_bitmask and pic register settting
- */ 
+ */
 static DEFINE_SPINLOCK(ifx_pcie_msi_lock);
 
 void pcie_msi_pic_init(int pcie_port)
@@ -144,22 +144,22 @@ void pcie_msi_pic_init(int pcie_port)
     spin_unlock(&ifx_pcie_msi_lock);
 }
 
-/** 
+/**
  * \fn int arch_setup_msi_irq(struct pci_dev *pdev, struct msi_desc *desc)
- * \brief Called when a driver request MSI interrupts instead of the 
- * legacy INT A-D. This routine will allocate multiple interrupts 
- * for MSI devices that support them. A device can override this by 
- * programming the MSI control bits [6:4] before calling 
- * pci_enable_msi(). 
- * 
- * \param[in] pdev   Device requesting MSI interrupts 
- * \param[in] desc   MSI descriptor 
- * 
+ * \brief Called when a driver request MSI interrupts instead of the
+ * legacy INT A-D. This routine will allocate multiple interrupts
+ * for MSI devices that support them. A device can override this by
+ * programming the MSI control bits [6:4] before calling
+ * pci_enable_msi().
+ *
+ * \param[in] pdev   Device requesting MSI interrupts
+ * \param[in] desc   MSI descriptor
+ *
  * \return   -EINVAL Invalid pcie root port or invalid msi bit
  * \return    0        OK
  * \ingroup IFX_PCIE_MSI
  */
-int 
+int
 arch_setup_msi_irq(struct pci_dev *pdev, struct msi_desc *desc)
 {
     int  irq, pos;
@@ -182,27 +182,27 @@ arch_setup_msi_irq(struct pci_dev *pdev, struct msi_desc *desc)
     }
 
     /*
-     * Read the MSI config to figure out how many IRQs this device 
-     * wants.  Most devices only want 1, which will give 
-     * configured_private_bits and request_private_bits equal 0. 
+     * Read the MSI config to figure out how many IRQs this device
+     * wants.  Most devices only want 1, which will give
+     * configured_private_bits and request_private_bits equal 0.
      */
     pci_read_config_word(pdev, desc->msi_attrib.pos + PCI_MSI_FLAGS, &control);
 
     /*
-     * If the number of private bits has been configured then use 
-     * that value instead of the requested number. This gives the 
-     * driver the chance to override the number of interrupts 
-     * before calling pci_enable_msi(). 
+     * If the number of private bits has been configured then use
+     * that value instead of the requested number. This gives the
+     * driver the chance to override the number of interrupts
+     * before calling pci_enable_msi().
      */
-    configured_private_bits = (control & PCI_MSI_FLAGS_QSIZE) >> 4; 
+    configured_private_bits = (control & PCI_MSI_FLAGS_QSIZE) >> 4;
     if (configured_private_bits == 0) {
         /* Nothing is configured, so use the hardware requested size */
         request_private_bits = (control & PCI_MSI_FLAGS_QMASK) >> 1;
     }
     else {
         /*
-         * Use the number of configured bits, assuming the 
-         * driver wanted to override the hardware request 
+         * Use the number of configured bits, assuming the
+         * driver wanted to override the hardware request
          * value.
          */
         request_private_bits = configured_private_bits;
@@ -226,21 +226,21 @@ again:
     search_mask = (1 << irq_step) - 1;
 
     /*
-     * We're going to search msi_free_irq_bitmask_lock for zero 
-     * bits. This represents an MSI interrupt number that isn't in 
+     * We're going to search msi_free_irq_bitmask_lock for zero
+     * bits. This represents an MSI interrupt number that isn't in
      * use.
      */
     spin_lock(&ifx_pcie_msi_lock);
     for (pos = 0; pos < IFX_MSI_IRQ_NUM; pos += irq_step) {
         if ((msi_irqs[pcie_port].msi_free_irq_bitmask & (search_mask << pos)) == 0) {
-            msi_irqs[pcie_port].msi_free_irq_bitmask |= search_mask << pos; 
+            msi_irqs[pcie_port].msi_free_irq_bitmask |= search_mask << pos;
             msi_irqs[pcie_port].msi_multiple_irq_bitmask |= (search_mask >> 1) << pos;
-            break; 
+            break;
         }
     }
-    spin_unlock(&ifx_pcie_msi_lock); 
+    spin_unlock(&ifx_pcie_msi_lock);
 
-    /* Make sure the search for available interrupts didn't fail */ 
+    /* Make sure the search for available interrupts didn't fail */
     if (pos >= IFX_MSI_IRQ_NUM) {
         if (request_private_bits) {
             IFX_PCIE_PRINT(PCIE_MSG_MSI, "%s: Unable to find %d free "
@@ -252,17 +252,17 @@ again:
             printk(KERN_ERR "%s: Unable to find a free MSI interrupt\n", __func__);
             return -EINVAL;
         }
-    } 
+    }
     irq = msi_irqs[pcie_port].msi_irq_idx[pos].irq;
     irq_idx = msi_irqs[pcie_port].msi_irq_idx[pos].idx;
 
     IFX_PCIE_PRINT(PCIE_MSG_MSI, "pos %d, irq %d irq_idx %d\n", pos, irq, irq_idx);
 
     /*
-     * Initialize MSI. This has to match the memory-write endianess from the device 
+     * Initialize MSI. This has to match the memory-write endianess from the device
      * Address bits [23:12]
      */
-    spin_lock(&ifx_pcie_msi_lock); 
+    spin_lock(&ifx_pcie_msi_lock);
     msi_irqs[pcie_port].msi_pic_p->pic_table[pos] = SM(irq_idx, IFX_MSI_PIC_INT_LINE) |
                     SM((msi_irqs[pcie_port].msi_phy_base >> 12), IFX_MSI_PIC_MSG_ADDR) |
                     SM((1 << pos), IFX_MSI_PIC_MSG_DATA);
@@ -306,27 +306,27 @@ pcie_msi_irq_to_port(unsigned int irq, int *port)
     }
 #endif /* CONFIG_IFX_PCIE_2ND_CORE */
     else {
-        printk(KERN_ERR "%s: Attempted to teardown illegal " 
+        printk(KERN_ERR "%s: Attempted to teardown illegal "
             "MSI interrupt (%d)\n", __func__, irq);
         ret = -EINVAL;
     }
     return ret;
 }
 
-/** 
+/**
  * \fn void arch_teardown_msi_irq(unsigned int irq)
- * \brief Called when a device no longer needs its MSI interrupts. All 
- * MSI interrupts for the device are freed. 
- * 
+ * \brief Called when a device no longer needs its MSI interrupts. All
+ * MSI interrupts for the device are freed.
+ *
  * \param irq   The devices first irq number. There may be multple in sequence.
  * \return none
  * \ingroup IFX_PCIE_MSI
  */
-void 
+void
 arch_teardown_msi_irq(unsigned int irq)
 {
     int pos;
-    int number_irqs; 
+    int number_irqs;
     u16 bitmask;
     int pcie_port;
 
@@ -338,11 +338,11 @@ arch_teardown_msi_irq(unsigned int irq)
         return;
     }
 
-    /* Shift the mask to the correct bit location, not always correct 
+    /* Shift the mask to the correct bit location, not always correct
      * Probally, the first match will be chosen.
      */
     for (pos = 0; pos < IFX_MSI_IRQ_NUM; pos++) {
-        if ((msi_irqs[pcie_port].msi_irq_idx[pos].irq == irq) 
+        if ((msi_irqs[pcie_port].msi_irq_idx[pos].irq == irq)
             && (msi_irqs[pcie_port].msi_free_irq_bitmask & ( 1 << pos))) {
             break;
         }
@@ -355,14 +355,14 @@ arch_teardown_msi_irq(unsigned int irq)
     /* Disable this entry */
     msi_irqs[pcie_port].msi_pic_p->pic_table[pos] |= IFX_MSI_PCI_INT_DISABLE;
     msi_irqs[pcie_port].msi_pic_p->pic_table[pos] &= ~(IFX_MSI_PIC_INT_LINE | IFX_MSI_PIC_MSG_ADDR | IFX_MSI_PIC_MSG_DATA);
-    spin_unlock(&ifx_pcie_msi_lock); 
+    spin_unlock(&ifx_pcie_msi_lock);
     /*
      * Count the number of IRQs we need to free by looking at the
      * msi_multiple_irq_bitmask. Each bit set means that the next
      * IRQ is also owned by this device.
-     */ 
-    number_irqs = 0; 
-    while (((pos + number_irqs) < IFX_MSI_IRQ_NUM) && 
+     */
+    number_irqs = 0;
+    while (((pos + number_irqs) < IFX_MSI_IRQ_NUM) &&
         (msi_irqs[pcie_port].msi_multiple_irq_bitmask & (1 << (pos + number_irqs)))) {
         number_irqs++;
     }
index f5b0f1357661bb63cf9750d4d0864430db9831a8..9f7535aeba053e3a8b43e0951613eeb3b2818ab2 100644 (file)
@@ -21,7 +21,7 @@
 *******************************************************************************/
 /*!
  \file ifxmips_pcie_phy.c
- \ingroup IFX_PCIE  
+ \ingroup IFX_PCIE
  \brief PCIe PHY PLL register programming source file
 */
 #include <linux/types.h>
@@ -36,7 +36,7 @@
 
 #define IFX_PCIE_PHY_REG_WRITE16(__addr, __data) \
     ((*(volatile u16 *) (__addr)) = (__data))
-    
+
 #define IFX_PCIE_PHY_REG_READ16(__addr)  \
     (*(volatile u16 *) (__addr))
 
@@ -57,7 +57,7 @@
 
 #ifdef IFX_PCI_PHY_REG_DUMP
 static void
-pcie_phy_reg_dump(int pcie_port) 
+pcie_phy_reg_dump(int pcie_port)
 {
     printk("PLL REGFILE\n");
     printk("PCIE_PHY_PLL_CTRL1    0x%04x\n", IFX_PCIE_PHY_REG16(PCIE_PHY_PLL_CTRL1(pcie_port)));
@@ -141,8 +141,8 @@ pcie_phy_comm_setup(int pcie_port)
 }
 
 #ifdef CONFIG_IFX_PCIE_PHY_36MHZ_MODE
-static void 
-pcie_phy_36mhz_mode_setup(int pcie_port) 
+static void
+pcie_phy_36mhz_mode_setup(int pcie_port)
 {
     IFX_PCIE_PRINT(PCIE_MSG_PHY, "%s pcie_port %d enter\n", __func__, pcie_port);
 #ifdef IFX_PCI_PHY_REG_DUMP
@@ -185,8 +185,8 @@ pcie_phy_36mhz_mode_setup(int pcie_port)
 #endif /* CONFIG_IFX_PCIE_PHY_36MHZ_MODE */
 
 #ifdef CONFIG_IFX_PCIE_PHY_36MHZ_SSC_MODE
-static void 
-pcie_phy_36mhz_ssc_mode_setup(int pcie_port) 
+static void
+pcie_phy_36mhz_ssc_mode_setup(int pcie_port)
 {
     IFX_PCIE_PRINT(PCIE_MSG_PHY, "%s pcie_port %d enter\n", __func__, pcie_port);
 #ifdef IFX_PCI_PHY_REG_DUMP
@@ -260,14 +260,14 @@ pcie_phy_36mhz_ssc_mode_setup(int pcie_port)
 
     /* reduced CDR BW to avoid glitches */
     IFX_PCIE_PHY_REG(PCIE_PHY_RX1_CDR(pcie_port), 0x0235, 0xFFFF);
-    
+
     IFX_PCIE_PRINT(PCIE_MSG_PHY, "%s pcie_port %d exit\n", __func__, pcie_port);
 }
 #endif /* CONFIG_IFX_PCIE_PHY_36MHZ_SSC_MODE */
 
 #ifdef CONFIG_IFX_PCIE_PHY_25MHZ_MODE
-static void 
-pcie_phy_25mhz_mode_setup(int pcie_port) 
+static void
+pcie_phy_25mhz_mode_setup(int pcie_port)
 {
     IFX_PCIE_PRINT(PCIE_MSG_PHY, "%s pcie_port %d enter\n", __func__, pcie_port);
 #ifdef IFX_PCI_PHY_REG_DUMP
@@ -277,7 +277,7 @@ pcie_phy_25mhz_mode_setup(int pcie_port)
     /* en_const_sdm */
     IFX_PCIE_PHY_REG(PCIE_PHY_PLL_CTRL2(pcie_port), 0x0100, 0x0100);
 
-    /* pll_ensdm */    
+    /* pll_ensdm */
     IFX_PCIE_PHY_REG(PCIE_PHY_PLL_CTRL2(pcie_port), 0x0000, 0x0200);
 
     /* en_ext_mmd_div_ratio*/
@@ -297,14 +297,14 @@ pcie_phy_25mhz_mode_setup(int pcie_port)
 #endif /* CONFIG_IFX_PCIE_PHY_25MHZ_MODE */
 
 #ifdef CONFIG_IFX_PCIE_PHY_100MHZ_MODE
-static void 
-pcie_phy_100mhz_mode_setup(int pcie_port) 
+static void
+pcie_phy_100mhz_mode_setup(int pcie_port)
 {
     IFX_PCIE_PRINT(PCIE_MSG_PHY, "%s pcie_port %d enter\n", __func__, pcie_port);
 #ifdef IFX_PCI_PHY_REG_DUMP
     IFX_PCIE_PRINT(PCIE_MSG_PHY, "Initial PHY register dump\n");
     pcie_phy_reg_dump(pcie_port);
-#endif 
+#endif
     /* en_ext_mmd_div_ratio */
     IFX_PCIE_PHY_REG(PCIE_PHY_PLL_CTRL3(pcie_port), 0x0000, 0x0002);
 
@@ -357,8 +357,8 @@ pcie_phy_wait_startup_ready(int pcie_port)
     return 0;
 }
 
-static void 
-pcie_phy_load_enable(int pcie_port, int slice) 
+static void
+pcie_phy_load_enable(int pcie_port, int slice)
 {
     /* Set the load_en of tx/rx slice to '1' */
     switch (slice) {
@@ -374,10 +374,10 @@ pcie_phy_load_enable(int pcie_port, int slice)
     }
 }
 
-static void 
-pcie_phy_load_disable(int pcie_port, int slice) 
-{ 
-    /* set the load_en of tx/rx slice to '0' */ 
+static void
+pcie_phy_load_disable(int pcie_port, int slice)
+{
+    /* set the load_en of tx/rx slice to '0' */
     switch (slice) {
         case 1:
             IFX_PCIE_PHY_REG(PCIE_PHY_TX1_CTRL1(pcie_port), 0x0000, 0x0010);
@@ -385,13 +385,13 @@ pcie_phy_load_disable(int pcie_port, int slice)
         case 2:
             IFX_PCIE_PHY_REG(PCIE_PHY_TX2_CTRL1(pcie_port), 0x0000, 0x0010);
             break;
-        case 3: 
+        case 3:
             IFX_PCIE_PHY_REG(PCIE_PHY_RX1_CTRL1(pcie_port), 0x0000, 0x0002);
             break;
     }
 }
 
-static void 
+static void
 pcie_phy_load_war(int pcie_port)
 {
     int slice;
@@ -403,7 +403,7 @@ pcie_phy_load_war(int pcie_port)
     }
 }
 
-static void 
+static void
 pcie_phy_tx2_modulation(int pcie_port)
 {
     IFX_PCIE_PHY_REG(PCIE_PHY_TX2_MOD1(pcie_port), 0x1FFE, 0xFFFF);
@@ -413,7 +413,7 @@ pcie_phy_tx2_modulation(int pcie_port)
     IFX_PCIE_PHY_REG(PCIE_PHY_TX2_MOD3(pcie_port), 0x0001, 0xFFFF);
 }
 
-static void 
+static void
 pcie_phy_tx1_modulation(int pcie_port)
 {
     IFX_PCIE_PHY_REG(PCIE_PHY_TX1_MOD1(pcie_port), 0x1FFE, 0xFFFF);
@@ -428,7 +428,7 @@ pcie_phy_tx_modulation_war(int pcie_port)
 {
     int i;
 
-#define PCIE_PHY_MODULATION_NUM 5 
+#define PCIE_PHY_MODULATION_NUM 5
     for (i = 0; i < PCIE_PHY_MODULATION_NUM; i++) {
         pcie_phy_tx2_modulation(pcie_port);
         pcie_phy_tx1_modulation(pcie_port);
index a10ecad4b420ea3cd821fd601c5cbc7b53b771cf..edc1df67b3510ee4e14c151775a94794f5f0b069 100644 (file)
@@ -28,7 +28,7 @@
 
 /*!
  \file ifxmips_pcie_pm.c
- \ingroup IFX_PCIE    
+ \ingroup IFX_PCIE
  \brief source file for PCIE Root Complex Driver Power Management
 */
 
@@ -51,7 +51,7 @@
 #include <asm/ifx/ifx_pmcu.h>
 #include "ifxmips_pcie_pm.h"
 
-/** 
+/**
  * \fn static IFX_PMCU_RETURN_t ifx_pcie_pmcu_state_change(IFX_PMCU_STATE_t pmcuState)
  * \brief the callback function to request pmcu state in the power management hardware-dependent module
  *
  * \return IFX_PMCU_RETURN_DENIED  Not allowed to operate power state
  * \ingroup IFX_PCIE_PM
  */
-static IFX_PMCU_RETURN_t 
+static IFX_PMCU_RETURN_t
 ifx_pcie_pmcu_state_change(IFX_PMCU_STATE_t pmcuState)
 {
-    switch(pmcuState) 
+    switch(pmcuState)
     {
         case IFX_PMCU_STATE_D0:
             return IFX_PMCU_RETURN_SUCCESS;
@@ -80,7 +80,7 @@ ifx_pcie_pmcu_state_change(IFX_PMCU_STATE_t pmcuState)
     }
 }
 
-/** 
+/**
  * \fn static IFX_PMCU_RETURN_t ifx_pcie_pmcu_state_get(IFX_PMCU_STATE_t *pmcuState)
  * \brief the callback function to get pmcu state in the power management hardware-dependent module
 
@@ -91,7 +91,7 @@ ifx_pcie_pmcu_state_change(IFX_PMCU_STATE_t pmcuState)
  * \return IFX_PMCU_RETURN_DENIED  Not allowed to operate power state
  * \ingroup IFX_PCIE_PM
  */
-static IFX_PMCU_RETURN_t 
+static IFX_PMCU_RETURN_t
 ifx_pcie_pmcu_state_get(IFX_PMCU_STATE_t *pmcuState)
 {
     return IFX_PMCU_RETURN_SUCCESS;
@@ -100,7 +100,7 @@ ifx_pcie_pmcu_state_get(IFX_PMCU_STATE_t *pmcuState)
 /**
  * \fn IFX_PMCU_RETURN_t ifx_pcie_pmcu_prechange(IFX_PMCU_MODULE_t pmcuModule, IFX_PMCU_STATE_t newState, IFX_PMCU_STATE_t oldState)
  * \brief Apply all callbacks registered to be executed before a state change for pmcuModule
- * 
+ *
  * \param   pmcuModule      Module
  * \param   newState        New state
  * \param   oldState        Old state
@@ -108,7 +108,7 @@ ifx_pcie_pmcu_state_get(IFX_PMCU_STATE_t *pmcuState)
  * \return  IFX_PMCU_RETURN_ERROR   Failed to set power state.
  * \ingroup IFX_PCIE_PM
  */
-static IFX_PMCU_RETURN_t 
+static IFX_PMCU_RETURN_t
 ifx_pcie_pmcu_prechange(IFX_PMCU_MODULE_t pmcuModule, IFX_PMCU_STATE_t newState, IFX_PMCU_STATE_t oldState)
 {
     return IFX_PMCU_RETURN_SUCCESS;
@@ -117,7 +117,7 @@ ifx_pcie_pmcu_prechange(IFX_PMCU_MODULE_t pmcuModule, IFX_PMCU_STATE_t newState,
 /**
  * \fn IFX_PMCU_RETURN_t ifx_pcie_pmcu_postchange(IFX_PMCU_MODULE_t pmcuModule, IFX_PMCU_STATE_t newState, IFX_PMCU_STATE_t oldState)
  * \brief Apply all callbacks registered to be executed before a state change for pmcuModule
- * 
+ *
  * \param   pmcuModule      Module
  * \param   newState        New state
  * \param   oldState        Old state
@@ -125,13 +125,13 @@ ifx_pcie_pmcu_prechange(IFX_PMCU_MODULE_t pmcuModule, IFX_PMCU_STATE_t newState,
  * \return IFX_PMCU_RETURN_ERROR   Failed to set power state.
  * \ingroup IFX_PCIE_PM
  */
-static IFX_PMCU_RETURN_t 
+static IFX_PMCU_RETURN_t
 ifx_pcie_pmcu_postchange(IFX_PMCU_MODULE_t pmcuModule, IFX_PMCU_STATE_t newState, IFX_PMCU_STATE_t oldState)
 {
     return IFX_PMCU_RETURN_SUCCESS;
 }
 
-/** 
+/**
  * \fn static void ifx_pcie_pmcu_init(void)
  * \brief Register with central PMCU module
  * \return none
@@ -152,10 +152,10 @@ ifx_pcie_pmcu_init(void)
     pmcuRegister.ifx_pmcu_state_get = ifx_pcie_pmcu_state_get;
     pmcuRegister.pre = ifx_pcie_pmcu_prechange;
     pmcuRegister.post= ifx_pcie_pmcu_postchange;
-    ifx_pmcu_register(&pmcuRegister); 
+    ifx_pmcu_register(&pmcuRegister);
 }
 
-/** 
+/**
  * \fn static void ifx_pcie_pmcu_exit(void)
  * \brief Unregister with central PMCU module
  *
@@ -168,7 +168,7 @@ ifx_pcie_pmcu_exit(void)
     IFX_PMCU_REGISTER_t pmcuUnRegister;
 
    /* XXX, hook driver context */
-   
+
     pmcuUnRegister.pmcuModule = IFX_PMCU_MODULE_PCIE;
     pmcuUnRegister.pmcuModuleNr = 0;
     ifx_pmcu_unregister(&pmcuUnRegister);
index 6ece20df05a35411f9a3d5927b40cb08e0365294..5a855bb4ed1c91bc0457c0ddec44c0570e157519 100644 (file)
@@ -22,7 +22,7 @@
 *******************************************************************************/
 /*!
  \file ifxmips_pcie_pm.h
- \ingroup IFX_PCIE 
+ \ingroup IFX_PCIE
  \brief header file for PCIe Root Complex Driver Power Management
 */
 
index e7e4b6ca6f06684998b2dbc9087a658e13ad7213..6a15c2bd8d418af8de47b2590db4eed7603a6b43 100644 (file)
@@ -23,7 +23,7 @@
 #define IFXMIPS_PCIE_REG_H
 /*!
  \file ifxmips_pcie_reg.h
- \ingroup IFX_PCIE  
+ \ingroup IFX_PCIE
  \brief header file for PCIe module register definition
 */
 /* PCIe Address Mapping Base */
@@ -246,7 +246,7 @@ enum {
 
 /* AHB Control Register, fixed bus enumeration exception */
 #define PCIE_AHB_CTRL(X)                     (volatile u32*)(PCIE_APP_PORT_TO_BASE(X) + 0x78)
-#define PCIE_AHB_CTRL_BUS_ERROR_SUPPRESS     0x00000001 
+#define PCIE_AHB_CTRL_BUS_ERROR_SUPPRESS     0x00000001
 
 /* Interrupt Enalbe Register */
 #define PCIE_IRNEN(X)                        (volatile u32*)(PCIE_APP_PORT_TO_BASE(X) + 0xF4)
@@ -692,7 +692,7 @@ enum {
 #define PCIE_PVC2_VC_ARB_TAB_OFFSET         0xFF000000  /* VC arbitration table offset, not support */
 #define PCIE_PVC2_VC_ARB_TAB_OFFSET_S       24
 
-/* Port VC Control and Status Register */     
+/* Port VC Control and Status Register */
 #define PCIE_PVCCRSR(X)                     (volatile u32*)(PCIE_RC_PORT_TO_BASE(X) + 0x14C)
 #define PCIE_PVCCRSR_LOAD_VC_ARB_TAB         0x00000001  /* Load VC Arbitration Table */
 #define PCIE_PVCCRSR_VC_ARB_SEL              0x0000000E  /* VC Arbitration Select */
@@ -780,7 +780,7 @@ enum {
 /* Port Link Control Register */
 #define PCIE_PLCR(X)                         (volatile u32*)(PCIE_RC_PORT_TO_BASE(X) + 0x710)
 #define PCIE_PLCR_OTHER_MSG_REQ              0x00000001  /* Other Message Request */
-#define PCIE_PLCR_SCRAMBLE_DISABLE           0x00000002  /* Scramble Disable */  
+#define PCIE_PLCR_SCRAMBLE_DISABLE           0x00000002  /* Scramble Disable */
 #define PCIE_PLCR_LOOPBACK_EN                0x00000004  /* Loopback Enable */
 #define PCIE_PLCR_LTSSM_HOT_RST              0x00000008  /* Force LTSSM to the hot reset */
 #define PCIE_PLCR_DLL_LINK_EN                0x00000020  /* Enable Link initialization */
@@ -894,7 +894,7 @@ enum {
 #define PCIE_VC0_PRQCR_P_HDR_CREDITS_S           12
 #define PCIE_VC0_PRQCR_P_TLP_QUEUE_MODE          0x00E00000 /* VC0 Posted TLP Queue Mode */
 #define PCIE_VC0_PRQCR_P_TLP_QUEUE_MODE_S        20
-#define PCIE_VC0_PRQCR_TLP_RELAX_ORDER           0x40000000 /* TLP Type Ordering for VC0 */    
+#define PCIE_VC0_PRQCR_TLP_RELAX_ORDER           0x40000000 /* TLP Type Ordering for VC0 */
 #define PCIE_VC0_PRQCR_VC_STRICT_ORDER           0x80000000 /* VC0 Ordering for Receive Queues */
 
 /* VC0 Non-Posted Receive Queue Control */
@@ -949,9 +949,9 @@ enum {
 /* PHY Control Register, all zeros in VR9 */
 #define PCIE_PHYCR(X)                           (volatile u32*)(PCIE_RC_PORT_TO_BASE(X) + 0x814)
 
-/* 
- * PCIe PDI PHY register definition, suppose all the following 
- * stuff is confidential. 
+/*
+ * PCIe PDI PHY register definition, suppose all the following
+ * stuff is confidential.
  * XXX, detailed bit definition
  */
 #define        PCIE_PHY_PLL_CTRL1(X)       (PCIE_PHY_PORT_TO_BASE(X) + (0x22 << 1))
@@ -965,7 +965,7 @@ enum {
 #define        PCIE_PHY_PLL_A_CTRL2(X)     (PCIE_PHY_PORT_TO_BASE(X) + (0x2A << 1))
 #define        PCIE_PHY_PLL_A_CTRL3(X)     (PCIE_PHY_PORT_TO_BASE(X) + (0x2B << 1))
 #define        PCIE_PHY_PLL_STATUS(X)      (PCIE_PHY_PORT_TO_BASE(X) + (0x2C << 1))
+
 #define PCIE_PHY_TX1_CTRL1(X)       (PCIE_PHY_PORT_TO_BASE(X) + (0x30 << 1))
 #define PCIE_PHY_TX1_CTRL2(X)       (PCIE_PHY_PORT_TO_BASE(X) + (0x31 << 1))
 #define PCIE_PHY_TX1_CTRL3(X)       (PCIE_PHY_PORT_TO_BASE(X) + (0x32 << 1))
index 1d185e35183f535650a9ce9e76f38760ce2d8816..dd760e90e4d5b3b3729689703cdd16aa070814e4 100644 (file)
@@ -52,7 +52,7 @@
 #define OUT                    ((volatile u32*)(IFX_GPIO + 0x0070))
 
 
-static inline void pcie_ahb_pmu_setup(void) 
+static inline void pcie_ahb_pmu_setup(void)
 {
        /* Enable AHB bus master/slave */
        struct clk *clk;
index bee4168354b3047db10137f9dfb9f25f005d6e1b..94030e25196bcef63d6010d037a92790e15ebede 100644 (file)
@@ -27,7 +27,7 @@
 #include <linux/interrupt.h>
 /*!
  \file ifxmips_pcie_reg.h
- \ingroup IFX_PCIE  
+ \ingroup IFX_PCIE
  \brief header file for PCIe module register definition
 */
 /* PCIe Address Mapping Base */
@@ -250,7 +250,7 @@ enum {
 
 /* AHB Control Register, fixed bus enumeration exception */
 #define PCIE_AHB_CTRL(X)                     (volatile u32*)(PCIE_APP_PORT_TO_BASE(X) + 0x78)
-#define PCIE_AHB_CTRL_BUS_ERROR_SUPPRESS     0x00000001 
+#define PCIE_AHB_CTRL_BUS_ERROR_SUPPRESS     0x00000001
 
 /* Interrupt Enalbe Register */
 #define PCIE_IRNEN(X)                        (volatile u32*)(PCIE_APP_PORT_TO_BASE(X) + 0xF4)
@@ -696,7 +696,7 @@ enum {
 #define PCIE_PVC2_VC_ARB_TAB_OFFSET         0xFF000000  /* VC arbitration table offset, not support */
 #define PCIE_PVC2_VC_ARB_TAB_OFFSET_S       24
 
-/* Port VC Control and Status Register */     
+/* Port VC Control and Status Register */
 #define PCIE_PVCCRSR(X)                     (volatile u32*)(PCIE_RC_PORT_TO_BASE(X) + 0x14C)
 #define PCIE_PVCCRSR_LOAD_VC_ARB_TAB         0x00000001  /* Load VC Arbitration Table */
 #define PCIE_PVCCRSR_VC_ARB_SEL              0x0000000E  /* VC Arbitration Select */
@@ -784,7 +784,7 @@ enum {
 /* Port Link Control Register */
 #define PCIE_PLCR(X)                         (volatile u32*)(PCIE_RC_PORT_TO_BASE(X) + 0x710)
 #define PCIE_PLCR_OTHER_MSG_REQ              0x00000001  /* Other Message Request */
-#define PCIE_PLCR_SCRAMBLE_DISABLE           0x00000002  /* Scramble Disable */  
+#define PCIE_PLCR_SCRAMBLE_DISABLE           0x00000002  /* Scramble Disable */
 #define PCIE_PLCR_LOOPBACK_EN                0x00000004  /* Loopback Enable */
 #define PCIE_PLCR_LTSSM_HOT_RST              0x00000008  /* Force LTSSM to the hot reset */
 #define PCIE_PLCR_DLL_LINK_EN                0x00000020  /* Enable Link initialization */
@@ -898,7 +898,7 @@ enum {
 #define PCIE_VC0_PRQCR_P_HDR_CREDITS_S           12
 #define PCIE_VC0_PRQCR_P_TLP_QUEUE_MODE          0x00E00000 /* VC0 Posted TLP Queue Mode */
 #define PCIE_VC0_PRQCR_P_TLP_QUEUE_MODE_S        20
-#define PCIE_VC0_PRQCR_TLP_RELAX_ORDER           0x40000000 /* TLP Type Ordering for VC0 */    
+#define PCIE_VC0_PRQCR_TLP_RELAX_ORDER           0x40000000 /* TLP Type Ordering for VC0 */
 #define PCIE_VC0_PRQCR_VC_STRICT_ORDER           0x80000000 /* VC0 Ordering for Receive Queues */
 
 /* VC0 Non-Posted Receive Queue Control */
@@ -953,9 +953,9 @@ enum {
 /* PHY Control Register, all zeros in VR9 */
 #define PCIE_PHYCR(X)                           (volatile u32*)(PCIE_RC_PORT_TO_BASE(X) + 0x814)
 
-/* 
- * PCIe PDI PHY register definition, suppose all the following 
- * stuff is confidential. 
+/*
+ * PCIe PDI PHY register definition, suppose all the following
+ * stuff is confidential.
  * XXX, detailed bit definition
  */
 #define        PCIE_PHY_PLL_CTRL1(X)       (PCIE_PHY_PORT_TO_BASE(X) + (0x22 << 1))
@@ -969,7 +969,7 @@ enum {
 #define        PCIE_PHY_PLL_A_CTRL2(X)     (PCIE_PHY_PORT_TO_BASE(X) + (0x2A << 1))
 #define        PCIE_PHY_PLL_A_CTRL3(X)     (PCIE_PHY_PORT_TO_BASE(X) + (0x2B << 1))
 #define        PCIE_PHY_PLL_STATUS(X)      (PCIE_PHY_PORT_TO_BASE(X) + (0x2C << 1))
+
 #define PCIE_PHY_TX1_CTRL1(X)       (PCIE_PHY_PORT_TO_BASE(X) + (0x30 << 1))
 #define PCIE_PHY_TX1_CTRL2(X)       (PCIE_PHY_PORT_TO_BASE(X) + (0x31 << 1))
 #define PCIE_PHY_TX1_CTRL3(X)       (PCIE_PHY_PORT_TO_BASE(X) + (0x32 << 1))
@@ -1040,7 +1040,7 @@ enum {
     }                                            \
 } while (0)
 
-#define INLINE 
+#define INLINE
 #else
 #define IFX_PCIE_PRINT(_m, _fmt, args...)   \
     do {} while(0)
@@ -1049,7 +1049,7 @@ enum {
 
 struct ifx_pci_controller {
        struct pci_controller   pcic;
-    
+
        /* RC specific, per host bus information */
        u32   port;  /* Port index, 0 -- 1st core, 1 -- 2nd core */
 };
@@ -1127,7 +1127,7 @@ static inline void pcie_rcu_endian_setup(int pcie_port)
     reg |= IFX_RCU_AHB_BE_PCIE_M;
     reg |= IFX_RCU_AHB_BE_PCIE_S;
     reg &= ~IFX_RCU_AHB_BE_XBAR_M;
-#else 
+#else
     reg |= IFX_RCU_AHB_BE_PCIE_M;
     reg &= ~IFX_RCU_AHB_BE_PCIE_S;
     reg &= ~IFX_RCU_AHB_BE_XBAR_M;
index cc9c700beaea5f8f4e9e29fd72274961f7d7fe67..218a7395e77b591d34949faf7b57aa128beac7dc 100644 (file)
        status = "okay";
 
        assigned-clocks = <&uniphy0 UNIPHY_CLK_REF>;
-       assigned-clock-rates = <UNIPHY_REFCLK_25MHZ>;   
+       assigned-clock-rates = <UNIPHY_REFCLK_25MHZ>;
 };
 
 // MAC0 -> GE Phy
index 78f22e1c8b8646054b792986ab23a56f0209b423..0caabd9351625787844c272d1b74d2166262330c 100644 (file)
@@ -113,7 +113,7 @@ static void ipq5018_gmac_get_interfaces(struct stmmac_priv *priv, void *bsp_priv
        if (priv->hw->phylink_pcs) {
                __set_bit(PHY_INTERFACE_MODE_2500BASEX, interfaces);
 
-               /* 
+               /*
                 * Synopsys DWMAC IP version 3.7 is limited to 1 Gpbs.
                 * This vendor specific implementation supports 2.5 Gbps, so override
                 * the default mac link capabilities.
@@ -156,7 +156,7 @@ static int ipq5018_gmac_probe(struct platform_device *pdev)
        if (IS_ERR(gmac->tx_clk))
                return dev_err_probe(dev, PTR_ERR(gmac->tx_clk),
                                     "failed to get TX clock\n");
-       
+
        ret = devm_clk_bulk_get(dev, ARRAY_SIZE(ipq5018_gmac_clks),
                                ipq5018_gmac_clks);
        if (ret)