From patchwork Thu Jun 9 03:56:44 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh KUMAR X-Patchwork-Id: 99612 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 0DDFFB6F9A for ; Thu, 9 Jun 2011 13:56:59 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756131Ab1FID45 (ORCPT ); Wed, 8 Jun 2011 23:56:57 -0400 Received: from eu1sys200aog107.obsmtp.com ([207.126.144.123]:54206 "EHLO eu1sys200aog107.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756365Ab1FID45 (ORCPT ); Wed, 8 Jun 2011 23:56:57 -0400 Received: from beta.dmz-ap.st.com ([138.198.100.35]) (using TLSv1) by eu1sys200aob107.postini.com ([207.126.147.11]) with SMTP ID DSNKTfBEhGGFeHzI0KhuwTQ/jW/8/nWUe56z@postini.com; Thu, 09 Jun 2011 03:56:56 UTC Received: from zeta.dmz-ap.st.com (ns6.st.com [138.198.234.13]) by beta.dmz-ap.st.com (STMicroelectronics) with ESMTP id 093A2C3; Thu, 9 Jun 2011 03:56:50 +0000 (GMT) Received: from Webmail-ap.st.com (eapex1hubcas1.st.com [10.80.176.8]) by zeta.dmz-ap.st.com (STMicroelectronics) with ESMTP id EA055709; Thu, 9 Jun 2011 03:56:49 +0000 (GMT) Received: from localhost (10.199.7.86) by Webmail-ap.st.com (10.80.176.7) with Microsoft SMTP Server (TLS) id 8.2.234.1; Thu, 9 Jun 2011 11:56:49 +0800 From: Viresh Kumar To: , Cc: , Viresh Kumar Subject: [PATCH Resend] ATA: Debugging options for the ATA subsystem Date: Thu, 9 Jun 2011 09:26:44 +0530 Message-ID: X-Mailer: git-send-email 1.7.2.2 MIME-Version: 1.0 Sender: linux-ide-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ide@vger.kernel.org This adds Kconfig options for DEBUG and VERBOSE_DEBUG to the ATA subsystem Signed-off-by: Viresh Kumar --- drivers/ata/Kconfig | 14 ++++++++++++++ drivers/ata/Makefile | 2 ++ 2 files changed, 16 insertions(+), 0 deletions(-) diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig index 5dd1e4c..e1ac908 100644 --- a/drivers/ata/Kconfig +++ b/drivers/ata/Kconfig @@ -22,6 +22,20 @@ menuconfig ATA if ATA +config ATA_DEBUG + bool "ATA debugging" + help + This is an option for use by developers; most people should + say N here. This enables ATA core and driver debugging. + +config ATA_VDEBUG + bool "ATA verbose debugging" + depends on ATA_DEBUG + help + This is an option for use by developers; most people should + say N here. This enables deeper (more verbose) debugging of + the ATA core and drivers. + config ATA_NONSTANDARD bool default n diff --git a/drivers/ata/Makefile b/drivers/ata/Makefile index 0da42cb..6dfaeb9 100644 --- a/drivers/ata/Makefile +++ b/drivers/ata/Makefile @@ -1,3 +1,5 @@ +ccflags-$(CONFIG_ATA_DEBUG) := -DDEBUG +ccflags-$(CONFIG_ATA_VDEBUG) += -DVERBOSE_DEBUG obj-$(CONFIG_ATA) += libata.o