Changeset 19243


Ignore:
Timestamp:
2010-01-20T10:30:36+01:00 (7 years ago)
Author:
juhosg
Message:

rtl8366_smi: add Kconfig option for the debugfs stuff

Location:
trunk/target/linux/ar71xx
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar71xx/config-2.6.30

    r19150 r19243  
    186186CONFIG_RTL8306_PHY=y 
    187187CONFIG_RTL8366_SMI=y 
     188# CONFIG_RTL8366_SMI_DEBUG_FS is not set 
    188189CONFIG_SCHED_OMIT_FRAME_POINTER=y 
    189190# CONFIG_SCSI_DMA is not set 
  • trunk/target/linux/ar71xx/config-2.6.31

    r19150 r19243  
    191191CONFIG_RTL8306_PHY=y 
    192192CONFIG_RTL8366_SMI=y 
     193# CONFIG_RTL8366_SMI_DEBUG_FS is not set 
    193194CONFIG_SCHED_OMIT_FRAME_POINTER=y 
    194195# CONFIG_SCSI_DMA is not set 
  • trunk/target/linux/ar71xx/config-2.6.32

    r19150 r19243  
    194194CONFIG_RTL8306_PHY=y 
    195195CONFIG_RTL8366_SMI=y 
     196# CONFIG_RTL8366_SMI_DEBUG_FS is not set 
    196197CONFIG_SCHED_OMIT_FRAME_POINTER=y 
    197198# CONFIG_SCSI_DMA is not set 
  • trunk/target/linux/ar71xx/files/drivers/net/phy/rtl8366_smi.c

    r19242 r19243  
    2222#include <linux/rtl8366_smi.h> 
    2323 
    24 /* #define DEBUG 1 */ 
    25  
    26 #ifdef DEBUG 
     24#ifdef CONFIG_RTL8366_SMI_DEBUG_FS 
    2725#include <linux/debugfs.h> 
    2826#endif 
     
    211209        int                                mii_irq[PHY_MAX_ADDR]; 
    212210        char buf[4096]; 
    213 #ifdef DEBUG 
     211#ifdef CONFIG_RTL8366_SMI_DEBUG_FS 
    214212        struct dentry                      *debugfs_root; 
    215213#endif 
    216214}; 
    217215 
    218 #ifdef DEBUG 
     216#ifdef CONFIG_RTL8366_SMI_DEBUG_FS 
    219217u16 g_dbg_reg; 
    220218#endif 
     
    973971} 
    974972 
    975 #ifdef DEBUG 
     973#ifdef CONFIG_RTL8366_SMI_DEBUG_FS 
    976974static int rtl8366_debugfs_open(struct inode *inode, struct file *file) 
    977975{ 
     
    11981196static inline void rtl8366_debugfs_init(struct rtl8366_smi *smi) {} 
    11991197static inline void rtl8366_debugfs_remove(struct rtl8366_smi *smi) {} 
    1200 #endif 
     1198#endif /* CONFIG_RTL8366_SMI_DEBUG_FS */ 
    12011199 
    12021200static int rtl8366_global_reset_mibs(struct switch_dev *dev, 
  • trunk/target/linux/ar71xx/patches-2.6.30/204-rtl8366-smi-driver.patch

    r18694 r19243  
    11--- a/drivers/net/phy/Kconfig 
    22+++ b/drivers/net/phy/Kconfig 
    3 @@ -140,4 +140,8 @@ config MDIO_GPIO 
     3@@ -140,4 +140,14 @@ config MDIO_GPIO 
    44          To compile this driver as a module, choose M here: the module 
    55          will be called mdio-gpio. 
     
    88+       tristate "Support for RTL8366 switch via SMI interface" 
    99+       depends on GENERIC_GPIO 
     10+ 
     11+config RTL8366_SMI_DEBUG_FS 
     12+       bool "RTL8366S driver DEBUG_FS support" 
     13+       depends on RTL8366_SMI 
     14+       depends on DEBUG_FS 
     15+       default n 
    1016+ 
    1117 endif # PHYLIB 
  • trunk/target/linux/ar71xx/patches-2.6.31/204-rtl8366-smi-driver.patch

    r18694 r19243  
    11--- a/drivers/net/phy/Kconfig 
    22+++ b/drivers/net/phy/Kconfig 
    3 @@ -140,4 +140,8 @@ config MDIO_GPIO 
     3@@ -140,4 +140,14 @@ config MDIO_GPIO 
    44          To compile this driver as a module, choose M here: the module 
    55          will be called mdio-gpio. 
     
    88+       tristate "Support for RTL8366 switch via SMI interface" 
    99+       depends on GENERIC_GPIO 
     10+ 
     11+config RTL8366_SMI_DEBUG_FS 
     12+       bool "RTL8366S driver DEBUG_FS support" 
     13+       depends on RTL8366_SMI 
     14+       depends on DEBUG_FS 
     15+       default n 
    1016+ 
    1117 endif # PHYLIB 
  • trunk/target/linux/ar71xx/patches-2.6.32/204-rtl8366-smi-driver.patch

    r18694 r19243  
    11--- a/drivers/net/phy/Kconfig 
    22+++ b/drivers/net/phy/Kconfig 
    3 @@ -146,4 +146,8 @@ config MDIO_GPIO 
     3@@ -146,4 +146,14 @@ config MDIO_GPIO 
    44          To compile this driver as a module, choose M here: the module 
    55          will be called mdio-gpio. 
     
    88+       tristate "Support for RTL8366 switch via SMI interface" 
    99+       depends on GENERIC_GPIO 
     10+ 
     11+config RTL8366_SMI_DEBUG_FS 
     12+       bool "RTL8366S driver DEBUG_FS support" 
     13+       depends on RTL8366_SMI 
     14+       depends on DEBUG_FS 
     15+       default n 
    1016+ 
    1117 endif # PHYLIB 
Note: See TracChangeset for help on using the changeset viewer.