From a958674ff441b55e798e03521fe33a7a98a1e06a Mon Sep 17 00:00:00 2001 From: Alexandre Bounine Date: Wed, 26 May 2010 14:44:03 -0700 Subject: [PATCH] --- yaml --- r: 198809 b: refs/heads/master c: 011507e49a696462c30914e2eeebcdda33ed30f8 h: refs/heads/master i: 198807: 5c070527a77fcca3597b1d2f2589e130265d0564 v: v3 --- [refs] | 2 +- trunk/drivers/rapidio/Kconfig | 11 +++++++++++ trunk/drivers/rapidio/Makefile | 4 ++++ trunk/drivers/rapidio/switches/Makefile | 4 ++++ 4 files changed, 20 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 7324ce5d7e28..bb7b1b2456fb 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 68b04cd38af42dbe4ee28e189633c3c50beb8873 +refs/heads/master: 011507e49a696462c30914e2eeebcdda33ed30f8 diff --git a/trunk/drivers/rapidio/Kconfig b/trunk/drivers/rapidio/Kconfig index bcb5c2063370..070211a5955c 100644 --- a/trunk/drivers/rapidio/Kconfig +++ b/trunk/drivers/rapidio/Kconfig @@ -21,3 +21,14 @@ config RAPIDIO_ENABLE_RX_TX_PORTS than Maintenance transfers. source "drivers/rapidio/switches/Kconfig" + +config RAPIDIO_DEBUG + bool "RapidIO subsystem debug messages" + depends on RAPIDIO + help + Say Y here if you want the RapidIO subsystem to produce a bunch of + debug messages to the system log. Select this if you are having a + problem with the RapidIO subsystem and want to see more of what is + going on. + + If you are unsure about this, say N here. diff --git a/trunk/drivers/rapidio/Makefile b/trunk/drivers/rapidio/Makefile index 7c0e1818de51..b6139fe187bf 100644 --- a/trunk/drivers/rapidio/Makefile +++ b/trunk/drivers/rapidio/Makefile @@ -4,3 +4,7 @@ obj-y += rio.o rio-access.o rio-driver.o rio-scan.o rio-sysfs.o obj-$(CONFIG_RAPIDIO) += switches/ + +ifeq ($(CONFIG_RAPIDIO_DEBUG),y) +EXTRA_CFLAGS += -DDEBUG +endif diff --git a/trunk/drivers/rapidio/switches/Makefile b/trunk/drivers/rapidio/switches/Makefile index 0fece0e6aa89..fe4adc3e8d5f 100644 --- a/trunk/drivers/rapidio/switches/Makefile +++ b/trunk/drivers/rapidio/switches/Makefile @@ -6,3 +6,7 @@ obj-$(CONFIG_RAPIDIO_TSI57X) += tsi57x.o obj-$(CONFIG_RAPIDIO_CPS_XX) += idtcps.o obj-$(CONFIG_RAPIDIO_TSI568) += tsi568.o obj-$(CONFIG_RAPIDIO_TSI500) += tsi500.o + +ifeq ($(CONFIG_RAPIDIO_DEBUG),y) +EXTRA_CFLAGS += -DDEBUG +endif