Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp30813pxf; Tue, 16 Mar 2021 21:11:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyrGwGFsg08v0s/E1SLWP5j/GB6jnvyXyFpne8maK6iIxHQRAZSqpt653PqlZXdeh4/AU0/ X-Received: by 2002:a05:6402:32a:: with SMTP id q10mr39170706edw.15.1615954259954; Tue, 16 Mar 2021 21:10:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615954259; cv=none; d=google.com; s=arc-20160816; b=wdpqi+H1kAatRBrSEtN1cu6GK6yxGjYmoEs4gFo/YGA+6hT1AWLvYFt4i4JHHalK0h 6RCz227RdoYNKelFLAcwEhDwZdG1FSKsdPWzkrsTTfG/fTiiHlP8ETfDiWGUSI6ZhFBN oP2lCFGo+neGtf57G6u/7N2lH2VA7zqPQbNZxSg/rsFO+rZkPkw+7WXCWBYw/zBg45P6 ocwswipzA1sREw0k2175Iqt7vHrAt7dEwEXA8OzaiMVl4z+OfmIt6j+OlzEeTsERy28C CH1PyPRfPctIG0GCtLKxUzG0Zp6aEdJJ0Hodgbf94/eOedQeUIFoBuzAia+N5uEklfFU aJCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :sender:dkim-signature; bh=JzDLSu+qwz6G/WNOU91LdfXeIczEE/TTUZtA6eKrw7E=; b=X4AEyMp7fB3RzB7BbRJHZruwwebN6Po6R7Hh9101Fceusi0qsV+CWe2hC2/WXf71pH birt4aiIwlK6iyCIVYRp/uJ3h9/B2uIjFyCnvBR94T2iqlhU3fIzF7L1ucxsFTbmC3SE 9LGl8XYgvK4cFySbPNYx2HCVSDqKrM+ixR3qgGwCNLJGdDL/PbLroWayIhOsDfoU6aCX /VjtHc9u4SlUJ7NydZm5YCNjmytkhfhjddXYt1SUCiSuRTz+8vwaFvS6COcnaunwJNNi ow3cuVGDrTw/k4N/ZJR6pmalf7XQKKPPwhs/a/E7nez/N6DrEUFmCNUTtBMeAhqQ6134 1XqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=n6wS7dGv; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v3si14822826ejb.97.2021.03.16.21.10.38; Tue, 16 Mar 2021 21:10:59 -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=@mg.codeaurora.org header.s=smtp header.b=n6wS7dGv; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229640AbhCQEA7 (ORCPT + 99 others); Wed, 17 Mar 2021 00:00:59 -0400 Received: from m42-10.mailgun.net ([69.72.42.10]:34583 "EHLO m42-10.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229591AbhCQEAt (ORCPT ); Wed, 17 Mar 2021 00:00:49 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1615953649; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=JzDLSu+qwz6G/WNOU91LdfXeIczEE/TTUZtA6eKrw7E=; b=n6wS7dGvRQHa8jEGeieFbJbjbkBBnnag0zBwTQHsPYWDkv6Q5cy8ut+KZBqGTb3iIK5gfvJX VWZQ8F3y/zMt3FyGL022AFU2xw5D+iyN1q+aCmZxB2tIl2ziFxG8kiWXQx7XfkFHPmGYYrWW /bFHXJ8fUxJaSH7UIRIvR2qPHc8= X-Mailgun-Sending-Ip: 69.72.42.10 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n05.prod.us-west-2.postgun.com with SMTP id 60517eddc32ceb3a917d03be (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Wed, 17 Mar 2021 04:00:29 GMT Sender: kgunda=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 95D4DC43465; Wed, 17 Mar 2021 04:00:29 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: kgunda) by smtp.codeaurora.org (Postfix) with ESMTPSA id 77AE5C433CA; Wed, 17 Mar 2021 04:00:28 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 17 Mar 2021 09:30:28 +0530 From: kgunda@codeaurora.org To: Daniel Thompson Cc: Marijn Suijten , phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno , Konrad Dybcio , Martin Botka , Obeida Shamoun , Andy Gross , Bjorn Andersson , Lee Jones , Jingoo Han , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] backlight: qcom-wled: Use sink_addr for sync toggle In-Reply-To: <20210315122158.ptqi6xvngf6ihjum@maple.lan> References: <20210314101110.48024-1-marijn.suijten@somainline.org> <20210315122158.ptqi6xvngf6ihjum@maple.lan> Message-ID: <347b2f4efa08e051ed764b22e5dc98a2@codeaurora.org> X-Sender: kgunda@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021-03-15 17:51, Daniel Thompson wrote: > On Sun, Mar 14, 2021 at 11:11:10AM +0100, Marijn Suijten wrote: >> From: Obeida Shamoun >> >> WLED3_SINK_REG_SYNC is, as the name implies, a sink register offset. >> Therefore, use the sink address as base instead of the ctrl address. >> >> This fixes the sync toggle on wled4, which can be observed by the fact >> that adjusting brightness now works. >> >> It has no effect on wled3 because sink and ctrl base addresses are the >> same. This allows adjusting the brightness without having to disable >> then reenable the module. >> >> Signed-off-by: Obeida Shamoun >> Signed-off-by: Konrad Dybcio >> Signed-off-by: Marijn Suijten > > LGTM, although an acked-by from Kiran would be nice to have: > Reviewed-by: Daniel Thompson > > > Daniel. > > Acked-by: Kiran Gunda >> --- >> drivers/video/backlight/qcom-wled.c | 4 ++-- >> 1 file changed, 2 insertions(+), 2 deletions(-) >> >> diff --git a/drivers/video/backlight/qcom-wled.c >> b/drivers/video/backlight/qcom-wled.c >> index 091f07e7c145..fc8b443d10fd 100644 >> --- a/drivers/video/backlight/qcom-wled.c >> +++ b/drivers/video/backlight/qcom-wled.c >> @@ -336,13 +336,13 @@ static int wled3_sync_toggle(struct wled *wled) >> unsigned int mask = GENMASK(wled->max_string_count - 1, 0); >> >> rc = regmap_update_bits(wled->regmap, >> - wled->ctrl_addr + WLED3_SINK_REG_SYNC, >> + wled->sink_addr + WLED3_SINK_REG_SYNC, >> mask, mask); >> if (rc < 0) >> return rc; >> >> rc = regmap_update_bits(wled->regmap, >> - wled->ctrl_addr + WLED3_SINK_REG_SYNC, >> + wled->sink_addr + WLED3_SINK_REG_SYNC, >> mask, WLED3_SINK_REG_SYNC_CLEAR); >> >> return rc; >> -- >> 2.30.2 >>