Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp865443pxf; Wed, 7 Apr 2021 13:38:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzw2A3lAS7gRspqsqiXHvdAWPyl5+vckovYbmvGxhZgMD9VM7dzO3WpseBPOwGF0FDKKSR+ X-Received: by 2002:a17:907:3f97:: with SMTP id hr23mr5936260ejc.69.1617827912201; Wed, 07 Apr 2021 13:38:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617827912; cv=none; d=google.com; s=arc-20160816; b=h9Mn2i3pVyxnIQni617Jyu4D1QmRdiY8h2ve8OmaoJ1M8F5A8vyc6iRJi64CAg2SlE 7HC89vaA5K5/3s50VdZv8l5btYFXNbLpTnrg3DLejIKpEripSurO8C+r1BqJAsFxI9d7 hQC7HjTwl77GGrURj9CouKvQLCljEmF8j6MV6PSuoShe0dn3jm3+dt6KPoQHPt1Om6rP v6sfkqjEr+O4bI1uc/aHHJ9FD4zAgA7ND47nBrmSZs9af3jUWdaxa0VY7xUMn50BmETf e0clDDbw+peU0lDjjIlY+CdrQRmmROWbuOhUmB2e0E0CzVZQjpunW5m8kzq3gbMtuRc7 60lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=vFuhnvS9PpwlrcTjjiFkrfy0PJPiELTxAIn4Extsom4=; b=UkGrZty2PM+TkvE6G3qe1r4F6wThX2ZnR1stz8o2hwO51CihOxQ4MxDy5LlbfPUcz4 BuKkZrAxCn803QCrKufXbQMvQmvabdRgwCwnM/L0DYKcIkQGKDRrvGwI3lX+j6sPcFlJ 9WAN+sZ8qGv9+3zbr3G2MjwwtkRx4iRbjbWAsrX+0H9qVgaCKYJcQhueHkhPWjG2i0gB 87i8x+8175Fs4ZUxUjvcPnGLX1Vwm1EJfN0ppud+5wm57x+vfVHhUXv/DEwB6rJgIG5O M8Rks2jfHSY4VNDU042QFtZBD8S1dgNvR+S1b/TD4laWz/lURsy4IRBR0XbO+gGhNODJ DA4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dGKUVNcN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x7si9618601ejs.494.2021.04.07.13.38.09; Wed, 07 Apr 2021 13:38:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dGKUVNcN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349721AbhDGIzG (ORCPT + 99 others); Wed, 7 Apr 2021 04:55:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349708AbhDGIyp (ORCPT ); Wed, 7 Apr 2021 04:54:45 -0400 Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B2E1C0613DA; Wed, 7 Apr 2021 01:54:08 -0700 (PDT) Received: by mail-pl1-x62d.google.com with SMTP id h20so8993845plr.4; Wed, 07 Apr 2021 01:54:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=vFuhnvS9PpwlrcTjjiFkrfy0PJPiELTxAIn4Extsom4=; b=dGKUVNcNMjCz+YOznFlGYz9lFtEhWUgJDvgtDmm0q7UEuYfgaVwMCdL2BKcZHMgdGq 2H4zjKd1JwumH8yLpXTouLl8JcQHC7b8LeBnIojY1WkMxUU3bKLnsl90OH2G77QUHuCl SpTtjhTruKdkpXm1T2XTea9YwJhTcA9g0RgmjKRIGErcyIrz10J/vNBJYPdR3lWeDJXD XUV6/GfN0QtobY+bCzfV9usCAV65AztP4vnpRHTEY7lrp0dnQRnc6mljJTl/96fJP+xT q3pEyB88+pHQD+aRAtS8+0eWlRlGiJ9hWDB75pze3mfHPr1VWVn+4Z6pTEs7esNFolgO 3qTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=vFuhnvS9PpwlrcTjjiFkrfy0PJPiELTxAIn4Extsom4=; b=g4IM5XHIcLxQx3hnECqVMadM5Fb09zBJNi5HSxuc1CD5Nga6uzclSufbanTQHwp8pu esWk1OhN038iTJwBavfUEfSbsBUV34oNG8pgxCAz2q4Ws96FcbkYjHVG+EwWLqc7PAkw ArppLP+qKRSFDTzPouu6iWFfq5revvjiU3mCWwlscDNIq4EKUSZFkVp/tblVIChNqBo2 240N11TuRYb+VqHGrdC0QGaxmVL3frUfhprG7JMyve9esCSV1scA60evvG6Lx/JJh+UT 4yAe3GbF75h3ufAfSyr+WoC/pljSAnOJ/r53Vhg2IFYJAX1GEM+K5YuA75eqaXPMQDXm RwbA== X-Gm-Message-State: AOAM533BIiohn47yztcxWwqVONiLtSHheIgJO2xF0Cxrra8eRRX6b7/b CAm/YR8XeDB4HE7hjKPLc/KAqITCWXEhXxB788A= X-Received: by 2002:a17:90a:5407:: with SMTP id z7mr2339028pjh.228.1617785647811; Wed, 07 Apr 2021 01:54:07 -0700 (PDT) MIME-Version: 1.0 References: <20210329174928.18816-1-henning.schild@siemens.com> <20210329174928.18816-4-henning.schild@siemens.com> <20210406165247.78791bf7@md1za8fc.ad001.siemens.net> In-Reply-To: <20210406165247.78791bf7@md1za8fc.ad001.siemens.net> From: Andy Shevchenko Date: Wed, 7 Apr 2021 11:53:51 +0300 Message-ID: Subject: Re: [PATCH v3 3/4] watchdog: simatic-ipc-wdt: add new driver for Siemens Industrial PCs To: Henning Schild Cc: "Enrico Weigelt, metux IT consult" , Linux Kernel Mailing List , Linux LED Subsystem , Platform Driver , linux-watchdog@vger.kernel.org, Srikanth Krishnakar , Jan Kiszka , Gerd Haeussler , Guenter Roeck , Wim Van Sebroeck , Mark Gross , Hans de Goede , Pavel Machek Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 6, 2021 at 5:56 PM Henning Schild wrote: > > Am Thu, 1 Apr 2021 18:15:41 +0200 > schrieb "Enrico Weigelt, metux IT consult" : > > > On 29.03.21 19:49, Henning Schild wrote: > > > > Hi, > > > > > This driver adds initial support for several devices from Siemens. > > > It is based on a platform driver introduced in an earlier commit. > > > > Where does the wdt actually come from ? > > > > Is it in the SoC ? (which SoC exactly). SoC-builtin wdt is a pretty > > usual case. > > > > Or some external chip ? > > I guess external chip, but again we are talking about multiple > machines. And the manuals i read so far do not go into that sort of > detail. In fact on some of the machines you will have two watchdogs, > one from the SoC and that "special" one. > That has several reasons, probably not too important here. The HW guys > are adding another wd not just for fun, and it would be nice to have a > driver. > > > The code smells a bit like two entirely different wdt's that just have > > some similarities. If that's the case, I'd rather split it into two > > separate drivers and let the parent driver (board file) instantiate > > the correct one. > > Yes, it is two. Just like for the LEDs. One version PIO-based another > version gpio/p2sb/mmio based. I tend to agree with Enrico that this should be two separate drivers. > In fact the latter should very likely be based on that gpio pinctl, > whether it really needs to be a separate driver will have to be seen. > There are probably pros and cons for both options. -- With Best Regards, Andy Shevchenko