Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1910733pxb; Thu, 16 Sep 2021 20:00:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwBUT+vLQADKDuH16QX7xYaalJr0V7sVu8xBxrQqW7hHxJ4ZtIxiNOZBHPTgCaFv/xX6FuL X-Received: by 2002:a05:6e02:58d:: with SMTP id c13mr6319460ils.101.1631847607671; Thu, 16 Sep 2021 20:00:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631847607; cv=none; d=google.com; s=arc-20160816; b=BtLA5HWYxjbTd7BGo1V3eQjDkK8aYUBUXq443idtiZU2EFFhnxBFr9iFMsaQfvBFEY YHzyDqpIjN6/4GwDoytRREXGPxZ9cHr3+tRbbn/qtQstbkYd6IfufVWVe0I+eXWw7n2n 0vjBrXMg+pKPrk5ks4HgioR/8b5hghq/0HIDk4DZvpyh1kTl+YGgcLXx3dRCfwnauutF iG8o3ODbmjrZHBSNy9rYDMqB5FmyBEd66U1eLpZIRxqucmeUF0poktJNMNsPXtb9Vwru gGc2EqH10X7G+pXfCbFPY67iGODtb2GAkR7dQHH7RrLpJmonQrRbO21nZsKwXbgmmoJr WENw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=2nZm0Hi+BQqvAsFzx5nivzMzUrkNgEwylj1HbXPxG50=; b=Ya1ue/NvuxVZeigy8iZnAa5i+RRH9o0a4IFrG6OSM3RuaqbWwKVMalz3GCLvTk7QPK von4n2MbjTbO4tbfCTVsjJfq/cA9vXcwAw6zHLnsUzjgz5sNCxkg+xGJn983m3s9Rig/ WVizxxeozDov2EC25jZNvbPsY43G+DmuSx+z5QcmT1HvF4L9XbOL5dqEXu5l90iOdgMa NNo2QXTjrJhxv/1yCSeMOgdCCt3MNomsL0unOUboGXKDthyN6RW7+iM93TKBUPEcqjJq lOY+3YMS1a4niR4Uys0lzOThhqP8hHm1TCjuIVz1WPCN1Eg4jX0rU3JsDjMpHRol7GuX G3wA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=YGtMWrqQ; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k7si4332297ior.112.2021.09.16.19.59.56; Thu, 16 Sep 2021 20:00:07 -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=pass header.i=@linuxfoundation.org header.s=korg header.b=YGtMWrqQ; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348415AbhIPRZ7 (ORCPT + 99 others); Thu, 16 Sep 2021 13:25:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:51936 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347033AbhIPQ4u (ORCPT ); Thu, 16 Sep 2021 12:56:50 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 748BA61AD1; Thu, 16 Sep 2021 16:31:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631809878; bh=ZMGrjSMZimhJuSbuiJ/hE2EWyRHaKnHeNyrA6L3KprY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YGtMWrqQt/FLziY3O4l5F59vFGq3mUBOnDfexE5FkmrvEev1+oB+OzdKd/nccehLv 5YD6P4mTpKzXmZ3gtZJMj4uy6z6djOKoa5QA2A4YlGCTL2+WFkqqtI3QgqLi4x0w8g sHQu/XDxIrrsFQd+toG17M281G+YtiTecJVmSPP4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Brandon Wyman , Guenter Roeck , Sasha Levin Subject: [PATCH 5.13 284/380] hwmon: (pmbus/ibm-cffps) Fix write bits for LED control Date: Thu, 16 Sep 2021 18:00:41 +0200 Message-Id: <20210916155813.740760637@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210916155803.966362085@linuxfoundation.org> References: <20210916155803.966362085@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Brandon Wyman [ Upstream commit 76b72736f574ec38b3e94603ea5f74b1853f26b0 ] When doing a PMBus write for the LED control on the IBM Common Form Factor Power Supplies (ibm-cffps), the DAh command requires that bit 7 be low and bit 6 be high in order to indicate that you are truly attempting to do a write. Signed-off-by: Brandon Wyman Link: https://lore.kernel.org/r/20210806225131.1808759-1-bjwyman@gmail.com Signed-off-by: Guenter Roeck Signed-off-by: Sasha Levin --- drivers/hwmon/pmbus/ibm-cffps.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/hwmon/pmbus/ibm-cffps.c b/drivers/hwmon/pmbus/ibm-cffps.c index 5668d8305b78..df712ce4b164 100644 --- a/drivers/hwmon/pmbus/ibm-cffps.c +++ b/drivers/hwmon/pmbus/ibm-cffps.c @@ -50,9 +50,9 @@ #define CFFPS_MFR_VAUX_FAULT BIT(6) #define CFFPS_MFR_CURRENT_SHARE_WARNING BIT(7) -#define CFFPS_LED_BLINK BIT(0) -#define CFFPS_LED_ON BIT(1) -#define CFFPS_LED_OFF BIT(2) +#define CFFPS_LED_BLINK (BIT(0) | BIT(6)) +#define CFFPS_LED_ON (BIT(1) | BIT(6)) +#define CFFPS_LED_OFF (BIT(2) | BIT(6)) #define CFFPS_BLINK_RATE_MS 250 enum { -- 2.30.2