-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
leds: pca963x: Broken open-drain initialization #3274
Comments
A "Fixes: " tag is a good way to ensure it gets back-ported to stable branches, but in general we're happy to back-port any (working) commit into earlier kernels from the moment it gets merged into linux-next. |
Awesome, thanks a lot! I will follow up once it progresses further. |
Hi @pelwell, the patch landed on linux-next. Would it be possible for it to be incorporated here, so that it gets included in an upcoming Raspbian release? |
No problem - it's in rpi-4.19.y and rpi-5.4.y now. |
Awesome, thank you so much! |
kernel: leds: pca963x: Fix open-drain initialization See: raspberrypi/linux#3274 kernel: add BME680 to i2c-sensor overlay See: raspberrypi/linux#3400 kernel: Pisound: MIDI communication fixes for scaled down CPU See: raspberrypi/linux#3396 kernel: pinctrl: bcm2835: Change init order for gpio hogs See: https://www.raspberrypi.org/forums/viewtopic.php?f=107&t=260600 firmware: Revert mmal: Support 64 bit clients See: raspberrypi/userland#586 firmware: arm_dt/dtoverlay fixes for ARM side camera driver power control
kernel: leds: pca963x: Fix open-drain initialization See: raspberrypi/linux#3274 kernel: add BME680 to i2c-sensor overlay See: raspberrypi/linux#3400 kernel: Pisound: MIDI communication fixes for scaled down CPU See: raspberrypi/linux#3396 kernel: pinctrl: bcm2835: Change init order for gpio hogs See: https://www.raspberrypi.org/forums/viewtopic.php?f=107&t=260600 firmware: Revert mmal: Support 64 bit clients See: raspberrypi/userland#586 firmware: arm_dt/dtoverlay fixes for ARM side camera driver power control
When the pca963x driver is initialized in open-drain mode it does not set properly the OUTDRV setting (bit 2) of the Mode register 2. Instead of setting bit 2 to 0 the driver keeps it as 1.
The issue was introduced in bb29b9c ("leds: pca963x: Add bindings to invert polarity").
I have a small patch ready that fixes this and it looks like it should go into the mainline kernel first. I have a basic understanding of the principles in submitting patches for the mainline kernel, but I am struggling with the steps necessary upstreaming it, so that it gets on a Raspbian release sooner (not when Raspbian catches up with the mainline).
Will adding
Cc: [email protected]
in the sign-off area of the patch be enough for this?I will appreciate any advice on what is necessary to propagate the patch to the right place and proper way.
The text was updated successfully, but these errors were encountered: