From patchwork Tue Sep 9 16:10:36 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mauro Carvalho Chehab X-Patchwork-Id: 4871561 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 1F270C0338 for ; Tue, 9 Sep 2014 16:11:06 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0613B20170 for ; Tue, 9 Sep 2014 16:11:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E35A4200F4 for ; Tue, 9 Sep 2014 16:11:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753443AbaIIQKq (ORCPT ); Tue, 9 Sep 2014 12:10:46 -0400 Received: from mailout1.w2.samsung.com ([211.189.100.11]:22360 "EHLO usmailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750816AbaIIQKp (ORCPT ); Tue, 9 Sep 2014 12:10:45 -0400 Received: from uscpsbgm2.samsung.com (u115.gpu85.samsung.co.kr [203.254.195.115]) by mailout1.w2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NBN00FEW69VF420@mailout1.w2.samsung.com>; Tue, 09 Sep 2014 12:10:43 -0400 (EDT) X-AuditID: cbfec373-b7f9d6d00000479f-f5-540f26838460 Received: from ussync3.samsung.com ( [203.254.195.83]) by uscpsbgm2.samsung.com (USCPMTA) with SMTP id 7C.DF.18335.3862F045; Tue, 09 Sep 2014 12:10:43 -0400 (EDT) Received: from recife.lan ([105.144.134.251]) by ussync3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0NBN009FM69P8E60@ussync3.samsung.com>; Tue, 09 Sep 2014 12:10:43 -0400 (EDT) Date: Tue, 09 Sep 2014 13:10:36 -0300 From: Mauro Carvalho Chehab To: Sylwester Nawrocki Cc: Jacek Anaszewski , Linux Media Mailing List , Mauro Carvalho Chehab , Kukjin Kim , Kamil Debski , Kyungmin Park , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-next@vger.kernel.org, linux-kernel@vger.kernel.org, Stephen Rothwell Subject: [PATCHv2 2/3] [media] s5p-jpeg: Fix compilation with COMPILE_TEST Message-id: <20140909131036.7265121f.m.chehab@samsung.com> In-reply-to: <540F1D11.9030400@samsung.com> References: <20140909124306.2d5a0d76@canb.auug.org.au> <6cbd00c5f2d342b573aaf9c0e533778374dd2e1e.1410273306.git.m.chehab@samsung.com> <540F15B2.3000902@samsung.com> <20140909120936.527bd852.m.chehab@samsung.com> <540F1D11.9030400@samsung.com> X-Mailer: Claws Mail 3.10.1 (GTK+ 2.24.22; x86_64-redhat-linux-gnu) MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrCLMWRmVeSWpSXmKPExsVy+t/hYN1mNf4Qg6/LDCx6rz5ntPjx+gKb Re+Cq2wWZ5vesFtsenyN1eLyrjlsFj0btrJaHFzYxmgx4/w+JosdpxYxWxx+085qsXXvVXYH Ho/GGzfYPDav0PLYvKTeo2/LKkaPz5vkAlijuGxSUnMyy1KL9O0SuDL6N6xjK3jDXnHzzC+2 Bsa3bF2MHBwSAiYSv79qdjFyApliEhfurQcKc3EICSxhlOg4/p4Rwmlmkvi5/y4rSBWLgKrE 911fmEFsNgEjiVeNLWBxEQF9iSWrLoJ1MwscYZa4cmUbG0hCWMBL4vuLs+wg23gFrCRWz/EC MTkFtCXOLleHmH+SSWLPxXuMEFc4S/ycOQnM5hUQlPgx+R4LiM0soCWxeVsTK4QtL7F5zVvm CYwCs5CUzUJSNgtJ2QJG5lWMoqXFyQXFSem5RnrFibnFpXnpesn5uZsYITFRvIPxxQarQ4wC HIxKPLwnYvhChFgTy4orcw8xSnAwK4nwWr8ACvGmJFZWpRblxxeV5qQWH2Jk4uCUamCcxZfc tczqT8urzyL8B7v5/FflthpePjUnsWT/Uv8j3xrf9hvNZ59w3uk286kgpeYrvufjBNIUWZco 5nAeUQhImLEramdIyKGi4lrV1KQPzRXuDAc979zZUblV8dKrdKULNnN5WpfXdl9uveT4z1V0 xuYv3rLTr92f8ryZpVX9yPWsdw9WJqsosRRnJBpqMRcVJwIATrx2XGcCAAA= Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-9.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP ERROR: "__bad_ndelay" [drivers/media/platform/s5p-jpeg/s5p-jpeg.ko] undefined! That happens because asm-generic doesn't like any ndelay time bigger than 20us. Currently, usleep_range() couldn't simply be used, since exynos4_jpeg_sw_reset() is called with a spinlock held. So, let's use ndelay() instead. Reported-by: Stephen Rothwell Signed-off-by: Mauro Carvalho Chehab Acked-by: Sylwester Nawrocki --- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/media/platform/s5p-jpeg/jpeg-hw-exynos4.c b/drivers/media/platform/s5p-jpeg/jpeg-hw-exynos4.c index e51c078360f5..ab6d6f43c96f 100644 --- a/drivers/media/platform/s5p-jpeg/jpeg-hw-exynos4.c +++ b/drivers/media/platform/s5p-jpeg/jpeg-hw-exynos4.c @@ -23,7 +23,7 @@ void exynos4_jpeg_sw_reset(void __iomem *base) reg = readl(base + EXYNOS4_JPEG_CNTL_REG); writel(reg & ~EXYNOS4_SOFT_RESET_HI, base + EXYNOS4_JPEG_CNTL_REG); - ndelay(100000); + udelay(100); writel(reg | EXYNOS4_SOFT_RESET_HI, base + EXYNOS4_JPEG_CNTL_REG); }