Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp492736pxf; Thu, 18 Mar 2021 05:44:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwSo7nYvxTTKk5+grRFjh0dwGDsyhIxilO0AhWD+rxVtFtSUEYCNrlrM7CjBlIkBzBnFCr0 X-Received: by 2002:a17:907:628a:: with SMTP id nd10mr38118898ejc.326.1616071488664; Thu, 18 Mar 2021 05:44:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616071488; cv=none; d=google.com; s=arc-20160816; b=JeSKV3CzjHx7WvoH+k/UZvU1lSBrrNSTonWCSuDboRxu7yGkqO5ndt9GBplvDnXnbg fPycmyPo9r8vNINN3+DcCD/G4+3nRXqdFvNIogrUs+qgRPImWWItCiiUktzmXh5kUs4q 4o2khxpJRGrvOyeQNYMNRfU2mPtZYNXu3qjZXuNYOKCbm1c0TuFXx2hLYf8728uzac9r QSk5bUnE3n2lfqkxZXvwhKlCRuJ7E8wLiyE2cJ1KdxM9oWEpzPukazxm1fJMOHYhZ/3+ neotteKMSlIZJG5nSzZ5xSJpNg5FXsZYJXkAeOUddOGJxLlUumFT6NX+CO0JvZAJ0tOX L7fw== 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=s6VV7GTQncp21xvrXYojy8gPu45408PlPCy0aMnUmSc=; b=BBNcVvzZLJoFgoCQmncCI6G311ZfkZPWxa9XSflH+jU7dLvZYhq0ksD/S9aHZg7/bz Mv+i4oNF9gWgA+FTiYPSvanUNu4L8PZV+udN0yQImRf3+smZPT8dY9dauNUBv6hWPTIV psumiP7duDvn/n/BOuIuY/eNtrRPF+QF3SdWKEead8lQHmnW/aL77/NCtNRJ8rvwbJHO R16eSCSvKwyavUYxDMfGMsV7qYWB1vFU35DAIJclik2oHDAkwTGTm9GtXq3QqdpUoFtD eodxd65Wk/JolgTRJ6o7+PdR6aiSUMatj7CzMJj525VlBNpAuMMCMNI6bfkLGS7iOlpb l5Tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=kYoE3Xcx; 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 m7si1422515edq.562.2021.03.18.05.44.25; Thu, 18 Mar 2021 05:44:48 -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=kYoE3Xcx; 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 S231222AbhCRMkh (ORCPT + 99 others); Thu, 18 Mar 2021 08:40:37 -0400 Received: from m42-10.mailgun.net ([69.72.42.10]:46657 "EHLO m42-10.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231279AbhCRMkY (ORCPT ); Thu, 18 Mar 2021 08:40:24 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1616071224; h=Message-Id: Date: Subject: Cc: To: From: Sender; bh=s6VV7GTQncp21xvrXYojy8gPu45408PlPCy0aMnUmSc=; b=kYoE3XcxdN6UO4SKexKc7npnqykFB1crTNChe04OvrtM4cKPegM6vwogFEjRq8ZSqd004nrm TqmCoaOCYPNcAouprZr4a514kI14GkuFZLBKg2mpbjCrP9QfdsPHtWxSFxjQcJ6V1Nkd9NEw /VsC4tvKf9gWZ1eM8L9dpBR/VJw= 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-n04.prod.us-west-2.postgun.com with SMTP id 60534a2a3f267701a4e26bd2 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Thu, 18 Mar 2021 12:40:10 GMT Sender: kgunda=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 1A5ADC4346E; Thu, 18 Mar 2021 12:40:09 +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 508BCC433C6; Thu, 18 Mar 2021 12:40:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 508BCC433C6 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, phone-devel@vger.kernel.org Cc: linux-arm-msm@vger.kernel.org, Kiran Gunda Subject: [PATCH V5 0/2] Fix WLED FSC Sync and brightness Sync settings Date: Thu, 18 Mar 2021 18:09:38 +0530 Message-Id: <1616071180-24493-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 set-then-cleared after FSC and brightness update. As per hardware team recommendation the FSC and brightness sync takes place from clear-then-set transition of the sync bits. The patch 2/2 fies this issue. changes from V4: 1. Rebased this patch series on the below patch. "backlight-qcom-wled-Use-sink_addr-for-sync-toggle.patch". Changes from V3: 1. Updated the patch description as per Daneil's suggestion. 2. Added Daniel's "Reviewed-by" tag for patch 2/2. 3. Updated the cover letter to use "set" and "clear" properly. Changes from V2: 1. Added Daniel's "Reviewed-by" tag for patch 1/2. 2. Updated the patch 2/2 description with "set" and "clear" terminology instead of "1" and "0". 3. Updated the cover letter with "set" and "clear" terminology instead of "1" and "0". 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