Message ID | 20230406194158.963352-4-cristian.ciocaltea@collabora.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1266977vqo; Thu, 6 Apr 2023 12:57:54 -0700 (PDT) X-Google-Smtp-Source: AKy350YhhLzHjxQtHnqAXIzaqPzXKAbyR/8fSF5XAyzsgNILCS76PGpQSQw2PvgjWXmzt2Z2/Q/J X-Received: by 2002:a17:90b:3b48:b0:23d:29c7:916f with SMTP id ot8-20020a17090b3b4800b0023d29c7916fmr12257639pjb.32.1680811073964; Thu, 06 Apr 2023 12:57:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680811073; cv=none; d=google.com; s=arc-20160816; b=nt4v3TpJiIJnHv1BSrabLcyWnjSQD4ezI4fUl1CWf+ahBhpzb4ruxVTyqubepi6o/2 dcPMK1BBe3h15hWghZaF+/hYVeA/QJxIGcQx+sDeY0n4vZ2G/UAYmonuwGf7+sHdqr2C +NVZ5gO1ojNQ7Lhl7H3HoVvUn2RDonJNcKVinArY0ETFPG/hsGd6NsbdKvnSAvoEPY2M 1Uf/sZ1eS3eF0BtnNZZmaAoMIxe1filFPAmKsqUK1jeh/w0jv+gj6X+zhlYI2BEPQt0D Re8gwq2+uReTXPG4xNknG1OzwDJWhu2U1z1RgSnUe+Io3GoZrBHVgG+atjiAYWFgbvPm YhJQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=7dt069c8NJSutavb/KHBQd046A/DpjlsUVruXM3SBao=; b=OusJJkPi2xaL30PvtYlb66Lfe9EyXYQL1XFW9U2M6qeI4z04rsrRh7BcK3lbxBb4vR xYJ2+Z+a35kAfRUfPiPnhZpuEOOC5uqiFXzlFvyvvVV4Z9pZOw2s20qrkTb0PZ+a9mlW cfKjTtkB1Bb1MmMTkXvfZbHW3kgkdEU1pQZdaf4OjWsnTU6FO5l2C0084VHvatQif8VE NQvIuTTFNWkXQU56rWidhoIXRfOdzhaQrij5ZeIFWCRgsq/WHPC7qkSm4EWwk2TK1Pyu mdn2hsmCPMBmpuPrQNQsykIK3VSvsoHhynTkMwAZdIK2/ttxFziJl4Gu2McVBRvPhjmM 0XOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=nxcc6qse; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i2-20020a17090acf8200b002406d55224fsi4410778pju.178.2023.04.06.12.57.40; Thu, 06 Apr 2023 12:57:53 -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=nxcc6qse; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237561AbjDFTmU (ORCPT <rfc822;a1648639935@gmail.com> + 99 others); Thu, 6 Apr 2023 15:42:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237451AbjDFTmP (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 6 Apr 2023 15:42:15 -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 636BB7EFE; Thu, 6 Apr 2023 12:42:13 -0700 (PDT) Received: from localhost (unknown [188.27.34.213]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: cristicc) by madras.collabora.co.uk (Postfix) with ESMTPSA id 1F05A66031CE; Thu, 6 Apr 2023 20:42:12 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1680810132; bh=lFOZ5esxl/tbYIcE53Cn4DHfBeM2O3R87VdL+HeZPkw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nxcc6qsej83m4UnOh2Bw4Mg3nUltXYSpcBJbTaPeB9jYbEpc5JKhLWylwsoihVMsd SMKoWPoOSzypcittADYQE5s/bF6+N6ZFVqUDpT/XDcbCcoIg40o7DPnt0lcK53k3qU Skbwo9JPOb5DWIE+6zrGXobR2fObR8X2E6YVqmukj9NPT6zw5onEhSMEJCYabG61yx WtDiy3eXNmmXdHYow3Holqo6jUx59W/8EMpRNsa7cvKtkHtCl6dYeeDmW0NCErnnmK TlSW55gjmhBhxDxeDcZkbKXkKvPq4Wb9q4auv9PF+Wwg+0o4iVsASKceuCL0bfgP+/ CtHxguKZebQeQ== From: Cristian Ciocaltea <cristian.ciocaltea@collabora.com> To: Liam Girdwood <lgirdwood@gmail.com>, Mark Brown <broonie@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Heiko Stuebner <heiko@sntech.de>, Bjorn Andersson <andersson@kernel.org>, Joseph Chen <chenjh@rock-chips.com>, Ezequiel Garcia <ezequiel@vanguardiasur.com.ar> Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, kernel@collabora.com Subject: [PATCH v3 3/8] regulator: fan53555: Fix wrong TCS_SLEW_MASK Date: Thu, 6 Apr 2023 22:41:53 +0300 Message-Id: <20230406194158.963352-4-cristian.ciocaltea@collabora.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230406194158.963352-1-cristian.ciocaltea@collabora.com> References: <20230406194158.963352-1-cristian.ciocaltea@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762458152499852345?= X-GMAIL-MSGID: =?utf-8?q?1762458152499852345?= |
Series |
Add support for Rockchip RK860X regulators
|
|
Commit Message
Cristian Ciocaltea
April 6, 2023, 7:41 p.m. UTC
The support for TCS4525 regulator has been introduced with a wrong
ramp-rate mask, which has been defined as a logical expression instead
of a bit shift operation.
For clarity, fix it using GENMASK() macro.
Fixes: 914df8faa7d6 ("regulator: fan53555: Add TCS4525 DCDC support")
Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
---
drivers/regulator/fan53555.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/regulator/fan53555.c b/drivers/regulator/fan53555.c index 0754c370a21c..4d2104c3a077 100644 --- a/drivers/regulator/fan53555.c +++ b/drivers/regulator/fan53555.c @@ -61,7 +61,7 @@ #define TCS_VSEL1_MODE (1 << 6) #define TCS_SLEW_SHIFT 3 -#define TCS_SLEW_MASK (0x3 < 3) +#define TCS_SLEW_MASK GENMASK(4, 3) enum fan53555_vendor { FAN53526_VENDOR_FAIRCHILD = 0,