-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Minor fixes and improvements #9655
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
base: main
Are you sure you want to change the base?
Changes from 9 commits
06745ae
7ea160b
da2bf72
c344610
94869e2
2f1f244
f399836
ad4387a
caaf54f
a4404cf
5a2b2fd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -443,6 +443,7 @@ CONFIG_GPIO_SYSFS=y | |
| CONFIG_GPIO_MPC8XXX=y | ||
| CONFIG_GPIO_SYSCON=y | ||
| CONFIG_GPIO_PCA953X=y | ||
| CONFIG_POWER_RESET_GPIO=y | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: # First, let's check if we have the DTS patch mentioned in the review
find . -name "*002-arm64-dts-Add-Mono-Gateway-DK-device-tree.patch" -o -name "*ls1046a*" | head -20Repository: armbian/build Length of output: 394 🏁 Script executed: # Check the current config file to understand the context
find . -name "linux-ls1046a-current.config" -type fRepository: armbian/build Length of output: 101 🏁 Script executed: # Search for POWER_RESET in any existing config files
rg "CONFIG_POWER_RESET" --type txtRepository: armbian/build Length of output: 39 🏁 Script executed: # Search for references to ARCH_LAYERSCAPE in the repo
rg "ARCH_LAYERSCAPE" --type txtRepository: armbian/build Length of output: 39 🏁 Script executed: # Check the DTS patch to see what it adds
cat -n patch/kernel/archive/ls1046a-6.12/002-arm64-dts-Add-Mono-Gateway-DK-device-tree.patch | sed -n '60,70p'Repository: armbian/build Length of output: 338 🏁 Script executed: # Check the config file around line 446
cat -n config/kernel/linux-ls1046a-current.config | sed -n '440,455p'Repository: armbian/build Length of output: 554 🏁 Script executed: # Look for any other references to POWER_RESET in patches or configs
rg "POWER_RESET" --type-list | head -5Repository: armbian/build Length of output: 446 🏁 Script executed: # Search in all files, not just txt
rg "POWER_RESET" 2>/dev/null | head -20Repository: armbian/build Length of output: 2643 🌐 Web query:
💡 Result: In Linux kernel 6.12, CONFIG_POWER_RESET_GPIO is the Kconfig option for the GPIO power-off driver (drivers/power/reset/gpio-poweroff.c), which toggles a GPIO pin to power off the board. It is located under the "Board level reset or power off" menu in drivers/power/reset/Kconfig. It depends on CONFIG_POWER_RESET (the menuconfig enabling the board-level poweroff/reset drivers) and CONFIG_OF_GPIO (for Device Tree GPIO support). Sources indicate this dependency structure has been consistent from kernels 3.8 through 6.19. Note: There is a separate CONFIG_POWER_RESET_GPIO_RESTART for GPIO-based restart (gpio-restart.c), and RESET_GPIO in drivers/reset/Kconfig (depends on GPIOLIB) for the generic reset controller framework, which is distinct from poweroff. Citations:
Add
🔧 Suggested config change+CONFIG_POWER_RESET=y
CONFIG_POWER_RESET_GPIO=y🤖 Prompt for AI Agents
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @tomazzaman can you run
This comment was marked as off-topic.
Sorry, something went wrong. |
||
| CONFIG_SENSORS_LM75=y | ||
| CONFIG_SENSORS_EMC2103=y | ||
| CONFIG_SENSORS_EMC2305=y | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.