Received: by 10.223.185.116 with SMTP id b49csp2172302wrg; Mon, 12 Feb 2018 05:38:22 -0800 (PST) X-Google-Smtp-Source: AH8x224bWbZOB9XGoIhlcZJFSALMJ6Po9zxQWSUBNvmmdojZ+dYHeEF6SZxhgLeIeeuT4qnNlfxI X-Received: by 10.98.143.1 with SMTP id n1mr11660661pfd.126.1518442702172; Mon, 12 Feb 2018 05:38:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518442702; cv=none; d=google.com; s=arc-20160816; b=jkeby4KfLtnWKlxTjS3/0oDbP6F+bG4Cv8M4LY70x0c/fRDQSQub5k0palw52hab7k 55gQh3Iywi3ofwyHdBmx/glfjWK4SbouD5NbS9hBbYRf3P3kBwVKrIATHGBjgz1P/Ip9 5YhTvfs4YPbIpm3OdtPSuYXOBJTaiUYm1HzFvsrRMLylXVVInn/Qxhx2I95rPrZ7av19 ng4f88isrym2hfRQe695q3HZvmivNV7s+uKBtOG8aYjwUg6yf+b+hMPiyXmEbCTva6Jr YcfQNSonnTsZK3S3wQFW42KQeOw3STL8YMjWYHEQe9dO998f+0oclFetgO7ONluX7Sp5 XBSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=9iVILjTn3BKOBFYbrhSakT4tirOizZ8OT8IF5hywhLQ=; b=DVEh+ZqYkzm7elDzyWS16JtXFu4o5EoyT6NwiRyf7iDngPviMX+iEMF80Oz/h1YQVm IPW943NOtEFyWBT4nZ7E7J1n3irPbpWvzEacMYb+fR3hroAS9TFmkz4oLeZCaOAqnpf2 2sfhRL3Qa5AJ75079ItpbQfCxbuJDFm1eDCzk8waieAQqyqbwHWLa8wRi4kwt/kcN8tp BFKK8j+2ftCw2QTYM4cqkq10t9RmfKDB+Ve9JQX8gOI83ZAvc9x7UOoA973P4sAx70Qh TECAxsuIpqPRNgZNePYG4Ve0NG54c9x0F/lBVTAUkhTdNUIySHMXOuRY9EsfJcbpCjmG 11Aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VeU5tK5u; 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 g5si687536pgc.234.2018.02.12.05.38.07; Mon, 12 Feb 2018 05:38:22 -0800 (PST) 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=VeU5tK5u; 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 S933123AbeBLMAY (ORCPT + 99 others); Mon, 12 Feb 2018 07:00:24 -0500 Received: from mail-qk0-f172.google.com ([209.85.220.172]:46927 "EHLO mail-qk0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932519AbeBLMAW (ORCPT ); Mon, 12 Feb 2018 07:00:22 -0500 Received: by mail-qk0-f172.google.com with SMTP id g129so3512318qkb.13 for ; Mon, 12 Feb 2018 04:00:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=9iVILjTn3BKOBFYbrhSakT4tirOizZ8OT8IF5hywhLQ=; b=VeU5tK5uK5206nOgBEq11dSbny77EIcwrc8PA4sWsd60NCTsNgSr3kzksYgl0MYlDC x/wjostz/RT8n3HHQSjL3bCgb1jAijr5LUZ78h90zKFXAHOgVRQ9SHh3A52IElSgyGiG K4CoK4kFuVOJekmKdWmHc567XsFuy6A26aRY/gLGs/dHFUwEaTTVxnAf0s1BKP+e8DHq 92t8JH9HO/BNmLe3exexPpEEFRwDe9OeJa4hLHN6U9B6Q0NrhSR1ZXy80q6mqFs9T3Uv Et1ApYdUxqJ+FDqnIPI6P8UGkP/TpxjLwDQvCAofDYFz7qPar01m0E8uaxDMPE1Ly1UK vwTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=9iVILjTn3BKOBFYbrhSakT4tirOizZ8OT8IF5hywhLQ=; b=rPk2S4G99HSPB24EaPyQ+uDy/beRmh+FPe+UKBXFWi33VHzjKRorrvHUnaIWg3R/5a ooqYgKze3LNucrlG3FBT9/9PnKEuL4OMPlX7JdjrTW4uJ4PkmrtyRk4TrNju8KdkK9nu iuk/qKXncie2MFiRQx5ydBNc391uO2C0j5dCJrtpmrsMaFqEfD6C3hXJptSDutp7KkYG kB2v7l4BkOawlFnqoAyDQiI0rGqdWyEJyiL9EGkg/vk2Vf8JCd1ItFH2EWCWbneKcOFD PLVByFJNJJG9W0swvLGYYKXnRbGqRPRPPqgeXfPegI+txsr9XXDse89V+Wd6pIzWbdTA 8AVQ== X-Gm-Message-State: APf1xPD5GoA3fNlrhEUMPWb5e8b1kSOWJH2rAu65S1xl+rArW8pLCAVU gdiZLhvCOA/0QJPW5ICOXPGE1r+oTg48FwhC6Rl4hyqE X-Received: by 10.55.17.84 with SMTP id b81mr17798822qkh.3.1518436822263; Mon, 12 Feb 2018 04:00:22 -0800 (PST) MIME-Version: 1.0 Received: by 10.200.52.247 with HTTP; Mon, 12 Feb 2018 04:00:21 -0800 (PST) In-Reply-To: <20180129065053.GC20230@1wt.eu> References: <1516979955-7466-1-git-send-email-baijiaju1990@gmail.com> <20180129065053.GC20230@1wt.eu> From: Miguel Ojeda Date: Mon, 12 Feb 2018 13:00:21 +0100 Message-ID: Subject: Re: [PATCH] auxdisplay: charlcd: delete mdelay in long_sleep To: Willy Tarreau Cc: Jia-Ju Bai , linux-kernel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 29, 2018 at 7:50 AM, Willy Tarreau wrote: > Hi, > > On Fri, Jan 26, 2018 at 11:19:15PM +0800, Jia-Ju Bai wrote: >> The function long_sleep() calls mdelay() when in an interrupt handler. >> But only charlcd_clear_display() and charlcd_init_display calls >> long_sleep(), and my tool finds that the two functions >> are never called in an interrupt handler. >> Thus mdelay() and in_interrupt() are not necessary. >> >> This is found by a static analysis tool named DCNS written by myself. > > Looks good. This code is extremely old (started in 2.2) so I'm not > surprised at all that after many changes such parts are not used > anymore. > > Acked-by: Willy Tarreau Thanks for the patch and the ack, putting it in the queue. Miguel > > Willy