Skip to content

drm/panel: st7701: Add missing bus_flags configuration for HyperPixel2.1 Round#7298

Open
Akkiesoft wants to merge 1 commit intoraspberrypi:rpi-6.12.yfrom
Akkiesoft:st7701_bus_flags
Open

drm/panel: st7701: Add missing bus_flags configuration for HyperPixel2.1 Round#7298
Akkiesoft wants to merge 1 commit intoraspberrypi:rpi-6.12.yfrom
Akkiesoft:st7701_bus_flags

Conversation

@Akkiesoft
Copy link
Copy Markdown
Contributor

Fix #7194.

Porting the bus_flags configuration from the kernel 6.6 code resolves the noise issue that was occurring with the Pimoroni HyperPixel 2.1 Round.

@@ -713,6 +715,9 @@ static int st7701_get_modes(struct drm_panel *panel,
*/
drm_connector_set_panel_orientation(connector, st7701->orientation);

if (st7701->desc->bus_flags)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this assignment conditional? And why is it not done earlier at the point you currently initialise it to zero?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I simply copied the implementation used in kernel 6.6, I don’t know why that was the case.
https://github.com/raspberrypi/linux/blame/rpi-6.6.y/drivers/gpu/drm/panel/panel-sitronix-st7701.c#L720

I thought this was to account for displays where bus_flags is not specified.
However, when I asked the AI, it seems that since bus_flags is automatically set to 0 when the structure is initialised, line 719 alone should suffice.
Is that correct?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have updated the code.

… 2.1 Round

When porting the code for the Pimoroni HyperPixel 2.1 Round
from Linux 6.6 to Linux 6.12, the bus_flags configuration was overlooked.
Porting bus_flags resolves the noise issues that were occurring.

Signed-off-by: Akira Ouchi <akkiesoft@marokun.net>
@pelwell
Copy link
Copy Markdown
Contributor

pelwell commented Apr 1, 2026

I'm happy with that if it works for you.

@Akkiesoft
Copy link
Copy Markdown
Contributor Author

That works for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Screen noise occurs on the PiZero2W and HyperPixel 2.1 Round environment in kernel 6.12.

2 participants