Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2292900ybz; Thu, 23 Apr 2020 15:20:46 -0700 (PDT) X-Google-Smtp-Source: APiQypLZ8pVwjmE7wPFr8RsZ+IhadjeFkwbSy4r8JQY/ywCnrphgGcTayQILMzFKVqrGUMcBtpeV X-Received: by 2002:a50:9a04:: with SMTP id o4mr4549638edb.289.1587680446719; Thu, 23 Apr 2020 15:20:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587680446; cv=none; d=google.com; s=arc-20160816; b=fMeXIO7XpKb0i2o9QgVkX/XCQ8MlwBq8Y0JHnx2zBQJIezrGzMPZbtR1PmYSu/EGb/ oImbqkArfZwTnfIVEeK2yJ5+8Z/29klzKia2Xb1gTJjP31r2MOrYsyC85XNF2w05DELT 9jxLpFlm08qSOzSdpPVyg+F5iLzljLfriab/QM+o5ZBDSiZ+gvvwcnEju1W9sIGnMgjT H3+yvfmijUUGpIHXSosHwtX8sa/Cz6OWF6Kbl+freXuLIdBYGxpOmk/JNevVPmH3+akE weMt4/68F8GctYRCL9PcM1SoGCmV1hjaAu4nVNrjxsIXndS91Ll28kv0K0xhIkUCVbft i/wQ== 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=ImyDKT5GUuGx4UdReAU1SFZBdyoyuA09f+p98B9B22U=; b=m/NiMawbnhprsQbtiOSrnuWyINManNi7u22vRFojX1H/qi9li21Bg7ac2btrzcHBfz L5oHUEQfq16KUKwq5tohqkqxxfi/+58VtjxFY8E2hGDKGcG+E0/u5StGoGm0emZflWGQ NgQsdQ9NdM/Nzazz00EuA8GaQKbWXOlRTV+xSoR/z7JRYrjKDVH+4B0gnUY0G7aSAelh KyPFZy8kWb6whtN/R5mgTwMWK46sHssOE36iUn9HHs6pY+U2d19KL/RaFUzIWq8yNBL9 J3BrfB1iNHux9akmwu4VHcjoPvH+kAYkyOI0ocFbE54/pdN5Snur2kAmC6zE3gTDo5/7 ZU/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=MVrB7pta; 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 p5si2043959edd.313.2020.04.23.15.20.20; Thu, 23 Apr 2020 15:20:46 -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=MVrB7pta; 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 S1727020AbgDWWRU (ORCPT + 99 others); Thu, 23 Apr 2020 18:17:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726060AbgDWWRU (ORCPT ); Thu, 23 Apr 2020 18:17:20 -0400 Received: from mail-ua1-x941.google.com (mail-ua1-x941.google.com [IPv6:2607:f8b0:4864:20::941]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0FB6DC09B042 for ; Thu, 23 Apr 2020 15:17:20 -0700 (PDT) Received: by mail-ua1-x941.google.com with SMTP id c17so7499807uae.12 for ; Thu, 23 Apr 2020 15:17:19 -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=ImyDKT5GUuGx4UdReAU1SFZBdyoyuA09f+p98B9B22U=; b=MVrB7ptavsGiQQua0Vjywdn5LaMTu4XF0Z1Ou35iDTtlPrECrJF03b1X9OfQreT1Sv Vrs6/p06qmY0edU5rq5DjBnn0HF8gPWw2/bsLkke5gs8JhP6nZqduiZuAIPqaK/geeaF 9jGZybC4kWQR1xAWiRngZ+uRtePeQ1MeLOEvk= 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=ImyDKT5GUuGx4UdReAU1SFZBdyoyuA09f+p98B9B22U=; b=GqaWkXOFMsMF9eWr6jEfjzTiYGNGaI4rm8oiV+1TEoLwB7aD0EIr59wBZ6+rGissbP m4c3mV6hToRcDcHchOSVVkurnTd/jZPAsjWlXjuXrK9qM1KCA2bBRyOPjOfzjqqUiAZU W3V0Rkhj5LtMndTN4VjhSqxHeanFHJQpmbmTx4sNc1Wln4geezOPSB5VuU7ABHd89zku PdNgWgi8EiGoAU8CX79oKiCVXetrg2R+kKa6D4AK5RrlJttaZuQY28OzmiTYJkz2mj+s Xy86QcLB8tcbvy93r5xRsQ6yRcJRRXKWYpQ5D8vDDfEGPg71ef0c6K/azrtvjZeTwGpc BmZg== X-Gm-Message-State: AGi0Pub6mk9SKvo/hf1Tu9WnOFUieyjHwlvlqkpS4KdD+D1N4LNQBrtL gn0qNtCxUJ6E540hxpxQ9SSOBU5seQFH9r8sx9l0YA== X-Received: by 2002:a67:1447:: with SMTP id 68mr5466353vsu.163.1587680238725; Thu, 23 Apr 2020 15:17:18 -0700 (PDT) MIME-Version: 1.0 References: <20200423044036.234578-1-evanbenn@chromium.org> <20200423143945.v5.2.Ia92bb4d4ce84bcefeba1d00aaa1c1e919b6164ef@changeid> In-Reply-To: <20200423143945.v5.2.Ia92bb4d4ce84bcefeba1d00aaa1c1e919b6164ef@changeid> From: Julius Werner Date: Thu, 23 Apr 2020 15:17:06 -0700 Message-ID: Subject: Re: [PATCH v5 2/2] watchdog: Add new arm_smc_wdt watchdog driver To: Evan Benn Cc: LKML , Julius Werner , Xingyu Chen , Anson Huang , Bjorn Andersson , Catalin Marinas , "David S. Miller" , Geert Uytterhoeven , Greg Kroah-Hartman , Guenter Roeck , 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 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 > + err = of_property_read_u32(pdev->dev.of_node, "arm,smc-id", > + &smc_func_id); > + if (err < 0) > + return err; > + watchdog_set_drvdata(wdd, (void *)(uintptr_t)smc_func_id); Your device tree binding says there's a default and this is optional. I think you need to change the code so that that's actually true.