From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from quartz.orcorp.ca ([184.70.90.242]:38261 "EHLO quartz.orcorp.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750862AbaAUXdZ (ORCPT ); Tue, 21 Jan 2014 18:33:25 -0500 Date: Tue, 21 Jan 2014 16:33:21 -0700 From: Jason Gunthorpe To: Ezequiel Garcia Cc: linux-arm-kernel@lists.infradead.org, linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, Lior Amsalem , Thomas Petazzoni , Jason Cooper , Tawfik Bayouk , Andrew Lunn , Wim Van Sebroeck , Gregory Clement , Sebastian Hesselbarth Subject: Re: [PATCH v2 05/15] watchdog: orion: Make RSTOUT register a separate resource Message-ID: <20140121233321.GR18269@obsidianresearch.com> References: <1390295561-3466-1-git-send-email-ezequiel.garcia@free-electrons.com> <1390295561-3466-6-git-send-email-ezequiel.garcia@free-electrons.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1390295561-3466-6-git-send-email-ezequiel.garcia@free-electrons.com> Sender: linux-watchdog-owner@vger.kernel.org List-Id: linux-watchdog@vger.kernel.org On Tue, Jan 21, 2014 at 06:12:31AM -0300, Ezequiel Garcia wrote: > In order to support other SoC, it's required to distinguish > the 'control' timer register, from the 'rstout' register > that enables system reset on watchdog expiration. > + res = platform_get_resource(pdev, IORESOURCE_MEM, 1); > + if (!res) > + return -ENODEV; ^^^^^^^^^^^^^^^^^^^^^^ This change seems to break compatibility with existing DT files that have only a single entry in reg? Can the value be defaulted some how if missing? Regards, Jason