Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758825AbaDJSYw (ORCPT ); Thu, 10 Apr 2014 14:24:52 -0400 Received: from mga02.intel.com ([134.134.136.20]:41931 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752918AbaDJSYu (ORCPT ); Thu, 10 Apr 2014 14:24:50 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.97,835,1389772800"; d="scan'208";a="518678452" Date: Thu, 10 Apr 2014 11:24:47 -0700 From: David Cohen To: Guenter Roeck Cc: Randy Dunlap , wim@iguana.be, tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, x86@kernel.org, linux-kernel@vger.kernel.org, linux-watchdog@vger.kernel.org, gnomes@lxorguk.ukuu.org.uk, Eric Ernst Subject: Re: [PATCH 1/2] watchdog: add Intel MID watchdog driver support Message-ID: <20140410182447.GA28420@psi-dev26.jf.intel.com> References: <1396990744-10695-1-git-send-email-david.a.cohen@linux.intel.com> <1396990744-10695-2-git-send-email-david.a.cohen@linux.intel.com> <53448CB4.6050705@infradead.org> <20140409174854.GC23274@psi-dev26.jf.intel.com> <5346A1C7.609@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5346A1C7.609@roeck-us.net> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 10, 2014 at 06:51:03AM -0700, Guenter Roeck wrote: > On 04/09/2014 10:48 AM, David Cohen wrote: > >On Tue, Apr 08, 2014 at 04:56:36PM -0700, Randy Dunlap wrote: > >>On 04/08/2014 01:59 PM, David Cohen wrote: > >>>Add initial Intel MID watchdog driver support. > >>> > >>>This driver is an initial implementation of generic Intel MID watchdog > >>>driver. Currently it supports Intel Merrifield platform. > >>> > >>>Signed-off-by: Eric Ernst > >>>Signed-off-by: David Cohen > >>>--- > >>> drivers/watchdog/Kconfig | 12 +++ > >>> drivers/watchdog/Makefile | 1 + > >>> drivers/watchdog/intel-mid_wdt.c | 209 +++++++++++++++++++++++++++++++++++++++ > >>> 3 files changed, 222 insertions(+) > >>> create mode 100644 drivers/watchdog/intel-mid_wdt.c > >>> > >>>diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig > >>>index 79d25894343a..4da09b8b2f11 100644 > >>>--- a/drivers/watchdog/Kconfig > >>>+++ b/drivers/watchdog/Kconfig > >>>@@ -643,6 +643,18 @@ config INTEL_SCU_WATCHDOG > >>> > >>> To compile this driver as a module, choose M here. > >>> > >>>+config INTEL_MID_WATCHDOG > >>>+ bool "Intel MID SCU Watchdog Mobile Platforms" > >>>+ depends on X86_INTEL_MID && WATCHDOG_CORE > >>>+ ---help--- > >>>+ Watchdog timer driver built into the Intel SCU for Intel MID > >>>+ Platforms. > >>>+ > >>>+ This driver currently supports only the watchdog evolution > >>>+ implementation in SCU, available for Merrifield generation. > >>>+ > >>>+ To compile this driver as a module, choose M here. > >> > >>Does choosing M work when INTEL_MID_WATCHDOG is a bool? > >>and why is INTEL_MID_WATCHDOG a bool? > > > >The error here is the left over line from the template I used. There > >should be no mention about choosing M. > >It's bool because the watchdog is started by default on fw. We need this > >driver probed during boot to pet/kick/ping asap. IMHO It makes not much > >sense to compile it as module. > > > > Is that true for your firmware, but for all users of the supported set > of devices ? I don't think there is another fw to support same device. But... > > The reason for having modules is to be able to load the driver only > when needed, while using the same distribution for multiple platforms. > So either you are forcing the driver to be loaded on every hardware > which has it enabled, or you are limiting the scope of a distribution > to one specific CPU. Neither seems desirable. > > If _you_ want to build the driver into the kernel, you always can. > But you have to have a better reason than that to enforce it on > everyone else. ... when we're stuck so much time working with Android we forget there is life out there too. It really makes no sense "bool". I'll fix it in next version. Br, David > > Guenter > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/