Received: by 10.192.165.148 with SMTP id m20csp4809724imm; Tue, 24 Apr 2018 08:45:06 -0700 (PDT) X-Google-Smtp-Source: AIpwx49rI4o4+HNQvAmVHAoz+UCyN0/vUL636AoBfjark/pfOeU1Kyy8b7B1fVUsYbdpqri4wr3m X-Received: by 10.99.43.70 with SMTP id r67mr18026790pgr.89.1524584706808; Tue, 24 Apr 2018 08:45:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524584706; cv=none; d=google.com; s=arc-20160816; b=wmkfpLMiPO4psC6suARW9KCEZchI+nGwkBhxTambWhiMP/Efkqyn32Pe95QmdoUJdh pQOGbz3lfsMP+dTbR8pYixsE4X+AjErK8zgZEmIz/HbD52ewZW6vYTlVvMCjARfO7zL0 RPjljXKzUJHq9SonCvQI5og43mWAUNcR7CeoEoD5eN7WEzkB+EmLaMqk+qzVK6TkdcMl 5ABWbCujQgpe+dI20ykJAwZLbvnbDB6PrZO7Qml5+1N+H38Ag6f8xOcH/myORsUJv7sZ QgcN2ilENZuhuIIbkj/EKEOyETl1SBhwhcbNJRNsNr+uyUFyrEcSykWYJQRQEFUtyPbS YfpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type :content-transfer-encoding:mime-version:in-reply-to:user-agent :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter :arc-authentication-results; bh=ORZz8sh7zfYK58nSMVJ6QumIrufJs+I/3m8P2FVkAkk=; b=Z97NfkdbSQuF+GTMMW80z9mEzx6qjIA+5HJwRpH1lSbbJ8/asfKadUSalsK4lxsA7Z XMzg3FoA+L3NJ+ozlLGi5SshrCcGsXS2oK/JHcB5oqfnPXtl67Zra4IQlvKI9JkO4r1B WXqxXc+1p+QH88ocZJ6T49GSUPLVpeSrCE9SrvIMOtNHq/O6UhjPSiVhoqGGSOMtCsk8 G+cu+B+RL8YfLD4A2POFLFgYh6ao3tcZrMuxFB0wqAwAGs1IPwBpuaPpEEYgAUD2AtHd oVu7WQTydq3t2aC9YNIl7hPqggeegTrtW4JRwrJvyg19cE0ITAOZYBqr7/NtwBe5O5Yn a6wQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=GJgePOkS; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e1-v6si1284667pln.445.2018.04.24.08.44.51; Tue, 24 Apr 2018 08:45:06 -0700 (PDT) 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=pass header.i=@samsung.com header.s=mail20170921 header.b=GJgePOkS; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751384AbeDXPnO (ORCPT + 99 others); Tue, 24 Apr 2018 11:43:14 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:59640 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750868AbeDXPnN (ORCPT ); Tue, 24 Apr 2018 11:43:13 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20180424154310euoutp02831470712d70fcfbd8873bb96ee51361~oaZuesT5J3228032280euoutp02s for ; Tue, 24 Apr 2018 15:43:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20180424154310euoutp02831470712d70fcfbd8873bb96ee51361~oaZuesT5J3228032280euoutp02s DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1524584591; bh=ORZz8sh7zfYK58nSMVJ6QumIrufJs+I/3m8P2FVkAkk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GJgePOkSR2D0Je3NVWGHZFyKvXcw793CBFvXbI/1Lg41ngcRT5okkkMWG5pmmXfZD NbGeRbKF10TdNPmLctvny6is7c/TQGcDE+WymU5hAKHRs6DvsjlJf5jZq2aKVX3EB7 jU+NboESoqmPdbicxy0/DRb+22/h4AQtKzwfsNc4= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20180424154306eucas1p27711b475690f6c511aa165efbd2c28e6~oaZqfRMOa2332723327eucas1p2z; Tue, 24 Apr 2018 15:43:06 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id A5.5D.10409.6805FDA5; Tue, 24 Apr 2018 16:43:02 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20180424154259eucas1p251ecfe14db1576598ea2d5b33472cb76~oaZkG1SQB2332823328eucas1p2x; Tue, 24 Apr 2018 15:42:59 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20180424154257eusmtrp1932c07e4758b11fc6dfe854cabdfad4c~oaZiMv33J0685706857eusmtrp1H; Tue, 24 Apr 2018 15:42:57 +0000 (GMT) X-AuditID: cbfec7f5-b5fff700000028a9-8a-5adf5086eb96 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 86.32.04183.1805FDA5; Tue, 24 Apr 2018 16:42:57 +0100 (BST) Received: from amdc3058.localnet (unknown [106.120.53.102]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20180424154257eusmtip10213d4d543fc613480970e1fad4dafe8~oaZiCF2wb2374323743eusmtip10; Tue, 24 Apr 2018 15:42:57 +0000 (GMT) From: Bartlomiej Zolnierkiewicz To: Jia-Ju Bai Cc: adaplas@gmail.com, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] video: fbdev: savage: Replace mdelay with usleep_range in savage_init_hw Date: Tue, 24 Apr 2018 17:42:51 +0200 Message-ID: <7431484.AHk4tMfvN6@amdc3058> User-Agent: KMail/4.13.3 (Linux/3.13.0-96-generic; KDE/4.13.3; x86_64; ; ) In-Reply-To: <1523322359-27598-1-git-send-email-baijiaju1990@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrHIsWRmVeSWpSXmKPExsWy7djP87ptAfejDP5PFLX42f2FzWLdxIVM Fif6PrBaXN41h82BxWPnrLvsHp83yQUwRXHZpKTmZJalFunbJXBlHFp5nbFgG3vFjn+vGRsY G9m6GDk5JARMJD7cmwpkc3EICaxglJj+4QgzhPOFUeLn+xWsIFVCAp8ZJd52ACU4wDoOzHCA qFnOKLH5zh+o7g+MEqc27WQEaWATsJKY2L4KzBYRUJc4vWwX2CBmgSCJHYvmg9nCAvESM/6t BDuDRUBVoufxazaQBbwCmhIvWwVAwqICXhJb9rUzgdicAu4SX08eBBvJKyAocXLmExaIkfIS HZcbWUFukBD4ziYxo2c1E8RrLhIt83ug3hSWeHV8CzuELSNxenIPC0RDM6PEtx17mCESExgl 9qwXgrCtJQ4fv8gKchAz0EHrd+lDhG0lzrxcxwYJCD6JG28FIW7gk5i0bTo0fHglOtqghqhJ bFi2gQ1ma9fOlVCLPCQauhcwTmBUmoXkm1lIvpmFsHcBI/MqRvHU0uLc9NRi47zUcr3ixNzi 0rx0veT83E2MwFRx+t/xrzsY9/1JOsQowMGoxMP74/fdKCHWxLLiytxDjBIczEoivHvl7kU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j34sXxqUosxRmJhlrMRcWJAAZNvleYAgAA X-CMS-MailID: 20180424154259eucas1p251ecfe14db1576598ea2d5b33472cb76 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-MTR: 20180424154259eucas1p251ecfe14db1576598ea2d5b33472cb76 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20180410010607epcas4p2d1b0cb70e0676a6d6f215fe7e204e699 X-RootMTR: 20180410010607epcas4p2d1b0cb70e0676a6d6f215fe7e204e699 References: <1523322359-27598-1-git-send-email-baijiaju1990@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tuesday, April 10, 2018 09:05:59 AM Jia-Ju Bai wrote: > savage_init_hw() is never called in atomic context. > > The call chains ending up at savage_init_hw() are: > [1] savage_init_hw() <- savagefb_probe() > [2] savage_init_hw() <- savagefb_resume() > > savagefb_probe() is only set as ".probe" in struct pci_driver. > savagefb_resume) is only set as ".resume" in struct pci_driver. > These functions are not called in atomic context. > > Despite never getting called from atomic context, savage_init_hw() > calls mdelay() to busily wait. > This is not necessary and can be replaced with usleep_range to > avoid busy waiting. > > This is found by a static analysis tool named DCNS written by myself. > And I also manually check it. > > Signed-off-by: Jia-Ju Bai Patch queued for 4.18, thanks. Best regards, -- Bartlomiej Zolnierkiewicz Samsung R&D Institute Poland Samsung Electronics