Message ID | 20230403133054.319070-1-angelogioacchino.delregno@collabora.com |
---|---|
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 b10csp2311839vqo; Mon, 3 Apr 2023 06:42:27 -0700 (PDT) X-Google-Smtp-Source: AKy350ZEHDDjx4txX7QuoVp/PID7VJ69y1z3QwdzYJlKe6+ILk6Tz4Xukm6r+3/aAEpwq7tjniza X-Received: by 2002:a17:906:41:b0:934:286:f9 with SMTP id 1-20020a170906004100b00934028600f9mr18602421ejg.27.1680529346802; Mon, 03 Apr 2023 06:42:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680529346; cv=none; d=google.com; s=arc-20160816; b=DyK/7sHT/kwjbgTj+T6VTcpc9gtLPBW7SWATsZ0fv425WV9+zmlA0hCQXtPsd/DeIj 2sL9AdkMh1bMIPa2kNcdN8mETYgpeuc3tG2qLcJRJjVQRdDvVcSGEFI9oyFdadvIc6WD CQk7SAEznePogpS5vrb1yuiPTyEDPit1bxFjVQzF0dPTa+hG3I1sNm3sJABhmiOAHJeM agA5nQW2kxTbySQ9skNIydL4yOXFCQICT+ZuUWtS1rsHRiYb0xnvVBhFTuGKb6F1Gxes mmhuOjqOy9A/6cnrZ544DcY+qJHR4Ae5KxXD1lGyqmcvmuydfAJsLrbpWodauhLhOZ7x LxSA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=zQCnz9JM+nshwOTROAwicIu+F5vqbnF8OOyT2n28/+I=; b=YOwL+K+Zx19/D1MtPpUHs2LWnWhOHpOTnLcnP1yLu08Aj+2jSs1yv4ABu/Dcxt6r9m JpE6ioxBfCn9j+Tr1pVB/VQvfzDMVdwdVpmmUvHdwzpO1LniUZIyhD+kxKZLx/5UkxKg Sl7EMianfmPT62hNrp26zaFkgVRNhKh+UOSgg3VtyCKYFN1yS39G8Q8x3+PBhjIwp5xc 1XjeWfQO45tE6yVHyoPbyKkseqrqfQDQ6hp6kCWri/YzDTcRe0C0FHuh1BXYFfpowxy1 A9lq42Am3MWp4j26hqMakOody9T8VhlGl0BMXDwOSUGbvqZa1ZoM1dc3tNuzgB1lIUby x07A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=DztboHq6; 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 lr6-20020a170906fb8600b0092ff55fd0cfsi3517807ejb.818.2023.04.03.06.42.03; Mon, 03 Apr 2023 06:42:26 -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=DztboHq6; 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 S232547AbjDCNbH (ORCPT <rfc822;zwp10758@gmail.com> + 99 others); Mon, 3 Apr 2023 09:31:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231816AbjDCNbE (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 3 Apr 2023 09:31:04 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 839E81FC1; Mon, 3 Apr 2023 06:31:03 -0700 (PDT) Received: from IcarusMOD.eternityproject.eu (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id AF2216600013; Mon, 3 Apr 2023 14:31:00 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1680528661; bh=Ud9yCIjB8jwMmXsFScRcYrf42votU0cIRo7MP8MJdsY=; h=From:To:Cc:Subject:Date:From; b=DztboHq63LfR00xbNZy1e6rjnslVuZLtPvi5e9+0B3QHJSGFlmpKpR7lqvd4UoV6C dKAU34GLYM2wh8nQVA1bJBDoYheifd7teJ8akpt9aMnyPVj4S39D3QA0/YZMhV54PO F/gn56tFNb+fgVkvIBu0I5LAv+hgX7OhQT+aemWf+xTuyr/s/AWeMo7YbbqEZCzav9 sHhsv/ztLZoXRNzuMn+hHs/VoO/STx8O0gkruTB2PFpwguiK06jgFegBjMoDHj4wty DfEWRYuaJ4vL8g6oAaBfBrpzl02RnL/nW5FxH5BPXt1aFyW/QgZ/nO612BBiDnSa7Q GJyLSknky4+Xg== From: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> To: thierry.reding@gmail.com Cc: u.kleine-koenig@pengutronix.de, matthias.bgg@gmail.com, weiqing.kong@mediatek.com, jitao.shi@mediatek.com, linux-pwm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@collabora.com, wenst@chromium.org, AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Subject: [PATCH RESEND 0/2] pwm: mtk-disp: Fix backlight configuration at boot Date: Mon, 3 Apr 2023 15:30:52 +0200 Message-Id: <20230403133054.319070-1-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.40.0 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?1762162740448727914?= X-GMAIL-MSGID: =?utf-8?q?1762162740448727914?= |
Series |
pwm: mtk-disp: Fix backlight configuration at boot
|
|
Message
AngeloGioacchino Del Regno
April 3, 2023, 1:30 p.m. UTC
Since the pwm-mtk-disp driver was fixed to get PWM_EN state from the right register, an old two-wrongs-make-one-right issue emerged: as a result, MT8192 Asurada Spherion got no backlight at boot unless a suspend/resume cycle was performed. Also, the backlight would sometimes not get updated with the requested value, requiring the user to change it back and forth until it worked. This series fixes both of the aforementioned issues found on MT8192 and similar issues on MT8183 Chromebooks. AngeloGioacchino Del Regno (2): pwm: mtk-disp: Disable shadow registers before setting backlight values pwm: mtk-disp: Configure double buffering before reading in .get_state() drivers/pwm/pwm-mtk-disp.c | 34 +++++++++++++++++++++++----------- 1 file changed, 23 insertions(+), 11 deletions(-)
Comments
On Mon, 3 Apr 2023 15:30:52 +0200, AngeloGioacchino Del Regno wrote: > Since the pwm-mtk-disp driver was fixed to get PWM_EN state from the > right register, an old two-wrongs-make-one-right issue emerged: as a > result, MT8192 Asurada Spherion got no backlight at boot unless a > suspend/resume cycle was performed. > Also, the backlight would sometimes not get updated with the requested > value, requiring the user to change it back and forth until it worked. > > [...] Applied, thanks! [1/2] pwm: mtk-disp: Disable shadow registers before setting backlight values commit: 36dd7f530ae7d9ce9e853ffb8aa337de65c6600b [2/2] pwm: mtk-disp: Configure double buffering before reading in .get_state() commit: b16c310115f2084b8826a35b77ef42bab6786d9f Best regards,