Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4075138pxb; Mon, 1 Feb 2021 11:43:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJwXVepC+uZS4qpLH+Lq44edP8wi+KjXI3q4BEWx3+NNLn4xA0BYHx9C/dnbVCzPk7v6Fktd X-Received: by 2002:a17:906:24d1:: with SMTP id f17mr3667596ejb.503.1612208589155; Mon, 01 Feb 2021 11:43:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612208589; cv=none; d=google.com; s=arc-20160816; b=GdXBrNUg0DMiDxyYZBKhy7aWNfQqJ2wr24MzgKX7fd1eh2klL3GBGNrtMW8ctZXyyV 7uOZ8DcQxBQtvRhSPpd2xMZO+TQ6XEtbNbnLojV+C6hVdvokglJa6MDXa4/VMfuVj/6O xGaa8jv8G1zHuZYhM103wXr6fYBFhOifkqJkQgsX2G5tZ7f4JbOJf0nZokB0tqI9/e0y +Jbe4ANoUEH/Ub0yBxum4OgGvvY4DpmrwWWcU2hYczF8nCoBlcqfDYJZB+MVqK2p704M kCjtjcShl3b4kuNOwkhJOLBWC+X90F1Bfjq8dcbhjJ1EkKWUFfk4AQ25uFhg8GWQTutV WoMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=KDgwJZv9Bu8epbO1+VxsD6cMOlzpZBQcvwabaTosZRs=; b=A5r+0bQ9/KiV3x5+9Q68YBPpyuFhM8qQhe2/ABUsA8/3pmX2JC/fkwwcRIELvHBI7J kd+m+kTbGc0RgUtrYYrUSOlAy6esRP96EBPEBJX2bHbQKp4OZytapxS9i31vCLi3mHk1 uWgERbHPGXr6nwCTCGkC0Xqf37XrRwHgeEO91csHe26vj4b+vUgzKJwxzTgovJL+jhxQ 3viI3xNPeNG0jPcUWYLYIa/1RADLqLJPJGZpk6TE9WArubteexw6yzSN2cZsM2qXtEaq Ab5PSqYeYZ/V77W2LuOmHlV8fMp5VJyr8282oDJZ5NKTR5fqWKOn9UmnAuGs+eDcaud0 qvNg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e10si11289032edv.269.2021.02.01.11.42.43; Mon, 01 Feb 2021 11:43:09 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229963AbhBATjg (ORCPT + 99 others); Mon, 1 Feb 2021 14:39:36 -0500 Received: from relay10.mail.gandi.net ([217.70.178.230]:37647 "EHLO relay10.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229525AbhBATjf (ORCPT ); Mon, 1 Feb 2021 14:39:35 -0500 Received: from localhost (lfbn-lyo-1-13-140.w86-202.abo.wanadoo.fr [86.202.109.140]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay10.mail.gandi.net (Postfix) with ESMTPSA id 4A8C3240006; Mon, 1 Feb 2021 19:38:47 +0000 (UTC) Date: Mon, 1 Feb 2021 20:38:46 +0100 From: Alexandre Belloni To: Thomas Gleixner Cc: Serge Belyshev , Dirk Gouders , =?iso-8859-1?Q?Micka=EBl_Sala=FCn?= , LKML , Jason Gunthorpe , Miroslav Lichvar , John Stultz , Prarit Bhargava , Alessandro Zummo , linux-rtc@vger.kernel.org, Peter Zijlstra , Linus Torvalds Subject: Re: [PATCH V2] rtc: mc146818: Dont test for bit 0-5 in Register D Message-ID: <20210201193846.GD1196852@piout.net> References: <20201206220541.594826678@linutronix.de> <19a7753c-c492-42e4-241a-8a052b32bb63@digikod.net> <871re7hlsg.fsf@nanos.tec.linutronix.de> <98cb59e8-ecb4-e29d-0b8f-73683ef2bee7@digikod.net> <87y2gfg18p.fsf@nanos.tec.linutronix.de> <87tur3fx7w.fsf@nanos.tec.linutronix.de> <877dnrc2sv.fsf@depni.sinp.msu.ru> <8735yfd2q4.fsf@nanos.tec.linutronix.de> <87zh0nbnha.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87zh0nbnha.fsf@nanos.tec.linutronix.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/02/2021 20:24:17+0100, Thomas Gleixner wrote: > The recent change to validate the RTC turned out to be overly tight. > > While it cures the problem on the reporters machine it breaks machines > with Intel chipsets which use bit 0-5 of the D register. So check only > for bit 6 being 0 which is the case on these Intel machines as well. > > Fixes: 211e5db19d15 ("rtc: mc146818: Detect and handle broken RTCs") > Reported-by: Serge Belyshev > Reported-by: Dirk Gouders > Signed-off-by: Thomas Gleixner Acked-by: Alexandre Belloni I'm still fine with that going through your tree. Thanks for this work I do hope this will be the last issue... -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com