On 6/3/2026 8:46 PM, Jani Nikula wrote:
On Wed, 03 Jun 2026, Imre Deak <[email protected]> wrote:
On Wed, Jun 03, 2026 at 11:30:04AM +0300, Jani Nikula wrote:
On Tue, 02 Jun 2026, Dibin Moolakadan Subrahmanian
<[email protected]> wrote:
+static u32 dc_state_ro_mask(struct intel_display *display)
+{
+ if (DISPLAY_VER(display) >= 20)
+ return BIT(10) | BIT(11);
+ else if (DISPLAY_VER(display) >= 13 && !display->platform.dg2)
+ return BIT(10);
Register contents need to be defined next to the register definition.
But even so, the caller already has the mask we want to change, I
already suggested passing that in. What's wrong with that?
The mask used by the caller only contains the bits which the driver
changes. However I would like to know that writing all the other bits in
the register also take their effect, reflected by the read-back after the
write.
Fair enough. The first comment still stands, let's not hardcode the bits
here inline.
Thank you Imre, Jani for confirming mask logic.
I will keep the mask logic as is for next version and add bit definitions
next to DC_STATE_EN register.
BR,
Jani.