Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1162103pxb; Fri, 26 Feb 2021 04:15:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJyOCw3mACKUt9xIlD910X7yx/G/ChtriinNRdu+zhZcsiznbhK2shfQ0Mf2s4ZQ/RV/AcFu X-Received: by 2002:a17:906:9714:: with SMTP id k20mr2961506ejx.519.1614341739586; Fri, 26 Feb 2021 04:15:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614341739; cv=none; d=google.com; s=arc-20160816; b=N/bR6XDRA/MPDi6SCwmn6qN0dCZMoi7V2D6L4G5m6cA6TJMsZM43YLfc1veULYNS4d 52XNReWfAzjtv7tuG0IO2vxX3pRbIKpLbwJshMEz7GmPv8y6rYB2r9zu6h14tVp+QyYh 7qQ3Ky8GhHJlSnYnWRqUeTEYdXd1besKmXOkPQD25sBVDrgjkhmkR30CcJQwwjkCCJvO eWlu3lcgZnHRCC7jWlNpTimYa2T3Q5PqbcjbMx7LW9rwaXoN9C61A/Nzef8MvO3gBBTD DrlMkYeYyHplva1GmGE69f4KrwKiIuKzKuprJdo20Te3+vN/Fr/F0ZN9J4ui2rlWe/Mb /u0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from:dmarc-filter :sender:dkim-signature; bh=Cmqghx6zhcQDDabwf+FgyE0f9AAgFN3Iix4YVts5sgY=; b=UDfFvHC23X4a+j8KHFN8rv1Wb7Alsgm0yY2nB9y9KoIC6rWEGquVSElAwaX/mTXhK0 HzaU+uJov8uDD6mHhlzOjA0P4Zhh4zu4AoZZ4NcBdRR13/qhSxX/7lDOEecAF+Ssernu Gh7dCLCNU5Vn1X/D0lzFgqqWTL5vrXDWa6LPLJWo6+QtQaraV2aYO0tc+z6FIOszbAae IxyYqsFSAW/DIJz8x/hePxJIktiZy0w/0wYiiyyt/aLemGjhbTYkmZR3H/xZHUUbfm+Y g4yYF4GfgTJJdB9TfTU/K1duNv+tKSZ98FzTLl5p2tQ8rHGH3RnboLyb12QiHNvN8RXP b8EA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=rve15hZ8; 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 b1si5953384ejb.314.2021.02.26.04.15.17; Fri, 26 Feb 2021 04:15:39 -0800 (PST) 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=rve15hZ8; 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 S229989AbhBZMNp (ORCPT + 99 others); Fri, 26 Feb 2021 07:13:45 -0500 Received: from m42-2.mailgun.net ([69.72.42.2]:47170 "EHLO m42-2.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229894AbhBZMNo (ORCPT ); Fri, 26 Feb 2021 07:13:44 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1614341604; h=Message-Id: Date: Subject: Cc: To: From: Sender; bh=Cmqghx6zhcQDDabwf+FgyE0f9AAgFN3Iix4YVts5sgY=; b=rve15hZ8X/Q5abxwY8Tmbrcslvsv42MEvTsd4El0574087/wcy9iViPaUPOoLLJDUTYbwvqE flOzmXx7sftYGNupmR6QGvwR+bH4Ui6oInFy7gzj+fWFzyJrOzO+wC/+HpIEzPxBte0HNcMw OSOZB4vaL9SAIDsfCJcTh1WO2xE= X-Mailgun-Sending-Ip: 69.72.42.2 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-n04.prod.us-east-1.postgun.com with SMTP id 6038e5c59a7cefa92a6a6f32 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Fri, 26 Feb 2021 12:12:53 GMT Sender: kgunda=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 8635AC43463; Fri, 26 Feb 2021 12:12:52 +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,SPF_FAIL autolearn=no autolearn_force=no version=3.4.0 Received: from kgunda-linux.qualcomm.com (unknown [202.46.22.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: kgunda) by smtp.codeaurora.org (Postfix) with ESMTPSA id 3F910C433CA; Fri, 26 Feb 2021 12:12:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 3F910C433CA Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=kgunda@codeaurora.org From: Kiran Gunda To: bjorn.andersson@linaro.org, jingoohan1@gmail.com, lee.jones@linaro.org, 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 Cc: linux-arm-msm@vger.kernel.org, phone-devel@vger.kernel.org, Kiran Gunda Subject: [PATCH V2 0/2] Fix WLED FSC Sync and brightness Sync settings Date: Fri, 26 Feb 2021 17:42:22 +0530 Message-Id: <1614341544-5306-1-git-send-email-kgunda@codeaurora.org> X-Mailer: git-send-email 2.7.4 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series has the following two WLED fixes 1. As per the current implementation, for WLED5, after the FSC (Full Scale Current) update the driver is incorrectly toggling the MOD_SYNC register instead of toggling the SYNC register. The patch 1/2 fixes this by toggling the SYNC register after FSC update. 2. Currently, the sync bits are transitioned from 1 to 0 after FSC and brightness update. As per hardware team recommendation the FSC and brightness sync takes place from 0 to 1 transition. The patch 2/2 fies this issue. Changes from V1: 1. Updated the cover letter. 2. Updated the description of the patches as per Daniel's suggestion. Kiran Gunda (2): backlight: qcom-wled: Fix FSC update issue for WLED5 backlight: qcom-wled: Correct the sync_toggle sequence drivers/video/backlight/qcom-wled.c | 37 +++++++++++++++++++++++++------------ 1 file changed, 25 insertions(+), 12 deletions(-) -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project