aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2009-02-15 13:12:43 +0000
committerGabor Juhos <juhosg@openwrt.org>2009-02-15 13:12:43 +0000
commitdf267a8e2e9f9c2caba8ae122212d8d937d8670d (patch)
tree66b0f1a7c86e429d5f47993247c8a4353d8e5212 /target/linux
parent15c5122e641f06233f7301001788254b36bb6884 (diff)
downloadupstream-df267a8e2e9f9c2caba8ae122212d8d937d8670d.tar.gz
upstream-df267a8e2e9f9c2caba8ae122212d8d937d8670d.tar.bz2
upstream-df267a8e2e9f9c2caba8ae122212d8d937d8670d.zip
ag71xx driver: add Kconfig option for enabling debug messages
SVN-Revision: 14517
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/ar71xx/config-2.6.281
-rw-r--r--target/linux/ar71xx/files/drivers/net/ag71xx/Kconfig7
-rw-r--r--target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h3
3 files changed, 9 insertions, 2 deletions
diff --git a/target/linux/ar71xx/config-2.6.28 b/target/linux/ar71xx/config-2.6.28
index b00c4cee0b..d1fe27480e 100644
--- a/target/linux/ar71xx/config-2.6.28
+++ b/target/linux/ar71xx/config-2.6.28
@@ -3,6 +3,7 @@ CONFIG_32BIT=y
# CONFIG_8139TOO is not set
CONFIG_ADM6996_PHY=y
CONFIG_AG71XX=y
+# CONFIG_AG71XX_DEBUG is not set
# CONFIG_AR71XX_EARLY_SERIAL is not set
CONFIG_AR71XX_MACH_AP83=y
CONFIG_AR71XX_MACH_AW_NR580=y
diff --git a/target/linux/ar71xx/files/drivers/net/ag71xx/Kconfig b/target/linux/ar71xx/files/drivers/net/ag71xx/Kconfig
index 8105744e82..18be11593c 100644
--- a/target/linux/ar71xx/files/drivers/net/ag71xx/Kconfig
+++ b/target/linux/ar71xx/files/drivers/net/ag71xx/Kconfig
@@ -5,3 +5,10 @@ config AG71XX
help
If you wish to compile a kernel for AR71xx/91xx and enable
ethernet support, then you should always answer Y to this.
+
+config AG71XX_DEBUG
+ bool "Atheros AR71xx built-in ethernet driver debugging"
+ depends on AG71XX
+ default n
+ help
+ Atheros AR71xx built-in ethernet driver debugging messages.
diff --git a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h
index f1c8491242..3dbb453fc5 100644
--- a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h
+++ b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h
@@ -63,8 +63,7 @@
#define AG71XX_RX_RING_SIZE 128
-#undef AG71XX_DEBUG
-#ifdef AG71XX_DEBUG
+#ifdef CONFIG_AG71XX_DEBUG
#define DBG(fmt, args...) printk(KERN_DEBUG fmt, ## args)
#else
#define DBG(fmt, args...) do {} while (0)