[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <3d1a6153-61c8-46a1-afaa-ec4e79069174@kontron.de>
Date: Wed, 4 Sep 2024 11:30:34 +0200
From: Frieder Schrempf <frieder.schrempf@...tron.de>
To: Adam Ford <aford173@...il.com>, linux-phy@...ts.infradead.org
Cc: dominique.martinet@...ark-techno.com, linux-imx@....com,
festevam@...il.com, aford@...conembedded.com, Sandor.yu@....com,
Marco Felsch <m.felsch@...gutronix.de>, Vinod Koul <vkoul@...nel.org>,
Kishon Vijay Abraham I <kishon@...nel.org>,
Lucas Stach <l.stach@...gutronix.de>,
Uwe Kleine-König <u.kleine-koenig@...gutronix.de>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH V5 2/5] phy: freescale: fsl-samsung-hdmi: Simplify
REG21_PMS_S_MASK lookup
On 04.09.24 4:32 AM, Adam Ford wrote:
> The value of 'S' is writen to two places, PHY_REG3[7:4] and
> PHY_REG21[3:0]. There is a lookup table which contains
> the value of PHY_REG3. Rather than using a switch statement
> based on the pixel clock to search for the value of 'S' again,
> just shift the contents of PHY_REG3[7:4] >> 4 and place the value
> in PHY_REG21[3:0]. Doing this can eliminate an entire function.
>
> Signed-off-by: Adam Ford <aford173@...il.com>
> Reviewed-by: Marco Felsch <m.felsch@...gutronix.de>
Reviewed-by: Frieder Schrempf <frieder.schrempf@...tron.de>
Tested-by: Frieder Schrempf <frieder.schrempf@...tron.de>
Powered by blists - more mailing lists