Received: by 2002:a05:6a10:6d25:0:0:0:0 with SMTP id gq37csp1839470pxb; Mon, 13 Sep 2021 06:41:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5OgEzf+pqY7ICUhCCjOIwwasR7aC0V2vVsF0G+2iId3IjRhjn5tJ6hnXOr9z3iMrKjEK9 X-Received: by 2002:a05:6e02:20c7:: with SMTP id 7mr4495201ilq.118.1631540490281; Mon, 13 Sep 2021 06:41:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631540490; cv=none; d=google.com; s=arc-20160816; b=WrcTM0Ma/ghpC9JiBFabrt3bWrp5Oq4bD1SpBcx8jQicmF9cQcJwunt7b0kRb2MtB5 MzeQ04gDqC/MF6+2LrPfr6he3bU2PKBFnJkpICZWHM5tYkCINw0p8k0pYtaSHfF9SW14 m73MquNcbnABJa/WvuLI7Oi8zoPKfBE6O77qxS2UYBA1E/3F1wwGXVaXqiDVbfn+G8/H sTXxpN2XshBEMbgKvmyy9MVGIPqTCg97AGnDWAmVupK5XON4Uc4ThZe5yJyINnL8F4KA gEavftn0BHQ7FUdLxd135Ue2doTctx7tp+uLPfwU7ZvQgylmrPM2xkzwuXa7nChJZTG2 +STw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=c84AQzV8tq0pPVMbx+Tom8wnD4ess2mOzbuQg+SfhNk=; b=i20T7QLhiMvYWUkd5zXjtWzv8ykMO2P0B2MHvdAsa0TVy0Vwpw7QRZPOooPHLRkqOq 1gjusOBRSH22QV+AwRmwEeKIPhfPs9wZVh8Sgmwm4rgI6daaeZj1STNz7jQjIA0/MkTR WCdqQocWPqRdb0ZmvUvjaS/4v7NX1/Z+mkfiiNBqQS6/df05O7wPRcjRfwRUKoeS75Ot RV6/Yw6+/nqguty1YNtPYKFkYhpAlW8u63j3rhA7PXDf+LPRK1O/BYRinC/jWSOnXQAd IUYcrbKp7AnmVGOmbbxiPdNW/OYbt7GUFbgpL44/yjsgGtLzLrMYeoQ35gxHHqKWdsGp fl4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ZrbuONne; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m22si6944284jaa.92.2021.09.13.06.41.18; Mon, 13 Sep 2021 06:41:30 -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=@linuxfoundation.org header.s=korg header.b=ZrbuONne; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242816AbhIMNlA (ORCPT + 99 others); Mon, 13 Sep 2021 09:41:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:34490 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243209AbhIMNfG (ORCPT ); Mon, 13 Sep 2021 09:35:06 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 62851613AD; Mon, 13 Sep 2021 13:27:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631539632; bh=vzZUWT0/aD45uH0TAAbOOVjZcSZa2+chkEMErF4OKpw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZrbuONnevjGul/5URuZnon6y3XSPxoQHh0g3WpbK2BEw+XHSML8E5hVfxAmUSEVmr SRNqtRaa8USejaW+PfR9rYsH0/1/qDxUjly/fZvPPAe7oH3AOPNF3E9Q321Z1JeNdh D2BgoerJzpcZalIHRK+dVsomies3SGxG7mGMaXEU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Chunyan Zhang , Mark Brown , Sasha Levin Subject: [PATCH 5.10 066/236] spi: sprd: Fix the wrong WDG_LOAD_VAL Date: Mon, 13 Sep 2021 15:12:51 +0200 Message-Id: <20210913131102.606268550@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210913131100.316353015@linuxfoundation.org> References: <20210913131100.316353015@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Chunyan Zhang [ Upstream commit 245ca2cc212bb2a078332ec99afbfbb202f44c2d ] Use 50ms as default timeout value and the time clock is 32768HZ. The original value of WDG_LOAD_VAL is not correct, so this patch fixes it. Fixes: ac1775012058 ("spi: sprd: Add the support of restarting the system") Signed-off-by: Chunyan Zhang Link: https://lore.kernel.org/r/20210826091549.2138125-2-zhang.lyra@gmail.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- drivers/spi/spi-sprd-adi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi-sprd-adi.c b/drivers/spi/spi-sprd-adi.c index 392ec5cfa3d6..307c079b938d 100644 --- a/drivers/spi/spi-sprd-adi.c +++ b/drivers/spi/spi-sprd-adi.c @@ -103,7 +103,7 @@ #define HWRST_STATUS_WATCHDOG 0xf0 /* Use default timeout 50 ms that converts to watchdog values */ -#define WDG_LOAD_VAL ((50 * 1000) / 32768) +#define WDG_LOAD_VAL ((50 * 32768) / 1000) #define WDG_LOAD_MASK GENMASK(15, 0) #define WDG_UNLOCK_KEY 0xe551 -- 2.30.2