From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C5741C3DA78 for ; Sat, 14 Jan 2023 01:30:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229778AbjANBat (ORCPT ); Fri, 13 Jan 2023 20:30:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230119AbjANBaq (ORCPT ); Fri, 13 Jan 2023 20:30:46 -0500 Received: from mail-4022.proton.ch (mail-4022.proton.ch [185.70.40.22]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A9025371C for ; Fri, 13 Jan 2023 17:30:45 -0800 (PST) Date: Sat, 14 Jan 2023 01:30:33 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=connolly.tech; s=protonmail; t=1673659842; x=1673919042; bh=AdZAhK55J//xC6CGMSCMaoU1ntstNCM0ncZKk8nZWlc=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=Z4VjL+egla2BJR+hp4BC/RWQ5LuWYsGA67ggqO1uEspGNjbvtK/CODPdqeNtIVbQu TbJVYk29SzPjUqxt+YlewOhw/xq8a1kzd+swnIdjKR3vbU/0JI/xmKy50zFHlGyx4P spgWJ2hZTA/y1c1QepxojQZXudhOlAN49SNhdUWU= To: Richard Acayan , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Thierry Reding , Sam Ravnborg , Emil Velikov , Vinay Simha BN , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org From: Caleb Connolly Cc: Daniel Mentz Subject: Re: [RFC PATCH v2 2/2] drm/panel: sofef00: Use 16-bit panel brightness Message-ID: <160f5f63-6e80-a98c-c2c4-5e5e03e574da@connolly.tech> In-Reply-To: <20230114010006.50471-3-mailingradian@gmail.com> References: <20230114010006.50471-1-mailingradian@gmail.com> <20230114010006.50471-3-mailingradian@gmail.com> Feedback-ID: 10753939:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 14/01/2023 01:00, Richard Acayan wrote: > These panels communicate brightness in big endian. This is not a quirk > of the panels themselves, but rather, a part of the MIPI standard. Use > the new mipi_dsi_dcs_set_display_brightness_wide() function that > properly handles 16-bit brightness instead of doing special processing > of the brightness values. > > Signed-off-by: Richard Acayan Awesome! Thanks for this series, glad to know this isn't a weird panel quirk aha. This works fine on the OnePlus 6 (the user of this panel), so for both patches: Tested-by: Caleb Connolly > --- > drivers/gpu/drm/panel/panel-samsung-sofef00.c | 9 ++------- > 1 file changed, 2 insertions(+), 7 deletions(-) > > diff --git a/drivers/gpu/drm/panel/panel-samsung-sofef00.c b/drivers/gpu/= drm/panel/panel-samsung-sofef00.c > index 1a0d24595faa..014fe350bc59 100644 > --- a/drivers/gpu/drm/panel/panel-samsung-sofef00.c > +++ b/drivers/gpu/drm/panel/panel-samsung-sofef00.c > @@ -10,7 +10,6 @@ > #include > #include > #include > -#include > #include > > #include