Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp984603iog; Wed, 29 Jun 2022 14:36:04 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vq+lC/x4DQkFMQgYa0gR7AMFurOci1W/FtZ/7sEjiZZuPNOMij1TuVPdrpvUiV4rUm4MOV X-Received: by 2002:a17:903:245:b0:16b:9c49:6b1c with SMTP id j5-20020a170903024500b0016b9c496b1cmr6453900plh.153.1656538564508; Wed, 29 Jun 2022 14:36:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656538564; cv=none; d=google.com; s=arc-20160816; b=wcxnLExdK30C9mksZ0LDYJ+Rp0QzJH748MgGvuwI9o/0EJnzV4ZYDyod00Xw6VFW5j lDFomO0dI7RN38yRv0iA4WlLXb09Y8pLEkZKiSOjZ/oz9dv73kjl2oAXHQ1M1gseyCaK pzvryQIj6xhrkzMAblY1L0QZLRFijUriWK86SJNkv+tLoMjINBCSgZgIfOeeCukVhSJV KXgpNqXeK2CIGdizu7EYzvEAKW5bCQCx04+ANTLLIx7rlt8nRw2fqg6GVtbWQng1LLLA R4QJKA8W0NbnLyG4CrjVznP8/Vi4DwzI9TmvWkaos35Bbg77sgSByTV9BGaoXxO29pIz QOCw== 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:sender:dkim-signature; bh=i7eaMBVB7yUnTpudl4qdcwzP++vYZc8Pq3HUMlacEVQ=; b=EKfIC9XF4pqOuuqVkiLW1qUzbwKfyzaVV8ZBztFiizbcZkYOExWkcr2O1yVDAWaD4D gSK2ob11OhpttHK50Wp4XD+UKRuQSt/4pM8Uyn5H6thpsw5f7r99wkh37SrfKgmWdzOy RNEUVV7WNhne8cT43R8agwG9f9epDiXmwlfuHOtySBMT8gA/oGciAK4aQA1UI8qHEVLA PShMpk3veCaTmJY+TS4HOxCSNZxqvnKZo03a45soPHJUTdbWmRwA8MYNQtjMrSOnesuU b9NlFypsgW6iXllnf3SjEF0pkFvbzoB9Wg4jrP5yzNZdBDx5K5jDAC5yGtPTqMUC3QE4 Ep+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ITiV0rXM; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mw9-20020a17090b4d0900b001bfb0db0879si547370pjb.88.2022.06.29.14.35.52; Wed, 29 Jun 2022 14:36:04 -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=@gmail.com header.s=20210112 header.b=ITiV0rXM; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229738AbiF2VST (ORCPT + 99 others); Wed, 29 Jun 2022 17:18:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229570AbiF2VSP (ORCPT ); Wed, 29 Jun 2022 17:18:15 -0400 Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD765B7F2; Wed, 29 Jun 2022 14:18:14 -0700 (PDT) Received: by mail-pj1-x1032.google.com with SMTP id i8-20020a17090aee8800b001ecc929d14dso1961398pjz.0; Wed, 29 Jun 2022 14:18:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=i7eaMBVB7yUnTpudl4qdcwzP++vYZc8Pq3HUMlacEVQ=; b=ITiV0rXMXIjJoVjJRJvV/mxBOzcJCHSlCNG8ScPXIbpaE1GPpDtZgqnkQecgrQhvcg kPouE6lpWixq8ZIl0gf0U6VU4EJzFpSXsuV1VtcGC3CwedeLDDIDzUPh7ePqLSYTVCnw 1YbS6MImVhSMtfyyJlAjfkGx840UGeciSjZQh6LR5VHZ1i25JnMhnTrBJ9CX3q4uBJ9h /VugsDeOAVs2lkA4sZGyl8JA6QPU8RAXprqHFN/z3fgCHXvyKDLvRWITTpXUUhZHXFA0 RVFd8zGOH1UhsXk9rnxyPuhCew3vk8pHK0wDzQYV/POJb7AuIqGXrKyxCHrS91nfGjf+ cImg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:message-id:date:mime-version:user-agent :subject:content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=i7eaMBVB7yUnTpudl4qdcwzP++vYZc8Pq3HUMlacEVQ=; b=SMx2VDJbtOmdXL8d7U7Dpwqcm5Qsbieku6RQ0nl5qWrvx+dQY659HSzvCD0TBZ/DSK mSLWMzgSoUhQP6hHe5ayX/hz2kGWMIGk/6T64C2ZUSLy4NP3ozdX73j1KhAEyzKegzJx 7Onun1EfReSrF9L6HpaUCnAGDnDe6mlkdKxX18v5iFX9mDMcddB1iTpvrHgV0YQpDw7T Py+a7b1yjVIaYuGsPtksHVUdQn/Rbz8/3I6q/iqHU9iIlg4VoujkTXlPM/W2NpYfCmUF xr0Ra0YryvBN8b5nooQWuno7jQaE+SgZyCMy09IU2hpwE2Gss2VTT0YWRieod0DiU+LL s2dA== X-Gm-Message-State: AJIora+lxKBiM0SaDjmBUy9227xFiIt5sjKtmf3zO8ru2DHs8cdaRmSv m5seYpYjJ0O2MVp25u+Dt6gs/DejNDs= X-Received: by 2002:a17:90a:760e:b0:1ec:83e0:3ae1 with SMTP id s14-20020a17090a760e00b001ec83e03ae1mr7624976pjk.25.1656537494241; Wed, 29 Jun 2022 14:18:14 -0700 (PDT) Received: from ?IPV6:2600:1700:e321:62f0:329c:23ff:fee3:9d7c? ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id iz19-20020a170902ef9300b0016378bfeb90sm11915322plb.227.2022.06.29.14.18.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 29 Jun 2022 14:18:12 -0700 (PDT) Sender: Guenter Roeck Message-ID: <14b0ee4f-a12f-ccf2-633a-470be3cdfa38@roeck-us.net> Date: Wed, 29 Jun 2022 14:18:11 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH] hwmon: (lm90) Use worker for alarm notifications Content-Language: en-US To: Dmitry Osipenko , linux-hwmon@vger.kernel.org Cc: Jean Delvare , linux-kernel@vger.kernel.org References: <20220629154210.2389765-1-linux@roeck-us.net> From: Guenter Roeck In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no 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 13:02, Dmitry Osipenko wrote: > 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 > Thanks a lot for testing! Guenter