Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1185124ybz; Wed, 22 Apr 2020 15:24:15 -0700 (PDT) X-Google-Smtp-Source: APiQypIsGLxjC0xxEIVL1CLoYj4clq1aRNcfzGvJ1AxX3NVxb6iNJlyQzMA2mLQcbQE5KCaxUdL8 X-Received: by 2002:a50:f98c:: with SMTP id q12mr672842edn.172.1587594255815; Wed, 22 Apr 2020 15:24:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587594255; cv=none; d=google.com; s=arc-20160816; b=aIc9lxC4bD7qxmjHAITEm3HubkpEkzq+q4PJMHjmItsfqij3Buny81HpKVsQj3eVeI L1yArx1wJ9Jtll0JU4qfQWq061NSOC6pg5APd4NQrjIga0N8/L2l2FuFzlJCSE0ItrWv 0fXMHfORZbaZ16Wvplro0sbYTLXRSHiUy4ly/CU3U0wjh4uy7jHUmCyqjLR8H/uvLv54 QPG0ok/2ta2jv9/CTjj49aBYrTs5sJRcpXhaz01ODunsrzymNxNUjUVLL2lcHG6L2xii 0Yp/94K9QB2MyqngqI0JD86xio3/H8N9dUcQi6cSzkTeX9mYxBaKhPTOdAHRkWRO1W+A zh0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=R3pDdZfZ5bLsmtiaX3ho/Prc/GJlaWQtQCc0O+mFKI8=; b=iFyAOje3Be2wmnePV4t1zPn34bh/yQiD2LrXnob5xDnR9lVUgqwQoW8H7nz9c3l1hK rAVlL1s3NLz7A5kbrLjY5XbhIrz/T2qlhFUQYimVyDOUqRFqhPUIQ9PkPl7xS79qDUcW 7xNb43Vnu5CVaDKTJ25XFTvo1PuPG6dt1c+lhaooCYTq85IoQZFftPnuGqQJRyjiWGF2 jgyOEgtWut2y/H4CJLFwRucxb/5O79Q8Jy0KIvt9+YKHby5jscYFtH2DcluqhMMjGh50 k35sy5y1REg6WC6KTZfqG/WRCpa1hUOgwpSQLJyoGY2vIT5Py6nGMxEjcverpOtPDln3 1ZNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=FVPlhcN8; 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=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g16si270733ejf.272.2020.04.22.15.23.50; Wed, 22 Apr 2020 15:24:15 -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=@chromium.org header.s=google header.b=FVPlhcN8; 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=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726173AbgDVWWe (ORCPT + 99 others); Wed, 22 Apr 2020 18:22:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725839AbgDVWWe (ORCPT ); Wed, 22 Apr 2020 18:22:34 -0400 Received: from mail-il1-x12c.google.com (mail-il1-x12c.google.com [IPv6:2607:f8b0:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B769FC03C1AA for ; Wed, 22 Apr 2020 15:22:32 -0700 (PDT) Received: by mail-il1-x12c.google.com with SMTP id b18so3651239ilf.2 for ; Wed, 22 Apr 2020 15:22:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=R3pDdZfZ5bLsmtiaX3ho/Prc/GJlaWQtQCc0O+mFKI8=; b=FVPlhcN8SpwQ9kar8lLIzkCNOqERTFjDWWPdzkyz6Ph3snI/Dgm1QayGxRrtup/FYZ uvwjCAr4kTdVchuqSfKk4YE3zvMCIsjIsWXQYY8daJl3AlcUqfwO/f3EHzOMIUvrUVzn EQo3LNEU3QcAEw1oa9YnwK4Jg5j6Pzo+MbrrI= 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=R3pDdZfZ5bLsmtiaX3ho/Prc/GJlaWQtQCc0O+mFKI8=; b=Pq7t7zCvoV2oUN8tXSDSu00R/EwrQ2Vw0lVdfz7umcNfLs0x/7wRq4lGveMTKkC+w2 GNDPTO6wY2/MSDpZZFyqkCXF6rH1VVSLGNuwbJ9Da4NdqeJcx16efp8HLKZIySeh1vcK Z5ABchoMCUzOzgnYk3WUbWAzWgIkppZTH/KX+Rz/xezm8hbNvDdCEvEce3ASDNmOJn91 qX4+IPPfVCUKSSrD7OFxBSdGgUtiEknV/uPBWmcMg/u+0Q4691tdJD2NHsfjszn8nQUM WbchwM8dDyjJ2ODbhwbKt2yp0EaS56g01zCLHI/ARhcEJNIntX5EtqIKENpGHqE6n9bg JLzQ== X-Gm-Message-State: AGi0PubEWgID1IqRD90BFuFG27pxs7Gmi8XS+PUJ5shEjhFj6ZXFZlT3 Y5n+/AUyVoXRKIuj8eGKClQJLg80o/tZjCJjYsdMsQ== X-Received: by 2002:a92:c6c8:: with SMTP id v8mr586970ilm.129.1587594151810; Wed, 22 Apr 2020 15:22:31 -0700 (PDT) MIME-Version: 1.0 References: <20200421110520.197930-1-evanbenn@chromium.org> <20200421210403.v2.2.Ia92bb4d4ce84bcefeba1d00aaa1c1e919b6164ef@changeid> In-Reply-To: From: Julius Werner Date: Wed, 22 Apr 2020 15:22:20 -0700 Message-ID: Subject: Re: [PATCH v2 2/2] watchdog: Add new arm_smc_wdt watchdog driver To: Xingyu Chen Cc: Evan Benn , Julius Werner , LKML , Guenter Roeck , Anson Huang , Bjorn Andersson , Catalin Marinas , "David S. Miller" , Geert Uytterhoeven , Greg Kroah-Hartman , Leonard Crestez , Li Yang , Marcin Juszkiewicz , Matthias Brugger , Mauro Carvalho Chehab , Olof Johansson , Rob Herring , Shawn Guo , Valentin Schneider , Will Deacon , Wim Van Sebroeck , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , "moderated list:ARM/Mediatek SoC support" , LINUX-WATCHDOG , Jianxin Pan , Yonghui Yu Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > Yes I think you are correct. I got some reviews about the compatible name, > > but I think I misinterpreted those, and arm,smc-wdt would work. I did wonder > > if Xingyu from amlogic needed to modify the driver more, EG with different > > SMCWD_enum values for the amlogic chip, he could then just add an > > amlogic compatible > > and keep our devices running with the other compatible. Although of > > course it would be nicer if > > the amlogic firmware could copy the values here. > Using DTS property(arm,smc-id) or vendor's compatible to specify the > Function ID is available for the meson-A1.The generic "arm, smc-wdt" > looks nicer for MTK and Amlogic sec wdt, but the driver may not cover > the other vendor's platform-specific differences in the future, so the > platform-specific compatible string may be introduced eventually. I think having a shared driver is only really useful if firmware sticks to the same API anyway. Once we start implementing special cases where every vendor uses a different SMC API, we might as well make that totally different drivers then. For now it sounds like we can fit existing MediaTek Chromebooks and Meson into the same API, so let's do that (with a single arm,smc-wdt compatible string) and then hopefully future vendors will see this interface and design their firmware APIs to match it from the get go.