From patchwork Thu Sep 5 07:03:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "\(Exiting\) Baolin Wang" X-Patchwork-Id: 173121 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ce:0:0:0:0 with SMTP id r14csp336024ilq; Thu, 5 Sep 2019 00:04:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqzyFFwR/qjYXqLjv7bekP/AUltczPNpMGTWdn88O6lZHiurNeMHn2nkVnUPEkzJ57QMyv4g X-Received: by 2002:a17:902:33a5:: with SMTP id b34mr1788184plc.286.1567667073473; Thu, 05 Sep 2019 00:04:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567667073; cv=none; d=google.com; s=arc-20160816; b=fiTgpy1CTaZVE2AgPPS0ImnkJhlcjhPMeSlY6CWLtLcBBfd8aVo+na43KqC06e8gZ1 afEvWUdKKsdd/DD3ReIhqlzNieILfmw33Sbz6jDHCH/fvg4t7V7W0MZRxYbTlR0vlu/Q X1CJTuZE6mzQRg42IYiDwExwdyBRARTUQqKDpLuDPS0X6ckKfdG1wNGIjbTfsSD66Azk u9tJdoeep7kEQWq89XMwUG2cxqiT3eu8YI+ndkql0MaY/MCC6kGw+SrcK236oSYeQl5j 9utFgG2oZaXTmRYErSwEvxBJx0GaESmPc0QOP7QBQhfnE43sktt2zBhQuQqnaIVOScYI 3YzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=Jk8OtQyC7ASzQuT3gwno2aJBZd/Wr2XR1pUFK3wHd3w=; b=TyOBLW5G0ze2a9E9kmTjaxtVXrVYA0aWViiE/lQDlkCSS+F4KMh8B6RTG+BLNi1H6U 8N1yiWT3inQVMYCRc3jNpnijUtstlf2UoG32qjk09uhRlHwRFh7166kAB4d96Copl74B HQGzmkZg5kjw4OuaXOJzGJmdyGhtXvv0RG0+eOKDAtgEO1xGlkfcLXyo8/F0G9arrBPY FwjmF3E0vsKQjl7dcpd2yuz70C3Ce5kYhi6E8p7voZF9+38AdS0uNQ/mZHagjweuY6ev trlpXL8awoY5SMjtx+iLwkKWzMt7lOSfojcPglcYrc2afswgho2hceN8FQyQ1NX0xCUZ g0SA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EwzpcT2k; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s19si978959pgm.291.2019.09.05.00.04.33; Thu, 05 Sep 2019 00:04:33 -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; dkim=pass header.i=@linaro.org header.s=google header.b=EwzpcT2k; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731696AbfIEHEc (ORCPT + 28 others); Thu, 5 Sep 2019 03:04:32 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:34677 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726032AbfIEHEb (ORCPT ); Thu, 5 Sep 2019 03:04:31 -0400 Received: by mail-pg1-f193.google.com with SMTP id n9so887060pgc.1 for ; Thu, 05 Sep 2019 00:04:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=Jk8OtQyC7ASzQuT3gwno2aJBZd/Wr2XR1pUFK3wHd3w=; b=EwzpcT2kLlxQ63gQwptMLqydZC7lBG4Rs8vCHXv0O4fSZU/tqtwApoCrOkVT21++jA Y0hBE6HG6snXmASCYmt24V3txbhIFoqPlY3Acnq3VVGLKHaG12an/T9lA1knMXVehnGV wKVUzEbL0hy9iG5uOAVVjibuH7tPg/L6ZuodlzDtj8RrrP1umaPZlHmUQhDKuYuvR/3a j6dn28jVUUJlAbc/6X1xLzC41kuAAEn4KrKJRacx0USPZvVnoXhBy2QHniidYNBv3F+x gNcb5IIyawkcOMXeHbCLoICDtOfOBC67G4ClWViR9RIVYsTq3HV3QubJw0u4tb80twi6 7SyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Jk8OtQyC7ASzQuT3gwno2aJBZd/Wr2XR1pUFK3wHd3w=; b=HNm857ylqN1MkwNEnKaMhF84c6TCjOLKMOrvsoN0W8BWN72eH36d/lD5is27bM85sM JzxABdYunudhCVrKdY1YsjzuJNx89fv+2t796+cWGxfqGOi8d8oBST34cBr87/9d5pyW bL3VxcONf1jq6YQSR/9nDvGdJ3yXXzMdaTk8EtN2J7Zf416XO3sFtkXfmdWiJpT+isv8 0M+6o6feZSHomDwDnV8EINUTaSxnoAYfVhv1QWp5eknSBHHK2hU58pzsVBGcZW+jsK3m pkCcq6LrxeuoWPUz0lFXAHHgim5czGa4jad0INhieOMAvYgYMlHzpyXdJVGRoZ3Ju//U IAfA== X-Gm-Message-State: APjAAAXhD+AA/L8krM+b812z9zW1g4HZ6JoS7u2ZyYcpqWBJLIQcVkcI 9jNXtyrZmQeah14tmWpD5Vm9fQ== X-Received: by 2002:a63:fc09:: with SMTP id j9mr1713158pgi.377.1567667070935; Thu, 05 Sep 2019 00:04:30 -0700 (PDT) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id e129sm1014471pfa.92.2019.09.05.00.04.28 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 05 Sep 2019 00:04:30 -0700 (PDT) From: Baolin Wang To: a.zummo@towertech.it, alexandre.belloni@bootlin.com Cc: linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org, baolin.wang@linaro.org Subject: [PATCH] rtc: sc27xx: Remove clearing SPRD_RTC_POWEROFF_ALM_FLAG flag Date: Thu, 5 Sep 2019 15:03:30 +0800 Message-Id: <1f75310242de75b14d8973538bf96efffb395daf.1567666894.git.baolin.wang@linaro.org> X-Mailer: git-send-email 1.7.9.5 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The SPRD_RTC_POWEROFF_ALM_FLAG flag is used to indicate if a poweroff alarm is set, which can power on the system when system in power-off status. And the bootloader will validate this flag to check if the booting mode is alarm booting mode, thus we should not clear this flag in kernel, instead bootloader will clear this flag after checking the booting mode. Signed-off-by: Baolin Wang --- drivers/rtc/rtc-sc27xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 1.7.9.5 diff --git a/drivers/rtc/rtc-sc27xx.c b/drivers/rtc/rtc-sc27xx.c index b4eb3b3..46646aa 100644 --- a/drivers/rtc/rtc-sc27xx.c +++ b/drivers/rtc/rtc-sc27xx.c @@ -138,7 +138,7 @@ static int sprd_rtc_lock_alarm(struct sprd_rtc *rtc, bool lock) if (ret) return ret; - val &= ~(SPRD_RTC_ALMLOCK_MASK | SPRD_RTC_POWEROFF_ALM_FLAG); + val &= ~SPRD_RTC_ALMLOCK_MASK; if (lock) val |= SPRD_RTC_ALM_LOCK; else