Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp13937112pxu; Mon, 4 Jan 2021 08:24:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJx3TMwAXo+GFrmizxz1tWqoP8WjxTmJ/Wft44fivuxfmpVaTQI+J1X3jGe316WK9XvII2Tr X-Received: by 2002:a17:906:c83b:: with SMTP id dd27mr68367460ejb.356.1609777471512; Mon, 04 Jan 2021 08:24:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1609777471; cv=pass; d=google.com; s=arc-20160816; b=eHd5f70FdH1O8EYmiKqdTmGY11a6h3EsVhNgDIEvG0B1wBV299Q8KIpiSyoqDUPLhO mUFeg55DWXaSWIJh58wYZalGbZyrX3rDP95ZddjfUVJ1vcw1tg7CzT4TdL6FOjquZp8M 48bGL2dB1RqzO6yJzbsIBuoGw3xGj7u1Q9a0qIlL+PG+C18+x8TEPhTAO4hLxAvm9oyg 4AuJUklXyn/osZ7qRTX4EUHhXYEUFFpv91ODHiKbXeqjgglJaWejH1bihohPAfWIyzcP EChfU821ccHjjIRHY8ysVW/dGv5kQJmkAcJ3PYrb7qz3MpQrzu+NgBIjl+66W8dah08F JAAA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=yJjsg7BoxHRMSSJz6jyZ39Sf9JrzuTDQ7gUflQ/73fU=; b=NID0BsMC0Ktsn1Nzd25+6Va7oFTqC33rHlmCrdCQlZVMMNdH837YLWhDAjADhE09t8 BH9R8z1k+PBniG2puX6rm3zxBHwf5ROcpUGyLtB8Xv9KaE6NE3o7dLmUnVMamrR3JXYc gJi2V4RoYYg/48e/frZvFVu02OKskNhuxvc2jrywA2WrcRUT2JpKgJoJeQ17HeEUngj+ JV7XdvTnHaVCHtP+wLFK4WNn72vmVyQIt+jXcd1r6r0MaL0aSDMXVuHNZxH2bnY/fKpw VwHDwMRzzB5Bq2zHq4K1ZgUxrzabtK7kMgUuhH6+YXOcSZNDzxWe7tjj/9EmHiFKPTgq WHCQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kunbusgmbh.onmicrosoft.com header.s=selector2-kunbusgmbh-onmicrosoft-com header.b=sSDR+9Ra; arc=pass (i=1 spf=pass spfdomain=kunbus.com dkim=pass dkdomain=kunbus.com dmarc=pass fromdomain=kunbus.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 by16si28305824ejb.105.2021.01.04.08.24.08; Mon, 04 Jan 2021 08:24:31 -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; dkim=pass header.i=@kunbusgmbh.onmicrosoft.com header.s=selector2-kunbusgmbh-onmicrosoft-com header.b=sSDR+9Ra; arc=pass (i=1 spf=pass spfdomain=kunbus.com dkim=pass dkdomain=kunbus.com dmarc=pass fromdomain=kunbus.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 S1727705AbhADQUs (ORCPT + 99 others); Mon, 4 Jan 2021 11:20:48 -0500 Received: from mail-eopbgr10076.outbound.protection.outlook.com ([40.107.1.76]:5354 "EHLO EUR02-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726098AbhADQUs (ORCPT ); Mon, 4 Jan 2021 11:20:48 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ke8KP/HJvxCJtDxvP0T3po501J5xiQd9vQC92UJeyxPQn7KgijcXSnP1cS40LQLct23Y0I89zW8+NtDsh3Blzc82h2OHh/lSwqrYViFDvwZGYgc36YnbALR7iDn9J6AjyyHfL90+vrx93Ib0vQ6KcfDCo7HFbKpVSGhyX7aX1BLWEBp/1aaUdGAGWaVxYsxs87u2iJ1I2KLgWM6ZAYhSSXZzX9jFJEFHU6b3zELJZuLBHo5fewRFC6CxynR2sWQr0FjzfaYfnnrWan84pIB2+QI+XiK2SrYT7BZB2fEMjOXm7gwZLVdU5ZcM5yKzDF3PnOr36gzirvfkjMMzKiV5KA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=yJjsg7BoxHRMSSJz6jyZ39Sf9JrzuTDQ7gUflQ/73fU=; b=LAP2ARZ/M9TPDwkG5CihTQKkuin0lGLm60423o1w7nZ0FYmKPVLRwSTevXyLhmXajhfXDcUhXI+C/uwtSwqu7OYz3YOv8dSr4z4j6yFUvpfYJz9l4ee/0YN23Q/8KFPydW2kxClI18CmPubOJBP40Y/HoVWhxGK+H+RB47BeJ+S/0kECmhvjTsOWwgcjZNgjX+uj4kJByi65n1tcwdd8BqoNk03D6EsDIRtIa1z6gwEXqXuv13XBmdqEht5xBvdC1LoxABGeourkGyLafy0D85J12nciI6Z7/KA3+MUyKjGhB0+GCbKsV/WcSl6ErQq4Y155MeORZGRB/HcAtiYY3A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=kunbus.com; dmarc=pass action=none header.from=kunbus.com; dkim=pass header.d=kunbus.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kunbusgmbh.onmicrosoft.com; s=selector2-kunbusgmbh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=yJjsg7BoxHRMSSJz6jyZ39Sf9JrzuTDQ7gUflQ/73fU=; b=sSDR+9RaClJhEIR5NO0eZbpbhkJaFyKlWoAPjrasKctl5WvJAuUxxocMQQD28+qPeHBmIyOMtHn9Uq7tSfr2aYPJsaNwEO22j4EEIjVqRLi/M7BXJAoM8awxFxopvlgIu6axVcmzi/qsqlmTgHev9KDpciv0w3E7lajSH3AyHGc= Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=kunbus.com; Received: from AM9P193MB0968.EURP193.PROD.OUTLOOK.COM (2603:10a6:20b:1fd::8) by AM0P193MB0531.EURP193.PROD.OUTLOOK.COM (2603:10a6:20b:16d::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3721.22; Mon, 4 Jan 2021 16:19:59 +0000 Received: from AM9P193MB0968.EURP193.PROD.OUTLOOK.COM ([fe80::70fd:5050:f682:bb8]) by AM9P193MB0968.EURP193.PROD.OUTLOOK.COM ([fe80::70fd:5050:f682:bb8%7]) with mapi id 15.20.3721.024; Mon, 4 Jan 2021 16:19:59 +0000 From: Philipp Rosenberger To: linux-rtc@vger.kernel.org Cc: p.rosenberger@kunbus.com, dan.carpenter@oracle.com, u.kleine-koenig@pengutronix.de, biwen.li@nxp.com, lvb@xiphos.com, bruno.thomsen@gmail.com, Alessandro Zummo , Alexandre Belloni , linux-kernel@vger.kernel.org Subject: [PATCH 0/2] rtc: pcf2127: proper initilize rtc after power loss Date: Mon, 4 Jan 2021 17:19:08 +0100 Message-Id: <20210104161910.9144-1-p.rosenberger@kunbus.com> X-Mailer: git-send-email 2.29.2 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [87.130.101.138] X-ClientProxiedBy: AM4PR0101CA0078.eurprd01.prod.exchangelabs.com (2603:10a6:200:41::46) To AM9P193MB0968.EURP193.PROD.OUTLOOK.COM (2603:10a6:20b:1fd::8) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from kun-nb-112.kunbus.com (87.130.101.138) by AM4PR0101CA0078.eurprd01.prod.exchangelabs.com (2603:10a6:200:41::46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3721.19 via Frontend Transport; Mon, 4 Jan 2021 16:19:59 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 90226db4-2d76-4b63-d014-08d8b0cc952e X-MS-TrafficTypeDiagnostic: AM0P193MB0531: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7219; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 2xpu4hPpUncB5Fm6bgM0kRlYsN4xivWv2M6giVg34bkGdXztbLIrFjjiV9zF67Ljtm2MJ10Z1O/j8oz+CzSKX8gYzx81d15lOQNZGuhQR+Ji8666CeomTrCefL7T/gAXTQPByqR+0zCUlY0Y0Goae8o2HNl/kGNMSXY56iMto9RrEB8zMb1lbNOdTNDGyWgZ96y7uE1S3jbj3dUbtPeIiUVctrYDNbXqP+f/VVNEB3zG28LiuJJrwb5vMUahDtgn0tZCO9o0GmMdoPKqru/+4285E6E1ly1lkOgY6xU/SQmk7O/1EohhMu+1mP0gOeYC8vA9C1xNGTixd7/2KP3HXeU6JNJ/dg8gCzsUzD/H7zIgBUCCTPAQ0sCJsRGUVZidvjHySEJCn2csKLey777ECg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM9P193MB0968.EURP193.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(4636009)(366004)(396003)(39830400003)(136003)(376002)(346002)(4744005)(8936002)(66476007)(66556008)(316002)(478600001)(36756003)(66946007)(6486002)(52116002)(7696005)(2616005)(26005)(956004)(8676002)(1076003)(54906003)(186003)(16526019)(2906002)(4326008)(86362001)(5660300002)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EpnwZkoX?= =?us-ascii?Q?C9H7bYK1St+LNZoXK0OwPBtrxTMEj2NnP5Csk+GL2MgpycZRprwndgO22uiG?= =?us-ascii?Q?Aw/udhs4GSIAylmkPW3SAz+J5XDWHeMIvthk6z9FfGa/4Gg3chlPAW8hAFyQ?= =?us-ascii?Q?F64W75CNRaRmKO+0Hc1Wv3NLgqdOdCTJAxWOdbdbZ+d0SQ5iIzH3On/hT0Hi?= =?us-ascii?Q?+klO?= X-OriginatorOrg: kunbus.com X-MS-Exchange-CrossTenant-AuthSource: AM9P193MB0968.EURP193.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jan 2021 16:19:59.4460 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: aaa4d814-e659-4b0a-9698-1c671f11520b X-MS-Exchange-CrossTenant-Network-Message-Id: 90226db4-2d76-4b63-d014-08d8b0cc952e X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: sMGj/ZaxMSArpl2b94AlZsc/p1KBTAzBovDEG9Kmc4OjJUJAcd/KLdqhJpzuXXZsWbGerbm+Zg8eqxI6efWB7obl0ShxH2CON44xoQVzZgE= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0P193MB0531 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org If the PCF2127/2129 loses power it needs some initialization to work correctly. A bootloader/firmware might do this. If not we should do this in the driver. Philipp Rosenberger (2): rtc: pcf2127: Disable Power-On Reset Override rtc: pcf2127: Run a OTP refresh if not done before drivers/rtc/rtc-pcf2127.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) -- 2.29.2