From patchwork Wed Jun 8 06:18:01 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh KUMAR X-Patchwork-Id: 99365 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 E06C5B6FEB for ; Wed, 8 Jun 2011 16:18:27 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752147Ab1FHGSY (ORCPT ); Wed, 8 Jun 2011 02:18:24 -0400 Received: from eu1sys200aog104.obsmtp.com ([207.126.144.117]:39825 "EHLO eu1sys200aog104.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752104Ab1FHGSY (ORCPT ); Wed, 8 Jun 2011 02:18:24 -0400 Received: from beta.dmz-ap.st.com ([138.198.100.35]) (using TLSv1) by eu1sys200aob104.postini.com ([207.126.147.11]) with SMTP ID DSNKTe8UKw5fvHmlEZMFYzZZWxVZltoOs2gd@postini.com; Wed, 08 Jun 2011 06:18:23 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 00321AC; Wed, 8 Jun 2011 06:18:08 +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 86F5DA13; Wed, 8 Jun 2011 06:18:08 +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; Wed, 8 Jun 2011 14:18:08 +0800 From: Viresh Kumar To: , Cc: Viresh Kumar Subject: [PATCH] ATA: Debugging options for the ATA subsystem Date: Wed, 8 Jun 2011 11:48:01 +0530 Message-ID: <1edabe459c04313f2e9bb4282a7bea208272e618.1307513666.git.viresh.kumar@st.com> 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 75afa75..d527fbe 100644 --- a/drivers/ata/Kconfig +++ b/drivers/ata/Kconfig @@ -30,6 +30,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 != n + 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 8ac64e1..d0b95a7 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