Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp877677pxf; Wed, 7 Apr 2021 13:57:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyXqswDAELM49Tr0nd1kvUDTUKx/9cGjhP68cj95EKpTBQJXaec7dLGUYAJfzAtmhiPNa6a X-Received: by 2002:a92:c743:: with SMTP id y3mr4296934ilp.148.1617829075619; Wed, 07 Apr 2021 13:57:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617829075; cv=none; d=google.com; s=arc-20160816; b=QF87o8wb4uuH7oYrAP3p9o3NYSOo73nLd8shAyq32eqqG1ARmfJprprWRWTCiVcQ+S 8QexK7z1s/O7nlemDVM1wzuXod/4P+sIvGatRiQoGu3HTH/5caCgbFbCi1XPZqWLSa5Q adao/zBaI2OG+oUOvFpqkvpV254PH9Cmm3zPz+1u4UN1N/FIhwJ8s4meHc4RDrZtRi9f 1/W/Dz+0fH6m8orWW7hkTKVyGr4ll8sP9JNNfiYcJ+BQdXT1hPo1xF3lyQsPNpGe1yTW cgjcO9o64XBtB+yjWePKo4RuO9noM3ZSkE609M/EquykjZx8vmsYL2t4X5fl/2UZt6aX Svfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:autocrypt:from :references:cc:to:subject:sender:dkim-signature; bh=70+GcYXrhuJrP0UYwYv+CFmEhXNJE1a7+ZVUXRbKnYk=; b=PE0o1ZIxj/ryGrob7DhIdDm3wXcCcul8OfoHA9KOiARo/UNasDp6pS3/gVk3PF7P+d rfKYSSbw4r/8whDEnTKfVtAKRROZHgBiKcPZJFj4rwgU8Sk82LoYb0A4amd56OU3px32 XbxparSFV8M3OCUhR8ak9ZewDx1VlbKaLuN/YRkjydTsuKJYTo18UEVJceq2PhLD302J aoqbI80ZUXQQf5IWeDIhG7NTGbRYwAdhaXmZPDUkDsEAGqGZHhWibOa0y39X0VzWCMha N8tO4TOGYwoZ+D+mM9F1EmjWPqn+SBibkEwuPLXHP30va5LO2U7SujNOg1BwLL79DQ4O m7Dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=j4ySgEnW; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r74si22079783ior.80.2021.04.07.13.57.43; Wed, 07 Apr 2021 13:57:55 -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=j4ySgEnW; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244871AbhDGMRZ (ORCPT + 99 others); Wed, 7 Apr 2021 08:17:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235467AbhDGMRY (ORCPT ); Wed, 7 Apr 2021 08:17:24 -0400 Received: from mail-ot1-x329.google.com (mail-ot1-x329.google.com [IPv6:2607:f8b0:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62BBFC061756; Wed, 7 Apr 2021 05:17:15 -0700 (PDT) Received: by mail-ot1-x329.google.com with SMTP id v24-20020a9d69d80000b02901b9aec33371so17859153oto.2; Wed, 07 Apr 2021 05:17:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=70+GcYXrhuJrP0UYwYv+CFmEhXNJE1a7+ZVUXRbKnYk=; b=j4ySgEnWvK4MFx5Z5ZTK9SCd+znXPVQXbqki0JCF//Ijj6eFMYRsT/cQwYQg4jkriM rufwOTxrYpmHFAb5yuwzhOUYxcZ4XcCeLqdOF5QDmu3cU/IIQPQ4iAJ2JS1sbICFLJzo OP5VZHCYeZP0Mds3sT9CDzTLtGIqwyu2MiD2ysTcH31c0/AADZUKDoSHIX+JzBRbAU1X rM4jy1vcPLnx93mRxILa/O271sb8dOnjJD9nax/4/STFXjJzDA4X9DHm2CW+J/71tm4C h80ZkW9z+hsjziKvaxstmQoH+cxUi8HoKOXWH6O3aEJgNPcxwmzSy8g1PyRFahjoIkUo XXFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=70+GcYXrhuJrP0UYwYv+CFmEhXNJE1a7+ZVUXRbKnYk=; b=MwcSmd0Z4kcB3avHSn5szir9BtVqQhEHLG4QIkALOwj+QOvA/qBPNcaZGGyWckY72P jgifaqCcMd12omcvFJD9eLTK0Rk8uQf9J3yfyTDhPn1mJbTtrgRGA2tZJkqA8AVcxP3N C8lPJ4uXd+/Bogc5cdlCI/ZGWLzdJODmR3XS7qu8a7YuIAvuO1RXBVuhUEsIFFb9iWfi /4SCEZyEcpOlGapHdG+8KMydzN0b53zRkCfyG6Zcz+91p8Kb4pA/XGVWH2HwqHmlCMhU LMJtKhCbC2BKWHgPfUH3DsQErMe6apYAk3bID5Y5tfgQqmrDxPrPPjxbh36Um5AUMDyz rAZw== X-Gm-Message-State: AOAM530pJO/qn8MGT6QRb2LTqYFnYOnOgz6D0Bsj8ywMjaM7CJdBXYqJ i8nJO9/KbIVtrh/5k6xN8kk= X-Received: by 2002:a9d:3d2:: with SMTP id f76mr2736068otf.171.1617797834852; Wed, 07 Apr 2021 05:17:14 -0700 (PDT) Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id o6sm5538317otj.81.2021.04.07.05.17.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 07 Apr 2021 05:17:14 -0700 (PDT) Sender: Guenter Roeck Subject: Re: [PATCH v3 3/4] watchdog: simatic-ipc-wdt: add new driver for Siemens Industrial PCs To: Andy Shevchenko , 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 , Wim Van Sebroeck , Mark Gross , Hans de Goede , Pavel Machek References: <20210329174928.18816-1-henning.schild@siemens.com> <20210329174928.18816-4-henning.schild@siemens.com> <20210406165247.78791bf7@md1za8fc.ad001.siemens.net> From: Guenter Roeck Autocrypt: addr=linux@roeck-us.net; keydata= xsFNBE6H1WcBEACu6jIcw5kZ5dGeJ7E7B2uweQR/4FGxH10/H1O1+ApmcQ9i87XdZQiB9cpN RYHA7RCEK2dh6dDccykQk3bC90xXMPg+O3R+C/SkwcnUak1UZaeK/SwQbq/t0tkMzYDRxfJ7 nyFiKxUehbNF3r9qlJgPqONwX5vJy4/GvDHdddSCxV41P/ejsZ8PykxyJs98UWhF54tGRWFl 7i1xvaDB9lN5WTLRKSO7wICuLiSz5WZHXMkyF4d+/O5ll7yz/o/JxK5vO/sduYDIlFTvBZDh gzaEtNf5tQjsjG4io8E0Yq0ViobLkS2RTNZT8ICq/Jmvl0SpbHRvYwa2DhNsK0YjHFQBB0FX IdhdUEzNefcNcYvqigJpdICoP2e4yJSyflHFO4dr0OrdnGLe1Zi/8Xo/2+M1dSSEt196rXaC kwu2KgIgmkRBb3cp2vIBBIIowU8W3qC1+w+RdMUrZxKGWJ3juwcgveJlzMpMZNyM1jobSXZ0 VHGM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V4s7k0Zy+6iRQ8G8ng QjsSqYJx8iAR8JRB7Gm2rQOMv8lSRdjva++GT0VLXtHULdlzg8VjDnFZ3lfz5PWEOeIMk7Rj trjv82EZtrhLuLjHRCaG50OOm0hwPSk1J64R8O3HjSLdertmw7eyAYOo4RuWJguYMg5DRnBk WkRwrSuCn7UG+qVWZeKEsFKFOkynOs3pVbcbq1pxbhk3TRWCGRU5JolI4ohy/7JV1TVbjiDI HP/aVnm6NC8of26P40Pg8EdAhajZnHHjA7FrJXsy3cyIGqvg9os4rNkUWmrCfLLsZDHD8FnU mDW4+i+XlNFUPUYMrIKi9joBhu18ssf5i5Q= Message-ID: Date: Wed, 7 Apr 2021 05:17:12 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/7/21 1:53 AM, Andy Shevchenko wrote: > 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. > Agreed. Guenter >> 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. > >