Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp359778pxb; Thu, 5 Nov 2020 01:52:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJy5AOf0Bu8HdRhUENiItzIm04xdh6OOOSBWcmJRf7lWDVxzZsdq4Qy8ssFZEbrOPu9f6QGW X-Received: by 2002:a17:906:a10a:: with SMTP id t10mr1531506ejy.89.1604569970280; Thu, 05 Nov 2020 01:52:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604569970; cv=none; d=google.com; s=arc-20160816; b=EXQmMDwTlBVdcOpFmFEUtXQ5HiMYhiJlUy7HmNisSMHNyNIF35UC/p4c4XB67xy2j7 ncW8onk+ok5KPrQLMFou2rVl43ORmyjaAu2St8+bw5RqR0msU40bnVa3qb88ZqS7UXZS /uu03DXOwkevgEQknzAEAcTFZV2LaDH+npvOl/QaZv00svwGBNcXt4enwVH6V/XSs69U DYiqcp77Vcc752zrfRh3SAFZKgEvKKJKwF/1kwieBpHn23E5XQDL24L1wKL6iIT65mJn qMMyPD1V5o1JST356nqvL9Tj0dT/H22e0EoLPev3xXMsqTRwdRKGVz9AcThRmmpkMeD3 pAgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=w2LIyb6/po74Qh6V/LoQRfY5YrWEXYxxXUJ4Ln0gD3Y=; b=x/XJUFGx9majs+74PJFGCo89aG+VWgL0ANHw57Hagi6pcb0lm7b7M06aDQmGuEbHNM qy8XKd+TyctzzIe50exw0dT9u1dvvDy9F6yBxheVOLVhtJ5H0TYGBVyonz1i++Fa/aOD H8jTRVbsQnX5HQiiwGGs5UWNP+dlP5GnksLy+YTymmOB20gSHDZjDhXmRm2yzp5Z8YcO WNvPWiD/02bTaaxXfZynikQZbDw60JZs7WSO/ofh+5TNBPJlxowHXPVPU+4ow7HzbArN mpGpAU7yt4nlZJ3dcsW1BjdFVZdd3SJH3jIeVsKPL/iDreaQN+eSVk3UWH790XJPwXx1 Ctdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ux2MHWMe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b15si728930eja.538.2020.11.05.01.52.27; Thu, 05 Nov 2020 01:52:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ux2MHWMe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726984AbgKEJtJ (ORCPT + 99 others); Thu, 5 Nov 2020 04:49:09 -0500 Received: from mail.kernel.org ([198.145.29.99]:35112 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725308AbgKEJtI (ORCPT ); Thu, 5 Nov 2020 04:49:08 -0500 Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5EFCD21D46; Thu, 5 Nov 2020 09:49:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604569747; bh=QBR2Tc/9WNzTItkRBAt9IIJdb9EsfXRdlj3TCpicmg4=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=ux2MHWMezbdTAo81cgm1ldp+hleWgwwW1SttCwLqTfOlLCiDBDKGSSfYGNkaM0b9W M2JupBXyoHhxYXzW4mcmGnlFXoLNCg0oyI1Rf3AztWdDhXWtRgPj3RRDyj/cUmewRf TSxUIaP7q7NvhBXJ4p1LHOsMpauLbRD8w0dxGTsE= Received: by mail-wm1-f50.google.com with SMTP id h62so922745wme.3; Thu, 05 Nov 2020 01:49:07 -0800 (PST) X-Gm-Message-State: AOAM5337p3gXvOPcsVILJyqjg8RZoj4NEyC0l6XdqCVSpgGz3Jgoo/A/ N+cQzK1MgDaFuzNbcl9cHQiJUDxwzuimyi8G/hQ= X-Received: by 2002:a1c:b746:: with SMTP id h67mr1726797wmf.43.1604569745838; Thu, 05 Nov 2020 01:49:05 -0800 (PST) MIME-Version: 1.0 References: <20200930105442.3f642f6c@aktux> <20200930164446.GB219887@roeck-us.net> <20201002002251.28462e64@aktux> <7543ef85-727d-96c3-947e-5b18e9e6c44d@roeck-us.net> <20201006090226.4275c824@kemnade.info> <68467f1b-cea1-47ea-a4d4-8319214b072a@fnarfbargle.com> <20201104142057.62493c12@aktux> <2436afef-99c6-c352-936d-567bf553388c@fnarfbargle.com> <7a085650-2399-08c0-3c4d-6cd1fa28a365@roeck-us.net> In-Reply-To: From: Arnd Bergmann Date: Thu, 5 Nov 2020 10:48:49 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [REGRESSION] hwmon: (applesmc) avoid overlong udelay() To: Brad Campbell Cc: Guenter Roeck , Andreas Kemnade , Jean Delvare , Arnd Bergmann , rydberg@bitmath.org, linux-hwmon@vger.kernel.org, "linux-kernel@vger.kernel.org" , "H. Nikolaus Schaller" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 5, 2020 at 6:05 AM Brad Campbell wrote: > Appreciate the feedback. > > This would be the bare minimum based on the bits use in the original code. If the original code worked "well enough" then this should be relatively safe. > > Tested on both machines I have access to. For the patch: Acked-by: Arnd Bergmann I'm glad you figured out something that works. This all looks reasonable and it makes much more sense than the original version that I tried to clean up just based on the code comments but without having access to hardware or documentation. Arnd