Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4408706pxk; Wed, 30 Sep 2020 02:03:18 -0700 (PDT) X-Received: by 2002:aa7:d15a:: with SMTP id r26mr1590199edo.181.1601456358839; Wed, 30 Sep 2020 01:59:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy7dynBnbyQREv7Ny+Q6n/I9yrbX/kvMSY8NcpThEQ+CHqKL79mnvGIn2uF+2hbg0o1MDLq X-Received: by 2002:aa7:d15a:: with SMTP id r26mr1590154edo.181.1601456357979; Wed, 30 Sep 2020 01:59:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601456357; cv=none; d=google.com; s=arc-20160816; b=ebGHUSfOWuihO4zUf2DPLw+sZdqe36J4aq5QVcbp8qcmRWcePrpNzo7JVJqR60STyb w9cjeFkOQr8FTqU+Ju9WU96hS6kjTpw83RQkvgvR25Qesg7cOo6Wl6YS5jhXeRFuvdPX yhFbKyMeviyhdzmVryfRdZzbVMJ7fxNKP4lmRhSNflGKqvswc4QvmDefvbEA4vj60jxH y78wtFSye9eoW6KQBLHOmJ160Jker+7kLFU4kT/cNbseMxa3BRgHop5t6wW6QxYHaakQ XevoXbvxpVyzHN+PDqj6zk0S8jNyb3aw9nz6NsWCLLMVqp5qFB9kUp6J5+4nuUx98aw5 0etg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:subject:to:from:date:dkim-signature; bh=09/eolyAro4rdE4w1vE9Z4d+w7d4QeJChX/e6QTQN2Q=; b=rZW5Pnxo7vZlPjAqCvh/BOP8LPmVevE5JHk0BL5rQrvL72R0vJ3XIMiPpLONwwHtw1 IzhnR7ROFJ9E/TsXgfoFK515Otu+I9cw1d3/JpTXSGMH/kAhDLYNMC3ZbfzpyxJ1yY1v tn3hP18C+sFJuGrxQs+3UGbWQvhaBo8RW6hJfKMd0JA4VVRjds/IEXGK3Ln8i+VsniTY t5TnIdOxsJ775f5j0+6ykpV3G4JlVGrZTVuhbOetWhSBZBxQQIOo4TQvo6eNvJtGO4Pl EXgadqgAyuBrYixdwbFMw2/rbTVZggq0AQ7dU/IHxe7IbzoV9QjzWU2WxYAfoXBMoKt2 07Pg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kemnade.info header.s=20180802 header.b=SE54HyHR; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i7si612621edj.22.2020.09.30.01.58.55; Wed, 30 Sep 2020 01:59:17 -0700 (PDT) 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=fail header.i=@kemnade.info header.s=20180802 header.b=SE54HyHR; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728892AbgI3Iyu (ORCPT + 99 others); Wed, 30 Sep 2020 04:54:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725776AbgI3Iyu (ORCPT ); Wed, 30 Sep 2020 04:54:50 -0400 Received: from mail.andi.de1.cc (mail.andi.de1.cc [IPv6:2a01:238:4321:8900:456f:ecd6:43e:202c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 78BCEC061755 for ; Wed, 30 Sep 2020 01:54:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kemnade.info; s=20180802; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Message-ID:Subject:To:From:Date:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=09/eolyAro4rdE4w1vE9Z4d+w7d4QeJChX/e6QTQN2Q=; b=SE54HyHRrki3D14lwgVXAreWdq 00MOP0L6sN3SwciG0hsRFK4LQaofndq1CvwhTQg+OCQiuMP7soljPHjmued98c237nRTu1LxLqaPj WvX/+Zx2XWhekQ1g8NWC7rSscZJmrI0gDzXyhnEkG5gKEJh4UIulTBBWHSsm+CqYJglw=; Received: from p200300ccff0790001a3da2fffebfd33a.dip0.t-ipconnect.de ([2003:cc:ff07:9000:1a3d:a2ff:febf:d33a] helo=aktux) by mail.andi.de1.cc with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1kNXsp-0005gH-GT; Wed, 30 Sep 2020 10:54:43 +0200 Date: Wed, 30 Sep 2020 10:54:42 +0200 From: Andreas Kemnade To: rydberg@bitmath.org, jdelvare@suse.com, linux@roeck-us.net, linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [REGRESSION] hwmon: (applesmc) avoid overlong udelay() Message-ID: <20200930105442.3f642f6c@aktux> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -1.0 (-) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, after the $subject patch I get lots of errors like this: [ 120.378614] applesmc: send_byte(0x00, 0x0300) fail: 0x40 [ 120.378621] applesmc: LKSB: write data fail [ 120.512782] applesmc: send_byte(0x00, 0x0300) fail: 0x40 [ 120.512787] applesmc: LKSB: write data fail CPU sticks at low speed and no fan is turning on. Reverting this patch on top of 5.9-rc6 solves this problem. Some information from dmidecode: Base Board Information Manufacturer: Apple Inc. Product Name: Mac-7DF21CB3ED6977E5 Version: MacBookAir6,2 =20 Handle 0x0020, DMI type 11, 5 bytes OEM Strings String 1: Apple ROM= Version. Model: =E2=80=A6,=20 Handle 0x0020, DMI type 11, 5 bytes OEM Strings String 1: Apple ROM Version. Model: MBA61. EFI Version: 1= 22.0.0 String 2: .0.0. Built by: root@saumon. Date: Wed Jun = 10 18: String 3: 10:36 PDT 2020. Revision: 122 (B&I). ROM Version: = F000_B String 4: 00. Build Type: Official Build, Release. Compiler: = Appl String 5: e clang version 3.0 (tags/Apple/clang-211.10.1) (based on= LLVM String 6: 3.0svn). =20 Writing to things in /sys/devices/platform/applesmc.768 gives also the said errors. But writing 1 to fan1_maunal and 5000 to fan1_output turns the fan on despite error messages. Config used is: https://misc.andi.de1.cc/mac-config.gz Regards, Andreas