Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp811122imc; Sun, 10 Mar 2019 23:07:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqwtCpQ4ArZrhqxeHxHnx5jYNkOFpqbdjZnnap7bESHoobXx+P33WKx3NlR37j2gi794mNoE X-Received: by 2002:a62:b61a:: with SMTP id j26mr31323045pff.151.1552284449096; Sun, 10 Mar 2019 23:07:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552284449; cv=none; d=google.com; s=arc-20160816; b=fvCkMkf8Bpj5NKXIdhMiwmFEoHazxqA9XIv6giHdsOFOA25h9lHb7goBoNZGz6havw rFtzfo4WhaKjqzauP6/2OsxtVguRTnZQcqoFPbRaj1u1q46YIb1TxakCZ+dTEL9JLciY nmmuidUSz8RFYiHIQ6X7ySZCGumW/1y9pyehotik/JL2YPOZanva2u//5KoF/fyhJhVQ 4WjcowK+QTK7YkqTHoJztWOEyMYIx3tW51J1trYQStPrf5VA8ZeTDHbhfUZliz3GrLWW PilhSo2OOa43i9zXIcx4Ju60a21uH/1iN6Yn5dJNEO2Id15In7klmlfgVvp2fNGVT/VT 801g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=CCUzXYNRRlMi7daxnec4zYx99pSyKepl5fnBP2aJOLs=; b=SZH12myb7WxFrWIW4sMcDsgNRy6gAVVYrjZL26tUTaqp+xQqLK1iVtOE0gPrrInQRn 0YaenJl2Pq3U5lFwMnTzipcucLkDgf+59PviRsWzJ7J/iQirXGgYO1x8gTrTokOTxgf0 rEV5gR4hDoZeb/qtyc0EkFM45gdX8rfcexf/CFAGNXoqqMtS4cGa6d7UKvo0A7ifN9YB Op99rWc2NQ1+hNZDXH+WXoivC2H1cylY/fkA5FkuIYNWJiIAZ20gAlbigkO8VqCmJzlj zEXrlMhveuiW6x+irJQP3MRm8FQSO63/0RV/dS/EuvqKnvOSJe+JarM1vDWiD7L0wWeX te5w== 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 a95si1474040pla.350.2019.03.10.23.07.13; Sun, 10 Mar 2019 23:07:29 -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 S1726682AbfCKGFN (ORCPT + 99 others); Mon, 11 Mar 2019 02:05:13 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:22839 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725932AbfCKGFN (ORCPT ); Mon, 11 Mar 2019 02:05:13 -0400 X-UUID: 13bac23f7a824a24b928c997eeef8e86-20190311 X-UUID: 13bac23f7a824a24b928c997eeef8e86-20190311 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 648818602; Mon, 11 Mar 2019 14:05:04 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs01n2.mediatek.inc (172.21.101.79) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Mon, 11 Mar 2019 14:05:02 +0800 Received: from [172.21.77.4] (172.21.77.4) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Mon, 11 Mar 2019 14:05:01 +0800 Message-ID: <1552284302.19917.2.camel@mtksdaap41> Subject: Re: [PATCH v2 8/9] rtc: mt6397: fix alarm register overwrite From: Eddie Huang To: Hsin-Hsiung Wang CC: Lee Jones , Rob Herring , Matthias Brugger , Mark Brown , Marc Zyngier , srv_heupstream , "linux-mediatek@lists.infradead.org" , "linux-rtc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "devicetree@vger.kernel.org" , Liam Girdwood , "Mark Rutland" , Sean Wang , Alessandro Zummo , Alexandre Belloni , Ran Bi =?UTF-8?Q?=28=E6=AF=95=E5=86=89=29?= Date: Mon, 11 Mar 2019 14:05:02 +0800 In-Reply-To: <1552275991-34648-9-git-send-email-hsin-hsiung.wang@mediatek.com> References: <1552275991-34648-1-git-send-email-hsin-hsiung.wang@mediatek.com> <1552275991-34648-9-git-send-email-hsin-hsiung.wang@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-TM-SNTS-SMTP: 2F95C3DC0626900E3474B178BD1D9567E4A8BEB8CDC8C2FFDE03DD70E9CAD2162000:8 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2019-03-11 at 11:46 +0800, Hsin-Hsiung Wang wrote: > From: Ran Bi > > Alarm registers high byte was reserved for other functions. > This add mask in alarm registers operation functions. > This also fix error condition in interrupt handler. > > Fixes: fc2979118f3f ("rtc: mediatek: Add MT6397 RTC driver") > > Signed-off-by: Ran Bi > --- > drivers/rtc/rtc-mt6397.c | 47 +++++++++++++++++++++++++++++++++-------------- > 1 file changed, 33 insertions(+), 14 deletions(-) > Thanks your interrupt and race condition fix Acked-by: Eddie Huang