Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1127244imu; Mon, 5 Nov 2018 14:27:19 -0800 (PST) X-Google-Smtp-Source: AJdET5c3zzACCN/src01HlXmH4tnz8fb3DtzKD0vr802LP7wx8+OQzbQQ4Wd7/JidS72CurOcjQS X-Received: by 2002:a17:902:684e:: with SMTP id f14-v6mr5502996pln.242.1541456839855; Mon, 05 Nov 2018 14:27:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541456839; cv=none; d=google.com; s=arc-20160816; b=raXks+067NTXrSZYLtacNJ3XeiXey6DqvzFiGoRl2xolu3AqkUIhclwjtNedxhKPrR GfCEPtT2KX+HJxL5V+y8ykfdOQSi07ft2iN/IksUoVv5ddr+YALt2Mx1ANnAI2ysYI3B AU+mQO2GGYf2xymk2AOi/bEWD43JmGe/FuqEcLzdvZaPRNFoG5mfe3ufotJ1bA2rv4/1 +ImhV1RfZSdiTiOh05Rth5uZZ8B3v6GfkYYpk13nk/VuXWL7gGbhG36ay53cQeLf6IdG NyBnsw2MYw7Z8NoPgRAJmP2S03FWQKXjn9LuJjod8hJX5S5DmPhL1Jc9xbPpzJFM9a1A ks7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:mime-version:date:message-id :from:references:cc:to:subject; bh=v/mh0ZgGpBtNZnFIlBfH2tS1/iq6SylT0cMdWevGuX4=; b=CSRbpSV7bkQoBJYTX2BFZdDbnBOFyouAq/KMRvRPpkyzJsa9MS/iiqhXYnq5Qw3HKW fIQI5kj7IAEmqaiJmvAdnA1BXrbD50cnk7SnOg+AallW46qOZ5jkIXB0dGLoon+1J7vz 12bLdTzndqzyA4bnT09NCI2WbEoBKpkpfj9BCRUxgiEYulAjS7GTc7VvVBn8IYZBoXAX lCNVKq0mDmNaymbX+yyMMfe6DL5ydR0/2S6QBHI8F2PxMg34X343LtPq84wDlB/GKwmq XbneS/6H73h6xpo6WrNWf+PSEhS8hwEGxKcGCIBAoq8jKpQKqn1ssa3JhvQzQdS5z7gh 78xg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p15-v6si9705500plo.26.2018.11.05.14.27.04; Mon, 05 Nov 2018 14:27:19 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388239AbeKFHsh (ORCPT + 99 others); Tue, 6 Nov 2018 02:48:37 -0500 Received: from mx1.mailbox.org ([80.241.60.212]:41600 "EHLO mx1.mailbox.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387983AbeKFHsh (ORCPT ); Tue, 6 Nov 2018 02:48:37 -0500 Received: from smtp1.mailbox.org (unknown [IPv6:2001:67c:2050:105:465:1:1:0]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mx1.mailbox.org (Postfix) with ESMTPS id 911844B507; Mon, 5 Nov 2018 23:26:40 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter01.heinlein-hosting.de (spamfilter01.heinlein-hosting.de [80.241.56.115]) (amavisd-new, port 10030) with ESMTP id VkyUcoOJScGn; Mon, 5 Nov 2018 23:26:39 +0100 (CET) Subject: Re: [PATCH AUTOSEL 4.19 28/57] watchdog: lantiq: update register names to better match spec To: Sasha Levin , stable@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Guenter Roeck , Wim Van Sebroeck References: <20181104135144.88324-1-sashal@kernel.org> <20181104135144.88324-28-sashal@kernel.org> From: Hauke Mehrtens Message-ID: <680f90dd-0dc2-5b6c-46e8-8e079864a852@hauke-m.de> Date: Mon, 5 Nov 2018 23:26:38 +0100 MIME-Version: 1.0 In-Reply-To: <20181104135144.88324-28-sashal@kernel.org> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="4rY1EjgR5KvYE9aQONltd3Ozxnnz7DQrG" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --4rY1EjgR5KvYE9aQONltd3Ozxnnz7DQrG Content-Type: multipart/mixed; boundary="aMaSDI3JcbEDcJxlCeCpWakMfM7BOR1FU"; protected-headers="v1" From: Hauke Mehrtens To: Sasha Levin , stable@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Guenter Roeck , Wim Van Sebroeck Message-ID: <680f90dd-0dc2-5b6c-46e8-8e079864a852@hauke-m.de> Subject: Re: [PATCH AUTOSEL 4.19 28/57] watchdog: lantiq: update register names to better match spec References: <20181104135144.88324-1-sashal@kernel.org> <20181104135144.88324-28-sashal@kernel.org> In-Reply-To: <20181104135144.88324-28-sashal@kernel.org> --aMaSDI3JcbEDcJxlCeCpWakMfM7BOR1FU Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 11/04/2018 02:51 PM, Sasha Levin wrote: > From: Hauke Mehrtens >=20 > [ Upstream commit 1f59f8aff98f200af7a6882184add7b85f5da741 ] >=20 > Some of the names of the bits were confusing to me. > Now the bits share the same prefix as the register they are set on. >=20 > The LTQ_WDT_CR_PWL register (bits 26:25) is the pre warning limit and i= t > does not turn anything on. It has 4 possible divers 1/2, 1/4, 1/8 and > 1/16, this drivers only uses 1/16. > The LTQ_WDT_CR_CLKDIV register bits(25:24) is only configuring a clock > divers and do not turn any thing on too, all possible values are valid > dividers. > Using the LTQ_WDT_SR prefix is also wrong these bits are used in the > LTQ_WDT_CR registers, SR is the status register which is read only. >=20 > This uses GENMASK where it is a mask and it uses shifts when a value is= > written to some bits. >=20 > Signed-off-by: Hauke Mehrtens > Reviewed-by: Guenter Roeck > Signed-off-by: Guenter Roeck > Signed-off-by: Wim Van Sebroeck > Signed-off-by: Sasha Levin > --- > drivers/watchdog/lantiq_wdt.c | 36 ++++++++++++++++++-----------------= > 1 file changed, 19 insertions(+), 17 deletions(-) This does not really fix a bug, I think it is not worth it to backport th= is. Hauke --aMaSDI3JcbEDcJxlCeCpWakMfM7BOR1FU-- --4rY1EjgR5KvYE9aQONltd3Ozxnnz7DQrG Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEyz0/uAcd+JwXmwtD8bdnhZyy68cFAlvgw54ACgkQ8bdnhZyy 68cszQf+MFgT2yNZFr1uNX8OEWeR5NAlCEcYEH3LldrkS5TqU7dDl7VEmpKXAyaa e2got9jRsjcV2TRmT3XS1Hwc+03sPF4hLJAfd6t4hNzP59+kFGyFVjee0Az+QB4b 4bL8j1uKNqQnGV8fs1KaPxgrbhXxoFSAmqy/3hdr230UbDoluvtn2+SkqeQ7WmHi 7rjL9pNJUoBxRwJCjo2a0YtJZhmN0wwQImI1fLEe+jAW9C6C+y4badGPhVHPTGGz Nl48oQIr4gV9qMvDnyft5XpNvFAEVsXqv6HGQIuNzV3n3W3IpvhpGwlMmcPFgyhy tqVky7c6qWeHt8jSecRSFe35lUPk3A== =El+y -----END PGP SIGNATURE----- --4rY1EjgR5KvYE9aQONltd3Ozxnnz7DQrG--