Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1733197pxb; Thu, 16 Sep 2021 14:16:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw6wpYWdvnyPBQjaSPR6iSR0pC6lfZ29AgUg0BWhjcuMFQdiDFqyceXXWAwTRtQQ3akDUO9 X-Received: by 2002:a6b:e917:: with SMTP id u23mr6013669iof.19.1631826986645; Thu, 16 Sep 2021 14:16:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631826986; cv=none; d=google.com; s=arc-20160816; b=W4XR+SFIjuwHn2Y2HxTvCT9LlCW04xiCBTOx8sR9RfegNImo9e51et5Ql/230KDW7X FszIOwijOiJWa512l7GiFTE75wtXV/nahy61XP053q/szg7HPdY4mf+N/ZIoupHU8410 aifQbwLTHof+wPUDWgj2xM453f6tYWxsgcBNUR1EMs9pJpYxsRlXe2acgAiZPyLAePGK SnHKzfgUHEkTLfi294GLG1gRxu7/XYlN5BBCQi0GEz83SGUVdB1D+xZzDkKln6UPlTjn lnZCoqZo2hiKrdao5h9xSrOdyjipEpihZfBH/hfo2OOnyfRUje2KqfyTqeoXB5meowx6 jfhg== 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=uZyiBlrls3yr4Lyriok0wyJd8A2yFazvz9930DaVNXA=; b=fWBjvfXpsbbfk5+AJ/6RN48BYswT3+ZHx8+uUpZHAbBjIc3NbK0814kVBeVo0lR+1h 5yduttkWdveQdT3HHgyh8Z4yY6aLFC3OKS3O3RW9EqbfmqekRmDm5fcZtq6NSa95uQSi HOYJ+qVFX1BdS4sKJH6x373KfK4TbifUE1nS/0tpuNi4Rf/KRnb+3NCfrbllZV9WVH9O LFZlqK7IZAcDxs75a8DIPsjwfljen0Fp/ZiWk3euQf88enmGERefNIyTKZDWAerYIfYM QDqAMw9hSiwy45ccpWrMDDcYcA2eTMLTpRhoRIDTJPZPc/vAQtfKs7CS21Fz8yzBxKeV fKyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ahZIRuED; 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 g6si4453973ilf.129.2021.09.16.14.16.14; Thu, 16 Sep 2021 14:16:26 -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=ahZIRuED; 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 S241482AbhIPQ1S (ORCPT + 99 others); Thu, 16 Sep 2021 12:27:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:58934 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241199AbhIPQTT (ORCPT ); Thu, 16 Sep 2021 12:19:19 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8526C61130; Thu, 16 Sep 2021 16:13:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631808799; bh=tJx5Me14Up6H331wYl0tEsLU0NwA6R6MkytkCBcxx38=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ahZIRuEDdhFVTLyVM6lpMn/zDK+LiQ2haHpqpkU7+/lL5tpfMPK6ANVN+Q1kvcafM /jfv/1sVlkiIquafkM6Gk6QdDTO1hAMNkwdsrvYWf+/AQjrpdVdzEyGDmuoq78yR4O oe9m7UD/h/eej0j1giI3EBdwZWMQx7xEpcaJ6JpY= 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.10 227/306] hwmon: (pmbus/ibm-cffps) Fix write bits for LED control Date: Thu, 16 Sep 2021 17:59:32 +0200 Message-Id: <20210916155801.797580566@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210916155753.903069397@linuxfoundation.org> References: <20210916155753.903069397@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 2fb7540ee952..79bc2032dcb2 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