Message ID | 1404314924-23564-8-git-send-email-lee.jones@linaro.org |
---|---|
State | Accepted |
Commit | dc543929217c828fa52bcf48be0508eb5a552bec |
Headers | show
Return-Path: <patchwork-forward+bncBDA7X7F2WUEBBYOK2COQKGQEW6FKTJY@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f198.google.com (mail-ve0-f198.google.com [209.85.128.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 610B620560 for <linaro@patches.linaro.org>; Wed, 2 Jul 2014 15:29:37 +0000 (UTC) Received: by mail-ve0-f198.google.com with SMTP id db11sf28957557veb.5 for <linaro@patches.linaro.org>; Wed, 02 Jul 2014 08:29:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=r+lKB2cQ/Lieyx1I0BDZ37B8raqWt6FxpJN0TYCub2g=; b=gEQu9cD9ibrCxFlmJJlX/KHnLmdYs9tTSpgdS/JT/lCLvIs+kqZvxnaBK+HyL/4eOK ABNI88HtiR3roj+0YH7NUy2GRzlBiuEwIHSb/iuXcQZrv3Jb2gGVRL001WEFszEcdgZQ hB7pO/MJvCCDMBXL8lkJ8dzUjJS6WhQFppAVmYz51vy/b/dN+VYfubok1HFrZkqUv+wc Qmc4vRuyNKBfO6cQNwMNfeHmbxqZ1jiEfZbBVLyYwSdz6L+SAzQWlm9kpyVLRDL49J6d g7Ql+vQrrQxPI+KYFR25ZKNeF2jm+pyiFoMCFcgWXvz+NpZQirCFLStw7R+hjHjpYAMJ 8c4A== X-Gm-Message-State: ALoCoQncgY1BO06wPb8/1A2Voh/5l+qYpMs67J3MQjkIRQZuiqanz3sYqkgjCrxPmlEd7lCvpA8w X-Received: by 10.58.41.99 with SMTP id e3mr27606941vel.20.1404314977148; Wed, 02 Jul 2014 08:29:37 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.25.70 with SMTP id 64ls119479qgs.14.gmail; Wed, 02 Jul 2014 08:29:37 -0700 (PDT) X-Received: by 10.221.20.199 with SMTP id qp7mr49997688vcb.24.1404314977057; Wed, 02 Jul 2014 08:29:37 -0700 (PDT) Received: from mail-ve0-f174.google.com (mail-ve0-f174.google.com [209.85.128.174]) by mx.google.com with ESMTPS id 7si13059137vcu.41.2014.07.02.08.29.37 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 02 Jul 2014 08:29:37 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.174 as permitted sender) client-ip=209.85.128.174; Received: by mail-ve0-f174.google.com with SMTP id jx11so11340045veb.19 for <patchwork-forward@linaro.org>; Wed, 02 Jul 2014 08:29:37 -0700 (PDT) X-Received: by 10.58.209.7 with SMTP id mi7mr113065vec.80.1404314976979; Wed, 02 Jul 2014 08:29:36 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp301910vcb; Wed, 2 Jul 2014 08:29:36 -0700 (PDT) X-Received: by 10.50.122.97 with SMTP id lr1mr50201815igb.18.1404314976508; Wed, 02 Jul 2014 08:29:36 -0700 (PDT) Received: from mail-ie0-f171.google.com (mail-ie0-f171.google.com [209.85.223.171]) by mx.google.com with ESMTPS id w9si39518226icy.8.2014.07.02.08.29.36 for <patches@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 02 Jul 2014 08:29:36 -0700 (PDT) Received-SPF: pass (google.com: domain of lee.jones@linaro.org designates 209.85.223.171 as permitted sender) client-ip=209.85.223.171; Received: by mail-ie0-f171.google.com with SMTP id x19so9524189ier.2 for <patches@linaro.org>; Wed, 02 Jul 2014 08:29:36 -0700 (PDT) X-Received: by 10.50.20.97 with SMTP id m1mr5511972ige.28.1404314976189; Wed, 02 Jul 2014 08:29:36 -0700 (PDT) Received: from localhost.localdomain (host109-148-235-194.range109-148.btcentralplus.com. [109.148.235.194]) by mx.google.com with ESMTPSA id d4sm23997781igc.5.2014.07.02.08.29.34 for <multiple recipients> (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 02 Jul 2014 08:29:35 -0700 (PDT) From: Lee Jones <lee.jones@linaro.org> To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: sameo@linux.intel.com, linus.walleij@linaro.org, Lee Jones <lee.jones@linaro.org> Subject: [PATCH 07/12] mfd: 88pm805: msleep(1ms ~ 20ms) may not do what the caller intends Date: Wed, 2 Jul 2014 16:28:39 +0100 Message-Id: <1404314924-23564-8-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1404314924-23564-1-git-send-email-lee.jones@linaro.org> References: <1404314924-23564-1-git-send-email-lee.jones@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: lee.jones@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.174 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: <patchwork-forward.linaro.org> X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe>, <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com> |
diff --git a/drivers/mfd/88pm805.c b/drivers/mfd/88pm805.c index 64751c2..e9d5064 100644 --- a/drivers/mfd/88pm805.c +++ b/drivers/mfd/88pm805.c @@ -158,7 +158,7 @@ static int device_irq_init_805(struct pm80x_chip *chip) * PM805_INT_STATUS is under 32K clock domain, so need to * add proper delay before the next I2C register access. */ - msleep(1); + usleep_range(1000, 3000); if (ret < 0) goto out;
This code has been working since 2012, as limiting the time between 1ms and 3ms is unlikely to do any harm. Soothes checkpatch warning: WARNING: msleep < 20ms can sleep for up to 20ms; see Documentation/timers/timers-howto.txt #161: FILE: drivers/mfd/88pm805.c:161: + msleep(1); Signed-off-by: Lee Jones <lee.jones@linaro.org> --- drivers/mfd/88pm805.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)