Skip to content

configs: add CONFIG_LEDS_TRIGGER_PATTERN=y - #4789

Merged
pelwell merged 1 commit into
raspberrypi:rpi-5.10.yfrom
marcone:rpi-5.10.y
Jan 10, 2022
Merged

pelwell merged 1 commit into
raspberrypi:rpi-5.10.yfrom
marcone:rpi-5.10.y

Conversation

@marcone

@marcone marcone commented Dec 22, 2021

Copy link
Copy Markdown
Contributor

Enable the pattern led trigger.

Signed-off-by: Marco Nelissen marco.nelissen@gmail.com

@pelwell

pelwell commented Jan 6, 2022

Copy link
Copy Markdown
Contributor

You didn't use make ... savedefconfig, so the new config options are not in the natural place.

And do you have a good reason not to make the new trigger a loadable module, since it is the largest object file (bigger even than ledtrig-netdev, which is a module)?

@marcone

marcone commented Jan 6, 2022

Copy link
Copy Markdown
Contributor Author

You didn't use make ... savedefconfig, so the new config options are not in the natural place.

Sorry, first time contributor. Didn't know that was how it was supposed to be done.

And do you have a good reason not to make the new trigger a loadable module, since it is the largest object file (bigger even than ledtrig-netdev, which is a module)?

I looked at the other triggers that were modules, and figured they were modules because the things they were triggering on were either not present "out of the box" on every variant of Raspberry Pi (not everyone connects a camera, Raspberry Pi Zero doesn't have network unless you connect a USB dongle) or obsolete ("transient" seems to have been superseded by "oneshot").
Since the pattern trigger will work on any Raspberry Pi, I figured it was appropriate to include the pattern trigger in the kernel proper.

I didn't consider size to be a concern because there are currently 10 non-module triggers even though a Raspberry Pi has at most two onboard LEDs and so would be using at most 2 different triggers at a time. I figured that if size were a concern, all triggers would be modules.

@marcone

marcone commented Jan 10, 2022

Copy link
Copy Markdown
Contributor Author

I redid the changes with make ... savedefconfig.
I left it as ...=y for the reasons I mentioned above, but let me know if you want this as a loadable module instead.

@pelwell

pelwell commented Jan 10, 2022

Copy link
Copy Markdown
Contributor

No - I'd like it as a module, please. The pattern trigger appears to be unusable without user-space help to set up the pattern, so there's no reason for that user-space code to not also arrange for the module to be loaded.

Enable the pattern led trigger.

Signed-off-by: Marco Nelissen <marco.nelissen@gmail.com>
@marcone

marcone commented Jan 10, 2022

Copy link
Copy Markdown
Contributor Author

Makes sense. The pattern trigger pattern doesn't have a default pattern like e.g. timer and heartbeat do.
I've updated the change.

@pelwell
pelwell merged commit 54bf82c into raspberrypi:rpi-5.10.y Jan 10, 2022
popcornmix added a commit to raspberrypi/firmware that referenced this pull request Jan 13, 2022
kernel: arm: Fix custom rpi __memset32 and __memset64
See: raspberrypi/linux#4820

kernel: drm/vc4: Disable Gamma control on HVS5 due to issues writing the table
See: raspberrypi/linux#4825

kernel: drm/vc4: hdmi: Fix clock value used for validating hdmi modes
See: raspberrypi/linux#4826

kernel: overlays: Add vl805 overlay
See: https://forums.raspberrypi.com/viewtopic.php?t=326088

kernel: configs: add CONFIG_LEDS_TRIGGER_PATTERN=m
See: raspberrypi/linux#4789

kernel: Add overlay for Azoteq IQS550
See: raspberrypi/linux#4813

kernel: dtoverlays: Add backlight-gpio parameter to vc4-kms-dpi-generic
See: raspberrypi/linux#4815

kernel: bcm2835-v4l2-isp: Add missing lock initialization
See: raspberrypi/linux#4800

kernel: media: i2c: ov9281: Increase diff between VTS and max exposure
See: raspberrypi/linux#4807
popcornmix added a commit to raspberrypi/rpi-firmware that referenced this pull request Jan 13, 2022
kernel: arm: Fix custom rpi __memset32 and __memset64
See: raspberrypi/linux#4820

kernel: drm/vc4: Disable Gamma control on HVS5 due to issues writing the table
See: raspberrypi/linux#4825

kernel: drm/vc4: hdmi: Fix clock value used for validating hdmi modes
See: raspberrypi/linux#4826

kernel: overlays: Add vl805 overlay
See: https://forums.raspberrypi.com/viewtopic.php?t=326088

kernel: configs: add CONFIG_LEDS_TRIGGER_PATTERN=m
See: raspberrypi/linux#4789

kernel: Add overlay for Azoteq IQS550
See: raspberrypi/linux#4813

kernel: dtoverlays: Add backlight-gpio parameter to vc4-kms-dpi-generic
See: raspberrypi/linux#4815

kernel: bcm2835-v4l2-isp: Add missing lock initialization
See: raspberrypi/linux#4800

kernel: media: i2c: ov9281: Increase diff between VTS and max exposure
See: raspberrypi/linux#4807
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.

2 participants