From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932213AbcHKKAw (ORCPT ); Thu, 11 Aug 2016 06:00:52 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:33048 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751072AbcHKKAu (ORCPT ); Thu, 11 Aug 2016 06:00:50 -0400 From: Daniel Romell X-Google-Original-From: Daniel Romell To: a.zummo@towertech.it Cc: alexandre.belloni@free-electrons.com, rtc-linux@googlegroups.com, linux-kernel@vger.kernel.org, daro@hms.se, jao@hms.se, mago@hms.se Subject: [PATCH 0/2] bq32000 fixes Date: Thu, 11 Aug 2016 11:59:13 +0200 Message-Id: <1470909555-9226-1-git-send-email-daro@hms.se> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, This is a couple of patches for the bq32000 RTC. The first one is purely cosmetic, fixing a case where the wrong mask (but correct value) was used when reading a register value. The second patch adds a check for a failure flag in the read function. If the register contents can't be trusted, an error is returned instead. The patch also removes some code in the probe function that would clear the failure flag without resolving the error condition. The error is now only cleared when writing a new time to the RTC. Jan Östlund (2): rtc: bq32k: Use correct mask name for 'minutes' register. rtc: bq32k: Fix handling of oscillator failure flag drivers/rtc/rtc-bq32k.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) -- 2.7.4