native: DEBUG_FS + dynamic debug for pinctrl/gpio/max98357a
G7 still silent — InTC8:00 shows drv=jasperlake-pinctrl bound, but
/sys/bus/gpio/devices lists only an empty-label gpiochip0 and kmsg
has zero pinctrl messages at all. Two possibilities:
1. Probe returned early with an error that went to a dev_dbg that
our loglevel=3 suppresses.
2. MMIO mapping failed silently because ACPI _CRS didn't provide
the memory-resource region the driver expects.
Both are invisible without more kernel noise. Enable:
- CONFIG_DEBUG_FS=y + CONFIG_DEBUG_FS_ALLOW_ALL=y so /sys/kernel/
debug/gpio works
- CONFIG_DYNAMIC_DEBUG=y so we can flip per-module dev_dbg on
- kernel cmdline: loglevel=7 (drop `quiet`) + dyndbg="file drivers/
pinctrl/intel/* +p; file drivers/gpio/* +p; file sound/soc/codecs/
max98357a.c +p" so the next boot's kmsg.log has a complete trace
of pinctrl-jasperlake probe, gpiochip registration attempts, and
MAX98357A SD_MODE gpiod_get() call — including return value.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>