Received: by 10.192.165.156 with SMTP id m28csp1382582imm; Wed, 11 Apr 2018 18:37:59 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/o6nU/9TBEYCHuDB94ycuiDe9J8Hout3ljBfTYSAXZ5GrzK1iCmhR+ydAMfHkIc11+jbt6 X-Received: by 10.99.152.68 with SMTP id l4mr5009403pgo.75.1523497079374; Wed, 11 Apr 2018 18:37:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523497079; cv=none; d=google.com; s=arc-20160816; b=ifje1i1GMiPE3lwLxEWd9DF1hpVQH/gmB2VjMaqyUVBfvEoBW8wP6UxADrrb6FNghh NNJXe1s3+pR3gtrQTzIuzjETZN8iWuT/3KslAgohdY5RsbvQBL01q31Dr5H9y67t3uG8 Pxo44s/6xkCVyIQSi4JwaSRC4dqIUzitjZ6Fggbx6dAUwE1LG8O6/gxUNfvatK6cGo1v RaVzN1pqUGMrzc3IBOvbnrekhn1V5xc1UUVrYzjiRioanM4U+i0l7LJ2ool+rF4jlpAj 6XX9IZfyAL18pnz2qxyypWP4eooeje9iA2cQZLnOJWzc+mFJADpxLFwW1l1II8YGjr2T 9gaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=aG74uU7X1zAtnAo33/AtqHzxujxAkTiXx2rmeILpJ7A=; b=ZMNJWusbA/5s48omR8gHAqKVF18BTpi6cXy7+qGMh2zLdYMxyRP2b/XZ1NVKaC9xiR kphjINdn9P/DYH7xIcJkonMy5/Jp8I5VRkdDrjZgm2qunvLhKn1qARDVv42gGBUuCC9E wCDc4YPARWf/+ZeOxpdPmRuZ2vXJv7scQy22o5kl51BxiGML4Sw+AyCdU3JMCwAamTet pwnApA2EMrpgnQ1Iy9lCNrKHc0Fx0W+Zp9TmevdJ0wikKUR0tN5jgF+ZcgohNLpFLBRJ zFrVu0pLrRdMZh1nakWXeBGOYl9edDgMHO8sItamcXgEHBu9Spt7ZjQAXE3J7YzictV/ kZmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=R93I7/C0; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z69si1782835pfl.209.2018.04.11.18.37.22; Wed, 11 Apr 2018 18:37:59 -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=@gmail.com header.s=20161025 header.b=R93I7/C0; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752411AbeDLBef (ORCPT + 99 others); Wed, 11 Apr 2018 21:34:35 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:39113 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751858AbeDLBed (ORCPT ); Wed, 11 Apr 2018 21:34:33 -0400 Received: by mail-pf0-f195.google.com with SMTP id c78so2212780pfj.6; Wed, 11 Apr 2018 18:34:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=aG74uU7X1zAtnAo33/AtqHzxujxAkTiXx2rmeILpJ7A=; b=R93I7/C0u6QBxcFMpG3lj5YxxiJMLSN6WFr+nb+8SvTx5LV/ZzUN9B7yyzYaH6tStQ NLjQR4O6/RONv1Ja92ZCa0+gqSSkJHvpFVigkKouWWt+RMaQ04xp5VS+m8x5ZUzLUMyD ANTUZX3EgsFVD43Vs0mJtTwcsUW8Hs+BQRvt8EQmLUGjneZgdYZ0Kv0Y2GwincV3iZ3d VrqBJvBXIYlcZ8Yhd55iYZ480l7NSs3B5sTH/D7prqgqOjzW9p40jPgS3s/4Db5ugNvu Svn7RKsTSjNI/pG/UtHmCav+wAeON4gt+4IhHHe+8ZQK+wy9hdlCTc8T5+4TAy6wpK7U bx2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=aG74uU7X1zAtnAo33/AtqHzxujxAkTiXx2rmeILpJ7A=; b=YIjShwpO/WmbKKA9IVlAuv/QLOk+e+9pAQQDxb45TtJ1g6+Hrv74M0lgh8o+KWHUEI y0XMZ12solpCQVJ+E2jCb6OBJRz/hFsfAnK6Zsa7b028XHB4xdLmU2STGwYnPAmrlP8/ w2b/7wUjj5Lw//QyP4IzQqfXmf+slyiqfjYYdHTmS0UmeqJEmh2ZxmhLSDtRCJlJ61IR m+fYvwRqDRQZ6UQsLcj+FgYxL3i8/cRUDcGSCM9i1ySkCd+l6Omlq7Py9050KfOZrPwi 9R5BI4ylzitQl8iiEVeqTqsB6FAH6CYqgVzhQ549///Z8zXwyFYeSsBC8pvmHbhYqXyN SzPg== X-Gm-Message-State: ALQs6tDJwon2xTa0++AMBgj4FI6Lz/WN407wDBaQT7C5XzBKySpwUDfG VT7LbnlbRAz68eY8MBFtC7BWBX9o X-Received: by 10.99.135.199 with SMTP id i190mr5096962pge.2.1523496872898; Wed, 11 Apr 2018 18:34:32 -0700 (PDT) Received: from ?IPv6:2402:f000:1:1501:200:5efe:166.111.70.53? ([2402:f000:1:1501:200:5efe:a66f:4635]) by smtp.gmail.com with ESMTPSA id a1sm4839688pff.5.2018.04.11.18.34.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Apr 2018 18:34:32 -0700 (PDT) Subject: Re: [PATCH 1/3] mmc: wbsd: Replace mdelay with usleep_range in wbsd_init To: Ulf Hansson Cc: Pierre Ossman , "linux-mmc@vger.kernel.org" , Linux Kernel Mailing List References: <1523414803-2626-1-git-send-email-baijiaju1990@gmail.com> From: Jia-Ju Bai Message-ID: <13f0f859-0331-c770-80ba-bc332b32582f@gmail.com> Date: Thu, 12 Apr 2018 09:34:15 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018/4/11 23:04, Ulf Hansson wrote: > On 11 April 2018 at 04:46, Jia-Ju Bai wrote: >> wbsd_init() is never called in atomic context. >> >> The call chains ending up at wbsd_init() are: >> [1] wbsd_init() <- wbsd_probe() >> [2] wbsd_init() <- wbsd_pnp_probe() >> >> wbsd_probe() is set as ".probe" in struct platform_driver. >> wbsd_pnp_probe() is set as ".probe" in struct pnp_driver. >> These functions are not called in atomic context. >> >> Despite never getting called from atomic context, wbsd_init() >> 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 > The patch is good, however I think you should squash all three in this > series into one. For obvious reasons. Hello, Ulf. Thanks for your reply and advice :) I will follow it in my future patches. Best wishes, Jia-Ju Bai