Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp7939739ybc; Fri, 29 Nov 2019 03:26:41 -0800 (PST) X-Google-Smtp-Source: APXvYqy1VASDkevw4GOjbKBJFpOQDPmp2v90zX67Pf68QzCsBY01j+C4a7lEQucrd/Bfaw4QJw0Q X-Received: by 2002:a05:6402:12d1:: with SMTP id k17mr8172781edx.291.1575026800951; Fri, 29 Nov 2019 03:26:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575026800; cv=none; d=google.com; s=arc-20160816; b=CARRhpnQdeBqyuBTit1u0cH0AxlkidLl6NcIAbO1oIzwppIX6M2Ks/598VeklIY/Yh deUrJV3gFWIPFk8SIfgEpzC1A3mtKize+jCFvdWrF3SnxBHjL67pcA9yJXV4xJhpEIaa kd4Cwtbwlpr/X5IFn3zVXwczrtAzk4tLejHHUbEaFQNc5gl62VXwfYs81rbd1sn5ikKL yXm70tz4swI+fF75wRKBLlBA8PSbQDOfqRqjbRTH3lVit1JIqBmu6zADEZQ6vcoXvTS+ Xjry4tEBoDm12ieQm+Jpeb6vrksFwwNV+jjuxKENscv10dKC+VB2HVRupQXikqZC2WuF IFqw== 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:message-id:subject:cc:to:from:date :dkim-signature; bh=fizHtIIfo+LXed1ea7JppR2ohUiHGMK8GYqAyPbNTGE=; b=EoyIGih6ZoUORl+Ra7565RO7Wgn140inuXbCTlqGlkzlimHzlYk/gOJnXcXem+of4E Qrrq2K5kibDCGB4Kepk+GcrRFPSKYOOWx6Ydw51T6/ImJ0TUA4ddLFBjQQKvHxm7+0T/ LuqGM6ltq5O3s4WBAhGc2kAtSwzuVNedjbtiF9W8bBqiiuzZd9s24N/Ztmdynnh5lEei 5rWSczhGCuM2eFa6/qPtT/TGvRqQSMjt/tnwsx52M2jhyyqGYvg7IknZakTRbR2cu3Ji pY7RRd03fBNC2/LrZnWSDnPCra46Ig64QsoezSC/tWqR6bbvdeAUJTnAMbT1tDhK3eEO qzkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kemnade.info header.s=20180802 header.b=mPO60xS8; 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 oq19si187662ejb.97.2019.11.29.03.26.16; Fri, 29 Nov 2019 03:26:40 -0800 (PST) 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=fail header.i=@kemnade.info header.s=20180802 header.b=mPO60xS8; 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 S1726888AbfK2LZK (ORCPT + 99 others); Fri, 29 Nov 2019 06:25:10 -0500 Received: from mail.andi.de1.cc ([85.214.55.253]:32844 "EHLO mail.andi.de1.cc" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726709AbfK2LZK (ORCPT ); Fri, 29 Nov 2019 06:25:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kemnade.info; s=20180802; h=Content-Transfer-Encoding:Content-Type: MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=fizHtIIfo+LXed1ea7JppR2ohUiHGMK8GYqAyPbNTGE=; b=mPO60xS8atg9PK/5pqXMTDlL1Z 5Dhc3i72WSnVhyMMl3fojnKxYecXqs9seRXCQc2xa3uwBRclnToefFK4xE4FhAvbw1D7RAgJFlGe2 u6icXESSl9tGbFnVVWhVG9iViXEimwnY2cWuXRqXfrxNqIrwyCyK5qCvvBjo9HIw+LCY=; Received: from [2a02:790:ff:919:7ee9:d3ff:fe1f:a246] (helo=localhost) by mail.andi.de1.cc with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iaeOX-0004qH-Jd; Fri, 29 Nov 2019 12:25:06 +0100 Received: from [::1] (helo=localhost) by localhost with esmtp (Exim 4.89) (envelope-from ) id 1iaeOU-0001VL-FM; Fri, 29 Nov 2019 12:25:02 +0100 Date: Fri, 29 Nov 2019 12:25:01 +0100 From: Andreas Kemnade To: Alexandre Belloni Cc: lee.jones@linaro.org, a.zummo@towertech.it, linux-kernel@vger.kernel.org, linux-rtc@vger.kernel.org, phh@phh.me, b.galvani@gmail.com, stefan@agner.ch, letux-kernel@openphoenux.org Subject: Re: [PATCH v2 5/5] rtc: rtc-rc5t619: add ricoh rc5t619 RTC driver Message-ID: <20191129122501.6cecc7f2@kemnade.info> In-Reply-To: <20191129085500.GV299836@piout.net> References: <20191031213835.11390-1-andreas@kemnade.info> <20191031213835.11390-6-andreas@kemnade.info> <20191128105751.GM299836@piout.net> <20191129075940.3b1c2631@kemnade.info> <20191129085500.GV299836@piout.net> X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; i686-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Score: -1.0 (-) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 29 Nov 2019 09:55:00 +0100 Alexandre Belloni wrote: > On 29/11/2019 07:59:40+0100, Andreas Kemnade wrote: > > > > + /* disable interrupt */ > > > > + err = rc5t619_rtc_alarm_enable(&pdev->dev, 0); > > > > + if (err) > > > > + return err; > > > > > > Is it really useful to disable the alarm to reenable them later? > > > > > Well, yes, seems to be nonsense. > > Am I right that I do not need to prevent alarm irqs between > > alloc() and register()? > > > > That's fine, the core will be ready to handle alarms after alloc() > ok, will clean that up and probably produce a -v3 this evening. Regards, Andreas