From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from az33egw01.freescale.net (az33egw01.freescale.net [192.88.158.102]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "az33egw01.freescale.net", Issuer "Thawte Premium Server CA" (verified OK)) by ozlabs.org (Postfix) with ESMTPS id 9D552DE073 for ; Tue, 13 May 2008 04:57:46 +1000 (EST) Message-ID: <4828935D.1090807@freescale.com> Date: Mon, 12 May 2008 13:58:37 -0500 From: Scott Wood MIME-Version: 1.0 To: Anton Vorontsov Subject: Re: [PATCH 1/3] [WATCHDOG] mpc83xx_wdt: add support for MPC86xx CPUs References: <20080512185206.GA25818@polina.dev.rtsoft.ru> In-Reply-To: <20080512185206.GA25818@polina.dev.rtsoft.ru> Content-Type: text/plain; charset=UTF-8; format=flowed Cc: linuxppc-dev@ozlabs.org, Wim Van Sebroeck , Timur Tabi List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Anton Vorontsov wrote: > + enabled = in_be32(&wd_base->swcrr) & SWCRR_SWEN; > +#ifdef CONFIG_PPC_86xx > + if (!enabled) { > + dev_info(&dev->dev, "could not be enabled by software\n"); > + ret = -ENOSYS; > + goto err_unmap; > + } > +#endif What happens on an 83xx+86xx multiplatform kernel? -Scott