Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp584150imm; Fri, 14 Sep 2018 03:14:56 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYQB7F2+ySkS5iwHt0xc6YC4Q6IZBAe7Mu0QbgeFhPKywzmNhuzXQtn1jb0b5t9qLxoAjBN X-Received: by 2002:a62:280a:: with SMTP id o10-v6mr11706566pfo.129.1536920096053; Fri, 14 Sep 2018 03:14:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536920096; cv=none; d=google.com; s=arc-20160816; b=wqTIYsESuThVNbPwsJilT75570paJCazqE59l3SVvvE68dzmLpSX73DTklBctbEaKy adH8AvaIcYG227beYGRnZcJz6PRvl6a4+relIjMExO6hbdnymXCWDxBPnDodVrH/vXzz eAv4HJQmRWNfLUl/dCtCnkBCcWgfVs31Z1XxjE28pC0UP2wzyI7hukKVHh9RVdT0Mbpg oUAva2/uN/soPm4aiUKVo7vRyLUtLnnFj5n22HcK4PxyEEjWZEqio7/gDzdDsZRu5hSY /jDkgLTNCDhsl3VJLyxpkq4VDlT8Sw5Ia0wzDjhWy9SbdqAqkdoIRMcKh89YLNYvqm5/ Tt5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=bBXRIvEcg37kN7GVKevL2wwRAukdIoMLopQmPBUa62g=; b=PyAOkc4a49AXOmq1qw0MmGCfryxsn75SJ7lyj6QwTw5RNilLlbFOo8cUqSMMws6uOv RJpXsR9EZPMBoROkkb0iFI/O9uCibhxa7P33bNQ19g8GF5ISoc/IQo6FqlBsFh9dFE0+ FgUEfT1iv8zDFhQvDgALgck5TAJo7h+BpExY70G0BfinjWXvImt304eP6vSB+3JJIDkn 8ZXkFgUlDK5E2e9idLdrMzwSeLjWk28FGD12qUR2RbnuiEQCeJQCxvdLQxknfMfLT2rR zv8c732ut1B3C5C1gydU9KjvZr4QYWZfwKpV2qB4sjJHeeJj5x6y1TpVJ0cn4I3dCMas YKcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DTxZR4RB; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r21-v6si6628336pgi.690.2018.09.14.03.14.40; Fri, 14 Sep 2018 03:14:56 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=DTxZR4RB; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728187AbeINP1r (ORCPT + 99 others); Fri, 14 Sep 2018 11:27:47 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:54812 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727881AbeINP1q (ORCPT ); Fri, 14 Sep 2018 11:27:46 -0400 Received: by mail-wm1-f65.google.com with SMTP id c14-v6so1371435wmb.4; Fri, 14 Sep 2018 03:13:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=bBXRIvEcg37kN7GVKevL2wwRAukdIoMLopQmPBUa62g=; b=DTxZR4RBGURF9m8w3K8eEMH020dRjZVYP433ZWzgz17vBqrV1fb6ZsrFyon6Sj4fzg ruAAunVEzbIU23Q9FABcn5+tKz8jHDGhgOie+NbR2pVs8e8z4PYwh3DDkHVhQHIlVaqE du9I7iVz4gN9d3NNjxnSZVXaMK9q8zE1cGyURm0hh3ljQszN9aK7cFARE5z4DGX/ixfo KwubpOAMnIYRm2xpAB/hpoYsnIIPqrN0xMwbgHSF5/adVUHmncGeN1VspoEizaaMvKxm B2dJrhnID1uZo33JVcmCqEWobqoFU2xhU9er+ufK2uzbDn9LVfFog57jFNTLMjK12pnh J0/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=bBXRIvEcg37kN7GVKevL2wwRAukdIoMLopQmPBUa62g=; b=FbXxumdNTMflItjpnf6gchj2QA3S2Bgq/eN4VhvqRJJDx4WQMwJ5PtFsYlUXVjLGfz WhIZ0dlzmHjLlHECCME+S18DG/vZAeKN+WVbaPC0QAbGNyaEb+LIGbtBMm5XAS0xVw0Y VaQlzey2QXagxKxXFBd30D9fuuh3lvqFyqWeCGLj9iDH5bWAl8b64+eSkW2lMhVwNITV GqtTUr204YkLDq92Y19+U4fW6/Adotl0XU6eSx+tAzCMwj1AmqFLXhweUuuRLBq4+hVd w3ShfFEUDh1GZfz8OOY2ry0nCC7T2neYEjhQW3p7sSpzBrKJCXi30XQKTXfE0ZUr4ZWl YMgg== X-Gm-Message-State: APzg51AzY/ExJ9SkN5Tqx02Y+Y2wk738Ofnyba8B4/SPKybaE13ysicF JcHSDFPbt3BuRGw4NOx26kM= X-Received: by 2002:a1c:7305:: with SMTP id d5-v6mr1700736wmb.53.1536920036315; Fri, 14 Sep 2018 03:13:56 -0700 (PDT) Received: from localhost.localdomain (static-css-cqn-143221.business.bouyguestelecom.com. [176.149.143.221]) by smtp.gmail.com with ESMTPSA id x15-v6sm5618524wrt.53.2018.09.14.03.13.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 14 Sep 2018 03:13:55 -0700 (PDT) From: Romain Izard To: Nicolas Ferre , Alexandre Belloni , Wim Van Sebroeck , Guenter Roeck , Marcus Folkesson Cc: linux-arm-kernel@lists.infradead.org, linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org, Romain Izard Subject: [PATCH 0/2] Fixes for the SAMA5D2/SAMA5D4 watchdog Date: Fri, 14 Sep 2018 12:13:37 +0200 Message-Id: <20180914101339.7382-1-romain.izard.pro@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org A previous change of the sama5d4_wdt driver broke the device probing with the device tree configuration described in existing DTS files, when no value is set for the "timeout-sec" property. Moreover, specifying any other value than 16 seconds for "timeout-sec" leads to a watchdog reset immediately when opening the watchdog device. Fix this by respecting hardware constraints added in recent versions of the SAMA5D2 and SAMA5D4 datasheet. Romain Izard (2): watchdog: sama5d4: fix timeout-sec usage watchdog: sama5d4: write the mode register in two steps drivers/watchdog/sama5d4_wdt.c | 33 +++++++++++++++++++++------------ 1 file changed, 21 insertions(+), 12 deletions(-) -- 2.17.1