Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3618520pxf; Mon, 22 Mar 2021 10:36:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzmnNfiDJcXfTRHCafO5GD+nSm7+FwPUenB/H426pdxPbKKG/KAc9KqoAlivdZncq/oT4EB X-Received: by 2002:a17:906:8308:: with SMTP id j8mr873411ejx.339.1616434612024; Mon, 22 Mar 2021 10:36:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616434612; cv=none; d=google.com; s=arc-20160816; b=oJx8Y1FDnw7LvoDwCL0ZkY5G2rHX4if4X7+7x8S3kiRpMTgXl0QCPI8b8bIsWpwWp7 JhorhhNAysRgnPpcVjNPIoXMBsvHlnmh3RHPXu9jTq3umW4KX+P2xgpfLbkHvmWJY41U kF//S9DrGpKBkVI55hA6n/iFepiufbGoo8LYDEaZTxweksoaNjKXHcpaebyzEqM+4NYl ojZZACGmYVRRc1UH74IhtYRbwRk1ZainLCllnNUW/7OMnhrrzhgjZQNWHwYSFR8wwnzS OQKqSbXFfU3ufnPpimUrwSgCxLFL505iFWJc0AFMRo49xnOUBjvY27xndahIj1HFkBEP yz4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=itvxu6pseNvAArTXkxBUqpwVqMnWpn85hJGn4Cdpwhg=; b=pAM3tjW6eCZDXKuFHNXb8pFQh9IHEaF94ftWS3kb2cKqQnKECNyrrOWWWK3p8xNdiC 9vHpsU+aTe2L/Wi2d1TXQiAMB+jSHLCZlXhlsOcLXt3iqVmiAKb3Iu9BlUQQ3qaAL+4+ +ubpcAyfWSdQUgQkZNBb/l8tiPYjikmZOUkaSoT6BDjlEb3mcQD/ezZoDTPfRYJAvlwf DqS4xpnoe2mbh9cC9Cf+Wss6kKrSQDv6Q4uVfFlD/TEDFeW71+aM8HxV3F/EeVJ1PrBh nD/uPcLVnXfjJ8wTcwqPjyIO9LXatbVAASSwlB05M7ekevlXbOo2u9WsPQBh3uqg7rxS 3oVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uNTiuiHb; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v5si11233615edr.596.2021.03.22.10.36.30; Mon, 22 Mar 2021 10:36:52 -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=@linaro.org header.s=google header.b=uNTiuiHb; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232048AbhCVReq (ORCPT + 99 others); Mon, 22 Mar 2021 13:34:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230314AbhCVReR (ORCPT ); Mon, 22 Mar 2021 13:34:17 -0400 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C95EBC061756 for ; Mon, 22 Mar 2021 10:34:16 -0700 (PDT) Received: by mail-ej1-x62c.google.com with SMTP id b7so22664056ejv.1 for ; Mon, 22 Mar 2021 10:34:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=itvxu6pseNvAArTXkxBUqpwVqMnWpn85hJGn4Cdpwhg=; b=uNTiuiHb//r+7s512XtcPzPyLF04pqLQ3NrFXgaoxYNR2RU0pDoYy1ZNFTfKaRBx3R qUpdSxsLmTiozn+u05mEF/2mOns8JJqI3whi5eUsFhPYQd4a/eGXutlrOs1KdMC5vKXZ D5NfmKie5T8TXOEpLX3eqXPKF/2ibqi+auQ3HJUAWhdl0PiQcmhIE+gj58H/w7T4dyTb KY/Ex9Y+BtG5FhKLOWVluiKYgNltP/jhOs8Abi1ZipK2VPfsg0P3Rx5+52mA6aIxLF5Q D+A7SD93d2c23HV9ByoiID4u+zWDyy2KubD1XKv/mr87//jjBOOUc3lGWiUyiBSMvn7b dSLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=itvxu6pseNvAArTXkxBUqpwVqMnWpn85hJGn4Cdpwhg=; b=sBDUAoUsxP92n7+EQ8LNmIggc0XKMbv1+xR3J0Kh6Atvk2tcA8OBTmFT07AcXaDv50 GWvijTeVOzqDbBhhwQHB7q8RmijLV/AC+1KE8VbKZMDRgvCctiL+gvHr1748n5S7pMMo XNsQlyrE0h+kEGeY2m+HlvDcfXYWUZ4z3KKDB1e6WAVMai44w3fUUT5LDtazPbaayycv CwiABW7bP8DmIS7WfaEBllSz+7Wk2F0fTo3DAcjw4y2SNGgx3ZU94MPDwJQER6kqV4QT QJvJe+/8jy7KqClaV1BlTnWKMNW8unzCv6I1UZdzyhwrJ4wJIrBLgESHVWmL9M/QZ7us ODeQ== X-Gm-Message-State: AOAM53256iO1iymyIIzsx9daI1AhKYSp2DXl843Ict/lxF+4AXJolkk3 6G+f75G4nrc7PqZG7G8MlxUe7g== X-Received: by 2002:a17:906:340d:: with SMTP id c13mr934869ejb.29.1616434455577; Mon, 22 Mar 2021 10:34:15 -0700 (PDT) Received: from dell ([91.110.221.180]) by smtp.gmail.com with ESMTPSA id n3sm9867573ejj.113.2021.03.22.10.34.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Mar 2021 10:34:15 -0700 (PDT) Date: Mon, 22 Mar 2021 17:34:13 +0000 From: Lee Jones To: Kiran Gunda Cc: bjorn.andersson@linaro.org, jingoohan1@gmail.com, b.zolnierkie@samsung.com, dri-devel@lists.freedesktop.org, daniel.thompson@linaro.org, jacek.anaszewski@gmail.com, pavel@ucw.cz, robh+dt@kernel.org, mark.rutland@arm.com, linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, phone-devel@vger.kernel.org, Andy Gross , linux-arm-msm@vger.kernel.org, linux-fbdev@vger.kernel.org Subject: Re: [PATCH V5 1/2] backlight: qcom-wled: Fix FSC update issue for WLED5 Message-ID: <20210322173413.GC2916463@dell> References: <1616071180-24493-1-git-send-email-kgunda@codeaurora.org> <1616071180-24493-2-git-send-email-kgunda@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1616071180-24493-2-git-send-email-kgunda@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 18 Mar 2021, Kiran Gunda wrote: > Currently, for WLED5, the FSC (Full scale current) setting is not > updated properly due to driver toggling the wrong register after > an FSC update. > > On WLED5 we should only toggle the MOD_SYNC bit after a brightness > update. For an FSC update we need to toggle the SYNC bits instead. > > Fix it by adopting the common wled3_sync_toggle() for WLED5 and > introducing new code to the brightness update path to compensate. > > Signed-off-by: Kiran Gunda > Reviewed-by: Daniel Thompson > --- > drivers/video/backlight/qcom-wled.c | 25 +++++++++++++++++++------ > 1 file changed, 19 insertions(+), 6 deletions(-) Applied, thanks. -- Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog