Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp4283181ybp; Mon, 7 Oct 2019 06:14:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqwjJHjNgp3Bfzife0zokK0qYka21TEj9H3+DGn90R3NaAKxrI6zmZ/YCfgO1D+EYXVgIrMB X-Received: by 2002:a17:907:388:: with SMTP id ss8mr23877895ejb.26.1570454082557; Mon, 07 Oct 2019 06:14:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570454082; cv=none; d=google.com; s=arc-20160816; b=NZIOf/ll85Ewa+YKuMxdpbkh7rdII3f1CCjMVULJl2bFOiNwnmBnE0jmIdIhNAWMnx q3VOqnTeEcGlcDi7+AJXnMtikKQHc+8PwW7bARJGWHzwdpnmJFhPrVtGFSKl0GGvCUuM 6sVluFmjK+63tgFqinRojlgHiYlqxk8uErietmBmoVIw+YEohXqzX0vEJTP65ONLP+T2 Pv+7tLiahEcQGJMATbuk8OFwpl8ePGmcT3SbxWPjg6zUorl/prXCiBcb7V5NfWFTTHrt U36LnKQ3Ex6kl4xiPouMOLPhCBXdTHLq2xbzQvH4OjnwFtyGzLeU6X5tabiPPCOYcW2N DU2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=8Jm9xCSx/h3HXb89qPGwAnwdm1LuHc7wCpo7+/E+HwQ=; b=XZ6/Vv19Ustkd7deQKHuyANi+iyFjgvMY08MHvLPC++zswSPFAUmXdfP2eyDgi07UN yKwhPDaIqYD/GkP2ibK8LVFOdh+WS3ifdHosFID42OoA1Qr5fGdZt0paGINya+yEYdTy nXfi1oD2JVm6bJA2UW1z8D3HbCIUIuRGZdxJy4Uo9lgC88TDwcEVQRYhfI/sw07HyC/U 87bPzAK17Pz1JudNd/GdbqfJ0FmAt/GrRTPmM6VcegAs/9XilJng0f1Ykaqp2tQSeslX /uq2itUwECpgF+OWRMGgn8cmZcoo47iWvApZoW28q+8+uREAaJMPQl7seKdOJtkjWWfE zuZg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ox28si6989386ejb.130.2019.10.07.06.14.17; Mon, 07 Oct 2019 06:14:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727850AbfJGNOL (ORCPT + 99 others); Mon, 7 Oct 2019 09:14:11 -0400 Received: from relay12.mail.gandi.net ([217.70.178.232]:42189 "EHLO relay12.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727010AbfJGNOK (ORCPT ); Mon, 7 Oct 2019 09:14:10 -0400 Received: from localhost (aclermont-ferrand-651-1-259-53.w86-207.abo.wanadoo.fr [86.207.98.53]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay12.mail.gandi.net (Postfix) with ESMTPSA id D0926200010; Mon, 7 Oct 2019 13:14:05 +0000 (UTC) Date: Mon, 7 Oct 2019 15:14:05 +0200 From: Alexandre Belloni To: Guenter Roeck Cc: Eugen.Hristev@microchip.com, linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, wim@linux-watchdog.org, robh+dt@kernel.org, Nicolas.Ferre@microchip.com Subject: Re: [PATCH 2/3] watchdog: sam9x60_wdt: introduce sam9x60 watchdog timer driver Message-ID: <20191007131348.GH4254@piout.net> References: <1570001371-8174-1-git-send-email-eugen.hristev@microchip.com> <1570001371-8174-2-git-send-email-eugen.hristev@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/10/2019 05:36:38-0700, Guenter Roeck wrote: > On 10/7/19 12:58 AM, Eugen.Hristev@microchip.com wrote: > [ ... ] > > Hello Guenter, > > > > Thank you for the feedback. > > After reviewing this, can you please guide me towards one of the > > possible two directions: merge this driver with sama5d4_wdt , and have a > > single driver with support for both hardware blocks; or, have this > > driver separately , as in this patch series? > > > > I noticed the similarities. I don't know if it makes sense to reconcile > the two drivers; it seems to me the new chip uses the same basic core with > enhancements. In general, I prefer a single driver, but only if the result > doesn't end up being an if/else mess. Ultimately, it is really your call > to make. > Most if not all your comments were already addressed in the other driver. The main difference in the register interface is the location of the counter that only really affects sama5d4_wdt_set_timeout and that could be abstracted away by using a different struct watchdog_ops. Interrupt enabling is also done differently, I don't think it has a huge impact. -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com