Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2247687ybv; Fri, 21 Feb 2020 11:42:31 -0800 (PST) X-Google-Smtp-Source: APXvYqyvnwmQSA7KaHIh1QK82W0VvSg43URrayFH+XQAJKq7t0RxPkgzWc9P4FAAs0srUQ39TM9K X-Received: by 2002:a05:6808:b22:: with SMTP id t2mr3367441oij.40.1582314151316; Fri, 21 Feb 2020 11:42:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582314151; cv=none; d=google.com; s=arc-20160816; b=dmch7qiwYvDFXbwJpKWaRsT7j103MbfX7j6SAMCVfUZQZOcCVvHC8pszLHmEzPTCmr iNeGBNt53ql8cqouDLB1loMQt3p0Sll0Ib+86xiYj8WtSVQidFtfbt7opYUh8s3YFQkw u5bVSv4bXnDQJzP/XveFC28QlEQ7yzARNxdbfIPTTdDXWKDAceELVPoyjHMzVp9C0Uxc CW8tv9JebGvH/x4xU9EqsPlNLTS6To11SQjfwfq4M2iqrP/wCMQZyHYWvHJRHPxOJmYA JuvlH8FMnYwazR6eWSp5XN78bpwJwq/m8fnLLllyoC+xinsP/SAC3DTe+pI5MnZavF1+ Vlkg== 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=WPEkVNQNo6+YwuuDTJ8f8LWVOUVBTxJ7HCWvWKezvwM=; b=wBjVcFktTqmVGRFDlJo9NTsPMJYU0DaxKS7jQdUXNDNKnhcI1YgQ3XrHP300lkfDuq UN62XOKwSP9WEID9VGeVryyIOa+HSzgjq6S+jEUkT7Ig0kWkuLa6FLuMfndALBa/y9ft RaQ/gw8+XSFCq1uBpG8puBg6R5CD8Y1jgRRZFRA30DBEW7SNUk1Oh0yX1XIybUym680m juITV8FnGbiGTKtVQMCBa1/1O40268VJXUPD51x3NwoxaGGcI+JIOsfzgmDEflq8Naq4 YJ0nZ0OnO0kXn6Meh3uXTtY/HmEq1SdcKMYCi6r1cNd1e0M1Jv0Pr1u8hBUGAJlGje8D AGGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=OOj04mF2; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f4si1925436oto.169.2020.02.21.11.42.19; Fri, 21 Feb 2020 11:42:31 -0800 (PST) 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; dkim=pass header.i=@chromium.org header.s=google header.b=OOj04mF2; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726891AbgBUTmA (ORCPT + 99 others); Fri, 21 Feb 2020 14:42:00 -0500 Received: from mail-io1-f67.google.com ([209.85.166.67]:36507 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726767AbgBUTl7 (ORCPT ); Fri, 21 Feb 2020 14:41:59 -0500 Received: by mail-io1-f67.google.com with SMTP id d15so3633301iog.3 for ; Fri, 21 Feb 2020 11:41:59 -0800 (PST) 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=WPEkVNQNo6+YwuuDTJ8f8LWVOUVBTxJ7HCWvWKezvwM=; b=OOj04mF2+3yRsYgUDM4psSLvDVhPp3+mkxUO1ZzxFRyV2BpOHmDVNSaSg0Nf+m0Jvv g0iOef6Ch4C7hb4JDOA4KgPfcuXgKOre6matGbVL9twWijFXGJ0NeeRfME4dB6V33VJK mrf7dJ5OaUo00VZfHhlyludpRW1y7L1C8zfQI= 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=WPEkVNQNo6+YwuuDTJ8f8LWVOUVBTxJ7HCWvWKezvwM=; b=pt77OkZPe7c+uVSN0OJ3zh+92n5t5+gHlXXhNt0OuWyN7O0/ebBS+ThYPq3xJk8L7Z KifysTsHVaEqX9/TYBJhFhd78Jk/dAIpocRMBnaZ68ajl/Qoy3wC18D5YKozJvXPuCAL ITu3GM4XZpNe/rF/b/Owv1yEOelnNzsMnReRn3z4SfRlQCNs9zDh9rxin8BWKByaeTFa qvwvIHP3DwAubgZiEPod76zp024cactEf522ewjh/wxAhlJCeEBwUOw3325I+Soulr81 cdEGwjBpX+bMMorQk8zSqurMIms5zjeTuq8EeOmuSnSsqzd8wH+7RgW4TDY+7KdZmyx+ fqMw== X-Gm-Message-State: APjAAAVJVtB4OTk1y4J0r6Qq3yEJtJUAYLd8YVAmBSznDnAYJX7P5O7X L90QujNjVOFs25yiDeBnHI8ymmr+OEGIbUuA3R74Vw== X-Received: by 2002:a6b:7117:: with SMTP id q23mr31725213iog.153.1582314118577; Fri, 21 Feb 2020 11:41:58 -0800 (PST) MIME-Version: 1.0 References: <20200214062637.216209-1-evanbenn@chromium.org> <20200214172512.1.I02ebc5b8743b1a71e0e15f68ea77e506d4e6f840@changeid> <20200219223046.GA16537@bogus> <20200219232005.GA9737@roeck-us.net> In-Reply-To: From: Julius Werner Date: Fri, 21 Feb 2020 11:41:47 -0800 Message-ID: Subject: Re: [PATCH 1/2] dt-bindings: watchdog: Add arm,smc-wdt watchdog arm,smc-wdt compatible To: Xingyu Chen Cc: Evan Benn , Julius Werner , Guenter Roeck , Rob Herring , LKML , devicetree@vger.kernel.org, "David S. Miller" , Jonathan Cameron , Mauro Carvalho Chehab , Wim Van Sebroeck , Greg Kroah-Hartman , Mark Rutland , linux-watchdog@vger.kernel.org, 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 > Because the ATF does not define standard wdt index, each vendor defines > its own index. > So I don't think that the current driver[0] can fully cover my usecases. I think the best way to solve this would be to put the SMC function ID as another field into the device tree, so that multiple vendors could share the same driver even if their firmware interface uses a different SMC. But they still have to implement the same API for that SMC, of course, not sure if the Meson driver is suitable for that (but if it is then I think merging those drivers would be a good idea).