Message ID | 1347569157-19262-1-git-send-email-khilman@deeprootsystems.com |
---|---|
State | Accepted |
Headers | show
Return-Path: <rtc-linux+bncBCPOXO7CQICBBCEMZGBAKGQET2H4KHY@googlegroups.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-iy0-f184.google.com (mail-iy0-f184.google.com [209.85.210.184]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 653BA2C0079 for <incoming@patchwork.ozlabs.org>; Fri, 14 Sep 2012 06:46:03 +1000 (EST) Received: by iakh37 with SMTP id h37sf2650656iak.11 for <incoming@patchwork.ozlabs.org>; Thu, 13 Sep 2012 13:46:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=mime-version:x-beenthere:received-spf:from:to:cc:subject:date :message-id:x-mailer:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-google-group-id:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe:content-type; bh=/cRFap2MEDOCDeuWdRc2Ioaz26z+6p+hyEwFERMgI0I=; b=ZGV1reIFJQ/8djGyvlx5Uf9+o+MJiKPbwIxfDwkd21aZKXi/aAAS3KBL855rUdDZS2 TXYES22hlPSu/eGpW9863qblFl19+RlcxJ53yQJ1HDCQv+O3vkZ3fk54JUpOWNDSe4Ll PwMQ/UhCL9lXsaDSMj0OCcgFwC8lBGnnFk9smntjwQ8QuYmYU8HBqFBG0tKR6AW9hRKI wTWQOClfB8aoy52VMATJFoSvRX+rqfddZbK/Vl0ZbB7SKJtHRn9pwHKizQo8F+wNPeGj RFcwwq8on7CX09NtLui2Ly0hQcP6rfR+1Gv/BzLeBlJ4PzU5FtIV95WIvGx7BtByetm0 1H7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-beenthere:received-spf:from:to:cc:subject:date :message-id:x-mailer:x-gm-message-state:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-google-group-id:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe:content-type; bh=/cRFap2MEDOCDeuWdRc2Ioaz26z+6p+hyEwFERMgI0I=; b=QIDP9AYYY4VJG0eVyjUokUQQuBWivDkt5XkRiYIDax3p7BwvDx7s1nxRE+GGXmZK9R u8JcZMEbPuNznHPFU1YoY/iHmx3R9ToyyErt8SOC/zNoyKZeAgXla6mb6t+zuZD+89tN wz1gBErdzrjX1ijeeecBSaBFUfkFvoNtcTnuovs68/k80UCT8twPNlINVL9Cd/EDB1TK veUqge7ejzBWOGMWgv5qvoMub/gR3jr9EF/rXpRSxAXGXoUB5D1BoLTus1HVL97FbXmn mJQwfZtQX105xN9n0cUPUIP16ogBUo2iuo6ymiNHJhnTwa3YMWlZ3N5ZppLslw8kyuKx cLgQ== Received: by 10.68.212.99 with SMTP id nj3mr347971pbc.20.1347569161035; Thu, 13 Sep 2012 13:46:01 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: rtc-linux@googlegroups.com Received: by 10.68.141.133 with SMTP id ro5ls10237962pbb.1.gmail; Thu, 13 Sep 2012 13:46:00 -0700 (PDT) Received: by 10.68.136.71 with SMTP id py7mr162155pbb.4.1347569160526; Thu, 13 Sep 2012 13:46:00 -0700 (PDT) Received: by 10.68.136.71 with SMTP id py7mr162154pbb.4.1347569160516; Thu, 13 Sep 2012 13:46:00 -0700 (PDT) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by gmr-mx.google.com with ESMTPS id p7si9528521pby.0.2012.09.13.13.46.00 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 13 Sep 2012 13:46:00 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.54 is neither permitted nor denied by best guess record for domain of khilman@deeprootsystems.com) client-ip=209.85.160.54; Received: by pbbrp2 with SMTP id rp2so4339489pbb.41 for <rtc-linux@googlegroups.com>; Thu, 13 Sep 2012 13:46:00 -0700 (PDT) Received: by 10.68.202.193 with SMTP id kk1mr1072290pbc.136.1347569159830; Thu, 13 Sep 2012 13:45:59 -0700 (PDT) Received: from localhost (c-24-19-7-36.hsd1.wa.comcast.net. [24.19.7.36]) by mx.google.com with ESMTPS id vz8sm7463060pbc.63.2012.09.13.13.45.58 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 13 Sep 2012 13:45:58 -0700 (PDT) From: Kevin Hilman <khilman@deeprootsystems.com> To: Andrew Morton <akpm@linux-foundation.org>, linux-omap@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, Kevin Hilman <khilman@ti.com>, Felipe Balbi <balbi@ti.com>, Steve Sakoman <steve@sakoman.com>, Alessandro Zummo <a.zummo@towertech.it> (maintainer:REAL TIME CLOCK (...), rtc-linux@googlegroups.com (open list:REAL TIME CLOCK (...), linux-kernel@vger.kernel.org (open list) Subject: [rtc-linux] [PATCH] RTC: TWL: ensure all interrupts are disabled during probe Date: Thu, 13 Sep 2012 13:45:57 -0700 Message-Id: <1347569157-19262-1-git-send-email-khilman@deeprootsystems.com> X-Mailer: git-send-email 1.7.9.2 X-Gm-Message-State: ALoCoQk5PpTONcUOvKC+9/0jHmG2Vaag6pi4lGrO3yAzI6VjOGDMKAZ8ztPIwLurQYNELW0PGBoK X-Original-Sender: khilman@deeprootsystems.com X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 209.85.160.54 is neither permitted nor denied by best guess record for domain of khilman@deeprootsystems.com) smtp.mail=khilman@deeprootsystems.com Reply-To: rtc-linux@googlegroups.com Precedence: list Mailing-list: list rtc-linux@googlegroups.com; contact rtc-linux+owners@googlegroups.com List-ID: <rtc-linux.googlegroups.com> X-Google-Group-Id: 712029733259 List-Post: <http://groups.google.com/group/rtc-linux/post?hl=en_US>, <mailto:rtc-linux@googlegroups.com> List-Help: <http://groups.google.com/support/?hl=en_US>, <mailto:rtc-linux+help@googlegroups.com> List-Archive: <http://groups.google.com/group/rtc-linux?hl=en_US> Sender: rtc-linux@googlegroups.com List-Subscribe: <http://groups.google.com/group/rtc-linux/subscribe?hl=en_US>, <mailto:rtc-linux+subscribe@googlegroups.com> List-Unsubscribe: <http://groups.google.com/group/rtc-linux/subscribe?hl=en_US>, <mailto:googlegroups-manage+712029733259+unsubscribe@googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1 |
diff --git a/drivers/rtc/rtc-twl.c b/drivers/rtc/rtc-twl.c index c5d06fe..9277d94 100644 --- a/drivers/rtc/rtc-twl.c +++ b/drivers/rtc/rtc-twl.c @@ -495,6 +495,11 @@ static int __devinit twl_rtc_probe(struct platform_device *pdev) if (ret < 0) goto out1; + /* ensure interrupts are disabled, bootloaders can be strange */ + ret = twl_rtc_write_u8(0, REG_RTC_INTERRUPTS_REG); + if (ret < 0) + dev_warn(&pdev->dev, "unable to disable interrupt\n"); + /* init cached IRQ enable bits */ ret = twl_rtc_read_u8(&rtc_irq_bits, REG_RTC_INTERRUPTS_REG); if (ret < 0)