Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp228035pxb; Wed, 4 Nov 2020 20:50:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJyN+X2Za8fFTdYLGLHPOpNvHFRZnK/cvSLekAgXvyLMBwbuaoiSRDsqflP0gitSlsYSZb4R X-Received: by 2002:a05:6402:150:: with SMTP id s16mr726500edu.304.1604551805845; Wed, 04 Nov 2020 20:50:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604551805; cv=none; d=google.com; s=arc-20160816; b=u/vcWhHfzyHcYX58JgJUyiV4zWqzfpsLr2YUjmzYLJyS4d5TH/Jz1NpGnA+nyQBuJ5 nMo8zR782MGL3DiLVX2pIgI9U/bReHc8r5DsVHkjBl+7f9sCKFJzcOkRZAnFCBQjkgTs uWFhQCucmNMNoZAeI2ZpvO6z2S0BXI4kQSeOZxz1ghidcsDwyqd2GINy/FQ/wJeBY0CQ jHzxekflAWcMw1FuTzYq05eBkpFZXjArRaXXhMerDRBCm2LeUmAAh40f+7qLOfBN5t5A T5jAIyh2Q8+B7tYUsVSArnL7JjVIbCJqEJEC7grOVc8eHS9xlhYXya7o6iFm73uNSKia 1HXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=vXqxBfoqZAruzaZDVKhWxMWIKn/cNae40lgzEG5AYdI=; b=xOcQdQ51G9oQ+F/cXF0mJskrKG/QB/XbfpBUMm531X7I4xuIXk6fSSjj4Ob03Jg7Sd pfHtS/vmds/ckAMII9QxJwh5gGnTiV3ulClCwbdITI3OnD1ubCSUqCFpedjZr4VP/9cn wbDYt1O0bp5FwVbrsfj6Q45bwMNmLwuo5i5oKwFCNO7YYzWDV4j0xdZ4rfNzXJyIAiEa bgRnJaFY6AIHlzW0XqJ3k4imF2DVVnxUUPL4cNoTnufurH35TNr177182APX+6stDayU KQ6URDzkeehub7o36gAtNWZytsp8FXM4nLAkf1XHt+GBVPu1UGYy1C+5lKoFizFYy5p5 clvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fnarfbargle.com header.s=mail header.b=I2gzvtYg; 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=fnarfbargle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i60si327500edd.336.2020.11.04.20.49.43; Wed, 04 Nov 2020 20:50:05 -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=@fnarfbargle.com header.s=mail header.b=I2gzvtYg; 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=fnarfbargle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387510AbgKECUB (ORCPT + 99 others); Wed, 4 Nov 2020 21:20:01 -0500 Received: from ns3.fnarfbargle.com ([103.4.19.87]:54536 "EHLO ns3.fnarfbargle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730668AbgKECT6 (ORCPT ); Wed, 4 Nov 2020 21:19:58 -0500 Received: from srv.home ([10.8.0.1] ident=heh15339) by ns3.fnarfbargle.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1kaUqj-0008Oh-5u; Thu, 05 Nov 2020 10:18:05 +0800 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=fnarfbargle.com; s=mail; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject; bh=vXqxBfoqZAruzaZDVKhWxMWIKn/cNae40lgzEG5AYdI=; b=I2gzvtYgS0dBsqCOVu97nC8RsEGrPO3biP95W0L9CulixFvuN7pzF5EvcJ6FpFoan/WNB3D//0pbbC3MLbvczoAaLSY8Dov6EjBF4EtU5BJ69Rak+l4d5tT0bds13UeGE1FZdkWV+ocpY+Mj/LnfXzZX7vPQxXTLBAwPBgA6xZA=; Subject: Re: [REGRESSION] hwmon: (applesmc) avoid overlong udelay() To: Andreas Kemnade , Guenter Roeck , Jean Delvare Cc: Arnd Bergmann , rydberg@bitmath.org, linux-hwmon@vger.kernel.org, "linux-kernel@vger.kernel.org" , hns@goldelico.com 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> From: Brad Campbell Message-ID: <2436afef-99c6-c352-936d-567bf553388c@fnarfbargle.com> Date: Thu, 5 Nov 2020 13:18:03 +1100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.2.2 MIME-Version: 1.0 In-Reply-To: <20201104142057.62493c12@aktux> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/11/20 12:20 am, Andreas Kemnade wrote: > On Tue, 3 Nov 2020 16:56:32 +1100 > Brad Campbell wrote: >> If anyone with a Mac having a conventional SMC and seeing issues on 5.9 could test this it'd be appreciated. I'm not saying this code is "correct", but it "works for me". >> > Seems to work here. > dmesg | grep applesmc > > [ 1.350782] applesmc: key=561 fan=1 temp=33 index=33 acc=0 lux=2 kbd=1 > [ 1.350922] applesmc applesmc.768: hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info(). > [ 17.748504] applesmc: wait_status looping 2: 0x4a, 0x4c, 0x4f > [ 212.008952] applesmc: wait_status looping 2: 0x44, 0x40, 0x4e > [ 213.033930] applesmc: wait_status looping 2: 0x44, 0x40, 0x4e > [ 213.167908] applesmc: wait_status looping 2: 0x44, 0x40, 0x4e > [ 219.087854] applesmc: wait_status looping 2: 0x44, 0x40, 0x4e > > Tested it on top of 5.9 Much appreciated Andreas. I'm not entirely sure where to go from here. I'd really like some wider testing before cleaning this up and submitting it. It puts extra checks & constraints on the comms with the SMC that weren't there previously. I guess given there doesn't appear to have been a major outcry that the driver broke in 5.9 might indicate that nobody is using it, or that it only broke on certain machines? Can we get some guidance from the hwmon maintainers on what direction they'd like to take? I don't really want to push this forward without broader testing only to find it breaks a whole heap of machines on the basis that it fixes mine. Regards, Brad