Received: by 10.192.165.148 with SMTP id m20csp153375imm; Thu, 26 Apr 2018 18:14:09 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpc28TlrrulpgiEPilg8B0KeSPvNG8dUKiT4RrBrClz3AM6uuUMPixMzb3UISb1Fm6hwdQM X-Received: by 10.98.102.221 with SMTP id s90mr275093pfj.123.1524791649129; Thu, 26 Apr 2018 18:14:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524791649; cv=none; d=google.com; s=arc-20160816; b=jKEpiASomv7JL+QzvBdVidn/Kv3BxrUnfnvNXC2a7fPHRHD5TR2SGysAjSEBaa1S+J RDFhV2lCTi4SNcYlsLQIHASVnm5breiuNm5C6+6Tr87jJbRGIF17rr3M43U6dXKvKCoH awAgCrQRzAkfkKU+Vaj0cdXaBn9e6lqepKGdr/uXlBOemAFAkd5WQfTeY9jLpxfn5MJa A4uk8n44sQvPTpIfsjn3g6yHgwOiOhIKyYb4G1AvXJZtnC4o+5O1OrTYk7j2+VYg0Zwc EnlN3A75p1pbQrzsiSafhIB8gGgSwM96lxKwWgFltCddWnZ9lNlGigfIW6C69emWSkOg lY0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:list-id:precedence:sender:subject:from:cc:to:date :arc-authentication-results; bh=72pgdzA+GvueWNs0z1Afpf/QVzfVX+EymO8pdUYMWrc=; b=bTPtgl0wgX4UEjvtjTlSDfqqPg5PTo3+CvGOzbFiaCWe9SFLBB/fTVfRngJBJ2NHcd XvuxecUoXWLlk+94N1iKwld6k4Q0EoQTeYqQ1+xKh29hTsXdQZdoBVWm12KBVip8xGp8 NMv6fzRXA601j8cCRdc7OUpCtJVG/6eiKDV8wrQ1F0PUJMRWcCJMzwQ6lKXVv2MZP7we NGRj0Xi48tZ9oeK3kGkBmK3xEFTOYfKYRylVUJl4igK6iG9mzsMC5GJbLMGxFOngwdna hfH+hjU2+JluLfVG+xxEam6Sk6FBAimAQZW0++XTh/v//3yPB97OPZxtx8q9krFO+U6c 8p4A== 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 q4-v6si119695pgn.685.2018.04.26.18.13.55; Thu, 26 Apr 2018 18:14:09 -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; 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 S1757225AbeD0BMz (ORCPT + 99 others); Thu, 26 Apr 2018 21:12:55 -0400 Received: from kvm5.telegraphics.com.au ([98.124.60.144]:33198 "EHLO kvm5.telegraphics.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754672AbeD0BMx (ORCPT ); Thu, 26 Apr 2018 21:12:53 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by kvm5.telegraphics.com.au (Postfix) with ESMTP id 086EA22989; Thu, 26 Apr 2018 21:12:51 -0400 (EDT) Date: Fri, 27 Apr 2018 11:12:56 +1000 To: Greg Ungerer Cc: Geert Uytterhoeven , linux-m68k@lists.linux-m68k.org, linux-kernel@vger.kernel.org From: Finn Thain Subject: [PATCH] m68k: Fix calendar month regression on M68328 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Message-Id: My earlier fix for read_persistent_clock() neglected to cover m68328_hwclk(). Correct this oversight. Cc: Geert Uytterhoeven Signed-off-by: Finn Thain --- Greg, the read_persistent_clock() change has already been queued by Geert. Should this patch be pushed together with that one (presuming your ack)? Sorry for the inconvenience. --- arch/m68k/68000/timers.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/m68k/68000/timers.c b/arch/m68k/68000/timers.c index 252455bce144..71ddb4c98726 100644 --- a/arch/m68k/68000/timers.c +++ b/arch/m68k/68000/timers.c @@ -125,7 +125,9 @@ int m68328_hwclk(int set, struct rtc_time *t) { if (!set) { long now = RTCTIME; - t->tm_year = t->tm_mon = t->tm_mday = 1; + t->tm_year = 1; + t->tm_mon = 0; + t->tm_mday = 1; t->tm_hour = (now >> 24) % 24; t->tm_min = (now >> 16) % 60; t->tm_sec = now % 60; -- 2.16.1