Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3070246imu; Mon, 17 Dec 2018 12:45:52 -0800 (PST) X-Google-Smtp-Source: AFSGD/WyZCAcM1RkbG9K9GezdXKhMunRj8XcE5F6oLJ0qNEWe4UULcGK3kkADjCl3bx6g4gwhUg+ X-Received: by 2002:a62:2cf:: with SMTP id 198mr14239125pfc.67.1545079552029; Mon, 17 Dec 2018 12:45:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545079551; cv=none; d=google.com; s=arc-20160816; b=dJRcq+NqG4P7rgdM/ZbEAlfWHnnYYv7ws3QxDTt8GclD06gPD9wNxfIkezZAMTGBq2 BKifIqh3qxeHGfFoQz2m/8rw1FS1BcFZc1rm4Jy73wBx4pZU/3fr+KuH5SVEjahHlj52 eVKl/FhuyS37AtW+Dudmu/9MNHZ5TraIwcOnyabu67EsdmwKAiQUarOELW4Vt6I68r9S Itg4IhsjMjidXKdeUiX+dIScVcEB8CPSH1q3H5sonpKLua4j26udWE1+qiUrlz4hfiKt GC13XZQGB8TEx/6Lvbl+kjpT+vGv9HehcCUMqJgb/85l5819Ffrs5eeWWdKsUuSVIt2S Ol3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=dzf+9ExxjGsH0EUWgF6Yq4BRwAs17Euc31vtOjQMUHU=; b=owml73J1YkdAwWSD//oLUXJ1jllWLudeJR/xAxaWRzq92HL54gJ8lkaixScSS3qDKC U3w7HO+myPYMq54dOeHD561PsabZzFYQ1ISKyByXRWXOhXJdfe7dVlzXU8IhK3i6u2vZ HYQA/lTrCMT1wbUj6EUZjGImMR1Hai9Hp7SFddqcHaOhD9urvpqut0DosjZIFmE/khaS Xdo1U+h9JORLqlXuq1YUMCF5IRDDJqds+WaTakTbT/xv2zKoFvmpogV8EfjJ5HPheV6Y okTluxGxmE4wGlrt4g48x8p3v4bdhmuMKFeVRbVNLGBp0oFtKJoA8Pk8FUziQCmSlDaT LI4g== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t74si11874979pgc.150.2018.12.17.12.45.36; Mon, 17 Dec 2018 12:45:51 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389304AbeLQTzp (ORCPT + 99 others); Mon, 17 Dec 2018 14:55:45 -0500 Received: from mout01.posteo.de ([185.67.36.141]:50687 "EHLO mout01.posteo.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732875AbeLQTzp (ORCPT ); Mon, 17 Dec 2018 14:55:45 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id ED3FE160064 for ; Mon, 17 Dec 2018 20:48:08 +0100 (CET) Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 43JWsd1k86z6tmQ; Mon, 17 Dec 2018 20:48:05 +0100 (CET) Date: Mon, 17 Dec 2018 20:48:04 +0100 (CET) From: Marc Dietrich X-X-Sender: lucile@macbook-pro.fritz.box To: Greg KH cc: Amir Mahdi Ghorbanian , marvin24@gmx.de, devel@driverdev.osuosl.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org, ac100@lists.launchpad.net Subject: Re: [PATCH 2/2] Staging: nvec: nvec: fixed check style issues In-Reply-To: <20181217081640.GA16368@kroah.com> Message-ID: References: <1544979463-10126-1-git-send-email-indigoomega021@gmail.com> <20181217081640.GA16368@kroah.com> User-Agent: Alpine 2.21 (OSX 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Mon, 17 Dec 2018, Greg KH wrote: > On Sun, Dec 16, 2018 at 08:57:43AM -0800, Amir Mahdi Ghorbanian wrote: >> @@ -626,7 +628,7 @@ static irqreturn_t nvec_interrupt(int irq, void *dev) >> break; >> case 2: /* first byte after command */ >> if (status == (I2C_SL_IRQ | RNW | RCVD)) { >> - udelay(33); >> + usleep_range(0, 33); > > Why is this a valid range to sleep for for this device? Have you been > able to verify/test this? oh no, not again. Why does this come up again every half year? This udelay is a workaround for a hw bug which only seldom triggers (if it triggers at all). Secondly, this is in interrupt context, so *sleep timers are no go, afaik. Marc