From patchwork Fri May 31 22:22:40 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 2645801 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork1.kernel.org (Postfix) with ESMTP id AF4693FD4E for ; Fri, 31 May 2013 22:24:03 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A5638E5FC9 for ; Fri, 31 May 2013 15:24:03 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.187]) by gabe.freedesktop.org (Postfix) with ESMTP id A2990E5F74 for ; Fri, 31 May 2013 15:23:08 -0700 (PDT) Received: from wuerfel.lan (HSI-KBW-095-208-002-043.hsi5.kabel-badenwuerttemberg.de [95.208.2.43]) by mrelayeu.kundenserver.de (node=mreu3) with ESMTP (Nemesis) id 0MPeS5-1Umgaq1gxd-004gPT; Sat, 01 Jun 2013 00:23:01 +0200 From: Arnd Bergmann To: linux-kernel@vger.kernel.org Subject: [PATCH 03/15] drm/nouveau: use mdelay instead of large udelay constants Date: Sat, 1 Jun 2013 00:22:40 +0200 Message-Id: <1370038972-2318779-4-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1370038972-2318779-1-git-send-email-arnd@arndb.de> References: <1370038972-2318779-1-git-send-email-arnd@arndb.de> X-Provags-ID: V02:K0:yJphtz+4os12D9F2c1Ng/yaZ9l9ZLhG6YIkTXx3RO8u tR3dQpvRBTQ/08H5Ci7gZTmXAkRyYVZ+mYKdk+sJML6uLP+Ywh IKry6fw9riF/8B/ckZkq4XAIWH6OnRdjVcI3QIv7+v8bmTSX3J bwWti0bxkzFGdC9J2HH6ibxsdfyAl92dpociNfWHaLG+nmfbke GSisju0U10WRkWlsK+BcAVZ5wpxDXsE90uSThoWdHQLHkJGu9c 9uY1zq9rWky0NipgOXA5hmqluX77x0fkeLHyXxbFv0PlBHGOP6 To+X58/19aY9kB1G7c4BV1xFsw84g8J6FprlI/KcGDU/BTe+dc 7yDr931rKt4u83CYksn5rIWVFMNLA/UBNfRtsZdcy Cc: Arnd Bergmann , dri-devel@lists.freedesktop.org, Ben Skeggs , patches@lists.linaro.org, linux-arm-kernel@lists.infradead.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org ARM cannot handle udelay for more than 2 miliseconds, so we should use mdelay instead for those. Signed-off-by: Arnd Bergmann Cc: David Airlie Cc: Ben Skeggs Cc: dri-devel@lists.freedesktop.org --- drivers/gpu/drm/nouveau/core/engine/disp/dacnv50.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/core/engine/disp/dacnv50.c b/drivers/gpu/drm/nouveau/core/engine/disp/dacnv50.c index d0817d9..ed7415e 100644 --- a/drivers/gpu/drm/nouveau/core/engine/disp/dacnv50.c +++ b/drivers/gpu/drm/nouveau/core/engine/disp/dacnv50.c @@ -51,7 +51,8 @@ nv50_dac_sense(struct nv50_disp_priv *priv, int or, u32 loadval) const u32 doff = (or * 0x800); int load = -EINVAL; nv_wr32(priv, 0x61a00c + doff, 0x00100000 | loadval); - udelay(9500); + mdelay(9); + udelay(500); nv_wr32(priv, 0x61a00c + doff, 0x80000000); load = (nv_rd32(priv, 0x61a00c + doff) & 0x38000000) >> 27; nv_wr32(priv, 0x61a00c + doff, 0x00000000);