Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp962547iog; Wed, 29 Jun 2022 14:04:41 -0700 (PDT) X-Google-Smtp-Source: AGRyM1srQG1xsX9+jtJ7/ojHsCa8N+yhoKeT2oKxCbnwhy6QDO+sjpLbZPsWmf19eFAMhIOb9fXT X-Received: by 2002:a05:6402:50c7:b0:435:923b:9b23 with SMTP id h7-20020a05640250c700b00435923b9b23mr7046380edb.336.1656536681176; Wed, 29 Jun 2022 14:04:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656536681; cv=none; d=google.com; s=arc-20160816; b=NRBPJbeD12o8XjnmSEbOVARkPpUJpV5sDgAYYrOuDLs6ZxaXLNctIZnNPtcNLwAHRD k+YUsVX9S6ilVCfOULiGe2Xc8JjIR/a83c3SCAX6PuVJhH6obshx0YGIoCTbj/AfmP5G Eq4oahKH7xjFHzQdd/4XlvO3NC3wI8zNk6IZNH6SnB8M5Tq8rXsMLJBsV5HqX+qzPPw1 ue8WW9b0/gcbYuyQoPPSGvsBI3V2H26bgHIsQYxhtf0nkLmKCip63lmOiHfqdv8WT6ud mgz0bQYJ8Zpq7EaASZBQZGiPUZnG3H4V/jH8zlVqLf8skPYs2OFUTNIIs5TDTnBFkepV KUxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=KtB4yPtv2dThoIIsdgrUsC4P1WPcVoWgvZYcZhSHzO4=; b=hPySC2UseI5kmZw60dWXk/uiOmJee18SmexR/4VdJl91p5qGLyG+QLobwwJMvmY9zB CDpxCg61nwhu6tc5kFrT4NanOclPzgSK+YcFnqKXhkScsJneq8aOOG5X9n5SAOCUYqg6 wVpvswA8Bg3296m2tgdnoPo8cV7FvN3g1fs1YqE9rd5VU8AgqlKpJFTCR2C2MPyK+qbF yPxoTZZT8Y4JwN7oQOhcj5pjoxVgrJt2pRxxAIE2T7Ny08YxZz7Cl37+C3bmyDwYj8O3 gN/7z7I3irn3e0TTASim0RBrMyjBwB9neX7ZhcSnPsSePgLINHakeAazlmWcrMvmTaSS MmAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=eqG4tpPX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i18-20020a1709064fd200b007121c97d1d4si6039282ejw.947.2022.06.29.14.04.16; Wed, 29 Jun 2022 14:04:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=eqG4tpPX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230448AbiF2UCd (ORCPT + 99 others); Wed, 29 Jun 2022 16:02:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231441AbiF2UCb (ORCPT ); Wed, 29 Jun 2022 16:02:31 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 29AAD3ED11; Wed, 29 Jun 2022 13:02:31 -0700 (PDT) Received: from [192.168.2.145] (109-252-118-164.nat.spd-mgts.ru [109.252.118.164]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: dmitry.osipenko) by madras.collabora.co.uk (Postfix) with ESMTPSA id 40BE7660194C; Wed, 29 Jun 2022 21:02:29 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1656532949; bh=XZKTlLtT5IwYyJZvyMZi3Fm4hVnGjrmKXiDIiDRogfw=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=eqG4tpPX332aqBNR+tZzQwfABs4LYwFRTZb620NZoy6ztChHNeK88ZlYDRnpY3rCC t8PGjaWO3qC5XFDWeEdXMqJX4xGSJkBvGMF6dVZr0CmP+3j/fBh6elX+E5Q50fkVoJ dQ79vsb5eiS9SbTNBPwZpqJaALJeHEEPnp8NLcHlGkQ3dfUN7XPJUlRk+biLh0AGws qP6DNiyPwVwaOOKnrZvRZs1IMJpUWvKYPMVtWSt5T+yA08EvEyrXpQSoDtSGwolpCh reTsHexO4xB9PratqDcj5LKPhn4XbAp5FVm97Oiz0oOTHJC+i2fGu+nwv2ogYZlPrE e1nYqT/ioND+Q== Message-ID: Date: Wed, 29 Jun 2022 23:02:25 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH] hwmon: (lm90) Use worker for alarm notifications Content-Language: en-US To: Guenter Roeck , linux-hwmon@vger.kernel.org Cc: Jean Delvare , linux-kernel@vger.kernel.org References: <20220629154210.2389765-1-linux@roeck-us.net> From: Dmitry Osipenko In-Reply-To: <20220629154210.2389765-1-linux@roeck-us.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/29/22 18:42, Guenter Roeck wrote: > Reporting alarms using hwmon_notify_event() may result in a callback > from the thermal subsystem. This means that such notifications must > not hold the update lock to avoid a deadlock. To avoid this situation, > use a worker to handle notifications. > > Reported-by: Dmitry Osipenko > Fixes: e182cf579f0f ("hwmon: (lm90) Rework alarm/status handling") > Signed-off-by: Guenter Roeck > --- > Dmitry, > > can you give this patch a try in your system ? It works, thanks! Tested-by: Dmitry Osipenko -- Best regards, Dmitry