Received: by 10.192.165.148 with SMTP id m20csp4814915imm; Tue, 24 Apr 2018 08:49:51 -0700 (PDT) X-Google-Smtp-Source: AIpwx48FuJXnTLMyhjZJ7QJNqe5rf0xBpIkx/Kunx6tsaKRPjMDC2GpAahSDAVie5V+OZrFQ8RX0 X-Received: by 10.101.75.74 with SMTP id k10mr18932936pgt.227.1524584991828; Tue, 24 Apr 2018 08:49:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524584991; cv=none; d=google.com; s=arc-20160816; b=IWBwNH0KjtM4kjuYMv0WHtPNjG6csqVn7ml+rQX8qb2zVgwz64SqtMN4h1vGJh0dm+ RCKJLGhRsqTmpZfGx/JcufJBE9IssHVS2UTnN6S/tQVZ5Gq8GCXrldd3TucVXYoo+pte hINrXiLzstfUvyNyzq1kt07Ci1kAhJH8a3/5gHoeIgtPybV/UchEMskUT8vkTC9639bJ f+pm0C1CDvKoSkY6CAsa7AOAsiPeSYB/XdYWjlKRSrwEkcgq2nunkG+UeGtUb1vPvwpo eWhLy4uOD6s6tkvxWFbpV6yKLHytal71+tajm4XC+eaYtUCQ3YXmdeO9Bm2qjF+rAP7g G03Q== 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=9EPvdJgRHEy/7V6gfTmdge8UGjiS5aORUdAEV+//p+M=; b=mnVfbN4EIkJ9Ug42kDIkUYAsDg8CM8gTYUVKQuI8nPjz4V+gaIf0saQtmoFIIFuQxF JHi9dbkXR74WwIQnsvk3joM24EqbmbkbhgK7jDy3Z3S7HwZshw7QpnUcSkmeiV81h+Up u96ExdOA76Ur532veO7lNvsp1qMpguNJ7ry91+TDQ6TNecx5jAriKKSGKDSnMkbwZif6 +zrwkNAgJRo50qAQDRlMumZVgiaVNbJ4phRo1+63Mxdcefhc45VWkJshiTWRW87w6n7d x3S81m95dR9UwVTrypOY+6GwAILcFWRDeNWeZxqTkAncJLAue5mfGwJ2aTrEU4jNqopT WTEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=bBYcWVR/; 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 i127si12030664pgc.568.2018.04.24.08.49.37; Tue, 24 Apr 2018 08:49:51 -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=bBYcWVR/; 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 S1751556AbeDXPsY (ORCPT + 99 others); Tue, 24 Apr 2018 11:48:24 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:47081 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750868AbeDXPsW (ORCPT ); Tue, 24 Apr 2018 11:48:22 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20180424154820euoutp016ec79159105ed0204b9c029330c7d4c6~oaeOuYknN1804018040euoutp01U for ; Tue, 24 Apr 2018 15:48:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20180424154820euoutp016ec79159105ed0204b9c029330c7d4c6~oaeOuYknN1804018040euoutp01U DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1524584900; bh=9EPvdJgRHEy/7V6gfTmdge8UGjiS5aORUdAEV+//p+M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bBYcWVR/vBfWYcjwXD4JHLwM94lS6MHGXljTvYcavrqhMhax6/ivxDL5UdG6wdSLR fII4O3rwGzGg7i7jqvlJnNzqK8fpFHZGJzbBVKRoUqb33H7bpFp4txFiI4JGRzwUmR Ro56aABaqip1tEQs/u0CA/aWrgwte7SRfmHEota0= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20180424154818eucas1p1b8222964dcf51728103f7eff4ac4d624~oaeMmEI1h0858008580eucas1p1f; Tue, 24 Apr 2018 15:48:18 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id E3.0E.10409.0C15FDA5; Tue, 24 Apr 2018 16:48:16 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20180424154813eucas1p21bb86b9ba63d75274cc827d93bc41a3a~oaeINvgfK2327923279eucas1p2Y; Tue, 24 Apr 2018 15:48:13 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20180424154811eusmtrp20755493d3391678342a0c558905dbc2b~oaeGgT0h_1121211212eusmtrp2H; Tue, 24 Apr 2018 15:48:11 +0000 (GMT) X-AuditID: cbfec7f5-b5fff700000028a9-b1-5adf51c062ca Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 28.71.04178.BB15FDA5; Tue, 24 Apr 2018 16:48:11 +0100 (BST) Received: from amdc3058.localnet (unknown [106.120.53.102]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20180424154811eusmtip242e27263f7ff66c0859ad4d10bcfde5f~oaeGXpPG81687416874eusmtip2d; Tue, 24 Apr 2018 15:48:11 +0000 (GMT) From: Bartlomiej Zolnierkiewicz To: Jia-Ju Bai Cc: paulus@samba.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] video: fbdev: aty: aty128fb: Replace mdelay with msleep in aty128_set_suspend Date: Tue, 24 Apr 2018 17:48:05 +0200 Message-ID: <12527186.HoBsF7gLxN@amdc3058> User-Agent: KMail/4.13.3 (Linux/3.13.0-96-generic; KDE/4.13.3; x86_64; ; ) In-Reply-To: <1523324435-28719-1-git-send-email-baijiaju1990@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpmleLIzCtJLcpLzFFi42LZduzned0DgfejDPb9ZbFYN3Ehk8WJvg+s Fpd3zWGzWHNkMbsDi8fOWXfZPebu6mP0+LxJLoA5issmJTUnsyy1SN8ugSvj4IJnzAXXOCrW Nj5nbmCczN7FyMkhIWAi8fbKX1YQW0hgBaPEuedhXYxcQPYXRonGU3vYIJzPjBIXXi5ig+n4 8f88VGI5o8TEWcfZIZwPjBLHG2eBzWUTsJKY2L6KEcQWEVCXOL1sF9AODg5mgUCJWWvBwsIC KRJrpu5iBrFZBFQlut61s4DYvAJaEgc3PgQbIyrgJbFlXzsTiM0p4C7RP7GLFaJGUOLkzCdg 9cwC8hIdlxtZQW6QEPjNJvFm7xOo31wkNu55B2ULS7w6vgXKlpH4v3M+E0RDM6PEtx17mCES Exgl9qwXgrCtJQ4fvwh1tKbE+l36IKaEgK3Eo1cpECafxI23ghAn8ElM2jadGSLMK9HRBjVD TWLDsg1sMEu7dq6E2uMh8ezTS5YJjEqzkDwzC8kzsxDWLmBkXsUonlpanJueWmycl1quV5yY W1yal66XnJ+7iRGYNE7/O/51B+O+P0mHGAU4GJV4eH/8vhslxJpYVlyZ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EfwZFv13Wrhbi56NPVjIL iimG7X6T2Wx/fREPuxJLcUaioRZzUXEiAHlC76WeAgAA X-CMS-MailID: 20180424154813eucas1p21bb86b9ba63d75274cc827d93bc41a3a X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-MTR: 20180424154813eucas1p21bb86b9ba63d75274cc827d93bc41a3a X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20180410014047epcas1p28c608903eaf0d74930dfded2f82297e6 X-RootMTR: 20180410014047epcas1p28c608903eaf0d74930dfded2f82297e6 References: <1523324435-28719-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:40:35 AM Jia-Ju Bai wrote: > aty128_set_suspend() is never called in atomic context. > > The call chains ending up at aty128_set_suspend() are: > [1] aty128_set_suspend() <- aty128_pci_suspend() > [2] aty128_set_suspend() <- aty128_do_resume() <- aty128_pci_resume() > [3] aty128_set_suspend() <- aty128_do_resume() <- aty128_early_resume() > > aty128_pci_suspend() is set as ".suspend" in struct pci_driver. > aty128_pci_resume() is set as ".resume" in struct pci_driver. > aty128_early_resume() is never called. > These functions are not called in atomic context. > > Despite never getting called from atomic context, aty128_set_suspend() > calls mdelay() to busily wait. > This is not necessary and can be replaced with msleep() 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