Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756106AbdLVMvy (ORCPT ); Fri, 22 Dec 2017 07:51:54 -0500 Received: from mail-lf0-f67.google.com ([209.85.215.67]:35585 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752022AbdLVMvu (ORCPT ); Fri, 22 Dec 2017 07:51:50 -0500 X-Google-Smtp-Source: ACJfBov63biH3bpyWsbeYefvYACQBg5AFQ5iVl0t6TEIeH4QAV578ESPrGaLsM/2wqQEgvexhGKBnQ== Date: Fri, 22 Dec 2017 13:51:50 +0100 From: Johan Hovold To: "H. Nikolaus Schaller" Cc: Rob Herring , Mark Rutland , =?iso-8859-1?Q?Beno=EEt?= Cousson , Tony Lindgren , Russell King , Arnd Bergmann , Greg Kroah-Hartman , Kevin Hilman , Andreas =?iso-8859-1?Q?F=E4rber?= , Thierry Reding , Jonathan Cameron , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, letux-kernel@openphoenux.org, kernel@pyra-handheld.com, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v5 5/5] misc serdev: w2sg0004: add debugging code and Kconfig Message-ID: <20171222125150.GJ3374@localhost> References: <5816bfb9e7cab68591c133e20696d6188ebe70de.1512114577.git.hns@goldelico.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5816bfb9e7cab68591c133e20696d6188ebe70de.1512114577.git.hns@goldelico.com> User-Agent: Mutt/1.7.2 (2016-11-26) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 992 Lines: 23 On Fri, Dec 01, 2017 at 08:49:38AM +0100, H. Nikolaus Schaller wrote: > This allows to set CONFIG_W2SG0004_DEBUG which will > make the driver report more activities and it will turn on the > GPS module during boot while the driver assumes that it > is off. This can be used to debug the correct functioning of > the hardware. Therefore we add it as an option to the driver > because we think it is of general use (and a little tricky to > add by system testers). > > Normally it should be off. > > Signed-off-by: H. Nikolaus Schaller > --- > drivers/misc/Kconfig | 8 ++++++++ > drivers/misc/w2sg0004.c | 37 +++++++++++++++++++++++++++++++++++++ > 2 files changed, 45 insertions(+) I'd say say this does not belong in the kernel at all. And even if the power-state test were to be allowed, most of the pr_debugs would need to go. You really should be using dev_dbg and friends, which can already be enabled selectively at run time using dynamic debugging. Johan