ID Workflow Result Correct Bug Created Started Finished Revision
0950c7bc assessment-security πŸ’₯ general protection fault in wacom_intuos_irq 2026/09/21 00:04 2026/09/21 00:04 2026/09/21 01:18 853b104b
Agent: prod-syz-agent-0
External Bug ID: ---

Inputs:
BaseBranch master
BaseCommit RC
BaseRepository git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
BugTitle general protection fault in wacom_intuos_irq
CrashLogID 6019138855632896
CrashReportID 5461708673384448
KernelCommit 518e5b794c06c0f0eb40df3e202274a66202c137
KernelConfig
Show (282282 bytes)
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86_64 syzkaller Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="gcc (Debian 14.2.0-19) 14.2.0"
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=140200
CONFIG_CLANG_VERSION=0
CONFIG_AS_IS_GNU=y
CONFIG_AS_VERSION=24400
CONFIG_LD_IS_BFD=y
CONFIG_LD_VERSION=24400
CONFIG_LLD_VERSION=0
CONFIG_RUSTC_VERSION=109600
CONFIG_RUST_IS_AVAILABLE=y
CONFIG_RUSTC_LLVM_VERSION=220102
CONFIG_RUSTC_LLVM_MAJOR_VERSION=22
CONFIG_CC_CAN_LINK=y
CONFIG_CC_HAS_ASM_GOTO_OUTPUT=y
CONFIG_CC_HAS_ASM_GOTO_TIED_OUTPUT=y
CONFIG_TOOLS_SUPPORT_RELR=y
CONFIG_CC_HAS_ASM_INLINE=y
CONFIG_CC_HAS_ASSUME=y
CONFIG_CC_HAS_NO_PROFILE_FN_ATTR=y
CONFIG_LD_CAN_USE_KEEP_IN_OVERLAY=y
CONFIG_RUSTC_HAS_SPAN_FILE=y
CONFIG_RUSTC_HAS_UNNECESSARY_TRANSMUTES=y
CONFIG_RUSTC_HAS_FILE_WITH_NUL=y
CONFIG_RUSTC_HAS_FILE_AS_C_STR=y
CONFIG_PAHOLE_VERSION=130
CONFIG_CONSTRUCTORS=y
CONFIG_IRQ_WORK=y
CONFIG_BUILDTIME_TABLE_SORT=y
CONFIG_THREAD_INFO_IN_TASK=y

#
# General setup
#
CONFIG_INIT_ENV_ARG_LIMIT=32
# CONFIG_COMPILE_TEST is not set
# CONFIG_WERROR is not set
CONFIG_LOCALVERSION=""
CONFIG_LOCALVERSION_AUTO=y
CONFIG_BUILD_SALT=""
CONFIG_HAVE_KERNEL_GZIP=y
CONFIG_HAVE_KERNEL_BZIP2=y
CONFIG_HAVE_KERNEL_LZMA=y
CONFIG_HAVE_KERNEL_XZ=y
CONFIG_HAVE_KERNEL_LZO=y
CONFIG_HAVE_KERNEL_LZ4=y
CONFIG_HAVE_KERNEL_ZSTD=y
CONFIG_KERNEL_GZIP=y
# CONFIG_KERNEL_BZIP2 is not set
# CONFIG_KERNEL_LZMA is not set
# CONFIG_KERNEL_XZ is not set
# CONFIG_KERNEL_LZO is not set
# CONFIG_KERNEL_LZ4 is not set
# CONFIG_KERNEL_ZSTD is not set
CONFIG_DEFAULT_INIT=""
CONFIG_DEFAULT_HOSTNAME="(none)"
CONFIG_SYSVIPC=y
CONFIG_SYSVIPC_SYSCTL=y
CONFIG_SYSVIPC_COMPAT=y
CONFIG_POSIX_MQUEUE=y
CONFIG_POSIX_MQUEUE_SYSCTL=y
CONFIG_WATCH_QUEUE=y
CONFIG_CROSS_MEMORY_ATTACH=y
CONFIG_AUDIT=y
CONFIG_HAVE_ARCH_AUDITSYSCALL=y
CONFIG_AUDITSYSCALL=y

#
# IRQ subsystem
#
CONFIG_GENERIC_IRQ_PROBE=y
CONFIG_GENERIC_IRQ_SHOW=y
CONFIG_GENERIC_IRQ_EFFECTIVE_AFF_MASK=y
CONFIG_GENERIC_PENDING_IRQ=y
CONFIG_GENERIC_IRQ_MIGRATION=y
CONFIG_HARDIRQS_SW_RESEND=y
CONFIG_IRQ_DOMAIN=y
CONFIG_IRQ_DOMAIN_HIERARCHY=y
CONFIG_GENERIC_MSI_IRQ=y
CONFIG_GENERIC_IRQ_MATRIX_ALLOCATOR=y
CONFIG_GENERIC_IRQ_RESERVATION_MODE=y
CONFIG_IRQ_FORCED_THREADING=y
CONFIG_SPARSE_IRQ=y
# CONFIG_GENERIC_IRQ_DEBUGFS is not set
# end of IRQ subsystem

CONFIG_CLOCKSOURCE_WATCHDOG=y
CONFIG_ARCH_CLOCKSOURCE_INIT=y
CONFIG_ARCH_WANTS_CLOCKSOURCE_READ_INLINE=y
CONFIG_GENERIC_CLOCKEVENTS=y
CONFIG_GENERIC_CLOCKEVENTS_BROADCAST=y
CONFIG_GENERIC_CLOCKEVENTS_BROADCAST_IDLE=y
CONFIG_GENERIC_CLOCKEVENTS_MIN_ADJUST=y
CONFIG_GENERIC_CLOCKEVENTS_COUPLED=y
CONFIG_GENERIC_CLOCKEVENTS_COUPLED_INLINE=y
CONFIG_GENERIC_CMOS_UPDATE=y
CONFIG_HRTIMER_REARM_DEFERRED=y
CONFIG_HAVE_POSIX_CPU_TIMERS_TASK_WORK=y
CONFIG_POSIX_CPU_TIMERS_TASK_WORK=y
CONFIG_CONTEXT_TRACKING=y
CONFIG_CONTEXT_TRACKING_IDLE=y

#
# Timers subsystem
#
CONFIG_TICK_ONESHOT=y
CONFIG_NO_HZ_COMMON=y
# CONFIG_HZ_PERIODIC is not set
CONFIG_NO_HZ_IDLE=y
# CONFIG_NO_HZ_FULL is not set
CONFIG_CONTEXT_TRACKING_USER=y
# CONFIG_CONTEXT_TRACKING_USER_FORCE is not set
CONFIG_NO_HZ=y
CONFIG_HIGH_RES_TIMERS=y
CONFIG_POSIX_AUX_CLOCKS=y
# end of Timers subsystem

CONFIG_BPF=y
CONFIG_HAVE_EBPF_JIT=y
CONFIG_ARCH_WANT_DEFAULT_BPF_JIT=y

#
# BPF subsystem
#
CONFIG_BPF_SYSCALL=y
CONFIG_BPF_JIT=y
# CONFIG_BPF_JIT_ALWAYS_ON is not set
CONFIG_BPF_JIT_DEFAULT_ON=y
# CONFIG_BPF_UNPRIV_DEFAULT_OFF is not set
CONFIG_BPF_PRELOAD=y
CONFIG_BPF_PRELOAD_UMD=y
CONFIG_BPF_LSM=y
# end of BPF subsystem

CONFIG_PREEMPT_BUILD=y
CONFIG_ARCH_HAS_PREEMPT_LAZY=y
CONFIG_PREEMPT=y
# CONFIG_PREEMPT_LAZY is not set
# CONFIG_PREEMPT_RT is not set
CONFIG_PREEMPT_COUNT=y
CONFIG_HAS_SEPARATE_PREEMPT_RESCHED_BITS=y
CONFIG_PREEMPTION=y
CONFIG_PREEMPT_DYNAMIC=y
CONFIG_SCHED_CORE=y

#
# CPU/Task time and stats accounting
#
CONFIG_VIRT_CPU_ACCOUNTING=y
# CONFIG_TICK_CPU_ACCOUNTING is not set
CONFIG_VIRT_CPU_ACCOUNTING_GEN=y
CONFIG_IRQ_TIME_ACCOUNTING=y
CONFIG_HAVE_SCHED_AVG_IRQ=y
CONFIG_BSD_PROCESS_ACCT=y
CONFIG_BSD_PROCESS_ACCT_V3=y
CONFIG_TASKSTATS=y
CONFIG_TASK_DELAY_ACCT=y
CONFIG_TASK_XACCT=y
CONFIG_TASK_IO_ACCOUNTING=y
CONFIG_PSI=y
# CONFIG_PSI_DEFAULT_DISABLED is not set
# end of CPU/Task time and stats accounting

CONFIG_CPU_ISOLATION=y

#
# RCU Subsystem
#
CONFIG_TREE_RCU=y
CONFIG_PREEMPT_RCU=y
# CONFIG_RCU_EXPERT is not set
CONFIG_TREE_SRCU=y
CONFIG_TASKS_RCU_GENERIC=y
CONFIG_NEED_TASKS_RCU=y
CONFIG_TASKS_RCU=y
CONFIG_TASKS_TRACE_RCU=y
CONFIG_RCU_STALL_COMMON=y
CONFIG_RCU_NEED_SEGCBLIST=y
# end of RCU Subsystem

CONFIG_IKCONFIG=y
CONFIG_IKCONFIG_PROC=y
# CONFIG_IKHEADERS is not set
CONFIG_LOG_BUF_SHIFT=18
CONFIG_LOG_CPU_MAX_BUF_SHIFT=12
# CONFIG_PRINTK_INDEX is not set
CONFIG_HAVE_UNSTABLE_SCHED_CLOCK=y

#
# Scheduler features
#
# CONFIG_UCLAMP_TASK is not set
# CONFIG_SCHED_PROXY_EXEC is not set
# end of Scheduler features

CONFIG_ARCH_HAS_PTE_PROTNONE=y
CONFIG_ARCH_SUPPORTS_NUMA_BALANCING=y
CONFIG_ARCH_WANT_BATCHED_UNMAP_TLB_FLUSH=y
CONFIG_CC_HAS_INT128=y
CONFIG_CC_IMPLICIT_FALLTHROUGH="-Wimplicit-fallthrough=5"
CONFIG_CC_MS_EXTENSIONS="-fms-extensions"
CONFIG_GCC10_NO_ARRAY_BOUNDS=y
CONFIG_CC_NO_ARRAY_BOUNDS=y
CONFIG_GCC_NO_STRINGOP_OVERFLOW=y
CONFIG_CC_NO_STRINGOP_OVERFLOW=y
CONFIG_ARCH_SUPPORTS_INT128=y
CONFIG_NUMA_BALANCING=y
CONFIG_SCHED_CACHE=y
CONFIG_NUMA_BALANCING_DEFAULT_ENABLED=y
CONFIG_SLAB_OBJ_EXT=y
CONFIG_CGROUPS=y
CONFIG_PAGE_COUNTER=y
# CONFIG_CGROUP_FAVOR_DYNMODS is not set
CONFIG_MEMCG=y
CONFIG_MEMCG_V1=y
CONFIG_BLK_CGROUP=y
CONFIG_CGROUP_WRITEBACK=y
CONFIG_CGROUP_SCHED=y
CONFIG_GROUP_SCHED_WEIGHT=y
CONFIG_GROUP_SCHED_BANDWIDTH=y
CONFIG_FAIR_GROUP_SCHED=y
CONFIG_CFS_BANDWIDTH=y
# CONFIG_RT_GROUP_SCHED is not set
CONFIG_SCHED_MM_CID=y
CONFIG_CGROUP_PIDS=y
CONFIG_CGROUP_RDMA=y
# CONFIG_CGROUP_DMEM is not set
CONFIG_CGROUP_FREEZER=y
CONFIG_CGROUP_HUGETLB=y
CONFIG_CPUSETS=y
# CONFIG_CPUSETS_V1 is not set
CONFIG_CGROUP_DEVICE=y
CONFIG_CGROUP_CPUACCT=y
CONFIG_CGROUP_PERF=y
# CONFIG_CGROUP_BPF is not set
CONFIG_CGROUP_MISC=y
CONFIG_CGROUP_DEBUG=y
CONFIG_SOCK_CGROUP_DATA=y
CONFIG_NAMESPACES=y
CONFIG_UTS_NS=y
CONFIG_TIME_NS=y
CONFIG_TIME_NS_VDSO=y
CONFIG_IPC_NS=y
CONFIG_USER_NS=y
CONFIG_PID_NS=y
CONFIG_NET_NS=y
CONFIG_CHECKPOINT_RESTORE=y
# CONFIG_SCHED_AUTOGROUP is not set
CONFIG_RELAY=y
CONFIG_BLK_DEV_INITRD=y
CONFIG_INITRAMFS_SOURCE=""
CONFIG_RD_GZIP=y
CONFIG_RD_BZIP2=y
CONFIG_RD_LZMA=y
CONFIG_RD_XZ=y
CONFIG_RD_LZO=y
CONFIG_RD_LZ4=y
CONFIG_RD_ZSTD=y
# CONFIG_BOOT_CONFIG is not set
CONFIG_ARCH_SUPPORTS_CMDLINE_FROM_BOOTCONFIG=y
CONFIG_CMDLINE_LOG_WRAP_IDEAL_LEN=1021
CONFIG_INITRAMFS_PRESERVE_MTIME=y
CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE=y
# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set
CONFIG_LD_ORPHAN_WARN=y
CONFIG_LD_ORPHAN_WARN_LEVEL="warn"
CONFIG_HAVE_UID16=y
CONFIG_SYSCTL_EXCEPTION_TRACE=y
CONFIG_SYSFS_SYSCALL=y
CONFIG_HAVE_PCSPKR_PLATFORM=y
CONFIG_EXPERT=y
CONFIG_UID16=y
CONFIG_MULTIUSER=y
CONFIG_SGETMASK_SYSCALL=y
CONFIG_FHANDLE=y
CONFIG_POSIX_TIMERS=y
CONFIG_PRINTK=y
CONFIG_BUG=y
CONFIG_ELF_CORE=y
CONFIG_PCSPKR_PLATFORM=y
# CONFIG_BASE_SMALL is not set
CONFIG_FUTEX=y
CONFIG_FUTEX_PI=y
CONFIG_FUTEX_PRIVATE_HASH=y
CONFIG_FUTEX_MPOL=y
CONFIG_HAVE_FUTEX_ROBUST_UNLOCK=y
CONFIG_FUTEX_ROBUST_UNLOCK=y
CONFIG_EPOLL=y
CONFIG_SIGNALFD=y
CONFIG_TIMERFD=y
CONFIG_EVENTFD=y
CONFIG_SHMEM=y
CONFIG_AIO=y
CONFIG_IO_URING=y
CONFIG_IO_URING_MOCK_FILE=y
CONFIG_ADVISE_SYSCALLS=y
CONFIG_MEMBARRIER=y
CONFIG_KCMP=y
CONFIG_RSEQ=y
CONFIG_RSEQ_SLICE_EXTENSION=y
# CONFIG_RSEQ_STATS is not set
# CONFIG_RSEQ_DEBUG_DEFAULT_ENABLE is not set
CONFIG_CACHESTAT_SYSCALL=y
CONFIG_KALLSYMS=y
# CONFIG_KALLSYMS_SELFTEST is not set
CONFIG_KALLSYMS_ALL=y
CONFIG_ARCH_HAS_MEMBARRIER_SYNC_CORE=y
CONFIG_ARCH_SUPPORTS_MSEAL_SYSTEM_MAPPINGS=y
CONFIG_HAVE_PERF_EVENTS=y
CONFIG_GUEST_PERF_EVENTS=y
CONFIG_PERF_GUEST_MEDIATED_PMU=y

#
# Kernel Performance Events And Counters
#
CONFIG_PERF_EVENTS=y
# CONFIG_DEBUG_PERF_USE_VMALLOC is not set
# end of Kernel Performance Events And Counters

CONFIG_SYSTEM_DATA_VERIFICATION=y
CONFIG_PROFILING=y
CONFIG_TRACEPOINTS=y

#
# Kexec and crash features
#
CONFIG_CRASH_RESERVE=y
CONFIG_VMCORE_INFO=y
CONFIG_KEXEC_CORE=y
CONFIG_KEXEC=y
# CONFIG_KEXEC_FILE is not set
# CONFIG_KEXEC_JUMP is not set
CONFIG_CRASH_DUMP=y
CONFIG_CRASH_HOTPLUG=y
CONFIG_CRASH_MAX_MEMORY_RANGES=8192
# end of Kexec and crash features

#
# Live Update and Kexec HandOver
#
# CONFIG_KEXEC_HANDOVER is not set
# end of Live Update and Kexec HandOver
# end of General setup

CONFIG_64BIT=y
CONFIG_X86_64=y
CONFIG_X86=y
CONFIG_INSTRUCTION_DECODER=y
CONFIG_OUTPUT_FORMAT="elf64-x86-64"
CONFIG_LOCKDEP_SUPPORT=y
CONFIG_STACKTRACE_SUPPORT=y
CONFIG_MMU=y
CONFIG_ARCH_MMAP_RND_BITS_MIN=28
CONFIG_ARCH_MMAP_RND_BITS_MAX=32
CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MIN=8
CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MAX=16
CONFIG_GENERIC_ISA_DMA=y
CONFIG_GENERIC_CSUM=y
CONFIG_GENERIC_BUG=y
CONFIG_GENERIC_BUG_RELATIVE_POINTERS=y
CONFIG_ARCH_MAY_HAVE_PC_FDC=y
CONFIG_GENERIC_CALIBRATE_DELAY=y
CONFIG_ARCH_HAS_CPU_RELAX=y
CONFIG_ARCH_HIBERNATION_POSSIBLE=y
CONFIG_ARCH_SUSPEND_POSSIBLE=y
CONFIG_AUDIT_ARCH=y
CONFIG_KASAN_SHADOW_OFFSET=0xdffffc0000000000
CONFIG_HAVE_INTEL_TXT=y
CONFIG_ARCH_SUPPORTS_UPROBES=y
CONFIG_FIX_EARLYCON_MEM=y
CONFIG_PGTABLE_LEVELS=5

#
# Processor type and features
#
CONFIG_SMP=y
CONFIG_X86_X2APIC=y
# CONFIG_X86_POSTED_MSI is not set
CONFIG_X86_MPPARSE=y
# CONFIG_X86_CPU_RESCTRL is not set
CONFIG_X86_FRED=y
CONFIG_X86_EXTENDED_PLATFORM=y
# CONFIG_X86_NUMACHIP is not set
# CONFIG_X86_VSMP is not set
# CONFIG_X86_INTEL_MID is not set
# CONFIG_X86_GOLDFISH is not set
# CONFIG_X86_INTEL_LPSS is not set
# CONFIG_X86_AMD_PLATFORM_DEVICE is not set
CONFIG_IOSF_MBI=y
# CONFIG_IOSF_MBI_DEBUG is not set
CONFIG_X86_SUPPORTS_MEMORY_FAILURE=y
CONFIG_SCHED_OMIT_FRAME_POINTER=y
CONFIG_HYPERVISOR_GUEST=y
CONFIG_PARAVIRT=y
CONFIG_PARAVIRT_SPINLOCKS=y
CONFIG_X86_HV_CALLBACK_VECTOR=y
# CONFIG_XEN is not set
CONFIG_KVM_GUEST=y
CONFIG_ARCH_CPUIDLE_HALTPOLL=y
CONFIG_PVH=y
# CONFIG_PARAVIRT_TIME_ACCOUNTING is not set
CONFIG_PARAVIRT_CLOCK=y
# CONFIG_JAILHOUSE_GUEST is not set
# CONFIG_ACRN_GUEST is not set
# CONFIG_BHYVE_GUEST is not set
CONFIG_CC_HAS_MARCH_NATIVE=y
# CONFIG_X86_NATIVE_CPU is not set
CONFIG_X86_INTERNODE_CACHE_SHIFT=6
CONFIG_X86_L1_CACHE_SHIFT=6
CONFIG_X86_TSC=y
CONFIG_X86_HAVE_PAE=y
CONFIG_X86_CX8=y
CONFIG_X86_CMOV=y
CONFIG_X86_MINIMUM_CPU_FAMILY=64
CONFIG_X86_DEBUGCTLMSR=y
CONFIG_IA32_FEAT_CTL=y
CONFIG_X86_VMX_FEATURE_NAMES=y
CONFIG_PROCESSOR_SELECT=y
CONFIG_CPU_SUP_INTEL=y
CONFIG_CPU_SUP_AMD=y
# CONFIG_CPU_SUP_HYGON is not set
# CONFIG_CPU_SUP_CENTAUR is not set
# CONFIG_CPU_SUP_ZHAOXIN is not set
CONFIG_BROADCAST_TLB_FLUSH=y
CONFIG_HPET_TIMER=y
CONFIG_HPET_EMULATE_RTC=y
CONFIG_DMI=y
# CONFIG_GART_IOMMU is not set
CONFIG_BOOT_VESA_SUPPORT=y
# CONFIG_MAXSMP is not set
CONFIG_NR_CPUS_RANGE_BEGIN=2
CONFIG_NR_CPUS_RANGE_END=512
CONFIG_NR_CPUS_DEFAULT=64
CONFIG_NR_CPUS=8
CONFIG_SCHED_MC_PRIO=y
CONFIG_X86_LOCAL_APIC=y
CONFIG_ACPI_MADT_WAKEUP=y
CONFIG_X86_IO_APIC=y
CONFIG_X86_REROUTE_FOR_BROKEN_BOOT_IRQS=y
CONFIG_X86_MCE=y
# CONFIG_X86_MCELOG_LEGACY is not set
CONFIG_X86_MCE_INTEL=y
CONFIG_X86_MCE_AMD=y
CONFIG_X86_MCE_THRESHOLD=y
# CONFIG_X86_MCE_INJECT is not set

#
# Performance monitoring
#
CONFIG_PERF_EVENTS_INTEL_UNCORE=y
CONFIG_PERF_EVENTS_INTEL_RAPL=y
CONFIG_PERF_EVENTS_INTEL_CSTATE=y
# CONFIG_PERF_EVENTS_AMD_POWER is not set
CONFIG_PERF_EVENTS_AMD_UNCORE=y
# CONFIG_PERF_EVENTS_AMD_BRS is not set
# end of Performance monitoring

CONFIG_X86_16BIT=y
CONFIG_X86_ESPFIX64=y
CONFIG_X86_VSYSCALL_EMULATION=y
CONFIG_X86_IOPL_IOPERM=y
CONFIG_MICROCODE=y
# CONFIG_MICROCODE_LATE_LOADING is not set
# CONFIG_MICROCODE_DBG is not set
CONFIG_X86_MSR=y
CONFIG_X86_CPUID=y
CONFIG_X86_DIRECT_GBPAGES=y
# CONFIG_X86_CPA_STATISTICS is not set
CONFIG_NUMA=y
CONFIG_AMD_NUMA=y
CONFIG_X86_64_ACPI_NUMA=y
CONFIG_NODES_SHIFT=6
CONFIG_ARCH_SPARSEMEM_ENABLE=y
CONFIG_ARCH_SPARSEMEM_DEFAULT=y
# CONFIG_ARCH_MEMORY_PROBE is not set
CONFIG_ARCH_PROC_KCORE_TEXT=y
CONFIG_ILLEGAL_POINTER_VALUE=0xdead000000000000
# CONFIG_X86_PMEM_LEGACY is not set
# CONFIG_X86_CHECK_BIOS_CORRUPTION is not set
CONFIG_MTRR=y
# CONFIG_MTRR_SANITIZER is not set
CONFIG_X86_PAT=y
CONFIG_X86_UMIP=y
CONFIG_CC_HAS_IBT=y
CONFIG_X86_CET=y
CONFIG_X86_KERNEL_IBT=y
CONFIG_X86_INTEL_MEMORY_PROTECTION_KEYS=y
CONFIG_ARCH_PKEY_BITS=4
# CONFIG_X86_INTEL_TSX_MODE_OFF is not set
CONFIG_X86_INTEL_TSX_MODE_ON=y
# CONFIG_X86_INTEL_TSX_MODE_AUTO is not set
CONFIG_X86_SGX=y
CONFIG_X86_USER_SHADOW_STACK=y
# CONFIG_INTEL_TDX_HOST is not set
# CONFIG_EFI is not set
CONFIG_HZ_100=y
# CONFIG_HZ_250 is not set
# CONFIG_HZ_300 is not set
# CONFIG_HZ_1000 is not set
CONFIG_HZ=100
CONFIG_SCHED_HRTICK=y
CONFIG_ARCH_SUPPORTS_KEXEC=y
CONFIG_ARCH_SUPPORTS_KEXEC_FILE=y
CONFIG_ARCH_SUPPORTS_KEXEC_PURGATORY=y
CONFIG_ARCH_SUPPORTS_KEXEC_SIG=y
CONFIG_ARCH_SUPPORTS_KEXEC_SIG_FORCE=y
CONFIG_ARCH_SUPPORTS_KEXEC_BZIMAGE_VERIFY_SIG=y
CONFIG_ARCH_SUPPORTS_KEXEC_JUMP=y
CONFIG_ARCH_SUPPORTS_KEXEC_HANDOVER=y
CONFIG_ARCH_SUPPORTS_CRASH_DUMP=y
CONFIG_ARCH_DEFAULT_CRASH_DUMP=y
CONFIG_ARCH_SUPPORTS_CRASH_HOTPLUG=y
CONFIG_ARCH_HAS_GENERIC_CRASHKERNEL_RESERVATION=y
CONFIG_PHYSICAL_START=0x1000000
# CONFIG_RELOCATABLE is not set
CONFIG_PHYSICAL_ALIGN=0x200000
CONFIG_HOTPLUG_CPU=y
# CONFIG_COMPAT_VDSO is not set
CONFIG_LEGACY_VSYSCALL_XONLY=y
# CONFIG_LEGACY_VSYSCALL_NONE is not set
CONFIG_CMDLINE_BOOL=y
CONFIG_CMDLINE="earlyprintk=serial net.ifnames=0 sysctl.kernel.hung_task_all_cpu_backtrace=1 ima_policy=tcb nf-conntrack-ftp.ports=20000 nf-conntrack-tftp.ports=20000 nf-conntrack-sip.ports=20000 nf-conntrack-irc.ports=20000 nf-conntrack-sane.ports=20000 binder.debug_mask=0 rcupdate.rcu_expedited=1 rcupdate.rcu_cpu_stall_cputime=1 no_hash_pointers page_owner=on sysctl.vm.nr_hugepages=4 sysctl.vm.nr_overcommit_hugepages=4 secretmem.enable=1 sysctl.max_rcu_stall_to_panic=1 msr.allow_writes=off coredump_filter=0xffff root=/dev/sda console=ttyS0 vsyscall=native numa=fake=2 kvm-intel.nested=1 spec_store_bypass_disable=prctl nopcid vivid.n_devs=64 vivid.multiplanar=1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2 netrom.nr_ndevs=32 rose.rose_ndevs=32 smp.csd_lock_timeout=100000 watchdog_thresh=55 workqueue.watchdog_thresh=140 sysctl.net.core.netdev_unregister_timeout_secs=140 dummy_hcd.num=32 max_loop=32 nbds_max=32 comedi.comedi_num_legacy_minors=4 panic_on_warn=1"
# CONFIG_CMDLINE_OVERRIDE is not set
CONFIG_MODIFY_LDT_SYSCALL=y
# CONFIG_STRICT_SIGALTSTACK_SIZE is not set
CONFIG_HAVE_LIVEPATCH=y
CONFIG_HAVE_KLP_BUILD=y
CONFIG_X86_BUS_LOCK_DETECT=y
# end of Processor type and features

CONFIG_CC_HAS_NAMED_AS=y
CONFIG_CC_HAS_NAMED_AS_FIXED_SANITIZERS=y
CONFIG_USE_X86_SEG_SUPPORT=y
CONFIG_CC_HAS_SLS=y
CONFIG_CC_HAS_RETURN_THUNK=y
CONFIG_CC_HAS_ENTRY_PADDING=y
CONFIG_FUNCTION_PADDING_CFI=11
CONFIG_FUNCTION_PADDING_BYTES=16
CONFIG_CALL_PADDING=y
CONFIG_HAVE_CALL_THUNKS=y
CONFIG_CALL_THUNKS=y
CONFIG_CPU_MITIGATIONS=y
CONFIG_MITIGATION_PAGE_TABLE_ISOLATION=y
CONFIG_MITIGATION_RETPOLINE=y
CONFIG_MITIGATION_RETHUNK=y
CONFIG_MITIGATION_UNRET_ENTRY=y
CONFIG_MITIGATION_CALL_DEPTH_TRACKING=y
# CONFIG_CALL_THUNKS_DEBUG is not set
CONFIG_MITIGATION_IBPB_ENTRY=y
CONFIG_MITIGATION_IBRS_ENTRY=y
CONFIG_MITIGATION_SRSO=y
# CONFIG_MITIGATION_SLS is not set
CONFIG_MITIGATION_GDS=y
CONFIG_MITIGATION_RFDS=y
CONFIG_MITIGATION_SPECTRE_BHI=y
CONFIG_MITIGATION_MDS=y
CONFIG_MITIGATION_TAA=y
CONFIG_MITIGATION_MMIO_STALE_DATA=y
CONFIG_MITIGATION_L1TF=y
CONFIG_MITIGATION_RETBLEED=y
CONFIG_MITIGATION_SPECTRE_V1=y
CONFIG_MITIGATION_SPECTRE_V2=y
CONFIG_MITIGATION_SRBDS=y
CONFIG_MITIGATION_SSB=y
CONFIG_MITIGATION_ITS=y
CONFIG_MITIGATION_TSA=y
# CONFIG_MITIGATION_VMSCAPE is not set
CONFIG_ARCH_HAS_ADD_PAGES=y

#
# Power management and ACPI options
#
CONFIG_ARCH_HIBERNATION_HEADER=y
CONFIG_SUSPEND=y
CONFIG_SUSPEND_FREEZER=y
# CONFIG_SUSPEND_SKIP_SYNC is not set
CONFIG_HIBERNATE_CALLBACKS=y
CONFIG_HIBERNATION=y
CONFIG_HIBERNATION_SNAPSHOT_DEV=y
CONFIG_HIBERNATION_COMP_LZO=y
# CONFIG_HIBERNATION_COMP_LZ4 is not set
CONFIG_HIBERNATION_DEF_COMP="lzo"
CONFIG_PM_STD_PARTITION=""
CONFIG_PM_SLEEP=y
CONFIG_PM_SLEEP_SMP=y
# CONFIG_PM_AUTOSLEEP is not set
# CONFIG_PM_USERSPACE_AUTOSLEEP is not set
# CONFIG_PM_WAKELOCKS is not set
# CONFIG_PM_QOS_CPU_SYSTEM_WAKEUP is not set
CONFIG_PM=y
CONFIG_PM_DEBUG=y
# CONFIG_PM_ADVANCED_DEBUG is not set
# CONFIG_PM_TEST_SUSPEND is not set
CONFIG_PM_SLEEP_DEBUG=y
# CONFIG_DPM_WATCHDOG is not set
CONFIG_PM_TRACE=y
CONFIG_PM_TRACE_RTC=y
CONFIG_PM_CLK=y
# CONFIG_WQ_POWER_EFFICIENT_DEFAULT is not set
# CONFIG_ENERGY_MODEL is not set
CONFIG_ARCH_SUPPORTS_ACPI=y
CONFIG_ACPI=y
CONFIG_ACPI_LEGACY_TABLES_LOOKUP=y
CONFIG_ARCH_MIGHT_HAVE_ACPI_PDC=y
CONFIG_ACPI_SYSTEM_POWER_STATES_SUPPORT=y
CONFIG_ACPI_THERMAL_LIB=y
# CONFIG_ACPI_DEBUGGER is not set
CONFIG_ACPI_SPCR_TABLE=y
# CONFIG_ACPI_FPDT is not set
CONFIG_ACPI_LPIT=y
CONFIG_ACPI_SLEEP=y
CONFIG_ACPI_REV_OVERRIDE_POSSIBLE=y
CONFIG_ACPI_EC=y
# CONFIG_ACPI_EC_DEBUGFS is not set
CONFIG_ACPI_AC=y
CONFIG_ACPI_BATTERY=y
CONFIG_ACPI_BUTTON=y
CONFIG_ACPI_VIDEO=y
CONFIG_ACPI_FAN=y
# CONFIG_ACPI_TAD is not set
CONFIG_ACPI_DOCK=y
CONFIG_ACPI_CPU_FREQ_PSS=y
CONFIG_ACPI_PROCESSOR_CSTATE=y
CONFIG_ACPI_PROCESSOR_IDLE=y
CONFIG_ACPI_CPPC_LIB=y
CONFIG_ACPI_PROCESSOR=y
CONFIG_ACPI_HOTPLUG_CPU=y
# CONFIG_ACPI_PROCESSOR_AGGREGATOR is not set
CONFIG_ACPI_THERMAL=y
CONFIG_ACPI_PLATFORM_PROFILE=y
CONFIG_ARCH_HAS_ACPI_TABLE_UPGRADE=y
CONFIG_ACPI_TABLE_UPGRADE=y
CONFIG_ACPI_DEBUG=y
# CONFIG_ACPI_PCI_SLOT is not set
CONFIG_ACPI_CONTAINER=y
# CONFIG_ACPI_HOTPLUG_MEMORY is not set
CONFIG_ACPI_HOTPLUG_IOAPIC=y
# CONFIG_ACPI_SBS is not set
# CONFIG_ACPI_HED is not set
# CONFIG_ACPI_REDUCED_HARDWARE_ONLY is not set
CONFIG_ACPI_NHLT=y
CONFIG_ACPI_NFIT=y
# CONFIG_NFIT_SECURITY_DEBUG is not set
CONFIG_ACPI_NUMA=y
# CONFIG_ACPI_HMAT is not set
CONFIG_HAVE_ACPI_APEI=y
CONFIG_HAVE_ACPI_APEI_NMI=y
# CONFIG_ACPI_APEI is not set
# CONFIG_ACPI_DPTF is not set
# CONFIG_ACPI_EXTLOG is not set
# CONFIG_ACPI_CONFIGFS is not set
# CONFIG_ACPI_PFRUT is not set
CONFIG_ACPI_PCC=y
# CONFIG_ACPI_FFH is not set
CONFIG_ACPI_MRRM=y
CONFIG_PMIC_OPREGION=y
CONFIG_BXT_WC_PMIC_OPREGION=y
# CONFIG_CHT_WC_PMIC_OPREGION is not set
CONFIG_X86_PM_TIMER=y

#
# CPU Frequency scaling
#
CONFIG_CPU_FREQ=y
CONFIG_CPU_FREQ_GOV_ATTR_SET=y
CONFIG_CPU_FREQ_GOV_COMMON=y
# CONFIG_CPU_FREQ_STAT is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE is not set
CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE=y
# CONFIG_CPU_FREQ_DEFAULT_GOV_SCHEDUTIL is not set
CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
# CONFIG_CPU_FREQ_GOV_POWERSAVE is not set
CONFIG_CPU_FREQ_GOV_USERSPACE=y
CONFIG_CPU_FREQ_GOV_ONDEMAND=y
# CONFIG_CPU_FREQ_GOV_CONSERVATIVE is not set
CONFIG_CPU_FREQ_GOV_SCHEDUTIL=y

#
# CPU frequency scaling drivers
#
# CONFIG_CPUFREQ_DT is not set
# CONFIG_CPUFREQ_DT_PLATDEV is not set
CONFIG_X86_INTEL_PSTATE=y
# CONFIG_X86_PCC_CPUFREQ is not set
CONFIG_X86_AMD_PSTATE=y
CONFIG_X86_AMD_PSTATE_DEFAULT_MODE=3
# CONFIG_X86_AMD_PSTATE_UT is not set
CONFIG_X86_ACPI_CPUFREQ=y
CONFIG_X86_ACPI_CPUFREQ_CPB=y
# CONFIG_X86_POWERNOW_K8 is not set
# CONFIG_X86_AMD_FREQ_SENSITIVITY is not set
# CONFIG_X86_SPEEDSTEP_CENTRINO is not set
# CONFIG_X86_P4_CLOCKMOD is not set

#
# shared options
#
CONFIG_CPUFREQ_ARCH_CUR_FREQ=y
# end of CPU Frequency scaling

#
# CPU Idle
#
CONFIG_CPU_IDLE=y
# CONFIG_CPU_IDLE_GOV_LADDER is not set
CONFIG_CPU_IDLE_GOV_MENU=y
# CONFIG_CPU_IDLE_GOV_TEO is not set
CONFIG_CPU_IDLE_GOV_HALTPOLL=y
CONFIG_HALTPOLL_CPUIDLE=y
# end of CPU Idle

CONFIG_INTEL_IDLE=y
# end of Power management and ACPI options

#
# Bus options (PCI etc.)
#
CONFIG_PCI_DIRECT=y
CONFIG_PCI_MMCONFIG=y
CONFIG_MMCONF_FAM10H=y
CONFIG_ISA_BUS=y
CONFIG_ISA_DMA_API=y
CONFIG_AMD_NB=y
CONFIG_AMD_NODE=y
# end of Bus options (PCI etc.)

#
# Binary Emulations
#
CONFIG_IA32_EMULATION=y
# CONFIG_IA32_EMULATION_DEFAULT_DISABLED is not set
CONFIG_X86_X32_ABI=y
CONFIG_COMPAT_32=y
CONFIG_COMPAT=y
CONFIG_COMPAT_FOR_U64_ALIGNMENT=y
# end of Binary Emulations

CONFIG_KVM_COMMON=y
CONFIG_HAVE_KVM_PFNCACHE=y
CONFIG_HAVE_KVM_IRQCHIP=y
CONFIG_HAVE_KVM_IRQ_ROUTING=y
CONFIG_HAVE_KVM_DIRTY_RING=y
CONFIG_HAVE_KVM_DIRTY_RING_TSO=y
CONFIG_HAVE_KVM_DIRTY_RING_ACQ_REL=y
CONFIG_KVM_MMIO=y
CONFIG_KVM_ASYNC_PF=y
CONFIG_HAVE_KVM_MSI=y
CONFIG_HAVE_KVM_READONLY_MEM=y
CONFIG_HAVE_KVM_CPU_RELAX_INTERCEPT=y
CONFIG_KVM_VFIO=y
CONFIG_KVM_GENERIC_DIRTYLOG_READ_PROTECT=y
CONFIG_KVM_GENERIC_PRE_FAULT_MEMORY=y
CONFIG_KVM_COMPAT=y
CONFIG_HAVE_KVM_IRQ_BYPASS=y
CONFIG_HAVE_KVM_NO_POLL=y
CONFIG_VIRT_XFER_TO_GUEST_WORK=y
CONFIG_HAVE_KVM_PM_NOTIFIER=y
CONFIG_KVM_GENERIC_HARDWARE_ENABLING=y
CONFIG_KVM_ELIDE_TLB_FLUSH_IF_YOUNG=y
CONFIG_KVM_MMU_LOCKLESS_AGING=y
CONFIG_KVM_GENERIC_MEMORY_ATTRIBUTES=y
CONFIG_KVM_GUEST_MEMFD=y
CONFIG_VIRTUALIZATION=y
CONFIG_KVM_X86=y
CONFIG_KVM=y
CONFIG_KVM_SW_PROTECTED_VM=y
CONFIG_KVM_INTEL=y
# CONFIG_KVM_INTEL_PROVE_VE is not set
CONFIG_X86_SGX_KVM=y
CONFIG_KVM_AMD=y
CONFIG_KVM_IOAPIC=y
CONFIG_KVM_SMM=y
CONFIG_KVM_HYPERV=y
CONFIG_KVM_XEN=y
CONFIG_KVM_PROVE_MMU=y
CONFIG_KVM_MAX_NR_VCPUS=1024
CONFIG_X86_REQUIRED_FEATURE_ALWAYS=y
CONFIG_X86_REQUIRED_FEATURE_NOPL=y
CONFIG_X86_REQUIRED_FEATURE_CX8=y
CONFIG_X86_REQUIRED_FEATURE_CMOV=y
CONFIG_X86_REQUIRED_FEATURE_CPUID=y
CONFIG_X86_REQUIRED_FEATURE_FPU=y
CONFIG_X86_REQUIRED_FEATURE_PAE=y
CONFIG_X86_REQUIRED_FEATURE_PSE=y
CONFIG_X86_REQUIRED_FEATURE_PGE=y
CONFIG_X86_REQUIRED_FEATURE_MSR=y
CONFIG_X86_REQUIRED_FEATURE_FXSR=y
CONFIG_X86_REQUIRED_FEATURE_XMM=y
CONFIG_X86_REQUIRED_FEATURE_XMM2=y
CONFIG_X86_REQUIRED_FEATURE_LM=y
CONFIG_X86_DISABLED_FEATURE_VME=y
CONFIG_X86_DISABLED_FEATURE_K6_MTRR=y
CONFIG_X86_DISABLED_FEATURE_CYRIX_ARR=y
CONFIG_X86_DISABLED_FEATURE_CENTAUR_MCR=y
CONFIG_X86_DISABLED_FEATURE_LAM=y
CONFIG_X86_DISABLED_FEATURE_XENPV=y
CONFIG_X86_DISABLED_FEATURE_TDX_GUEST=y
CONFIG_X86_DISABLED_FEATURE_SEV_SNP=y
CONFIG_AS_WRUSS=y
CONFIG_ARCH_CONFIGURES_CPU_MITIGATIONS=y

#
# General architecture-dependent options
#
CONFIG_HOTPLUG_SMT=y
CONFIG_ARCH_SUPPORTS_SCHED_SMT=y
CONFIG_ARCH_SUPPORTS_SCHED_CLUSTER=y
CONFIG_ARCH_SUPPORTS_SCHED_MC=y
CONFIG_SCHED_SMT=y
CONFIG_SCHED_CLUSTER=y
CONFIG_SCHED_MC=y
CONFIG_HOTPLUG_CORE_SYNC=y
CONFIG_HOTPLUG_CORE_SYNC_DEAD=y
CONFIG_HOTPLUG_CORE_SYNC_FULL=y
CONFIG_HOTPLUG_SPLIT_STARTUP=y
CONFIG_HOTPLUG_PARALLEL=y
CONFIG_GENERIC_IRQ_ENTRY=y
CONFIG_GENERIC_SYSCALL=y
CONFIG_GENERIC_ENTRY=y
CONFIG_ARCH_SUPPORTS_SYSCALL_USER_DISPATCH=y
CONFIG_SYSCALL_USER_DISPATCH=y
# CONFIG_KPROBES is not set
CONFIG_JUMP_LABEL=y
# CONFIG_STATIC_KEYS_SELFTEST is not set
# CONFIG_STATIC_CALL_SELFTEST is not set
CONFIG_UPROBES=y
CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS=y
CONFIG_ARCH_USE_BUILTIN_BSWAP=y
CONFIG_USER_RETURN_NOTIFIER=y
CONFIG_HAVE_IOREMAP_PROT=y
CONFIG_HAVE_KPROBES=y
CONFIG_HAVE_KRETPROBES=y
CONFIG_HAVE_OPTPROBES=y
CONFIG_HAVE_KPROBES_ON_FTRACE=y
CONFIG_ARCH_CORRECT_STACKTRACE_ON_KRETPROBE=y
CONFIG_HAVE_FUNCTION_ERROR_INJECTION=y
CONFIG_HAVE_NMI=y
CONFIG_TRACE_IRQFLAGS_SUPPORT=y
CONFIG_TRACE_IRQFLAGS_NMI_SUPPORT=y
CONFIG_HAVE_ARCH_TRACEHOOK=y
CONFIG_HAVE_DMA_CONTIGUOUS=y
CONFIG_GENERIC_SMP_IDLE_THREAD=y
CONFIG_ARCH_HAS_FORTIFY_SOURCE=y
CONFIG_ARCH_HAS_SET_MEMORY=y
CONFIG_ARCH_HAS_SET_DIRECT_MAP=y
CONFIG_ARCH_HAS_CPU_FINALIZE_INIT=y
CONFIG_ARCH_HAS_DELAY_TIMER=y
CONFIG_ARCH_HAS_CPU_PASID=y
CONFIG_HAVE_ARCH_THREAD_STRUCT_WHITELIST=y
CONFIG_ARCH_WANTS_DYNAMIC_TASK_STRUCT=y
CONFIG_ARCH_WANTS_NO_INSTR=y
CONFIG_ARCH_MEMORY_ORDER_TSO=y
CONFIG_HAVE_ASM_MODVERSIONS=y
CONFIG_HAVE_REGS_AND_STACK_ACCESS_API=y
CONFIG_HAVE_RSEQ=y
CONFIG_HAVE_RUST=y
CONFIG_HAVE_FUNCTION_ARG_ACCESS_API=y
CONFIG_HAVE_HW_BREAKPOINT=y
CONFIG_HAVE_MIXED_BREAKPOINTS_REGS=y
CONFIG_HAVE_USER_RETURN_NOTIFIER=y
CONFIG_HAVE_PERF_EVENTS_NMI=y
CONFIG_HAVE_HARDLOCKUP_DETECTOR_PERF=y
CONFIG_UNWIND_USER=y
CONFIG_HAVE_UNWIND_USER_FP=y
CONFIG_HAVE_PERF_REGS=y
CONFIG_HAVE_PERF_USER_STACK_DUMP=y
CONFIG_HAVE_ARCH_JUMP_LABEL=y
CONFIG_HAVE_ARCH_JUMP_LABEL_RELATIVE=y
CONFIG_MMU_GATHER_TABLE_FREE=y
CONFIG_MMU_GATHER_RCU_TABLE_FREE=y
CONFIG_MMU_GATHER_MERGE_VMAS=y
CONFIG_ARCH_WANT_IRQS_OFF_ACTIVATE_MM=y
CONFIG_MMU_LAZY_TLB_REFCOUNT=y
CONFIG_ARCH_HAVE_NMI_SAFE_CMPXCHG=y
CONFIG_ARCH_HAVE_EXTRA_ELF_NOTES=y
CONFIG_ARCH_HAS_NMI_SAFE_THIS_CPU_OPS=y
CONFIG_HAVE_ALIGNED_STRUCT_PAGE=y
CONFIG_HAVE_CMPXCHG_LOCAL=y
CONFIG_HAVE_CMPXCHG_DOUBLE=y
CONFIG_ARCH_WANT_COMPAT_IPC_PARSE_VERSION=y
CONFIG_ARCH_WANT_OLD_COMPAT_IPC=y
CONFIG_HAVE_ARCH_SECCOMP=y
CONFIG_HAVE_ARCH_SECCOMP_FILTER=y
CONFIG_SECCOMP=y
CONFIG_SECCOMP_FILTER=y
# CONFIG_SECCOMP_CACHE_DEBUG is not set
CONFIG_HAVE_ARCH_KSTACK_ERASE=y
CONFIG_HAVE_STACKPROTECTOR=y
CONFIG_STACKPROTECTOR=y
CONFIG_STACKPROTECTOR_STRONG=y
CONFIG_ARCH_SUPPORTS_LTO_CLANG=y
CONFIG_ARCH_SUPPORTS_LTO_CLANG_THIN=y
CONFIG_LTO_NONE=y
CONFIG_ARCH_SUPPORTS_CFI=y
CONFIG_HAVE_ARCH_WITHIN_STACK_FRAMES=y
CONFIG_HAVE_CONTEXT_TRACKING_USER=y
CONFIG_HAVE_CONTEXT_TRACKING_USER_OFFSTACK=y
CONFIG_HAVE_VIRT_CPU_ACCOUNTING_GEN=y
CONFIG_HAVE_IRQ_TIME_ACCOUNTING=y
CONFIG_HAVE_PV_STEAL_CLOCK_GEN=y
CONFIG_HAVE_MOVE_PUD=y
CONFIG_HAVE_MOVE_PMD=y
CONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE=y
CONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE_PUD=y
CONFIG_HAVE_ARCH_HUGE_VMAP=y
CONFIG_HAVE_ARCH_HUGE_VMALLOC=y
CONFIG_ARCH_WANT_HUGE_PMD_SHARE=y
CONFIG_ARCH_WANT_PMD_MKWRITE=y
CONFIG_HAVE_ARCH_SOFT_DIRTY=y
CONFIG_HAVE_MOD_ARCH_SPECIFIC=y
CONFIG_MODULES_USE_ELF_RELA=y
CONFIG_ARCH_HAS_EXECMEM_ROX=y
CONFIG_HAVE_IRQ_EXIT_ON_IRQ_STACK=y
CONFIG_HAVE_SOFTIRQ_ON_OWN_STACK=y
CONFIG_SOFTIRQ_ON_OWN_STACK=y
CONFIG_ARCH_HAS_ELF_RANDOMIZE=y
CONFIG_HAVE_ARCH_MMAP_RND_BITS=y
CONFIG_HAVE_EXIT_THREAD=y
CONFIG_ARCH_MMAP_RND_BITS=28
CONFIG_HAVE_ARCH_MMAP_RND_COMPAT_BITS=y
CONFIG_ARCH_MMAP_RND_COMPAT_BITS=8
CONFIG_HAVE_ARCH_COMPAT_MMAP_BASES=y
CONFIG_HAVE_PAGE_SIZE_4KB=y
CONFIG_PAGE_SIZE_4KB=y
CONFIG_PAGE_SIZE_LESS_THAN_64KB=y
CONFIG_PAGE_SIZE_LESS_THAN_256KB=y
CONFIG_PAGE_SHIFT=12
CONFIG_HAVE_OBJTOOL=y
CONFIG_HAVE_JUMP_LABEL_HACK=y
CONFIG_HAVE_NOINSTR_HACK=y
CONFIG_HAVE_NOINSTR_VALIDATION=y
CONFIG_HAVE_UACCESS_VALIDATION=y
CONFIG_HAVE_STACK_VALIDATION=y
CONFIG_HAVE_RELIABLE_STACKTRACE=y
CONFIG_OLD_SIGSUSPEND3=y
CONFIG_COMPAT_OLD_SIGACTION=y
CONFIG_COMPAT_32BIT_TIME=y
CONFIG_ARCH_SUPPORTS_RT=y
CONFIG_HAVE_ARCH_VMAP_STACK=y
CONFIG_VMAP_STACK=y
CONFIG_HAVE_ARCH_RANDOMIZE_KSTACK_OFFSET=y
CONFIG_RANDOMIZE_KSTACK_OFFSET=y
# CONFIG_RANDOMIZE_KSTACK_OFFSET_DEFAULT is not set
CONFIG_ARCH_HAS_STRICT_KERNEL_RWX=y
CONFIG_STRICT_KERNEL_RWX=y
CONFIG_ARCH_HAS_STRICT_MODULE_RWX=y
CONFIG_STRICT_MODULE_RWX=y
CONFIG_HAVE_ARCH_PREL32_RELOCATIONS=y
# CONFIG_LOCK_EVENT_COUNTS is not set
CONFIG_ARCH_HAS_MEM_ENCRYPT=y
CONFIG_HAVE_STATIC_CALL=y
CONFIG_HAVE_STATIC_CALL_INLINE=y
CONFIG_HAVE_PREEMPT_DYNAMIC=y
CONFIG_HAVE_PREEMPT_DYNAMIC_CALL=y
CONFIG_ARCH_WANT_LD_ORPHAN_WARN=y
CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y
CONFIG_ARCH_SUPPORTS_PAGE_TABLE_CHECK=y
CONFIG_ARCH_HAS_ELFCORE_COMPAT=y
CONFIG_ARCH_HAS_PARANOID_L1D_FLUSH=y
CONFIG_DYNAMIC_SIGFRAME=y
CONFIG_HAVE_ARCH_NODE_DEV_GROUP=y
CONFIG_ARCH_HAS_HW_PTE_YOUNG=y
CONFIG_ARCH_HAS_NONLEAF_PMD_YOUNG=y
CONFIG_ARCH_HAS_KERNEL_FPU_SUPPORT=y
CONFIG_HAVE_GENERIC_TIF_BITS=y

#
# GCOV-based kernel profiling
#
# CONFIG_GCOV_KERNEL is not set
CONFIG_ARCH_HAS_GCOV_PROFILE_ALL=y
# end of GCOV-based kernel profiling

CONFIG_HAVE_GCC_PLUGINS=y
CONFIG_FUNCTION_ALIGNMENT_4B=y
CONFIG_FUNCTION_ALIGNMENT_16B=y
CONFIG_FUNCTION_ALIGNMENT=16
CONFIG_CC_HAS_MIN_FUNCTION_ALIGNMENT=y
CONFIG_CC_HAS_SANE_FUNCTION_ALIGNMENT=y
CONFIG_ARCH_HAS_CPU_ATTACK_VECTORS=y
# end of General architecture-dependent options

CONFIG_RT_MUTEXES=y
CONFIG_MODULE_SIG_FORMAT=y
CONFIG_MODULES=y
# CONFIG_MODULE_DEBUG is not set
# CONFIG_MODULE_FORCE_LOAD is not set
CONFIG_MODULE_UNLOAD=y
CONFIG_MODULE_FORCE_UNLOAD=y
# CONFIG_MODULE_UNLOAD_TAINT_TRACKING is not set
CONFIG_MODVERSIONS=y
# CONFIG_GENKSYMS is not set
CONFIG_GENDWARFKSYMS=y
CONFIG_ASM_MODVERSIONS=y
# CONFIG_EXTENDED_MODVERSIONS is not set
# CONFIG_BASIC_MODVERSIONS is not set
CONFIG_MODULE_SRCVERSION_ALL=y
CONFIG_MODULE_SIG=y
# CONFIG_MODULE_SIG_FORCE is not set
# CONFIG_MODULE_SIG_ALL is not set
CONFIG_MODULE_SIG_SHA256=y
# CONFIG_MODULE_SIG_SHA384 is not set
# CONFIG_MODULE_SIG_SHA512 is not set
# CONFIG_MODULE_SIG_SHA3_256 is not set
# CONFIG_MODULE_SIG_SHA3_384 is not set
# CONFIG_MODULE_SIG_SHA3_512 is not set
CONFIG_MODULE_SIG_HASH="sha256"
# CONFIG_MODULE_COMPRESS is not set
# CONFIG_MODULE_ALLOW_MISSING_NAMESPACE_IMPORTS is not set
CONFIG_MODPROBE_PATH="/sbin/modprobe"
# CONFIG_TRIM_UNUSED_KSYMS is not set
CONFIG_MODULES_TREE_LOOKUP=y
CONFIG_BLOCK=y
CONFIG_BLOCK_LEGACY_AUTOLOAD=y
CONFIG_BLK_RQ_ALLOC_TIME=y
CONFIG_BLK_CGROUP_RWSTAT=y
CONFIG_BLK_CGROUP_PUNT_BIO=y
CONFIG_BLK_DEV_BSG_COMMON=y
CONFIG_BLK_ICQ=y
CONFIG_BLK_DEV_BSGLIB=y
CONFIG_BLK_DEV_INTEGRITY=y
# CONFIG_BLK_DEV_WRITE_MOUNTED is not set
CONFIG_BLK_DEV_ZONED=y
CONFIG_BLK_DEV_THROTTLING=y
CONFIG_BLK_WBT=y
CONFIG_BLK_WBT_MQ=y
CONFIG_BLK_CGROUP_IOLATENCY=y
# CONFIG_BLK_CGROUP_FC_APPID is not set
CONFIG_BLK_CGROUP_IOCOST=y
CONFIG_BLK_CGROUP_IOPRIO=y
CONFIG_BLK_DEBUG_FS=y
# CONFIG_BLK_SED_OPAL is not set
CONFIG_BLK_INLINE_ENCRYPTION=y
CONFIG_BLK_INLINE_ENCRYPTION_FALLBACK=y

#
# Partition Types
#
CONFIG_PARTITION_ADVANCED=y
CONFIG_ACORN_PARTITION=y
CONFIG_ACORN_PARTITION_CUMANA=y
CONFIG_ACORN_PARTITION_EESOX=y
CONFIG_ACORN_PARTITION_ICS=y
CONFIG_ACORN_PARTITION_ADFS=y
CONFIG_ACORN_PARTITION_POWERTEC=y
CONFIG_ACORN_PARTITION_RISCIX=y
CONFIG_AIX_PARTITION=y
CONFIG_OSF_PARTITION=y
CONFIG_AMIGA_PARTITION=y
CONFIG_ATARI_PARTITION=y
CONFIG_MAC_PARTITION=y
CONFIG_MSDOS_PARTITION=y
CONFIG_BSD_DISKLABEL=y
CONFIG_MINIX_SUBPARTITION=y
CONFIG_SOLARIS_X86_PARTITION=y
CONFIG_UNIXWARE_DISKLABEL=y
CONFIG_LDM_PARTITION=y
# CONFIG_LDM_DEBUG is not set
CONFIG_SGI_PARTITION=y
CONFIG_ULTRIX_PARTITION=y
CONFIG_SUN_PARTITION=y
CONFIG_KARMA_PARTITION=y
CONFIG_EFI_PARTITION=y
CONFIG_SYSV68_PARTITION=y
CONFIG_CMDLINE_PARTITION=y
# CONFIG_OF_PARTITION is not set
# end of Partition Types

CONFIG_BLK_PM=y
CONFIG_BLOCK_HOLDER_DEPRECATED=y
CONFIG_BLK_MQ_STACKING=y
# CONFIG_BLK_ERROR_INJECTION is not set

#
# IO Schedulers
#
CONFIG_MQ_IOSCHED_DEADLINE=y
CONFIG_MQ_IOSCHED_KYBER=y
CONFIG_IOSCHED_BFQ=y
CONFIG_BFQ_GROUP_IOSCHED=y
CONFIG_BFQ_CGROUP_DEBUG=y
# end of IO Schedulers

CONFIG_PREEMPT_NOTIFIERS=y
CONFIG_PADATA=y
CONFIG_ASN1=y
CONFIG_UNINLINE_SPIN_UNLOCK=y
CONFIG_ARCH_SUPPORTS_ATOMIC_RMW=y
CONFIG_MUTEX_SPIN_ON_OWNER=y
CONFIG_RWSEM_SPIN_ON_OWNER=y
CONFIG_LOCK_SPIN_ON_OWNER=y
CONFIG_ARCH_USE_QUEUED_SPINLOCKS=y
CONFIG_QUEUED_SPINLOCKS=y
# CONFIG_QUEUED_SPINLOCKS_TRACE_CONTENDED_RELEASE is not set
CONFIG_ARCH_USE_QUEUED_RWLOCKS=y
CONFIG_QUEUED_RWLOCKS=y
CONFIG_ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE=y
CONFIG_ARCH_HAS_SYNC_CORE_BEFORE_USERMODE=y
CONFIG_ARCH_HAS_SYSCALL_WRAPPER=y
CONFIG_FREEZER=y

#
# Executable file formats
#
CONFIG_BINFMT_ELF=y
CONFIG_COMPAT_BINFMT_ELF=y
CONFIG_ELFCORE=y
CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS=y
CONFIG_BINFMT_SCRIPT=y
CONFIG_BINFMT_MISC=y
CONFIG_COREDUMP=y
# end of Executable file formats

#
# Memory Management options
#
CONFIG_SWAP=y
CONFIG_ZSWAP=y
CONFIG_ZSWAP_DEFAULT_ON=y
CONFIG_ZSWAP_SHRINKER_DEFAULT_ON=y
# CONFIG_ZSWAP_COMPRESSOR_DEFAULT_DEFLATE is not set
# CONFIG_ZSWAP_COMPRESSOR_DEFAULT_LZO is not set
CONFIG_ZSWAP_COMPRESSOR_DEFAULT_842=y
# CONFIG_ZSWAP_COMPRESSOR_DEFAULT_LZ4 is not set
# CONFIG_ZSWAP_COMPRESSOR_DEFAULT_LZ4HC is not set
# CONFIG_ZSWAP_COMPRESSOR_DEFAULT_ZSTD is not set
CONFIG_ZSWAP_COMPRESSOR_DEFAULT="842"
CONFIG_ZSMALLOC=y

#
# Zsmalloc allocator options
#

#
# Zsmalloc is a common backend allocator for zswap & zram
#
# CONFIG_ZSMALLOC_STAT is not set
CONFIG_ZSMALLOC_CHAIN_SIZE=8
# end of Zsmalloc allocator options

#
# Slab allocator options
#
CONFIG_SLUB=y
CONFIG_KVFREE_RCU_BATCHED=y
# CONFIG_SLUB_TINY is not set
CONFIG_SLAB_MERGE_DEFAULT=y
# CONFIG_SLAB_FREELIST_RANDOM is not set
# CONFIG_SLAB_FREELIST_HARDENED is not set
# CONFIG_SLAB_BUCKETS is not set
# CONFIG_SLUB_STATS is not set
# CONFIG_KMALLOC_PARTITION_CACHES is not set
# end of Slab allocator options

# CONFIG_SHUFFLE_PAGE_ALLOCATOR is not set
# CONFIG_COMPAT_BRK is not set
CONFIG_SPARSEMEM=y
CONFIG_SPARSEMEM_EXTREME=y
CONFIG_SPARSEMEM_VMEMMAP_ENABLE=y
CONFIG_SPARSEMEM_VMEMMAP=y
CONFIG_SPARSEMEM_VMEMMAP_PREINIT=y
CONFIG_ARCH_WANT_OPTIMIZE_DAX_VMEMMAP=y
CONFIG_ARCH_WANT_OPTIMIZE_HUGETLB_VMEMMAP=y
CONFIG_ARCH_WANT_HUGETLB_VMEMMAP_PREINIT=y
CONFIG_HAVE_GUP_FAST=y
CONFIG_NUMA_KEEP_MEMINFO=y
CONFIG_MEMORY_ISOLATION=y
CONFIG_EXCLUSIVE_SYSTEM_RAM=y
CONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=y
CONFIG_MEMORY_HOTPLUG=y
# CONFIG_MHP_DEFAULT_ONLINE_TYPE_OFFLINE is not set
CONFIG_MHP_DEFAULT_ONLINE_TYPE_ONLINE_AUTO=y
# CONFIG_MHP_DEFAULT_ONLINE_TYPE_ONLINE_KERNEL is not set
# CONFIG_MHP_DEFAULT_ONLINE_TYPE_ONLINE_MOVABLE is not set
CONFIG_MEMORY_HOTREMOVE=y
CONFIG_MHP_MEMMAP_ON_MEMORY=y
CONFIG_ARCH_MHP_MEMMAP_ON_MEMORY_ENABLE=y
CONFIG_SPLIT_PTE_PTLOCKS=y
CONFIG_ARCH_ENABLE_SPLIT_PMD_PTLOCK=y
CONFIG_SPLIT_PMD_PTLOCKS=y
CONFIG_BALLOON=y
# CONFIG_BALLOON_MIGRATION is not set
CONFIG_COMPACTION=y
CONFIG_COMPACT_UNEVICTABLE_DEFAULT=1
CONFIG_PAGE_REPORTING=y
CONFIG_NUMA_MIGRATION=y
CONFIG_MIGRATION=y
CONFIG_DEVICE_MIGRATION=y
CONFIG_ARCH_ENABLE_HUGEPAGE_MIGRATION=y
CONFIG_ARCH_HAS_PMD_SOFTLEAVES=y
CONFIG_CONTIG_ALLOC=y
CONFIG_PCP_BATCH_SCALE_MAX=5
CONFIG_PHYS_ADDR_T_64BIT=y
CONFIG_MMU_NOTIFIER=y
CONFIG_KSM=y
CONFIG_DEFAULT_MMAP_MIN_ADDR=4096
CONFIG_ARCH_SUPPORTS_MEMORY_FAILURE=y
# CONFIG_MEMORY_FAILURE is not set
CONFIG_ARCH_WANT_GENERAL_HUGETLB=y
CONFIG_ARCH_WANTS_THP_SWAP=y
# CONFIG_PERSISTENT_HUGE_ZERO_FOLIO is not set
CONFIG_MM_ID=y
CONFIG_TRANSPARENT_HUGEPAGE=y
# CONFIG_TRANSPARENT_HUGEPAGE_ALWAYS is not set
CONFIG_TRANSPARENT_HUGEPAGE_MADVISE=y
# CONFIG_TRANSPARENT_HUGEPAGE_NEVER is not set
# CONFIG_TRANSPARENT_HUGEPAGE_SHMEM_HUGE_NEVER is not set
# CONFIG_TRANSPARENT_HUGEPAGE_SHMEM_HUGE_ALWAYS is not set
# CONFIG_TRANSPARENT_HUGEPAGE_SHMEM_HUGE_WITHIN_SIZE is not set
CONFIG_TRANSPARENT_HUGEPAGE_SHMEM_HUGE_ADVISE=y
# CONFIG_TRANSPARENT_HUGEPAGE_TMPFS_HUGE_NEVER is not set
# CONFIG_TRANSPARENT_HUGEPAGE_TMPFS_HUGE_ALWAYS is not set
# CONFIG_TRANSPARENT_HUGEPAGE_TMPFS_HUGE_WITHIN_SIZE is not set
CONFIG_TRANSPARENT_HUGEPAGE_TMPFS_HUGE_ADVISE=y
CONFIG_THP_SWAP=y
# CONFIG_NO_PAGE_MAPCOUNT is not set
CONFIG_PAGE_MAPCOUNT=y
CONFIG_PGTABLE_HAS_HUGE_LEAVES=y
CONFIG_HAVE_GIGANTIC_FOLIOS=y
CONFIG_ASYNC_KERNEL_PGTABLE_FREE=y
CONFIG_ARCH_SUPPORTS_HUGE_PFNMAP=y
CONFIG_ARCH_SUPPORTS_PMD_PFNMAP=y
CONFIG_ARCH_SUPPORTS_PUD_PFNMAP=y
CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=y
CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=y
CONFIG_USE_PERCPU_NUMA_NODE_ID=y
CONFIG_HAVE_SETUP_PER_CPU_AREA=y
CONFIG_CMA=y
# CONFIG_CMA_DEBUGFS is not set
# CONFIG_CMA_SYSFS is not set
CONFIG_CMA_AREAS=20
CONFIG_PAGE_BLOCK_MAX_ORDER=10
CONFIG_MEM_SOFT_DIRTY=y
CONFIG_GENERIC_EARLY_IOREMAP=y
# CONFIG_DEFERRED_STRUCT_PAGE_INIT is not set
CONFIG_PAGE_IDLE_FLAG=y
# CONFIG_IDLE_PAGE_TRACKING is not set
CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y
CONFIG_ARCH_HAS_CURRENT_STACK_POINTER=y
CONFIG_ARCH_HAS_ZONE_DMA_SET=y
CONFIG_ZONE_DMA=y
CONFIG_ZONE_DMA32=y
CONFIG_ZONE_DEVICE=y
CONFIG_HMM_MIRROR=y
CONFIG_GET_FREE_REGION=y
CONFIG_DEVICE_PRIVATE=y
CONFIG_VMAP_PFN=y
CONFIG_ARCH_USES_HIGH_VMA_FLAGS=y
CONFIG_ARCH_HAS_PKEYS=y
CONFIG_ARCH_USES_PG_ARCH_2=y
CONFIG_VM_EVENT_COUNTERS=y
CONFIG_PERCPU_STATS=y
# CONFIG_GUP_TEST is not set
# CONFIG_DMAPOOL_TEST is not set
CONFIG_ARCH_HAS_PTE_SPECIAL=y
CONFIG_MAPPING_DIRTY_HELPERS=y
CONFIG_KMAP_LOCAL=y
CONFIG_MEMFD_CREATE=y
CONFIG_SECRETMEM=y
CONFIG_ANON_VMA_NAME=y
CONFIG_HAVE_ARCH_USERFAULTFD_WP=y
CONFIG_HAVE_ARCH_USERFAULTFD_MINOR=y
CONFIG_USERFAULTFD_RWP=y
CONFIG_USERFAULTFD=y
# CONFIG_PTE_MARKER_UFFD_WP is not set
CONFIG_LRU_GEN=y
CONFIG_LRU_GEN_ENABLED=y
# CONFIG_LRU_GEN_STATS is not set
CONFIG_LRU_GEN_WALKS_MMU=y
CONFIG_ARCH_SUPPORTS_PER_VMA_LOCK=y
CONFIG_PER_VMA_LOCK=y
CONFIG_LOCK_MM_AND_FIND_VMA=y
CONFIG_IOMMU_MM_DATA=y
CONFIG_EXECMEM=y
CONFIG_NUMA_MEMBLKS=y
CONFIG_NUMA_EMU=y
CONFIG_ARCH_HAS_USER_SHADOW_STACK=y
CONFIG_PT_RECLAIM=y

#
# Data Access Monitoring
#
CONFIG_DAMON=y
# CONFIG_DAMON_DEBUG_SANITY is not set
CONFIG_DAMON_VADDR=y
CONFIG_DAMON_PADDR=y
# CONFIG_DAMON_SYSFS is not set
CONFIG_DAMON_RECLAIM=y
# CONFIG_DAMON_LRU_SORT is not set
# CONFIG_DAMON_STAT is not set
# end of Data Access Monitoring
# end of Memory Management options

CONFIG_NET=y
CONFIG_WANT_COMPAT_NETLINK_MESSAGES=y
CONFIG_COMPAT_NETLINK_MESSAGES=y
CONFIG_NET_INGRESS=y
CONFIG_NET_EGRESS=y
CONFIG_NET_XGRESS=y
CONFIG_NET_REDIRECT=y
CONFIG_SKB_DECRYPTED=y
CONFIG_SKB_EXTENSIONS=y
CONFIG_NET_DEVMEM=y
CONFIG_NET_SHAPER=y
CONFIG_NET_CRC32C=y

#
# Networking options
#
CONFIG_PACKET=y
CONFIG_PACKET_DIAG=y
CONFIG_INET_PSP=y
CONFIG_UNIX=y
CONFIG_AF_UNIX_OOB=y
CONFIG_UNIX_DIAG=y
CONFIG_TLS=y
CONFIG_TLS_DEVICE=y
CONFIG_XFRM=y
CONFIG_XFRM_OFFLOAD=y
CONFIG_XFRM_ALGO=y
CONFIG_XFRM_USER=y
CONFIG_XFRM_USER_COMPAT=y
CONFIG_XFRM_INTERFACE=y
CONFIG_XFRM_SUB_POLICY=y
CONFIG_XFRM_MIGRATE=y
CONFIG_XFRM_STATISTICS=y
CONFIG_XFRM_AH=y
CONFIG_XFRM_ESP=y
CONFIG_XFRM_IPCOMP=y
CONFIG_NET_KEY=y
CONFIG_NET_KEY_MIGRATE=y
CONFIG_XFRM_IPTFS=y
CONFIG_XFRM_ESPINTCP=y
CONFIG_SMC=y
CONFIG_SMC_DIAG=y
# CONFIG_SMC_HS_CTRL_BPF is not set
CONFIG_DIBS=y
CONFIG_DIBS_LO=y
CONFIG_XDP_SOCKETS=y
CONFIG_XDP_SOCKETS_DIAG=y
CONFIG_NET_HANDSHAKE=y
CONFIG_INET=y
CONFIG_IP_MULTICAST=y
CONFIG_IP_ADVANCED_ROUTER=y
CONFIG_IP_FIB_TRIE_STATS=y
CONFIG_IP_MULTIPLE_TABLES=y
CONFIG_IP_ROUTE_MULTIPATH=y
CONFIG_IP_ROUTE_VERBOSE=y
CONFIG_IP_ROUTE_CLASSID=y
CONFIG_IP_PNP=y
CONFIG_IP_PNP_DHCP=y
CONFIG_IP_PNP_BOOTP=y
CONFIG_IP_PNP_RARP=y
CONFIG_NET_IPIP=y
CONFIG_NET_IPGRE_DEMUX=y
CONFIG_NET_IP_TUNNEL=y
CONFIG_NET_IPGRE=y
CONFIG_NET_IPGRE_BROADCAST=y
CONFIG_IP_MROUTE_COMMON=y
CONFIG_IP_MROUTE=y
CONFIG_IP_MROUTE_MULTIPLE_TABLES=y
CONFIG_IP_PIMSM_V1=y
CONFIG_IP_PIMSM_V2=y
CONFIG_SYN_COOKIES=y
CONFIG_NET_IPVTI=y
CONFIG_NET_UDP_TUNNEL=y
CONFIG_NET_FOU=y
CONFIG_NET_FOU_IP_TUNNELS=y
CONFIG_INET_AH=y
CONFIG_INET_ESP=y
CONFIG_INET_ESP_OFFLOAD=y
CONFIG_INET_ESPINTCP=y
CONFIG_INET_IPCOMP=y
CONFIG_INET_TABLE_PERTURB_ORDER=16
CONFIG_INET_XFRM_TUNNEL=y
CONFIG_INET_TUNNEL=y
CONFIG_INET_DIAG=y
CONFIG_INET_TCP_DIAG=y
CONFIG_INET_UDP_DIAG=y
CONFIG_INET_RAW_DIAG=y
CONFIG_INET_DIAG_DESTROY=y
CONFIG_TCP_CONG_ADVANCED=y
CONFIG_TCP_CONG_BIC=y
CONFIG_TCP_CONG_CUBIC=y
CONFIG_TCP_CONG_WESTWOOD=y
CONFIG_TCP_CONG_HTCP=y
CONFIG_TCP_CONG_HSTCP=y
CONFIG_TCP_CONG_HYBLA=y
CONFIG_TCP_CONG_VEGAS=y
CONFIG_TCP_CONG_NV=y
CONFIG_TCP_CONG_SCALABLE=y
CONFIG_TCP_CONG_LP=y
CONFIG_TCP_CONG_VENO=y
CONFIG_TCP_CONG_YEAH=y
CONFIG_TCP_CONG_ILLINOIS=y
CONFIG_TCP_CONG_DCTCP=y
CONFIG_TCP_CONG_CDG=y
CONFIG_TCP_CONG_BBR=y
# CONFIG_DEFAULT_BIC is not set
CONFIG_DEFAULT_CUBIC=y
# CONFIG_DEFAULT_HTCP is not set
# CONFIG_DEFAULT_HYBLA is not set
# CONFIG_DEFAULT_VEGAS is not set
# CONFIG_DEFAULT_VENO is not set
# CONFIG_DEFAULT_WESTWOOD is not set
# CONFIG_DEFAULT_DCTCP is not set
# CONFIG_DEFAULT_CDG is not set
# CONFIG_DEFAULT_BBR is not set
# CONFIG_DEFAULT_RENO is not set
CONFIG_DEFAULT_TCP_CONG="cubic"
# CONFIG_TCP_AO is not set
CONFIG_TCP_MD5SIG=y
CONFIG_IPV6=y
CONFIG_IPV6_ROUTER_PREF=y
CONFIG_IPV6_ROUTE_INFO=y
CONFIG_IPV6_OPTIMISTIC_DAD=y
CONFIG_INET6_AH=y
CONFIG_INET6_ESP=y
CONFIG_INET6_ESP_OFFLOAD=y
CONFIG_INET6_ESPINTCP=y
CONFIG_INET6_IPCOMP=y
CONFIG_IPV6_MIP6=y
CONFIG_IPV6_ILA=y
CONFIG_INET6_XFRM_TUNNEL=y
CONFIG_INET6_TUNNEL=y
CONFIG_IPV6_VTI=y
CONFIG_IPV6_SIT=y
CONFIG_IPV6_SIT_6RD=y
CONFIG_IPV6_NDISC_NODETYPE=y
CONFIG_IPV6_TUNNEL=y
CONFIG_IPV6_GRE=y
CONFIG_IPV6_FOU=y
CONFIG_IPV6_FOU_TUNNEL=y
CONFIG_IPV6_MULTIPLE_TABLES=y
CONFIG_IPV6_SUBTREES=y
CONFIG_IPV6_MROUTE=y
CONFIG_IPV6_MROUTE_MULTIPLE_TABLES=y
CONFIG_IPV6_PIMSM_V2=y
CONFIG_IPV6_SEG6_LWTUNNEL=y
CONFIG_IPV6_SEG6_HMAC=y
CONFIG_IPV6_SEG6_BPF=y
CONFIG_IPV6_RPL_LWTUNNEL=y
# CONFIG_IPV6_IOAM6_LWTUNNEL is not set
CONFIG_NETLABEL=y
CONFIG_MPTCP=y
CONFIG_INET_MPTCP_DIAG=y
CONFIG_MPTCP_IPV6=y
CONFIG_NETWORK_SECMARK=y
CONFIG_NET_PTP_CLASSIFY=y
# CONFIG_NETWORK_PHY_TIMESTAMPING is not set
CONFIG_NETFILTER=y
CONFIG_NETFILTER_ADVANCED=y
CONFIG_BRIDGE_NETFILTER=y

#
# Core Netfilter Configuration
#
CONFIG_NETFILTER_INGRESS=y
CONFIG_NETFILTER_EGRESS=y
CONFIG_NETFILTER_SKIP_EGRESS=y
CONFIG_NETFILTER_NETLINK=y
CONFIG_NETFILTER_FAMILY_BRIDGE=y
CONFIG_NETFILTER_FAMILY_ARP=y
CONFIG_NETFILTER_BPF_LINK=y
# CONFIG_NETFILTER_NETLINK_HOOK is not set
CONFIG_NETFILTER_NETLINK_ACCT=y
CONFIG_NETFILTER_NETLINK_QUEUE=y
CONFIG_NETFILTER_NETLINK_LOG=y
CONFIG_NETFILTER_NETLINK_OSF=y
CONFIG_NF_CONNTRACK=y
CONFIG_NF_LOG_SYSLOG=y
CONFIG_NETFILTER_CONNCOUNT=y
CONFIG_NF_CONNTRACK_MARK=y
CONFIG_NF_CONNTRACK_SECMARK=y
CONFIG_NF_CONNTRACK_ZONES=y
# CONFIG_NF_CONNTRACK_PROCFS is not set
CONFIG_NF_CONNTRACK_EVENTS=y
CONFIG_NF_CONNTRACK_TIMEOUT=y
CONFIG_NF_CONNTRACK_TIMESTAMP=y
CONFIG_NF_CONNTRACK_LABELS=y
CONFIG_NF_CONNTRACK_OVS=y
CONFIG_NF_CT_PROTO_GRE=y
CONFIG_NF_CT_PROTO_SCTP=y
CONFIG_NF_CONNTRACK_AMANDA=y
CONFIG_NF_CONNTRACK_FTP=y
CONFIG_NF_CONNTRACK_H323=y
CONFIG_NF_CONNTRACK_IRC=y
CONFIG_NF_CONNTRACK_BROADCAST=y
CONFIG_NF_CONNTRACK_NETBIOS_NS=y
CONFIG_NF_CONNTRACK_SNMP=y
CONFIG_NF_CONNTRACK_PPTP=y
CONFIG_NF_CONNTRACK_SANE=y
CONFIG_NF_CONNTRACK_SIP=y
CONFIG_NF_CONNTRACK_TFTP=y
CONFIG_NF_CT_NETLINK=y
CONFIG_NF_CT_NETLINK_TIMEOUT=y
CONFIG_NF_CT_NETLINK_HELPER=y
CONFIG_NETFILTER_NETLINK_GLUE_CT=y
CONFIG_NF_NAT=y
CONFIG_NF_NAT_AMANDA=y
CONFIG_NF_NAT_FTP=y
CONFIG_NF_NAT_IRC=y
CONFIG_NF_NAT_SIP=y
CONFIG_NF_NAT_TFTP=y
CONFIG_NF_NAT_REDIRECT=y
CONFIG_NF_NAT_MASQUERADE=y
CONFIG_NF_NAT_OVS=y
CONFIG_NETFILTER_SYNPROXY=y
CONFIG_NF_TABLES=y
CONFIG_NF_TABLES_INET=y
CONFIG_NF_TABLES_NETDEV=y
CONFIG_NFT_NUMGEN=y
CONFIG_NFT_CT=y
CONFIG_NFT_EXTHDR_DCCP=y
CONFIG_NFT_FLOW_OFFLOAD=y
CONFIG_NFT_CONNLIMIT=y
CONFIG_NFT_LOG=y
CONFIG_NFT_LIMIT=y
CONFIG_NFT_MASQ=y
CONFIG_NFT_REDIR=y
CONFIG_NFT_NAT=y
CONFIG_NFT_TUNNEL=y
CONFIG_NFT_QUEUE=y
CONFIG_NFT_QUOTA=y
CONFIG_NFT_REJECT=y
CONFIG_NFT_REJECT_INET=y
CONFIG_NFT_COMPAT=y
CONFIG_NFT_HASH=y
CONFIG_NFT_FIB=y
CONFIG_NFT_FIB_INET=y
CONFIG_NFT_XFRM=y
CONFIG_NFT_SOCKET=y
CONFIG_NFT_OSF=y
CONFIG_NFT_TPROXY=y
CONFIG_NFT_SYNPROXY=y
CONFIG_NF_DUP_NETDEV=y
CONFIG_NFT_DUP_NETDEV=y
CONFIG_NFT_FWD_NETDEV=y
CONFIG_NFT_FIB_NETDEV=y
CONFIG_NFT_REJECT_NETDEV=y
CONFIG_NF_FLOW_TABLE_INET=y
CONFIG_NF_FLOW_TABLE=y
# CONFIG_NF_FLOW_TABLE_PROCFS is not set
CONFIG_NETFILTER_XTABLES=y
CONFIG_NETFILTER_XTABLES_COMPAT=y
CONFIG_NETFILTER_XTABLES_LEGACY=y

#
# Xtables combined modules
#
CONFIG_NETFILTER_XT_MARK=y
CONFIG_NETFILTER_XT_CONNMARK=y
CONFIG_NETFILTER_XT_SET=y

#
# Xtables targets
#
CONFIG_NETFILTER_XT_TARGET_AUDIT=y
CONFIG_NETFILTER_XT_TARGET_CHECKSUM=y
CONFIG_NETFILTER_XT_TARGET_CLASSIFY=y
CONFIG_NETFILTER_XT_TARGET_CONNMARK=y
CONFIG_NETFILTER_XT_TARGET_CONNSECMARK=y
CONFIG_NETFILTER_XT_TARGET_CT=y
CONFIG_NETFILTER_XT_TARGET_DSCP=y
CONFIG_NETFILTER_XT_TARGET_HL=y
CONFIG_NETFILTER_XT_TARGET_HMARK=y
CONFIG_NETFILTER_XT_TARGET_IDLETIMER=y
CONFIG_NETFILTER_XT_TARGET_LED=y
CONFIG_NETFILTER_XT_TARGET_LOG=y
CONFIG_NETFILTER_XT_TARGET_MARK=y
CONFIG_NETFILTER_XT_NAT=y
CONFIG_NETFILTER_XT_TARGET_NETMAP=y
CONFIG_NETFILTER_XT_TARGET_NFLOG=y
CONFIG_NETFILTER_XT_TARGET_NFQUEUE=y
CONFIG_NETFILTER_XT_TARGET_NOTRACK=y
CONFIG_NETFILTER_XT_TARGET_RATEEST=y
CONFIG_NETFILTER_XT_TARGET_REDIRECT=y
CONFIG_NETFILTER_XT_TARGET_MASQUERADE=y
CONFIG_NETFILTER_XT_TARGET_TEE=y
CONFIG_NETFILTER_XT_TARGET_TPROXY=y
CONFIG_NETFILTER_XT_TARGET_TRACE=y
CONFIG_NETFILTER_XT_TARGET_SECMARK=y
CONFIG_NETFILTER_XT_TARGET_TCPMSS=y
CONFIG_NETFILTER_XT_TARGET_TCPOPTSTRIP=y

#
# Xtables matches
#
CONFIG_NETFILTER_XT_MATCH_ADDRTYPE=y
CONFIG_NETFILTER_XT_MATCH_BPF=y
CONFIG_NETFILTER_XT_MATCH_CGROUP=y
CONFIG_NETFILTER_XT_MATCH_CLUSTER=y
CONFIG_NETFILTER_XT_MATCH_COMMENT=y
CONFIG_NETFILTER_XT_MATCH_CONNBYTES=y
CONFIG_NETFILTER_XT_MATCH_CONNLABEL=y
CONFIG_NETFILTER_XT_MATCH_CONNLIMIT=y
CONFIG_NETFILTER_XT_MATCH_CONNMARK=y
CONFIG_NETFILTER_XT_MATCH_CONNTRACK=y
CONFIG_NETFILTER_XT_MATCH_CPU=y
CONFIG_NETFILTER_XT_MATCH_DCCP=y
CONFIG_NETFILTER_XT_MATCH_DEVGROUP=y
CONFIG_NETFILTER_XT_MATCH_DSCP=y
CONFIG_NETFILTER_XT_MATCH_ECN=y
CONFIG_NETFILTER_XT_MATCH_ESP=y
CONFIG_NETFILTER_XT_MATCH_HASHLIMIT=y
CONFIG_NETFILTER_XT_MATCH_HELPER=y
CONFIG_NETFILTER_XT_MATCH_HL=y
CONFIG_NETFILTER_XT_MATCH_IPCOMP=y
CONFIG_NETFILTER_XT_MATCH_IPRANGE=y
CONFIG_NETFILTER_XT_MATCH_IPVS=y
CONFIG_NETFILTER_XT_MATCH_L2TP=y
CONFIG_NETFILTER_XT_MATCH_LENGTH=y
CONFIG_NETFILTER_XT_MATCH_LIMIT=y
CONFIG_NETFILTER_XT_MATCH_MAC=y
CONFIG_NETFILTER_XT_MATCH_MARK=y
CONFIG_NETFILTER_XT_MATCH_MULTIPORT=y
CONFIG_NETFILTER_XT_MATCH_NFACCT=y
CONFIG_NETFILTER_XT_MATCH_OSF=y
CONFIG_NETFILTER_XT_MATCH_OWNER=y
CONFIG_NETFILTER_XT_MATCH_POLICY=y
CONFIG_NETFILTER_XT_MATCH_PHYSDEV=y
CONFIG_NETFILTER_XT_MATCH_PKTTYPE=y
CONFIG_NETFILTER_XT_MATCH_QUOTA=y
CONFIG_NETFILTER_XT_MATCH_RATEEST=y
CONFIG_NETFILTER_XT_MATCH_REALM=y
CONFIG_NETFILTER_XT_MATCH_RECENT=y
CONFIG_NETFILTER_XT_MATCH_SCTP=y
CONFIG_NETFILTER_XT_MATCH_SOCKET=y
CONFIG_NETFILTER_XT_MATCH_STATE=y
CONFIG_NETFILTER_XT_MATCH_STATISTIC=y
CONFIG_NETFILTER_XT_MATCH_STRING=y
CONFIG_NETFILTER_XT_MATCH_TCPMSS=y
CONFIG_NETFILTER_XT_MATCH_TIME=y
CONFIG_NETFILTER_XT_MATCH_U32=y
# end of Core Netfilter Configuration

CONFIG_IP_SET=y
CONFIG_IP_SET_MAX=256
CONFIG_IP_SET_BITMAP_IP=y
CONFIG_IP_SET_BITMAP_IPMAC=y
CONFIG_IP_SET_BITMAP_PORT=y
CONFIG_IP_SET_HASH_IP=y
CONFIG_IP_SET_HASH_IPMARK=y
CONFIG_IP_SET_HASH_IPPORT=y
CONFIG_IP_SET_HASH_IPPORTIP=y
CONFIG_IP_SET_HASH_IPPORTNET=y
CONFIG_IP_SET_HASH_IPMAC=y
CONFIG_IP_SET_HASH_MAC=y
CONFIG_IP_SET_HASH_NETPORTNET=y
CONFIG_IP_SET_HASH_NET=y
CONFIG_IP_SET_HASH_NETNET=y
CONFIG_IP_SET_HASH_NETPORT=y
CONFIG_IP_SET_HASH_NETIFACE=y
CONFIG_IP_SET_LIST_SET=y
CONFIG_IP_VS=y
CONFIG_IP_VS_IPV6=y
# CONFIG_IP_VS_DEBUG is not set
CONFIG_IP_VS_TAB_BITS=12

#
# IPVS transport protocol load balancing support
#
CONFIG_IP_VS_PROTO_TCP=y
CONFIG_IP_VS_PROTO_UDP=y
CONFIG_IP_VS_PROTO_AH_ESP=y
CONFIG_IP_VS_PROTO_ESP=y
CONFIG_IP_VS_PROTO_AH=y
CONFIG_IP_VS_PROTO_SCTP=y

#
# IPVS scheduler
#
CONFIG_IP_VS_RR=y
CONFIG_IP_VS_WRR=y
CONFIG_IP_VS_LC=y
CONFIG_IP_VS_WLC=y
CONFIG_IP_VS_FO=y
CONFIG_IP_VS_OVF=y
CONFIG_IP_VS_LBLC=y
CONFIG_IP_VS_LBLCR=y
CONFIG_IP_VS_DH=y
CONFIG_IP_VS_SH=y
CONFIG_IP_VS_MH=y
CONFIG_IP_VS_SED=y
CONFIG_IP_VS_NQ=y
CONFIG_IP_VS_TWOS=y

#
# IPVS SH scheduler
#
CONFIG_IP_VS_SH_TAB_BITS=8

#
# IPVS MH scheduler
#
CONFIG_IP_VS_MH_TAB_INDEX=12

#
# IPVS application helper
#
CONFIG_IP_VS_FTP=y
CONFIG_IP_VS_NFCT=y
CONFIG_IP_VS_PE_SIP=y

#
# IP: Netfilter Configuration
#
CONFIG_NF_DEFRAG_IPV4=y
CONFIG_IP_NF_IPTABLES_LEGACY=y
CONFIG_NF_SOCKET_IPV4=y
CONFIG_NF_TPROXY_IPV4=y
CONFIG_NF_TABLES_IPV4=y
CONFIG_NFT_REJECT_IPV4=y
CONFIG_NFT_DUP_IPV4=y
CONFIG_NFT_FIB_IPV4=y
CONFIG_NF_TABLES_ARP=y
CONFIG_NF_DUP_IPV4=y
CONFIG_NF_LOG_ARP=y
CONFIG_NF_LOG_IPV4=y
CONFIG_NF_REJECT_IPV4=y
CONFIG_NF_NAT_SNMP_BASIC=y
CONFIG_NF_NAT_PPTP=y
CONFIG_NF_NAT_H323=y
CONFIG_IP_NF_IPTABLES=y
CONFIG_IP_NF_MATCH_AH=y
CONFIG_IP_NF_MATCH_ECN=y
CONFIG_IP_NF_MATCH_RPFILTER=y
CONFIG_IP_NF_MATCH_TTL=y
CONFIG_IP_NF_FILTER=y
CONFIG_IP_NF_TARGET_REJECT=y
CONFIG_IP_NF_TARGET_SYNPROXY=y
CONFIG_IP_NF_NAT=y
CONFIG_IP_NF_TARGET_MASQUERADE=y
CONFIG_IP_NF_TARGET_NETMAP=y
CONFIG_IP_NF_TARGET_REDIRECT=y
CONFIG_IP_NF_MANGLE=y
CONFIG_IP_NF_TARGET_ECN=y
CONFIG_IP_NF_TARGET_TTL=y
CONFIG_IP_NF_RAW=y
CONFIG_IP_NF_SECURITY=y
CONFIG_IP_NF_ARPTABLES=y
CONFIG_NFT_COMPAT_ARP=y
CONFIG_IP_NF_ARPFILTER=y
CONFIG_IP_NF_ARP_MANGLE=y
# end of IP: Netfilter Configuration

#
# IPv6: Netfilter Configuration
#
CONFIG_IP6_NF_IPTABLES_LEGACY=y
CONFIG_NF_SOCKET_IPV6=y
CONFIG_NF_TPROXY_IPV6=y
CONFIG_NF_TABLES_IPV6=y
CONFIG_NFT_REJECT_IPV6=y
CONFIG_NFT_DUP_IPV6=y
CONFIG_NFT_FIB_IPV6=y
CONFIG_NF_DUP_IPV6=y
CONFIG_NF_REJECT_IPV6=y
CONFIG_NF_LOG_IPV6=y
CONFIG_IP6_NF_IPTABLES=y
CONFIG_IP6_NF_MATCH_AH=y
CONFIG_IP6_NF_MATCH_EUI64=y
CONFIG_IP6_NF_MATCH_FRAG=y
CONFIG_IP6_NF_MATCH_OPTS=y
CONFIG_IP6_NF_MATCH_HL=y
CONFIG_IP6_NF_MATCH_IPV6HEADER=y
CONFIG_IP6_NF_MATCH_MH=y
CONFIG_IP6_NF_MATCH_RPFILTER=y
CONFIG_IP6_NF_MATCH_RT=y
CONFIG_IP6_NF_MATCH_SRH=y
CONFIG_IP6_NF_TARGET_HL=y
CONFIG_IP6_NF_FILTER=y
CONFIG_IP6_NF_TARGET_REJECT=y
CONFIG_IP6_NF_TARGET_SYNPROXY=y
CONFIG_IP6_NF_MANGLE=y
CONFIG_IP6_NF_RAW=y
CONFIG_IP6_NF_SECURITY=y
CONFIG_IP6_NF_NAT=y
CONFIG_IP6_NF_TARGET_MASQUERADE=y
CONFIG_IP6_NF_TARGET_NPT=y
# end of IPv6: Netfilter Configuration

CONFIG_NF_DEFRAG_IPV6=y
CONFIG_NF_TABLES_BRIDGE=y
CONFIG_NFT_BRIDGE_META=y
CONFIG_NFT_BRIDGE_REJECT=y
CONFIG_NF_CONNTRACK_BRIDGE=y
CONFIG_BRIDGE_NF_EBTABLES_LEGACY=y
CONFIG_BRIDGE_NF_EBTABLES=y
CONFIG_BRIDGE_EBT_BROUTE=y
CONFIG_BRIDGE_EBT_T_FILTER=y
CONFIG_BRIDGE_EBT_T_NAT=y
CONFIG_BRIDGE_EBT_802_3=y
CONFIG_BRIDGE_EBT_AMONG=y
CONFIG_BRIDGE_EBT_ARP=y
CONFIG_BRIDGE_EBT_IP=y
CONFIG_BRIDGE_EBT_IP6=y
CONFIG_BRIDGE_EBT_LIMIT=y
CONFIG_BRIDGE_EBT_MARK=y
CONFIG_BRIDGE_EBT_PKTTYPE=y
CONFIG_BRIDGE_EBT_STP=y
CONFIG_BRIDGE_EBT_VLAN=y
CONFIG_BRIDGE_EBT_ARPREPLY=y
CONFIG_BRIDGE_EBT_DNAT=y
CONFIG_BRIDGE_EBT_MARK_T=y
CONFIG_BRIDGE_EBT_REDIRECT=y
CONFIG_BRIDGE_EBT_SNAT=y
CONFIG_BRIDGE_EBT_LOG=y
CONFIG_BRIDGE_EBT_NFLOG=y
CONFIG_IP_SCTP=y
# CONFIG_SCTP_DBG_OBJCNT is not set
CONFIG_SCTP_DEFAULT_COOKIE_HMAC_SHA256=y
# CONFIG_SCTP_DEFAULT_COOKIE_HMAC_NONE is not set
CONFIG_INET_SCTP_DIAG=y
CONFIG_RDS=y
CONFIG_RDS_RDMA=y
CONFIG_RDS_TCP=y
# CONFIG_RDS_DEBUG is not set
CONFIG_TIPC=y
CONFIG_TIPC_MEDIA_IB=y
CONFIG_TIPC_MEDIA_UDP=y
CONFIG_TIPC_CRYPTO=y
CONFIG_TIPC_DIAG=y
CONFIG_ATM=y
CONFIG_ATM_BR2684=y
# CONFIG_ATM_BR2684_IPFILTER is not set
CONFIG_L2TP=y
# CONFIG_L2TP_DEBUGFS is not set
CONFIG_L2TP_V3=y
CONFIG_L2TP_IP=y
CONFIG_L2TP_ETH=y
CONFIG_STP=y
CONFIG_GARP=y
CONFIG_MRP=y
CONFIG_BRIDGE=y
CONFIG_BRIDGE_IGMP_SNOOPING=y
CONFIG_BRIDGE_VLAN_FILTERING=y
CONFIG_BRIDGE_MRP=y
CONFIG_BRIDGE_CFM=y
CONFIG_NET_DSA=y
# CONFIG_NET_DSA_TAG_NONE is not set
# CONFIG_NET_DSA_TAG_AR9331 is not set
CONFIG_NET_DSA_TAG_BRCM_COMMON=y
CONFIG_NET_DSA_TAG_BRCM=y
# CONFIG_NET_DSA_TAG_BRCM_LEGACY is not set
# CONFIG_NET_DSA_TAG_BRCM_LEGACY_FCS is not set
CONFIG_NET_DSA_TAG_BRCM_PREPEND=y
# CONFIG_NET_DSA_TAG_HELLCREEK is not set
# CONFIG_NET_DSA_TAG_GSWIP is not set
# CONFIG_NET_DSA_TAG_DSA is not set
# CONFIG_NET_DSA_TAG_EDSA is not set
# CONFIG_NET_DSA_TAG_MT7628 is not set
CONFIG_NET_DSA_TAG_MTK=y
# CONFIG_NET_DSA_TAG_MXL_862XX is not set
# CONFIG_NET_DSA_TAG_MXL_GSW1XX is not set
# CONFIG_NET_DSA_TAG_KSZ is not set
# CONFIG_NET_DSA_TAG_NETC is not set
# CONFIG_NET_DSA_TAG_OCELOT is not set
# CONFIG_NET_DSA_TAG_OCELOT_8021Q is not set
CONFIG_NET_DSA_TAG_QCA=y
CONFIG_NET_DSA_TAG_RTL4_A=y
# CONFIG_NET_DSA_TAG_RTL8_4 is not set
# CONFIG_NET_DSA_TAG_RZN1_A5PSW is not set
# CONFIG_NET_DSA_TAG_LAN9303 is not set
# CONFIG_NET_DSA_TAG_SJA1105 is not set
# CONFIG_NET_DSA_TAG_TRAILER is not set
# CONFIG_NET_DSA_TAG_VSC73XX_8021Q is not set
# CONFIG_NET_DSA_TAG_XRS700X is not set
# CONFIG_NET_DSA_TAG_YT921X is not set
CONFIG_VLAN_8021Q=y
CONFIG_VLAN_8021Q_GVRP=y
CONFIG_VLAN_8021Q_MVRP=y
CONFIG_LLC=y
CONFIG_LLC2=y
CONFIG_X25=y
CONFIG_LAPB=y
CONFIG_PHONET=y
CONFIG_6LOWPAN=y
# CONFIG_6LOWPAN_DEBUGFS is not set
CONFIG_6LOWPAN_NHC=y
CONFIG_6LOWPAN_NHC_DEST=y
CONFIG_6LOWPAN_NHC_FRAGMENT=y
CONFIG_6LOWPAN_NHC_HOP=y
CONFIG_6LOWPAN_NHC_IPV6=y
CONFIG_6LOWPAN_NHC_MOBILITY=y
CONFIG_6LOWPAN_NHC_ROUTING=y
CONFIG_6LOWPAN_NHC_UDP=y
CONFIG_6LOWPAN_GHC_EXT_HDR_HOP=y
CONFIG_6LOWPAN_GHC_UDP=y
CONFIG_6LOWPAN_GHC_ICMPV6=y
CONFIG_6LOWPAN_GHC_EXT_HDR_DEST=y
CONFIG_6LOWPAN_GHC_EXT_HDR_FRAG=y
CONFIG_6LOWPAN_GHC_EXT_HDR_ROUTE=y
CONFIG_IEEE802154=y
CONFIG_IEEE802154_NL802154_EXPERIMENTAL=y
CONFIG_IEEE802154_SOCKET=y
CONFIG_IEEE802154_6LOWPAN=y
CONFIG_MAC802154=y
CONFIG_NET_SCHED=y

#
# Queueing/Scheduling
#
CONFIG_NET_SCH_HTB=y
CONFIG_NET_SCH_HFSC=y
CONFIG_NET_SCH_PRIO=y
CONFIG_NET_SCH_MULTIQ=y
CONFIG_NET_SCH_RED=y
CONFIG_NET_SCH_SFB=y
CONFIG_NET_SCH_SFQ=y
CONFIG_NET_SCH_TEQL=y
CONFIG_NET_SCH_TBF=y
CONFIG_NET_SCH_CBS=y
CONFIG_NET_SCH_ETF=y
CONFIG_NET_SCH_MQPRIO_LIB=y
CONFIG_NET_SCH_TAPRIO=y
CONFIG_NET_SCH_GRED=y
CONFIG_NET_SCH_NETEM=y
CONFIG_NET_SCH_DRR=y
CONFIG_NET_SCH_MQPRIO=y
CONFIG_NET_SCH_SKBPRIO=y
CONFIG_NET_SCH_CHOKE=y
CONFIG_NET_SCH_QFQ=y
CONFIG_NET_SCH_CODEL=y
CONFIG_NET_SCH_FQ_CODEL=y
CONFIG_NET_SCH_CAKE=y
CONFIG_NET_SCH_FQ=y
CONFIG_NET_SCH_HHF=y
CONFIG_NET_SCH_PIE=y
CONFIG_NET_SCH_FQ_PIE=y
CONFIG_NET_SCH_INGRESS=y
CONFIG_NET_SCH_PLUG=y
CONFIG_NET_SCH_ETS=y
# CONFIG_NET_SCH_DUALPI2 is not set
CONFIG_NET_SCH_DEFAULT=y
# CONFIG_DEFAULT_FQ is not set
CONFIG_DEFAULT_CODEL=y
# CONFIG_DEFAULT_FQ_CODEL is not set
# CONFIG_DEFAULT_FQ_PIE is not set
# CONFIG_DEFAULT_SFQ is not set
# CONFIG_DEFAULT_PFIFO_FAST is not set
CONFIG_DEFAULT_NET_SCH="pfifo_fast"

#
# Classification
#
CONFIG_NET_CLS=y
CONFIG_NET_CLS_BASIC=y
CONFIG_NET_CLS_ROUTE4=y
CONFIG_NET_CLS_FW=y
CONFIG_NET_CLS_U32=y
CONFIG_CLS_U32_PERF=y
CONFIG_CLS_U32_MARK=y
CONFIG_NET_CLS_FLOW=y
CONFIG_NET_CLS_CGROUP=y
CONFIG_NET_CLS_BPF=y
CONFIG_NET_CLS_FLOWER=y
CONFIG_NET_CLS_MATCHALL=y
CONFIG_NET_EMATCH=y
CONFIG_NET_EMATCH_STACK=32
CONFIG_NET_EMATCH_CMP=y
CONFIG_NET_EMATCH_NBYTE=y
CONFIG_NET_EMATCH_U32=y
CONFIG_NET_EMATCH_META=y
CONFIG_NET_EMATCH_TEXT=y
CONFIG_NET_EMATCH_CANID=y
CONFIG_NET_EMATCH_IPSET=y
CONFIG_NET_EMATCH_IPT=y
CONFIG_NET_CLS_ACT=y
CONFIG_NET_ACT_POLICE=y
CONFIG_NET_ACT_GACT=y
CONFIG_GACT_PROB=y
CONFIG_NET_ACT_MIRRED=y
CONFIG_NET_ACT_SAMPLE=y
CONFIG_NET_ACT_NAT=y
CONFIG_NET_ACT_PEDIT=y
CONFIG_NET_ACT_SIMP=y
CONFIG_NET_ACT_SKBEDIT=y
CONFIG_NET_ACT_CSUM=y
CONFIG_NET_ACT_MPLS=y
CONFIG_NET_ACT_VLAN=y
CONFIG_NET_ACT_BPF=y
CONFIG_NET_ACT_CONNMARK=y
CONFIG_NET_ACT_CTINFO=y
CONFIG_NET_ACT_SKBMOD=y
CONFIG_NET_ACT_IFE=y
CONFIG_NET_ACT_TUNNEL_KEY=y
CONFIG_NET_ACT_CT=y
CONFIG_NET_ACT_GATE=y
CONFIG_NET_IFE_SKBMARK=y
CONFIG_NET_IFE_SKBPRIO=y
CONFIG_NET_IFE_SKBTCINDEX=y
CONFIG_NET_TC_SKB_EXT=y
CONFIG_NET_SCH_FIFO=y
CONFIG_DCB=y
CONFIG_DNS_RESOLVER=y
CONFIG_BATMAN_ADV=y
CONFIG_BATMAN_ADV_BATMAN_V=y
CONFIG_BATMAN_ADV_BLA=y
CONFIG_BATMAN_ADV_DAT=y
CONFIG_BATMAN_ADV_MCAST=y
# CONFIG_BATMAN_ADV_DEBUG is not set
# CONFIG_BATMAN_ADV_TRACING is not set
CONFIG_OPENVSWITCH=y
CONFIG_VSOCKETS=y
CONFIG_VSOCKETS_DIAG=y
CONFIG_VSOCKETS_LOOPBACK=y
# CONFIG_VMWARE_VMCI_VSOCKETS is not set
CONFIG_VIRTIO_VSOCKETS=y
CONFIG_VIRTIO_VSOCKETS_COMMON=y
CONFIG_NETLINK_DIAG=y
CONFIG_MPLS=y
CONFIG_NET_MPLS_GSO=y
CONFIG_MPLS_ROUTING=y
CONFIG_MPLS_IPTUNNEL=y
CONFIG_NET_NSH=y
CONFIG_HSR=y
CONFIG_NET_SWITCHDEV=y
CONFIG_NET_L3_MASTER_DEV=y
CONFIG_QRTR=y
CONFIG_QRTR_TUN=y
# CONFIG_QRTR_MHI is not set
CONFIG_NET_NCSI=y
# CONFIG_NCSI_OEM_CMD_GET_MAC is not set
# CONFIG_NCSI_OEM_CMD_KEEP_PHY is not set
# CONFIG_PCPU_DEV_REFCNT is not set
CONFIG_MAX_SKB_FRAGS=17
CONFIG_RPS=y
CONFIG_RFS_ACCEL=y
CONFIG_SOCK_RX_QUEUE_MAPPING=y
CONFIG_XPS=y
CONFIG_CGROUP_NET_PRIO=y
CONFIG_CGROUP_NET_CLASSID=y
CONFIG_NET_RX_BUSY_POLL=y
CONFIG_BQL=y
CONFIG_NET_FLOW_LIMIT=y

#
# Network testing
#
# CONFIG_NET_PKTGEN is not set
CONFIG_NET_DROP_MONITOR=y
# end of Network testing
# end of Networking options

CONFIG_CAN=y
CONFIG_CAN_RAW=y
CONFIG_CAN_BCM=y
CONFIG_CAN_GW=y
CONFIG_CAN_J1939=y
CONFIG_CAN_ISOTP=y
CONFIG_BT=y
CONFIG_BT_BREDR=y
CONFIG_BT_RFCOMM=y
CONFIG_BT_RFCOMM_TTY=y
CONFIG_BT_BNEP=y
CONFIG_BT_BNEP_MC_FILTER=y
CONFIG_BT_BNEP_PROTO_FILTER=y
CONFIG_BT_HIDP=y
CONFIG_BT_LE=y
CONFIG_BT_LE_L2CAP_ECRED=y
CONFIG_BT_6LOWPAN=y
CONFIG_BT_LEDS=y
CONFIG_BT_MSFTEXT=y
# CONFIG_BT_AOSPEXT is not set
# CONFIG_BT_DEBUGFS is not set
# CONFIG_BT_SELFTEST is not set

#
# Bluetooth device drivers
#
CONFIG_BT_INTEL=y
CONFIG_BT_BCM=y
CONFIG_BT_RTL=y
CONFIG_BT_QCA=y
CONFIG_BT_MTK=y
CONFIG_BT_HCIBTUSB=y
CONFIG_BT_HCIBTUSB_AUTOSUSPEND=y
CONFIG_BT_HCIBTUSB_POLL_SYNC=y
CONFIG_BT_HCIBTUSB_BCM=y
CONFIG_BT_HCIBTUSB_MTK=y
CONFIG_BT_HCIBTUSB_RTL=y
# CONFIG_BT_HCIBTSDIO is not set
CONFIG_BT_HCIUART=y
CONFIG_BT_HCIUART_SERDEV=y
CONFIG_BT_HCIUART_H4=y
# CONFIG_BT_HCIUART_NOKIA is not set
CONFIG_BT_HCIUART_BCSP=y
# CONFIG_BT_HCIUART_ATH3K is not set
CONFIG_BT_HCIUART_LL=y
CONFIG_BT_HCIUART_3WIRE=y
# CONFIG_BT_HCIUART_INTEL is not set
# CONFIG_BT_HCIUART_BCM is not set
# CONFIG_BT_HCIUART_RTL is not set
CONFIG_BT_HCIUART_QCA=y
CONFIG_BT_HCIUART_AG6XX=y
CONFIG_BT_HCIUART_MRVL=y
# CONFIG_BT_HCIUART_AML is not set
CONFIG_BT_HCIBCM203X=y
# CONFIG_BT_HCIBCM4377 is not set
CONFIG_BT_HCIBPA10X=y
CONFIG_BT_HCIBFUSB=y
CONFIG_BT_HCIVHCI=y
CONFIG_BT_MRVL=y
CONFIG_BT_MRVL_SDIO=y
CONFIG_BT_ATH3K=y
CONFIG_BT_MTKSDIO=y
CONFIG_BT_MTKUART=y
# CONFIG_BT_VIRTIO is not set
# CONFIG_BT_NXPUART is not set
# CONFIG_BT_INTEL_PCIE is not set
# end of Bluetooth device drivers

CONFIG_AF_RXRPC=y
CONFIG_AF_RXRPC_IPV6=y
# CONFIG_AF_RXRPC_INJECT_LOSS is not set
# CONFIG_AF_RXRPC_INJECT_RX_DELAY is not set
# CONFIG_AF_RXRPC_DEBUG is not set
CONFIG_RXKAD=y
# CONFIG_RXGK is not set
# CONFIG_RXPERF is not set
CONFIG_AF_KCM=y
CONFIG_STREAM_PARSER=y
CONFIG_MCTP=y
CONFIG_FIB_RULES=y
CONFIG_WIRELESS=y
CONFIG_WEXT_CORE=y
CONFIG_WEXT_PROC=y
CONFIG_CFG80211=y
# CONFIG_NL80211_TESTMODE is not set
# CONFIG_CFG80211_DEVELOPER_WARNINGS is not set
# CONFIG_CFG80211_CERTIFICATION_ONUS is not set
CONFIG_CFG80211_REQUIRE_SIGNED_REGDB=y
CONFIG_CFG80211_USE_KERNEL_REGDB_KEYS=y
CONFIG_CFG80211_DEFAULT_PS=y
CONFIG_CFG80211_DEBUGFS=y
CONFIG_CFG80211_CRDA_SUPPORT=y
CONFIG_CFG80211_WEXT=y
CONFIG_MAC80211=y
CONFIG_MAC80211_HAS_RC=y
CONFIG_MAC80211_RC_MINSTREL=y
CONFIG_MAC80211_RC_DEFAULT_MINSTREL=y
CONFIG_MAC80211_RC_DEFAULT="minstrel_ht"
CONFIG_MAC80211_MESH=y
CONFIG_MAC80211_LEDS=y
CONFIG_MAC80211_DEBUGFS=y
# CONFIG_MAC80211_MESSAGE_TRACING is not set
# CONFIG_MAC80211_DEBUG_MENU is not set
CONFIG_MAC80211_STA_HASH_MAX_SIZE=0
CONFIG_RFKILL=y
CONFIG_RFKILL_LEDS=y
CONFIG_RFKILL_INPUT=y
# CONFIG_RFKILL_GPIO is not set
CONFIG_NET_9P=y
CONFIG_NET_9P_FD=y
CONFIG_NET_9P_VIRTIO=y
# CONFIG_NET_9P_USBG is not set
CONFIG_NET_9P_RDMA=y
# CONFIG_NET_9P_DEBUG is not set
CONFIG_CEPH_LIB=y
# CONFIG_CEPH_LIB_PRETTYDEBUG is not set
CONFIG_CEPH_LIB_USE_DNS_RESOLVER=y
CONFIG_NFC=y
CONFIG_NFC_DIGITAL=y
CONFIG_NFC_NCI=y
# CONFIG_NFC_NCI_SPI is not set
CONFIG_NFC_NCI_UART=y
CONFIG_NFC_HCI=y
CONFIG_NFC_SHDLC=y

#
# Near Field Communication (NFC) devices
#
# CONFIG_NFC_TRF7970A is not set
# CONFIG_NFC_MEI_PHY is not set
CONFIG_NFC_SIM=y
CONFIG_NFC_PORT100=y
CONFIG_NFC_VIRTUAL_NCI=y
CONFIG_NFC_FDP=y
# CONFIG_NFC_FDP_I2C is not set
# CONFIG_NFC_PN544_I2C is not set
CONFIG_NFC_PN533=y
CONFIG_NFC_PN533_USB=y
# CONFIG_NFC_PN533_I2C is not set
# CONFIG_NFC_PN532_UART is not set
# CONFIG_NFC_MICROREAD_I2C is not set
CONFIG_NFC_MRVL=y
CONFIG_NFC_MRVL_USB=y
# CONFIG_NFC_MRVL_UART is not set
# CONFIG_NFC_MRVL_I2C is not set
# CONFIG_NFC_ST21NFCA_I2C is not set
# CONFIG_NFC_ST_NCI_I2C is not set
# CONFIG_NFC_ST_NCI_SPI is not set
# CONFIG_NFC_NXP_NCI is not set
# CONFIG_NFC_S3FWRN5_I2C is not set
# CONFIG_NFC_S3FWRN82_UART is not set
# CONFIG_NFC_ST95HF is not set
# end of Near Field Communication (NFC) devices

CONFIG_PSAMPLE=y
CONFIG_NET_IFE=y
CONFIG_LWTUNNEL=y
CONFIG_LWTUNNEL_BPF=y
CONFIG_DST_CACHE=y
CONFIG_GRO_CELLS=y
CONFIG_SOCK_VALIDATE_XMIT=y
CONFIG_NET_SELFTESTS=y
CONFIG_NET_SOCK_MSG=y
CONFIG_NET_DEVLINK=y
CONFIG_PAGE_POOL=y
# CONFIG_PAGE_POOL_STATS is not set
CONFIG_FAILOVER=y
CONFIG_ETHTOOL_NETLINK=y

#
# Device Drivers
#
CONFIG_HAVE_PCI=y
CONFIG_GENERIC_PCI_IOMAP=y
CONFIG_PCI=y
CONFIG_PCI_DOMAINS=y
CONFIG_PCIEPORTBUS=y
CONFIG_HOTPLUG_PCI_PCIE=y
CONFIG_PCIEAER=y
# CONFIG_PCIEAER_INJECT is not set
# CONFIG_PCIE_ECRC is not set
CONFIG_PCIEASPM=y
CONFIG_PCIEASPM_DEFAULT=y
# CONFIG_PCIEASPM_POWERSAVE is not set
# CONFIG_PCIEASPM_POWER_SUPERSAVE is not set
# CONFIG_PCIEASPM_PERFORMANCE is not set
CONFIG_PCIE_PME=y
# CONFIG_PCIE_DPC is not set
# CONFIG_PCIE_PTM is not set
CONFIG_PCI_MSI=y
CONFIG_PCI_QUIRKS=y
# CONFIG_PCI_DEBUG is not set
# CONFIG_PCI_REALLOC_ENABLE_AUTO is not set
# CONFIG_PCI_STUB is not set
# CONFIG_PCI_PF_STUB is not set
CONFIG_PCI_ATS=y
# CONFIG_PCI_TSM is not set
# CONFIG_PCI_DOE is not set
CONFIG_PCI_ECAM=y
CONFIG_PCI_LOCKLESS_CONFIG=y
CONFIG_PCI_IOV=y
# CONFIG_PCI_NPEM is not set
CONFIG_PCI_PRI=y
CONFIG_PCI_PASID=y
# CONFIG_PCIE_TPH is not set
# CONFIG_PCI_P2PDMA is not set
CONFIG_PCI_LABEL=y
# CONFIG_PCI_DYNAMIC_OF_NODES is not set
CONFIG_VGA_ARB=y
CONFIG_VGA_ARB_MAX_GPUS=16
CONFIG_HOTPLUG_PCI=y
# CONFIG_HOTPLUG_PCI_ACPI is not set
# CONFIG_HOTPLUG_PCI_CPCI is not set
# CONFIG_HOTPLUG_PCI_OCTEONEP is not set
# CONFIG_HOTPLUG_PCI_SHPC is not set

#
# PCI controller drivers
#
CONFIG_PCI_HOST_COMMON=y
# CONFIG_PCI_FTPCI100 is not set
CONFIG_PCI_HOST_GENERIC=y
# CONFIG_VMD is not set
# CONFIG_PCIE_XILINX is not set

#
# Cadence-based PCIe controllers
#
# CONFIG_PCIE_CADENCE_PLAT_HOST is not set
# CONFIG_PCIE_CADENCE_PLAT_EP is not set
# end of Cadence-based PCIe controllers

#
# DesignWare-based PCIe controllers
#
# CONFIG_PCI_MESON is not set
# CONFIG_PCIE_INTEL_GW is not set
# CONFIG_PCIE_DW_PLAT_HOST is not set
# CONFIG_PCIE_DW_PLAT_EP is not set
# end of DesignWare-based PCIe controllers

#
# Mobiveil-based PCIe controllers
#
# end of Mobiveil-based PCIe controllers

#
# PLDA-based PCIe controllers
#
# CONFIG_PCIE_MICROCHIP_HOST is not set
# end of PLDA-based PCIe controllers
# end of PCI controller drivers

#
# PCI Endpoint
#
CONFIG_PCI_ENDPOINT=y
# CONFIG_PCI_ENDPOINT_CONFIGFS is not set
# CONFIG_PCI_ENDPOINT_MSI_DOORBELL is not set
# CONFIG_PCI_EPF_TEST is not set
# CONFIG_PCI_EPF_NTB is not set
# end of PCI Endpoint

#
# PCI switch controller drivers
#
# CONFIG_PCI_SW_SWITCHTEC is not set
# end of PCI switch controller drivers

# CONFIG_PCI_PWRCTRL_GENERIC is not set
# CONFIG_PCI_PWRCTRL_TC9563 is not set
# CONFIG_CXL_BUS is not set
CONFIG_PCCARD=y
CONFIG_PCMCIA=y
CONFIG_PCMCIA_LOAD_CIS=y
CONFIG_CARDBUS=y

#
# PC-card bridges
#
CONFIG_YENTA=y
CONFIG_YENTA_O2=y
CONFIG_YENTA_RICOH=y
CONFIG_YENTA_TI=y
CONFIG_YENTA_ENE_TUNE=y
CONFIG_YENTA_TOSHIBA=y
# CONFIG_PD6729 is not set
CONFIG_PCCARD_NONSTATIC=y
# CONFIG_RAPIDIO is not set
# CONFIG_PC104 is not set

#
# Generic Driver Options
#
CONFIG_AUXILIARY_BUS=y
CONFIG_UEVENT_HELPER=y
CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
CONFIG_DEVTMPFS=y
CONFIG_DEVTMPFS_MOUNT=y
# CONFIG_DEVTMPFS_SAFE is not set
CONFIG_DRIVER_DEFERRED_PROBE_TIMEOUT=10
CONFIG_STANDALONE=y
CONFIG_PREVENT_FIRMWARE_BUILD=y

#
# Firmware loader
#
CONFIG_FW_LOADER=y
# CONFIG_FW_LOADER_DEBUG is not set
CONFIG_FW_LOADER_PAGED_BUF=y
CONFIG_FW_LOADER_SYSFS=y
CONFIG_EXTRA_FIRMWARE=""
CONFIG_FW_LOADER_USER_HELPER=y
CONFIG_FW_LOADER_USER_HELPER_FALLBACK=y
CONFIG_FW_LOADER_COMPRESS=y
# CONFIG_FW_LOADER_COMPRESS_XZ is not set
# CONFIG_FW_LOADER_COMPRESS_ZSTD is not set
CONFIG_FW_CACHE=y
# CONFIG_FW_UPLOAD is not set
# end of Firmware loader

CONFIG_WANT_DEV_COREDUMP=y
CONFIG_ALLOW_DEV_COREDUMP=y
CONFIG_DEV_COREDUMP=y
# CONFIG_DEBUG_DRIVER is not set
CONFIG_DEBUG_DEVRES=y
# CONFIG_DEBUG_TEST_DRIVER_REMOVE is not set
# CONFIG_TEST_ASYNC_DRIVER_PROBE is not set
CONFIG_GENERIC_CPU_DEVICES=y
CONFIG_GENERIC_CPU_AUTOPROBE=y
CONFIG_GENERIC_CPU_VULNERABILITIES=y
CONFIG_REGMAP=y
CONFIG_REGMAP_I2C=y
CONFIG_REGMAP_SPI=y
CONFIG_REGMAP_MMIO=y
CONFIG_REGMAP_IRQ=y
CONFIG_DMA_SHARED_BUFFER=y
# CONFIG_FW_DEVLINK_SYNC_STATE_TIMEOUT is not set
# end of Generic Driver Options

#
# Bus devices
#
# CONFIG_MOXTET is not set
CONFIG_MHI_BUS=y
# CONFIG_MHI_BUS_DEBUG is not set
# CONFIG_MHI_BUS_PCI_GENERIC is not set
# CONFIG_MHI_BUS_EP is not set
# end of Bus devices

CONFIG_CONNECTOR=y
CONFIG_PROC_EVENTS=y

#
# Firmware Drivers
#

#
# ARM System Control and Management Interface Protocol
#
# end of ARM System Control and Management Interface Protocol

# CONFIG_EDD is not set
CONFIG_FIRMWARE_MEMMAP=y
CONFIG_DMIID=y
# CONFIG_DMI_SYSFS is not set
CONFIG_DMI_SCAN_MACHINE_NON_EFI_FALLBACK=y
# CONFIG_ISCSI_IBFT is not set
# CONFIG_FW_CFG_SYSFS is not set
CONFIG_SYSFB=y
# CONFIG_SYSFB_SIMPLEFB is not set
CONFIG_GOOGLE_FIRMWARE=y
# CONFIG_GOOGLE_SMI is not set
# CONFIG_GOOGLE_CBMEM is not set
CONFIG_GOOGLE_COREBOOT_TABLE=y
CONFIG_GOOGLE_MEMCONSOLE=y
# CONFIG_GOOGLE_MEMCONSOLE_X86_LEGACY is not set
# CONFIG_GOOGLE_FRAMEBUFFER_COREBOOT is not set
CONFIG_GOOGLE_MEMCONSOLE_COREBOOT=y
CONFIG_GOOGLE_VPD=y

#
# Qualcomm firmware drivers
#
# CONFIG_QCOM_PAS is not set
# CONFIG_QCOM_PAS_TEE is not set
# CONFIG_QCOM_SCM is not set
# end of Qualcomm firmware drivers

#
# Tegra firmware driver
#
# end of Tegra firmware driver
# end of Firmware Drivers

# CONFIG_FWCTL is not set
CONFIG_GNSS=y
# CONFIG_GNSS_MTK_SERIAL is not set
# CONFIG_GNSS_SIRF_SERIAL is not set
# CONFIG_GNSS_UBX_SERIAL is not set
CONFIG_GNSS_USB=y
CONFIG_MTD=y
# CONFIG_MTD_TESTS is not set

#
# Partition parsers
#
# CONFIG_MTD_CMDLINE_PARTS is not set
# CONFIG_MTD_OF_PARTS is not set
# CONFIG_MTD_REDBOOT_PARTS is not set
# end of Partition parsers

#
# User Modules And Translation Layers
#
CONFIG_MTD_BLKDEVS=y
CONFIG_MTD_BLOCK=y

#
# Note that in some cases UBI block is preferred. See MTD_UBI_BLOCK.
#
CONFIG_FTL=y
# CONFIG_NFTL is not set
# CONFIG_INFTL is not set
# CONFIG_RFD_FTL is not set
# CONFIG_SSFDC is not set
# CONFIG_SM_FTL is not set
# CONFIG_MTD_OOPS is not set
# CONFIG_MTD_SWAP is not set
# CONFIG_MTD_PARTITIONED_MASTER is not set

#
# RAM/ROM/Flash chip drivers
#
# CONFIG_MTD_CFI is not set
# CONFIG_MTD_JEDECPROBE is not set
CONFIG_MTD_MAP_BANK_WIDTH_1=y
CONFIG_MTD_MAP_BANK_WIDTH_2=y
CONFIG_MTD_MAP_BANK_WIDTH_4=y
CONFIG_MTD_CFI_I1=y
CONFIG_MTD_CFI_I2=y
# CONFIG_MTD_RAM is not set
# CONFIG_MTD_ROM is not set
# CONFIG_MTD_ABSENT is not set
# end of RAM/ROM/Flash chip drivers

#
# Mapping drivers for chip access
#
# CONFIG_MTD_COMPLEX_MAPPINGS is not set
# CONFIG_MTD_PLATRAM is not set
# end of Mapping drivers for chip access

#
# Self-contained MTD device drivers
#
# CONFIG_MTD_PMC551 is not set
# CONFIG_MTD_DATAFLASH is not set
# CONFIG_MTD_MCHP23K256 is not set
# CONFIG_MTD_MCHP48L640 is not set
# CONFIG_MTD_SST25L is not set
CONFIG_MTD_SLRAM=y
CONFIG_MTD_PHRAM=y
CONFIG_MTD_MTDRAM=y
CONFIG_MTDRAM_TOTAL_SIZE=128
CONFIG_MTDRAM_ERASE_SIZE=4
CONFIG_MTD_BLOCK2MTD=y
# CONFIG_MTD_INTEL_DG is not set

#
# Disk-On-Chip Device Drivers
#
# CONFIG_MTD_DOCG3 is not set
# end of Self-contained MTD device drivers

#
# NAND
#
# CONFIG_MTD_ONENAND is not set
# CONFIG_MTD_RAW_NAND is not set
# CONFIG_MTD_SPI_NAND is not set

#
# ECC engine support
#
# CONFIG_MTD_NAND_ECC_SW_HAMMING is not set
# CONFIG_MTD_NAND_ECC_SW_BCH is not set
# CONFIG_MTD_NAND_ECC_MXIC is not set
# end of ECC engine support
# end of NAND

#
# LPDDR & LPDDR2 PCM memory drivers
#
# CONFIG_MTD_LPDDR is not set
# end of LPDDR & LPDDR2 PCM memory drivers

# CONFIG_MTD_SPI_NOR is not set
CONFIG_MTD_UBI=y
CONFIG_MTD_UBI_WL_THRESHOLD=4096
CONFIG_MTD_UBI_BEB_LIMIT=20
# CONFIG_MTD_UBI_FASTMAP is not set
# CONFIG_MTD_UBI_GLUEBI is not set
# CONFIG_MTD_UBI_BLOCK is not set
# CONFIG_MTD_UBI_FAULT_INJECTION is not set
# CONFIG_MTD_UBI_NVMEM is not set
# CONFIG_MTD_HYPERBUS is not set
CONFIG_DTC=y
CONFIG_OF=y
# CONFIG_OF_UNITTEST is not set
CONFIG_OF_FLATTREE=y
CONFIG_OF_EARLY_FLATTREE=y
CONFIG_OF_KOBJ=y
CONFIG_OF_ADDRESS=y
CONFIG_OF_IRQ=y
CONFIG_OF_RESERVED_MEM=y
# CONFIG_OF_OVERLAY is not set
CONFIG_OF_NUMA=y
CONFIG_ARCH_MIGHT_HAVE_PC_PARPORT=y
CONFIG_PARPORT=y
# CONFIG_PARPORT_PC is not set
# CONFIG_PARPORT_1284 is not set
CONFIG_PARPORT_NOT_PC=y
CONFIG_PNP=y
CONFIG_PNP_DEBUG_MESSAGES=y

#
# Protocols
#
CONFIG_PNPACPI=y
CONFIG_BLK_DEV=y
CONFIG_BLK_DEV_NULL_BLK=y
CONFIG_BLK_DEV_NULL_BLK_FAULT_INJECTION=y
# CONFIG_BLK_DEV_FD is not set
CONFIG_CDROM=y
# CONFIG_BLK_DEV_PCIESSD_MTIP32XX is not set
CONFIG_ZRAM=y
# CONFIG_ZRAM_BACKEND_LZ4 is not set
# CONFIG_ZRAM_BACKEND_LZ4HC is not set
# CONFIG_ZRAM_BACKEND_ZSTD is not set
# CONFIG_ZRAM_BACKEND_DEFLATE is not set
# CONFIG_ZRAM_BACKEND_842 is not set
CONFIG_ZRAM_BACKEND_FORCE_LZO=y
CONFIG_ZRAM_BACKEND_LZO=y
# CONFIG_ZRAM_DEF_COMP_LZORLE is not set
CONFIG_ZRAM_DEF_COMP_LZO=y
CONFIG_ZRAM_DEF_COMP="lzo"
# CONFIG_ZRAM_WRITEBACK is not set
# CONFIG_ZRAM_TRACK_ENTRY_ACTIME is not set
# CONFIG_ZRAM_MEMORY_TRACKING is not set
# CONFIG_ZRAM_MULTI_COMP is not set
CONFIG_BLK_DEV_LOOP=y
CONFIG_BLK_DEV_LOOP_MIN_COUNT=16
# CONFIG_BLK_DEV_DRBD is not set
CONFIG_BLK_DEV_NBD=y
CONFIG_BLK_DEV_RAM=y
CONFIG_BLK_DEV_RAM_COUNT=16
CONFIG_BLK_DEV_RAM_SIZE=4096
CONFIG_ATA_OVER_ETH=y
CONFIG_VIRTIO_BLK=y
# CONFIG_BLK_DEV_RBD is not set
CONFIG_BLK_DEV_UBLK=y
CONFIG_BLKDEV_UBLK_LEGACY_OPCODES=y
CONFIG_BLK_DEV_RNBD=y
CONFIG_BLK_DEV_RNBD_CLIENT=y
# CONFIG_BLK_DEV_ZONED_LOOP is not set

#
# NVME Support
#
CONFIG_NVME_CORE=y
CONFIG_BLK_DEV_NVME=y
CONFIG_NVME_MULTIPATH=y
# CONFIG_NVME_VERBOSE_ERRORS is not set
# CONFIG_NVME_HWMON is not set
CONFIG_NVME_FABRICS=y
CONFIG_NVME_RDMA=y
CONFIG_NVME_FC=y
CONFIG_NVME_TCP=y
# CONFIG_NVME_TCP_TLS is not set
# CONFIG_NVME_HOST_AUTH is not set
CONFIG_NVME_TARGET=y
# CONFIG_NVME_TARGET_DEBUGFS is not set
# CONFIG_NVME_TARGET_PASSTHRU is not set
CONFIG_NVME_TARGET_LOOP=y
CONFIG_NVME_TARGET_RDMA=y
CONFIG_NVME_TARGET_FC=y
CONFIG_NVME_TARGET_FCLOOP=y
CONFIG_NVME_TARGET_TCP=y
# CONFIG_NVME_TARGET_TCP_TLS is not set
# CONFIG_NVME_TARGET_AUTH is not set
# CONFIG_NVME_TARGET_PCI_EPF is not set
# end of NVME Support

#
# Misc devices
#
# CONFIG_AD525X_DPOT is not set
# CONFIG_DUMMY_IRQ is not set
# CONFIG_PHANTOM is not set
# CONFIG_RPMB is not set
# CONFIG_TI_FPC202 is not set
# CONFIG_TIFM_CORE is not set
# CONFIG_ICS932S401 is not set
# CONFIG_ENCLOSURE_SERVICES is not set
# CONFIG_HP_ILO is not set
# CONFIG_APDS9802ALS is not set
# CONFIG_ISL29003 is not set
# CONFIG_ISL29020 is not set
# CONFIG_SENSORS_TSL2550 is not set
# CONFIG_SENSORS_BH1770 is not set
# CONFIG_HMC6352 is not set
# CONFIG_DS1682 is not set
# CONFIG_VMWARE_BALLOON is not set
# CONFIG_LATTICE_ECP3_CONFIG is not set
# CONFIG_SRAM is not set
# CONFIG_DW_XDATA_PCIE is not set
# CONFIG_PCI_ENDPOINT_TEST is not set
# CONFIG_XILINX_SDFEC is not set
CONFIG_MISC_RTSX=y
# CONFIG_OPEN_DICE is not set
# CONFIG_NTSYNC is not set
# CONFIG_VCPU_STALL_DETECTOR is not set
# CONFIG_NSM is not set
# CONFIG_C2PORT is not set

#
# EEPROM support
#
# CONFIG_EEPROM_MAX6875 is not set
CONFIG_EEPROM_93CX6=y
# CONFIG_EEPROM_IDT_89HPESX is not set
# end of EEPROM support

# CONFIG_CB710_CORE is not set
# CONFIG_SENSORS_LIS3_I2C is not set
# CONFIG_ALTERA_STAPL is not set
CONFIG_INTEL_MEI=y
CONFIG_INTEL_MEI_ME=y
# CONFIG_INTEL_MEI_TXE is not set
# CONFIG_INTEL_MEI_GSC is not set
# CONFIG_INTEL_MEI_CSC is not set
# CONFIG_INTEL_MEI_VSC_HW is not set
# CONFIG_INTEL_MEI_HDCP is not set
# CONFIG_INTEL_MEI_PXP is not set
# CONFIG_INTEL_MEI_GSC_PROXY is not set
CONFIG_VMWARE_VMCI=y
# CONFIG_GENWQE is not set
# CONFIG_BCM_VK is not set
# CONFIG_MISC_ALCOR_PCI is not set
# CONFIG_MISC_RTSX_PCI is not set
CONFIG_MISC_RTSX_USB=y
# CONFIG_UACCE is not set
# CONFIG_PVPANIC is not set
# CONFIG_GP_PCI1XXXX is not set
# CONFIG_KEBA_CP500 is not set
# CONFIG_MISC_RP1 is not set
# CONFIG_INTEL_SSEI is not set
# end of Misc devices

#
# SCSI device support
#
CONFIG_SCSI_MOD=y
CONFIG_RAID_ATTRS=y
CONFIG_SCSI_COMMON=y
CONFIG_SCSI=y
CONFIG_SCSI_DMA=y
CONFIG_SCSI_NETLINK=y
CONFIG_SCSI_PROC_FS=y

#
# SCSI support type (disk, tape, CD-ROM)
#
CONFIG_BLK_DEV_SD=y
CONFIG_CHR_DEV_ST=y
CONFIG_BLK_DEV_SR=y
CONFIG_CHR_DEV_SG=y
CONFIG_BLK_DEV_BSG=y
# CONFIG_CHR_DEV_SCH is not set
CONFIG_SCSI_CONSTANTS=y
CONFIG_SCSI_LOGGING=y
CONFIG_SCSI_SCAN_ASYNC=y

#
# SCSI Transports
#
CONFIG_SCSI_SPI_ATTRS=y
CONFIG_SCSI_FC_ATTRS=y
CONFIG_SCSI_ISCSI_ATTRS=y
CONFIG_SCSI_SAS_ATTRS=y
CONFIG_SCSI_SAS_LIBSAS=y
CONFIG_SCSI_SAS_ATA=y
# CONFIG_SCSI_SAS_HOST_SMP is not set
CONFIG_SCSI_SRP_ATTRS=y
# end of SCSI Transports

CONFIG_SCSI_LOWLEVEL=y
# CONFIG_ISCSI_TCP is not set
# CONFIG_ISCSI_BOOT_SYSFS is not set
# CONFIG_SCSI_CXGB3_ISCSI is not set
# CONFIG_SCSI_CXGB4_ISCSI is not set
# CONFIG_SCSI_BNX2_ISCSI is not set
# CONFIG_BE2ISCSI is not set
# CONFIG_BLK_DEV_3W_XXXX_RAID is not set
CONFIG_SCSI_HPSA=y
# CONFIG_SCSI_3W_9XXX is not set
# CONFIG_SCSI_3W_SAS is not set
# CONFIG_SCSI_ACARD is not set
# CONFIG_SCSI_AACRAID is not set
# CONFIG_SCSI_AIC7XXX is not set
# CONFIG_SCSI_AIC79XX is not set
# CONFIG_SCSI_AIC94XX is not set
# CONFIG_SCSI_MVSAS is not set
# CONFIG_SCSI_MVUMI is not set
# CONFIG_SCSI_ADVANSYS is not set
# CONFIG_SCSI_ARCMSR is not set
# CONFIG_SCSI_ESAS2R is not set
# CONFIG_MEGARAID_NEWGEN is not set
# CONFIG_MEGARAID_LEGACY is not set
# CONFIG_MEGARAID_SAS is not set
# CONFIG_SCSI_MPT3SAS is not set
# CONFIG_SCSI_MPT2SAS is not set
# CONFIG_SCSI_MPI3MR is not set
# CONFIG_SCSI_LEAPRAID is not set
# CONFIG_SCSI_SMARTPQI is not set
# CONFIG_SCSI_HPTIOP is not set
# CONFIG_SCSI_BUSLOGIC is not set
# CONFIG_SCSI_MYRB is not set
# CONFIG_SCSI_MYRS is not set
# CONFIG_VMWARE_PVSCSI is not set
# CONFIG_LIBFC is not set
# CONFIG_SCSI_SNIC is not set
# CONFIG_SCSI_DMX3191D is not set
# CONFIG_SCSI_FDOMAIN_PCI is not set
# CONFIG_SCSI_ISCI is not set
# CONFIG_SCSI_IPS is not set
# CONFIG_SCSI_INITIO is not set
# CONFIG_SCSI_INIA100 is not set
# CONFIG_SCSI_STEX is not set
# CONFIG_SCSI_SYM53C8XX_2 is not set
# CONFIG_SCSI_IPR is not set
# CONFIG_SCSI_QLOGIC_1280 is not set
# CONFIG_SCSI_QLA_FC is not set
# CONFIG_SCSI_QLA_ISCSI is not set
# CONFIG_SCSI_LPFC is not set
# CONFIG_SCSI_EFCT is not set
# CONFIG_SCSI_DC395x is not set
# CONFIG_SCSI_AM53C974 is not set
# CONFIG_SCSI_WD719X is not set
# CONFIG_SCSI_DEBUG is not set
# CONFIG_SCSI_PMCRAID is not set
# CONFIG_SCSI_PM8001 is not set
# CONFIG_SCSI_BFA_FC is not set
CONFIG_SCSI_VIRTIO=y
# CONFIG_SCSI_CHELSIO_FCOE is not set
# CONFIG_SCSI_LOWLEVEL_PCMCIA is not set
# CONFIG_SCSI_DH is not set
# end of SCSI device support

CONFIG_ATA=y
CONFIG_SATA_HOST=y
CONFIG_PATA_TIMINGS=y
CONFIG_ATA_VERBOSE_ERROR=y
CONFIG_ATA_FORCE=y
CONFIG_ATA_ACPI=y
# CONFIG_SATA_ZPODD is not set
CONFIG_SATA_PMP=y

#
# Controllers with non-SFF native interface
#
CONFIG_SATA_AHCI=y
CONFIG_SATA_MOBILE_LPM_POLICY=3
# CONFIG_SATA_AHCI_PLATFORM is not set
# CONFIG_AHCI_DWC is not set
# CONFIG_AHCI_CEVA is not set
# CONFIG_SATA_INIC162X is not set
# CONFIG_SATA_ACARD_AHCI is not set
# CONFIG_SATA_SIL24 is not set
CONFIG_ATA_SFF=y

#
# SFF controllers with custom DMA interface
#
# CONFIG_PDC_ADMA is not set
# CONFIG_SATA_QSTOR is not set
# CONFIG_SATA_SX4 is not set
CONFIG_ATA_BMDMA=y

#
# SATA SFF controllers with BMDMA
#
CONFIG_ATA_PIIX=y
# CONFIG_SATA_DWC is not set
# CONFIG_SATA_MV is not set
# CONFIG_SATA_NV is not set
# CONFIG_SATA_PROMISE is not set
# CONFIG_SATA_SIL is not set
# CONFIG_SATA_SIS is not set
# CONFIG_SATA_SVW is not set
# CONFIG_SATA_ULI is not set
# CONFIG_SATA_VIA is not set
# CONFIG_SATA_VITESSE is not set

#
# PATA SFF controllers with BMDMA
#
# CONFIG_PATA_ALI is not set
CONFIG_PATA_AMD=y
# CONFIG_PATA_ARTOP is not set
# CONFIG_PATA_ATIIXP is not set
# CONFIG_PATA_ATP867X is not set
# CONFIG_PATA_CMD64X is not set
# CONFIG_PATA_CYPRESS is not set
# CONFIG_PATA_EFAR is not set
# CONFIG_PATA_HPT366 is not set
# CONFIG_PATA_HPT37X is not set
# CONFIG_PATA_HPT3X2N is not set
# CONFIG_PATA_HPT3X3 is not set
# CONFIG_PATA_IT8213 is not set
# CONFIG_PATA_IT821X is not set
# CONFIG_PATA_JMICRON is not set
# CONFIG_PATA_MARVELL is not set
# CONFIG_PATA_NETCELL is not set
# CONFIG_PATA_NINJA32 is not set
# CONFIG_PATA_NS87415 is not set
CONFIG_PATA_OLDPIIX=y
# CONFIG_PATA_OPTIDMA is not set
# CONFIG_PATA_PDC2027X is not set
# CONFIG_PATA_PDC_OLD is not set
# CONFIG_PATA_RADISYS is not set
# CONFIG_PATA_RDC is not set
CONFIG_PATA_SCH=y
# CONFIG_PATA_SERVERWORKS is not set
# CONFIG_PATA_SIL680 is not set
# CONFIG_PATA_SIS is not set
# CONFIG_PATA_TOSHIBA is not set
# CONFIG_PATA_TRIFLEX is not set
# CONFIG_PATA_VIA is not set
# CONFIG_PATA_WINBOND is not set

#
# PIO-only SFF controllers
#
# CONFIG_PATA_CMD640_PCI is not set
# CONFIG_PATA_MPIIX is not set
# CONFIG_PATA_NS87410 is not set
# CONFIG_PATA_OPTI is not set
# CONFIG_PATA_PCMCIA is not set
# CONFIG_PATA_OF_PLATFORM is not set
# CONFIG_PATA_RZ1000 is not set

#
# Generic fallback / legacy drivers
#
# CONFIG_PATA_ACPI is not set
CONFIG_ATA_GENERIC=y
# CONFIG_PATA_LEGACY is not set
CONFIG_MD=y
CONFIG_BLK_DEV_MD=y
CONFIG_MD_BITMAP=y
# CONFIG_MD_LLBITMAP is not set
CONFIG_MD_AUTODETECT=y
CONFIG_MD_BITMAP_FILE=y
# CONFIG_MD_LINEAR is not set
CONFIG_MD_RAID0=y
CONFIG_MD_RAID1=y
CONFIG_MD_RAID10=y
CONFIG_MD_RAID456=y
# CONFIG_MD_CLUSTER is not set
CONFIG_BCACHE=y
# CONFIG_BCACHE_DEBUG is not set
# CONFIG_BCACHE_ASYNC_REGISTRATION is not set
CONFIG_BLK_DEV_DM_BUILTIN=y
CONFIG_BLK_DEV_DM=y
# CONFIG_DM_DEBUG is not set
CONFIG_DM_BUFIO=y
# CONFIG_DM_DEBUG_BLOCK_MANAGER_LOCKING is not set
CONFIG_DM_BIO_PRISON=y
CONFIG_DM_PERSISTENT_DATA=y
# CONFIG_DM_UNSTRIPED is not set
CONFIG_DM_CRYPT=y
# CONFIG_DM_INLINECRYPT is not set
CONFIG_DM_SNAPSHOT=y
CONFIG_DM_THIN_PROVISIONING=y
CONFIG_DM_CACHE=y
CONFIG_DM_CACHE_SMQ=y
CONFIG_DM_WRITECACHE=y
# CONFIG_DM_EBS is not set
# CONFIG_DM_ERA is not set
CONFIG_DM_CLONE=y
CONFIG_DM_MIRROR=y
# CONFIG_DM_LOG_USERSPACE is not set
CONFIG_DM_RAID=y
CONFIG_DM_ZERO=y
CONFIG_DM_MULTIPATH=y
CONFIG_DM_MULTIPATH_QL=y
CONFIG_DM_MULTIPATH_ST=y
# CONFIG_DM_MULTIPATH_HST is not set
# CONFIG_DM_MULTIPATH_IOA is not set
# CONFIG_DM_DELAY is not set
# CONFIG_DM_DUST is not set
# CONFIG_DM_INIT is not set
CONFIG_DM_UEVENT=y
CONFIG_DM_FLAKEY=y
CONFIG_DM_VERITY=y
# CONFIG_DM_VERITY_VERIFY_ROOTHASH_SIG is not set
CONFIG_DM_VERITY_FEC=y
# CONFIG_DM_SWITCH is not set
# CONFIG_DM_LOG_WRITES is not set
CONFIG_DM_INTEGRITY=y
CONFIG_DM_ZONED=y
CONFIG_DM_AUDIT=y
# CONFIG_DM_VDO is not set
# CONFIG_DM_PCACHE is not set
CONFIG_TARGET_CORE=y
# CONFIG_TCM_IBLOCK is not set
# CONFIG_TCM_FILEIO is not set
# CONFIG_TCM_PSCSI is not set
# CONFIG_LOOPBACK_TARGET is not set
# CONFIG_ISCSI_TARGET is not set
# CONFIG_SBP_TARGET is not set
# CONFIG_REMOTE_TARGET is not set
# CONFIG_FUSION is not set

#
# IEEE 1394 (FireWire) support
#
CONFIG_FIREWIRE=y
CONFIG_FIREWIRE_OHCI=y
CONFIG_FIREWIRE_SBP2=y
CONFIG_FIREWIRE_NET=y
# CONFIG_FIREWIRE_NOSY is not set
# end of IEEE 1394 (FireWire) support

# CONFIG_MACINTOSH_DRIVERS is not set
CONFIG_NETDEVICES=y
CONFIG_MII=y
CONFIG_NET_CORE=y
CONFIG_BONDING=y
CONFIG_DUMMY=y
CONFIG_WIREGUARD=y
# CONFIG_WIREGUARD_DEBUG is not set
# CONFIG_OVPN is not set
CONFIG_EQUALIZER=y
CONFIG_NET_FC=y
CONFIG_IFB=y
CONFIG_NET_TEAM=y
CONFIG_NET_TEAM_MODE_BROADCAST=y
CONFIG_NET_TEAM_MODE_ROUNDROBIN=y
CONFIG_NET_TEAM_MODE_RANDOM=y
CONFIG_NET_TEAM_MODE_ACTIVEBACKUP=y
CONFIG_NET_TEAM_MODE_LOADBALANCE=y
CONFIG_MACVLAN=y
CONFIG_MACVTAP=y
CONFIG_IPVLAN_L3S=y
CONFIG_IPVLAN=y
CONFIG_IPVTAP=y
CONFIG_VXLAN=y
CONFIG_GENEVE=y
CONFIG_BAREUDP=y
CONFIG_GTP=y
# CONFIG_PFCP is not set
# CONFIG_AMT is not set
CONFIG_MACSEC=y
CONFIG_NETCONSOLE=y
# CONFIG_NETCONSOLE_DYNAMIC is not set
# CONFIG_NETCONSOLE_EXTENDED_LOG is not set
CONFIG_NETPOLL=y
CONFIG_NET_POLL_CONTROLLER=y
CONFIG_TUN=y
CONFIG_TAP=y
CONFIG_TUN_VNET_CROSS_LE=y
CONFIG_VETH=y
CONFIG_VIRTIO_NET=y
CONFIG_NLMON=y
# CONFIG_NETKIT is not set
CONFIG_NET_VRF=y
CONFIG_VSOCKMON=y
# CONFIG_MHI_NET is not set
# CONFIG_ARCNET is not set
CONFIG_ATM_DRIVERS=y
# CONFIG_ATM_SOLOS is not set

#
# Distributed Switch Architecture drivers
#
# CONFIG_B53 is not set
# CONFIG_NET_DSA_BCM_SF2 is not set
# CONFIG_NET_DSA_LOOP is not set
# CONFIG_NET_DSA_HIRSCHMANN_HELLCREEK is not set
# CONFIG_NET_DSA_LANTIQ_GSWIP is not set
# CONFIG_NET_DSA_MXL_GSW1XX is not set
# CONFIG_NET_DSA_MT7530 is not set
# CONFIG_NET_DSA_MV88E6060 is not set
# CONFIG_NET_DSA_MICROCHIP_KSZ_COMMON is not set
# CONFIG_NET_DSA_MV88E6XXX is not set
# CONFIG_NET_DSA_MXL862 is not set
# CONFIG_NET_DSA_AR9331 is not set
# CONFIG_NET_DSA_QCA8K is not set
# CONFIG_NET_DSA_SJA1105 is not set
# CONFIG_NET_DSA_XRS700X_I2C is not set
# CONFIG_NET_DSA_XRS700X_MDIO is not set
# CONFIG_NET_DSA_REALTEK is not set
# CONFIG_NET_DSA_KS8995 is not set
# CONFIG_NET_DSA_SMSC_LAN9303_I2C is not set
# CONFIG_NET_DSA_SMSC_LAN9303_MDIO is not set
# CONFIG_NET_DSA_VITESSE_VSC73XX_SPI is not set
# CONFIG_NET_DSA_VITESSE_VSC73XX_PLATFORM is not set
# CONFIG_NET_DSA_YT921X is not set
# end of Distributed Switch Architecture drivers

CONFIG_ETHERNET=y
# CONFIG_NET_VENDOR_3COM is not set
# CONFIG_NET_VENDOR_ADAPTEC is not set
# CONFIG_NET_VENDOR_AGERE is not set
# CONFIG_NET_VENDOR_ALACRITECH is not set
CONFIG_NET_VENDOR_ALIBABA=y
# CONFIG_ALIBABA_EEA is not set
# CONFIG_ALTERA_TSE is not set
CONFIG_NET_VENDOR_AMAZON=y
# CONFIG_ENA_ETHERNET is not set
# CONFIG_NET_VENDOR_AMD is not set
# CONFIG_NET_VENDOR_AQUANTIA is not set
# CONFIG_NET_VENDOR_ARC is not set
CONFIG_NET_VENDOR_ASIX=y
# CONFIG_SPI_AX88796C is not set
# CONFIG_NET_VENDOR_ATHEROS is not set
# CONFIG_CX_ECAT is not set
# CONFIG_NET_VENDOR_BROADCOM is not set
# CONFIG_NET_VENDOR_CADENCE is not set
# CONFIG_NET_VENDOR_CAVIUM is not set
# CONFIG_NET_VENDOR_CHELSIO is not set
CONFIG_NET_VENDOR_CISCO=y
# CONFIG_ENIC is not set
# CONFIG_NET_VENDOR_CORTINA is not set
CONFIG_NET_VENDOR_DAVICOM=y
# CONFIG_DM9051 is not set
# CONFIG_NET_VENDOR_DEC is not set
# CONFIG_NET_VENDOR_DLINK is not set
# CONFIG_NET_VENDOR_EMULEX is not set
CONFIG_NET_VENDOR_ENGLEDER=y
# CONFIG_TSNEP is not set
# CONFIG_NET_VENDOR_EZCHIP is not set
CONFIG_NET_VENDOR_FUNGIBLE=y
# CONFIG_FUN_ETH is not set
CONFIG_NET_VENDOR_GOOGLE=y
CONFIG_GVE=y
CONFIG_NET_VENDOR_HISILICON=y
# CONFIG_HIBMCGE is not set
# CONFIG_NET_VENDOR_HUAWEI is not set
CONFIG_NET_VENDOR_I825XX=y
CONFIG_NET_VENDOR_INTEL=y
CONFIG_E100=y
CONFIG_E1000=y
CONFIG_E1000E=y
CONFIG_E1000E_HWTS=y
# CONFIG_IGB is not set
# CONFIG_IGBVF is not set
# CONFIG_IXGBE is not set
# CONFIG_IXGBEVF is not set
# CONFIG_I40E is not set
# CONFIG_I40EVF is not set
# CONFIG_ICE is not set
# CONFIG_FM10K is not set
# CONFIG_IGC is not set
# CONFIG_IDPF is not set
# CONFIG_IXD is not set
# CONFIG_JME is not set
# CONFIG_NET_VENDOR_ADI is not set
CONFIG_NET_VENDOR_LITEX=y
# CONFIG_LITEX_LITEETH is not set
# CONFIG_NET_VENDOR_MARVELL is not set
CONFIG_NET_VENDOR_MELLANOX=y
# CONFIG_MLX4_EN is not set
CONFIG_MLX4_CORE=y
# CONFIG_MLX4_DEBUG is not set
# CONFIG_MLX4_CORE_GEN2 is not set
# CONFIG_MLX5_CORE is not set
# CONFIG_MLXSW_CORE is not set
# CONFIG_MLXFW is not set
CONFIG_NET_VENDOR_META=y
# CONFIG_FBNIC is not set
# CONFIG_NET_VENDOR_MICREL is not set
# CONFIG_NET_VENDOR_MICROCHIP is not set
# CONFIG_NET_VENDOR_MICROSEMI is not set
CONFIG_NET_VENDOR_MICROSOFT=y
CONFIG_NET_VENDOR_MUCSE=y
# CONFIG_MGBE is not set
# CONFIG_NET_VENDOR_MYRI is not set
# CONFIG_FEALNX is not set
# CONFIG_NET_VENDOR_NI is not set
# CONFIG_NET_VENDOR_NATSEMI is not set
# CONFIG_NET_VENDOR_NETRONOME is not set
# CONFIG_NET_VENDOR_NVIDIA is not set
# CONFIG_NET_VENDOR_OKI is not set
# CONFIG_ETHOC is not set
# CONFIG_NET_VENDOR_PENSANDO is not set
# CONFIG_NET_VENDOR_QLOGIC is not set
# CONFIG_NET_VENDOR_BROCADE is not set
# CONFIG_NET_VENDOR_QUALCOMM is not set
# CONFIG_NET_VENDOR_RDC is not set
# CONFIG_NET_VENDOR_REALTEK is not set
# CONFIG_NET_VENDOR_RENESAS is not set
# CONFIG_NET_VENDOR_ROCKER is not set
# CONFIG_NET_VENDOR_SAMSUNG is not set
# CONFIG_NET_VENDOR_SEEQ is not set
# CONFIG_NET_VENDOR_SILAN is not set
# CONFIG_NET_VENDOR_SIS is not set
# CONFIG_NET_VENDOR_SOLARFLARE is not set
# CONFIG_NET_VENDOR_SMSC is not set
# CONFIG_NET_VENDOR_SOCIONEXT is not set
# CONFIG_NET_VENDOR_STMICRO is not set
# CONFIG_NET_VENDOR_SUN is not set
# CONFIG_NET_VENDOR_SYNOPSYS is not set
# CONFIG_NET_VENDOR_TEHUTI is not set
# CONFIG_NET_VENDOR_TI is not set
CONFIG_NET_VENDOR_VERTEXCOM=y
# CONFIG_MSE102X is not set
# CONFIG_NET_VENDOR_VIA is not set
CONFIG_NET_VENDOR_WANGXUN=y
# CONFIG_NGBE is not set
# CONFIG_TXGBE is not set
# CONFIG_TXGBEVF is not set
# CONFIG_NGBEVF is not set
# CONFIG_NET_VENDOR_WIZNET is not set
# CONFIG_NET_VENDOR_XILINX is not set
# CONFIG_NET_VENDOR_XIRCOM is not set
CONFIG_NET_VENDOR_ZTE=y
# CONFIG_DINGHAI is not set
CONFIG_FDDI=y
# CONFIG_DEFXX is not set
# CONFIG_SKFP is not set
CONFIG_PHYLINK=y
CONFIG_PHYLIB=y
CONFIG_SWPHY=y
CONFIG_PHY_PACKAGE=y
# CONFIG_LED_TRIGGER_PHY is not set
CONFIG_PHYLIB_LEDS=y
CONFIG_FIXED_PHY=y
# CONFIG_SFP is not set

#
# MII PHY device drivers
#
# CONFIG_AS21XXX_PHY is not set
# CONFIG_AIR_AN8801_PHY is not set
# CONFIG_AIR_EN8811H_PHY is not set
# CONFIG_AMD_PHY is not set
# CONFIG_ADIN_PHY is not set
# CONFIG_ADIN1100_PHY is not set
# CONFIG_ADIN1140_PHY is not set
# CONFIG_AQUANTIA_PHY is not set
CONFIG_AX88796B_PHY=y
# CONFIG_BROADCOM_PHY is not set
# CONFIG_BCM54140_PHY is not set
# CONFIG_BCM7XXX_PHY is not set
# CONFIG_BCM84881_PHY is not set
# CONFIG_BCM87XX_PHY is not set
# CONFIG_CICADA_PHY is not set
# CONFIG_CORTINA_PHY is not set
# CONFIG_DAP8211R_PHY is not set
# CONFIG_DAVICOM_PHY is not set
# CONFIG_ICPLUS_PHY is not set
# CONFIG_LXT_PHY is not set
# CONFIG_INTEL_XWAY_PHY is not set
# CONFIG_LSI_ET1011C_PHY is not set
# CONFIG_MARVELL_PHY is not set
# CONFIG_MARVELL_10G_PHY is not set
# CONFIG_MARVELL_88Q2XXX_PHY is not set
# CONFIG_MARVELL_88X2222_PHY is not set
# CONFIG_MAXLINEAR_GPHY is not set
# CONFIG_MAXLINEAR_86110_PHY is not set
# CONFIG_MEDIATEK_GE_PHY is not set
# CONFIG_MICREL_PHY is not set
# CONFIG_MICROCHIP_T1S_PHY is not set
CONFIG_MICROCHIP_PHY=y
# CONFIG_MICROCHIP_T1_PHY is not set
# CONFIG_MICROSEMI_PHY is not set
# CONFIG_MOTORCOMM_PHY is not set
# CONFIG_NATIONAL_PHY is not set
# CONFIG_NXP_CBTX_PHY is not set
# CONFIG_NXP_C45_TJA11XX_PHY is not set
# CONFIG_NXP_TJA11XX_PHY is not set
# CONFIG_NCN26000_PHY is not set
# CONFIG_AT803X_PHY is not set
# CONFIG_QCA83XX_PHY is not set
# CONFIG_QCA808X_PHY is not set
# CONFIG_QCA807X_PHY is not set
# CONFIG_QSEMI_PHY is not set
CONFIG_REALTEK_PHY=y
# CONFIG_REALTEK_PHY_HWMON is not set
# CONFIG_RENESAS_PHY is not set
# CONFIG_ROCKCHIP_PHY is not set
CONFIG_SMSC_PHY=y
# CONFIG_STE10XP is not set
# CONFIG_TERANETICS_PHY is not set
# CONFIG_DP83822_PHY is not set
# CONFIG_DP83TC811_PHY is not set
# CONFIG_DP83848_PHY is not set
# CONFIG_DP83867_PHY is not set
# CONFIG_DP83869_PHY is not set
# CONFIG_DP83TD510_PHY is not set
# CONFIG_DP83TG720_PHY is not set
# CONFIG_VITESSE_PHY is not set
# CONFIG_XILINX_GMII2RGMII is not set
# CONFIG_PSE_CONTROLLER is not set
CONFIG_CAN_DEV=y
CONFIG_CAN_VCAN=y
CONFIG_CAN_VXCAN=y
CONFIG_CAN_NETLINK=y
CONFIG_CAN_CALC_BITTIMING=y
CONFIG_CAN_RX_OFFLOAD=y
# CONFIG_CAN_CAN327 is not set
# CONFIG_CAN_DUMMY is not set
# CONFIG_CAN_FLEXCAN is not set
# CONFIG_CAN_GRCAN is not set
# CONFIG_CAN_KVASER_PCIEFD is not set
CONFIG_CAN_SLCAN=y
# CONFIG_CAN_VIRTIO_CAN is not set
# CONFIG_CAN_C_CAN is not set
# CONFIG_CAN_CC770 is not set
# CONFIG_CAN_CTUCANFD_PCI is not set
# CONFIG_CAN_CTUCANFD_PLATFORM is not set
# CONFIG_CAN_ESD_402_PCI is not set
CONFIG_CAN_IFI_CANFD=y
# CONFIG_CAN_M_CAN is not set
# CONFIG_CAN_PEAK_PCIEFD is not set
# CONFIG_CAN_SJA1000 is not set
# CONFIG_CAN_SOFTING is not set

#
# CAN SPI interfaces
#
# CONFIG_CAN_HI311X is not set
# CONFIG_CAN_MCP251X is not set
# CONFIG_CAN_MCP251XFD is not set
# end of CAN SPI interfaces

#
# CAN USB interfaces
#
CONFIG_CAN_8DEV_USB=y
CONFIG_CAN_EMS_USB=y
CONFIG_CAN_ESD_USB=y
CONFIG_CAN_ETAS_ES58X=y
CONFIG_CAN_F81604=y
CONFIG_CAN_GS_USB=y
CONFIG_CAN_KVASER_USB=y
CONFIG_CAN_MCBA_USB=y
CONFIG_CAN_PEAK_USB=y
CONFIG_CAN_UCAN=y
# end of CAN USB interfaces

# CONFIG_CAN_DEBUG_DEVICES is not set

#
# MCTP Device Drivers
#
# CONFIG_MCTP_SERIAL is not set
# CONFIG_MCTP_TRANSPORT_I2C is not set
# CONFIG_MCTP_TRANSPORT_USBLIB is not set
# CONFIG_MCTP_TRANSPORT_USB is not set
# end of MCTP Device Drivers

#
# MDIO controller drivers
#
CONFIG_FWNODE_MDIO=y
CONFIG_OF_MDIO=y
CONFIG_ACPI_MDIO=y
# CONFIG_MDIO_BITBANG is not set
# CONFIG_MDIO_BCM_UNIMAC is not set
# CONFIG_MDIO_HISI_FEMAC is not set
CONFIG_MDIO_MVUSB=y
# CONFIG_MDIO_MSCC_MIIM is not set
# CONFIG_MDIO_OCTEON is not set
# CONFIG_MDIO_IPQ4019 is not set
# CONFIG_MDIO_IPQ8064 is not set
# CONFIG_MDIO_THUNDER is not set

#
# MDIO Multiplexers
#
# CONFIG_MDIO_BUS_MUX_GPIO is not set
# CONFIG_MDIO_BUS_MUX_MULTIPLEXER is not set
# CONFIG_MDIO_BUS_MUX_MMIOREG is not set
# end of MDIO Multiplexers
# end of MDIO controller drivers

#
# PCS device drivers
#
# CONFIG_PCS_XPCS is not set
# end of PCS device drivers

# CONFIG_PLIP is not set
CONFIG_PPP=y
CONFIG_PPP_BSDCOMP=y
CONFIG_PPP_DEFLATE=y
CONFIG_PPP_FILTER=y
CONFIG_PPP_MPPE=y
CONFIG_PPP_MULTILINK=y
CONFIG_PPPOATM=y
CONFIG_PPPOX=y
CONFIG_PPPOE=y
CONFIG_PPPOE_HASH_BITS_1=y
# CONFIG_PPPOE_HASH_BITS_2 is not set
# CONFIG_PPPOE_HASH_BITS_4 is not set
# CONFIG_PPPOE_HASH_BITS_8 is not set
CONFIG_PPPOE_HASH_BITS=1
CONFIG_PPTP=y
CONFIG_PPPOL2TP=y
CONFIG_PPP_ASYNC=y
CONFIG_PPP_SYNC_TTY=y
CONFIG_SLIP=y
CONFIG_SLHC=y
CONFIG_SLIP_COMPRESSED=y
CONFIG_SLIP_SMART=y
CONFIG_SLIP_MODE_SLIP6=y
CONFIG_USB_NET_DRIVERS=y
CONFIG_USB_CATC=y
CONFIG_USB_KAWETH=y
CONFIG_USB_PEGASUS=y
CONFIG_USB_RTL8150=y
CONFIG_USB_RTL8152=y
CONFIG_USB_LAN78XX=y
CONFIG_USB_USBNET=y
CONFIG_USB_NET_AX8817X=y
CONFIG_USB_NET_AX88179_178A=y
CONFIG_USB_NET_CDCETHER=y
CONFIG_USB_NET_CDC_EEM=y
CONFIG_USB_NET_CDC_NCM=y
CONFIG_USB_NET_HUAWEI_CDC_NCM=y
CONFIG_USB_NET_CDC_MBIM=y
CONFIG_USB_NET_DM9601=y
CONFIG_USB_NET_SR9700=y
CONFIG_USB_NET_SR9800=y
CONFIG_USB_NET_SMSC75XX=y
CONFIG_USB_NET_SMSC95XX=y
CONFIG_USB_NET_GL620A=y
CONFIG_USB_NET_NET1080=y
CONFIG_USB_NET_PLUSB=y
CONFIG_USB_NET_MCS7830=y
CONFIG_USB_NET_RNDIS_HOST=y
CONFIG_USB_NET_CDC_SUBSET_ENABLE=y
CONFIG_USB_NET_CDC_SUBSET=y
CONFIG_USB_ALI_M5632=y
CONFIG_USB_AN2720=y
CONFIG_USB_BELKIN=y
CONFIG_USB_ARMLINUX=y
CONFIG_USB_EPSON2888=y
CONFIG_USB_KC2190=y
CONFIG_USB_NET_ZAURUS=y
CONFIG_USB_NET_CX82310_ETH=y
CONFIG_USB_NET_KALMIA=y
CONFIG_USB_NET_QMI_WWAN=y
CONFIG_USB_HSO=y
CONFIG_USB_NET_INT51X1=y
CONFIG_USB_CDC_PHONET=y
CONFIG_USB_IPHETH=y
CONFIG_USB_SIERRA_NET=y
CONFIG_USB_VL600=y
CONFIG_USB_NET_CH9200=y
CONFIG_USB_NET_AQC111=y
CONFIG_USB_RTL8153_ECM=y
CONFIG_WLAN=y
CONFIG_WLAN_VENDOR_ADMTEK=y
# CONFIG_ADM8211 is not set
CONFIG_ATH_COMMON=y
CONFIG_WLAN_VENDOR_ATH=y
# CONFIG_ATH_DEBUG is not set
# CONFIG_ATH5K is not set
# CONFIG_ATH5K_PCI is not set
CONFIG_ATH9K_HW=y
CONFIG_ATH9K_COMMON=y
CONFIG_ATH9K_COMMON_DEBUG=y
CONFIG_ATH9K_BTCOEX_SUPPORT=y
CONFIG_ATH9K=y
CONFIG_ATH9K_PCI=y
CONFIG_ATH9K_AHB=y
CONFIG_ATH9K_DEBUGFS=y
# CONFIG_ATH9K_STATION_STATISTICS is not set
CONFIG_ATH9K_DYNACK=y
# CONFIG_ATH9K_WOW is not set
CONFIG_ATH9K_RFKILL=y
CONFIG_ATH9K_CHANNEL_CONTEXT=y
CONFIG_ATH9K_PCOEM=y
# CONFIG_ATH9K_PCI_NO_EEPROM is not set
CONFIG_ATH9K_HTC=y
CONFIG_ATH9K_HTC_DEBUGFS=y
# CONFIG_ATH9K_HWRNG is not set
CONFIG_ATH9K_COMMON_SPECTRAL=y
CONFIG_CARL9170=y
CONFIG_CARL9170_LEDS=y
# CONFIG_CARL9170_DEBUGFS is not set
CONFIG_CARL9170_WPC=y
CONFIG_CARL9170_HWRNG=y
CONFIG_ATH6KL=y
# CONFIG_ATH6KL_SDIO is not set
CONFIG_ATH6KL_USB=y
# CONFIG_ATH6KL_DEBUG is not set
# CONFIG_ATH6KL_TRACING is not set
CONFIG_AR5523=y
# CONFIG_WIL6210 is not set
CONFIG_ATH10K=y
CONFIG_ATH10K_CE=y
CONFIG_ATH10K_PCI=y
# CONFIG_ATH10K_AHB is not set
# CONFIG_ATH10K_SDIO is not set
CONFIG_ATH10K_USB=y
# CONFIG_ATH10K_DEBUG is not set
# CONFIG_ATH10K_DEBUGFS is not set
CONFIG_ATH10K_LEDS=y
# CONFIG_ATH10K_TRACING is not set
# CONFIG_WCN36XX is not set
CONFIG_ATH11K=y
# CONFIG_ATH11K_PCI is not set
# CONFIG_ATH11K_DEBUG is not set
# CONFIG_ATH11K_DEBUGFS is not set
# CONFIG_ATH11K_TRACING is not set
# CONFIG_ATH12K is not set
# CONFIG_WLAN_VENDOR_ATMEL is not set
# CONFIG_WLAN_VENDOR_BROADCOM is not set
# CONFIG_WLAN_VENDOR_INTEL is not set
# CONFIG_WLAN_VENDOR_INTERSIL is not set
# CONFIG_WLAN_VENDOR_MARVELL is not set
# CONFIG_WLAN_VENDOR_MEDIATEK is not set
# CONFIG_WLAN_VENDOR_MICROCHIP is not set
CONFIG_WLAN_VENDOR_MORSEMICRO=y
# CONFIG_MM81X_USB is not set
# CONFIG_MM81X_SDIO is not set
CONFIG_WLAN_VENDOR_NXP=y
# CONFIG_NXPWIFI_SDIO is not set
CONFIG_WLAN_VENDOR_PURELIFI=y
CONFIG_PLFXLC=y
# CONFIG_WLAN_VENDOR_RALINK is not set
# CONFIG_WLAN_VENDOR_REALTEK is not set
# CONFIG_WLAN_VENDOR_RSI is not set
CONFIG_WLAN_VENDOR_SILABS=y
# CONFIG_WFX is not set
# CONFIG_WLAN_VENDOR_ST is not set
# CONFIG_WLAN_VENDOR_TI is not set
# CONFIG_WLAN_VENDOR_ZYDAS is not set
# CONFIG_WLAN_VENDOR_QUANTENNA is not set
CONFIG_MAC80211_HWSIM=y
CONFIG_VIRT_WIFI=y
CONFIG_WAN=y
CONFIG_HDLC=y
CONFIG_HDLC_RAW=y
CONFIG_HDLC_RAW_ETH=y
CONFIG_HDLC_CISCO=y
CONFIG_HDLC_FR=y
CONFIG_HDLC_PPP=y
CONFIG_HDLC_X25=y
# CONFIG_FRAMER is not set
# CONFIG_PCI200SYN is not set
# CONFIG_WANXL is not set
# CONFIG_PC300TOO is not set
# CONFIG_FARSYNC is not set
CONFIG_LAPBETHER=y
CONFIG_IEEE802154_DRIVERS=y
# CONFIG_IEEE802154_FAKELB is not set
# CONFIG_IEEE802154_AT86RF230 is not set
# CONFIG_IEEE802154_MRF24J40 is not set
# CONFIG_IEEE802154_CC2520 is not set
CONFIG_IEEE802154_ATUSB=y
# CONFIG_IEEE802154_ADF7242 is not set
# CONFIG_IEEE802154_CA8210 is not set
# CONFIG_IEEE802154_MCR20A is not set
CONFIG_IEEE802154_HWSIM=y

#
# Wireless WAN
#
CONFIG_WWAN=y
# CONFIG_WWAN_DEBUGFS is not set
# CONFIG_WWAN_HWSIM is not set
CONFIG_MHI_WWAN_CTRL=y
# CONFIG_MHI_WWAN_MBIM is not set
# CONFIG_IOSM is not set
# CONFIG_MTK_T7XX is not set
# end of Wireless WAN

CONFIG_VMXNET3=y
# CONFIG_FUJITSU_ES is not set
CONFIG_USB4_NET=y
CONFIG_NETDEVSIM=y
CONFIG_NET_FAILOVER=y

#
# Input device support
#
CONFIG_INPUT=y
CONFIG_INPUT_LEDS=y
CONFIG_INPUT_FF_MEMLESS=y
CONFIG_INPUT_SPARSEKMAP=y
# CONFIG_INPUT_MATRIXKMAP is not set
CONFIG_INPUT_VIVALDIFMAP=y

#
# Userland interfaces
#
CONFIG_INPUT_MOUSEDEV=y
CONFIG_INPUT_MOUSEDEV_PSAUX=y
CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024
CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
CONFIG_INPUT_JOYDEV=y
CONFIG_INPUT_EVDEV=y

#
# Input Device Drivers
#
CONFIG_INPUT_KEYBOARD=y
# CONFIG_KEYBOARD_ADC is not set
# CONFIG_KEYBOARD_ADP5588 is not set
CONFIG_KEYBOARD_ATKBD=y
# CONFIG_KEYBOARD_QT1050 is not set
# CONFIG_KEYBOARD_QT1070 is not set
# CONFIG_KEYBOARD_QT2160 is not set
# CONFIG_KEYBOARD_DLINK_DIR685 is not set
# CONFIG_KEYBOARD_LKKBD is not set
# CONFIG_KEYBOARD_GPIO is not set
# CONFIG_KEYBOARD_GPIO_POLLED is not set
# CONFIG_KEYBOARD_TCA8418 is not set
# CONFIG_KEYBOARD_MATRIX is not set
# CONFIG_KEYBOARD_CHARLIEPLEX is not set
# CONFIG_KEYBOARD_LM8323 is not set
# CONFIG_KEYBOARD_LM8333 is not set
# CONFIG_KEYBOARD_MAX7359 is not set
# CONFIG_KEYBOARD_MPR121 is not set
# CONFIG_KEYBOARD_NEWTON is not set
# CONFIG_KEYBOARD_OPENCORES is not set
# CONFIG_KEYBOARD_PINEPHONE is not set
# CONFIG_KEYBOARD_SAMSUNG is not set
# CONFIG_KEYBOARD_STOWAWAY is not set
# CONFIG_KEYBOARD_SUNKBD is not set
# CONFIG_KEYBOARD_OMAP4 is not set
# CONFIG_KEYBOARD_TM2_TOUCHKEY is not set
# CONFIG_KEYBOARD_TWL4030 is not set
# CONFIG_KEYBOARD_XTKBD is not set
# CONFIG_KEYBOARD_CAP11XX is not set
# CONFIG_KEYBOARD_BCM is not set
# CONFIG_KEYBOARD_CYPRESS_SF is not set
CONFIG_INPUT_MOUSE=y
CONFIG_MOUSE_PS2=y
CONFIG_MOUSE_PS2_ALPS=y
CONFIG_MOUSE_PS2_BYD=y
CONFIG_MOUSE_PS2_LOGIPS2PP=y
CONFIG_MOUSE_PS2_SYNAPTICS=y
CONFIG_MOUSE_PS2_SYNAPTICS_SMBUS=y
CONFIG_MOUSE_PS2_CYPRESS=y
CONFIG_MOUSE_PS2_LIFEBOOK=y
CONFIG_MOUSE_PS2_TRACKPOINT=y
# CONFIG_MOUSE_PS2_ELANTECH is not set
# CONFIG_MOUSE_PS2_SENTELIC is not set
# CONFIG_MOUSE_PS2_TOUCHKIT is not set
CONFIG_MOUSE_PS2_FOCALTECH=y
# CONFIG_MOUSE_PS2_VMMOUSE is not set
CONFIG_MOUSE_PS2_SMBUS=y
# CONFIG_MOUSE_SERIAL is not set
CONFIG_MOUSE_APPLETOUCH=y
CONFIG_MOUSE_BCM5974=y
# CONFIG_MOUSE_CYAPA is not set
# CONFIG_MOUSE_ELAN_I2C is not set
# CONFIG_MOUSE_VSXXXAA is not set
# CONFIG_MOUSE_GPIO is not set
# CONFIG_MOUSE_SYNAPTICS_I2C is not set
CONFIG_MOUSE_SYNAPTICS_USB=y
CONFIG_INPUT_JOYSTICK=y
# CONFIG_JOYSTICK_ANALOG is not set
# CONFIG_JOYSTICK_A3D is not set
# CONFIG_JOYSTICK_ADC is not set
# CONFIG_JOYSTICK_ADI is not set
# CONFIG_JOYSTICK_COBRA is not set
# CONFIG_JOYSTICK_GF2K is not set
# CONFIG_JOYSTICK_GRIP is not set
# CONFIG_JOYSTICK_GRIP_MP is not set
# CONFIG_JOYSTICK_GUILLEMOT is not set
# CONFIG_JOYSTICK_INTERACT is not set
# CONFIG_JOYSTICK_SIDEWINDER is not set
# CONFIG_JOYSTICK_TMDC is not set
CONFIG_JOYSTICK_IFORCE=y
CONFIG_JOYSTICK_IFORCE_USB=y
# CONFIG_JOYSTICK_IFORCE_232 is not set
# CONFIG_JOYSTICK_WARRIOR is not set
# CONFIG_JOYSTICK_MAGELLAN is not set
# CONFIG_JOYSTICK_SPACEORB is not set
# CONFIG_JOYSTICK_SPACEBALL is not set
# CONFIG_JOYSTICK_STINGER is not set
# CONFIG_JOYSTICK_TWIDJOY is not set
# CONFIG_JOYSTICK_ZHENHUA is not set
# CONFIG_JOYSTICK_DB9 is not set
# CONFIG_JOYSTICK_GAMECON is not set
# CONFIG_JOYSTICK_TURBOGRAFX is not set
# CONFIG_JOYSTICK_AS5011 is not set
# CONFIG_JOYSTICK_JOYDUMP is not set
CONFIG_JOYSTICK_XPAD=y
CONFIG_JOYSTICK_XPAD_FF=y
CONFIG_JOYSTICK_XPAD_LEDS=y
# CONFIG_JOYSTICK_WALKERA0701 is not set
# CONFIG_JOYSTICK_PSXPAD_SPI is not set
CONFIG_JOYSTICK_PXRC=y
# CONFIG_JOYSTICK_QWIIC is not set
# CONFIG_JOYSTICK_FSIA6B is not set
# CONFIG_JOYSTICK_SENSEHAT is not set
# CONFIG_JOYSTICK_SEESAW is not set
CONFIG_INPUT_TABLET=y
CONFIG_TABLET_USB_ACECAD=y
CONFIG_TABLET_USB_AIPTEK=y
CONFIG_TABLET_USB_HANWANG=y
CONFIG_TABLET_USB_KBTAB=y
CONFIG_TABLET_USB_PEGASUS=y
# CONFIG_TABLET_SERIAL_WACOM4 is not set
CONFIG_INPUT_TOUCHSCREEN=y
# CONFIG_TOUCHSCREEN_ADS7846 is not set
# CONFIG_TOUCHSCREEN_AD7877 is not set
# CONFIG_TOUCHSCREEN_AD7879 is not set
# CONFIG_TOUCHSCREEN_ADC is not set
# CONFIG_TOUCHSCREEN_AR1021_I2C is not set
# CONFIG_TOUCHSCREEN_ATMEL_MXT is not set
# CONFIG_TOUCHSCREEN_AUO_PIXCIR is not set
# CONFIG_TOUCHSCREEN_BU21013 is not set
# CONFIG_TOUCHSCREEN_BU21029 is not set
# CONFIG_TOUCHSCREEN_CHIPONE_ICN8318 is not set
# CONFIG_TOUCHSCREEN_CHIPONE_ICN8505 is not set
# CONFIG_TOUCHSCREEN_CY8CTMA140 is not set
# CONFIG_TOUCHSCREEN_CY8CTMG110 is not set
# CONFIG_TOUCHSCREEN_CYTTSP_CORE is not set
# CONFIG_TOUCHSCREEN_CYTTSP5 is not set
# CONFIG_TOUCHSCREEN_DYNAPRO is not set
# CONFIG_TOUCHSCREEN_HAMPSHIRE is not set
# CONFIG_TOUCHSCREEN_EETI is not set
# CONFIG_TOUCHSCREEN_EGALAX is not set
# CONFIG_TOUCHSCREEN_EGALAX_SERIAL is not set
# CONFIG_TOUCHSCREEN_EXC3000 is not set
# CONFIG_TOUCHSCREEN_FUJITSU is not set
# CONFIG_TOUCHSCREEN_GOODIX is not set
# CONFIG_TOUCHSCREEN_GOODIX_BERLIN_I2C is not set
# CONFIG_TOUCHSCREEN_GOODIX_BERLIN_SPI is not set
# CONFIG_TOUCHSCREEN_HIDEEP is not set
# CONFIG_TOUCHSCREEN_HIMAX_HX852X is not set
# CONFIG_TOUCHSCREEN_HYCON_HY46XX is not set
# CONFIG_TOUCHSCREEN_HYNITRON_CSTXXX is not set
# CONFIG_TOUCHSCREEN_HYNITRON_CST816X is not set
# CONFIG_TOUCHSCREEN_ILI210X is not set
# CONFIG_TOUCHSCREEN_ILITEK is not set
# CONFIG_TOUCHSCREEN_S6SY761 is not set
# CONFIG_TOUCHSCREEN_GUNZE is not set
# CONFIG_TOUCHSCREEN_EKTF2127 is not set
# CONFIG_TOUCHSCREEN_ELAN is not set
# CONFIG_TOUCHSCREEN_ELO is not set
# CONFIG_TOUCHSCREEN_WACOM_W8001 is not set
# CONFIG_TOUCHSCREEN_WACOM_I2C is not set
# CONFIG_TOUCHSCREEN_WACOM_W9000 is not set
# CONFIG_TOUCHSCREEN_MAX11801 is not set
# CONFIG_TOUCHSCREEN_MMS114 is not set
# CONFIG_TOUCHSCREEN_MELFAS_MIP4 is not set
# CONFIG_TOUCHSCREEN_MSG2638 is not set
# CONFIG_TOUCHSCREEN_MTOUCH is not set
# CONFIG_TOUCHSCREEN_NOVATEK_NVT_TS is not set
# CONFIG_TOUCHSCREEN_IMAGIS is not set
# CONFIG_TOUCHSCREEN_IMX6UL_TSC is not set
# CONFIG_TOUCHSCREEN_INEXIO is not set
# CONFIG_TOUCHSCREEN_PENMOUNT is not set
# CONFIG_TOUCHSCREEN_EDT_FT5X06 is not set
# CONFIG_TOUCHSCREEN_TOUCHRIGHT is not set
# CONFIG_TOUCHSCREEN_TOUCHWIN is not set
# CONFIG_TOUCHSCREEN_PIXCIR is not set
# CONFIG_TOUCHSCREEN_WDT87XX_I2C is not set
CONFIG_TOUCHSCREEN_USB_COMPOSITE=y
CONFIG_TOUCHSCREEN_USB_EGALAX=y
CONFIG_TOUCHSCREEN_USB_PANJIT=y
CONFIG_TOUCHSCREEN_USB_3M=y
CONFIG_TOUCHSCREEN_USB_ITM=y
CONFIG_TOUCHSCREEN_USB_ETURBO=y
CONFIG_TOUCHSCREEN_USB_GUNZE=y
CONFIG_TOUCHSCREEN_USB_DMC_TSC10=y
CONFIG_TOUCHSCREEN_USB_IRTOUCH=y
CONFIG_TOUCHSCREEN_USB_IDEALTEK=y
CONFIG_TOUCHSCREEN_USB_GENERAL_TOUCH=y
CONFIG_TOUCHSCREEN_USB_GOTOP=y
CONFIG_TOUCHSCREEN_USB_JASTEC=y
CONFIG_TOUCHSCREEN_USB_ELO=y
CONFIG_TOUCHSCREEN_USB_E2I=y
CONFIG_TOUCHSCREEN_USB_ZYTRONIC=y
CONFIG_TOUCHSCREEN_USB_ETT_TC45USB=y
CONFIG_TOUCHSCREEN_USB_NEXIO=y
CONFIG_TOUCHSCREEN_USB_EASYTOUCH=y
# CONFIG_TOUCHSCREEN_TOUCHIT213 is not set
# CONFIG_TOUCHSCREEN_TSC_SERIO is not set
# CONFIG_TOUCHSCREEN_TSC2004 is not set
# CONFIG_TOUCHSCREEN_TSC2005 is not set
# CONFIG_TOUCHSCREEN_TSC2007 is not set
# CONFIG_TOUCHSCREEN_RM_TS is not set
# CONFIG_TOUCHSCREEN_SILEAD is not set
# CONFIG_TOUCHSCREEN_SIS_I2C is not set
# CONFIG_TOUCHSCREEN_ST1232 is not set
# CONFIG_TOUCHSCREEN_STMFTS is not set
CONFIG_TOUCHSCREEN_SUR40=y
# CONFIG_TOUCHSCREEN_SURFACE3_SPI is not set
# CONFIG_TOUCHSCREEN_SX8654 is not set
# CONFIG_TOUCHSCREEN_TPS6507X is not set
# CONFIG_TOUCHSCREEN_ZET6223 is not set
# CONFIG_TOUCHSCREEN_ZFORCE is not set
# CONFIG_TOUCHSCREEN_COLIBRI_VF50 is not set
# CONFIG_TOUCHSCREEN_ROHM_BU21023 is not set
# CONFIG_TOUCHSCREEN_IQS5XX is not set
# CONFIG_TOUCHSCREEN_IQS7211 is not set
# CONFIG_TOUCHSCREEN_ZINITIX is not set
# CONFIG_TOUCHSCREEN_HIMAX_HX83112B is not set
CONFIG_INPUT_MISC=y
# CONFIG_INPUT_AD714X is not set
# CONFIG_INPUT_ATMEL_CAPTOUCH is not set
# CONFIG_INPUT_AW86927 is not set
# CONFIG_INPUT_BMA150 is not set
# CONFIG_INPUT_E3X0_BUTTON is not set
# CONFIG_INPUT_PCSPKR is not set
# CONFIG_INPUT_MMA8450 is not set
# CONFIG_INPUT_APANEL is not set
# CONFIG_INPUT_GPIO_BEEPER is not set
# CONFIG_INPUT_GPIO_DECODER is not set
# CONFIG_INPUT_GPIO_VIBRA is not set
# CONFIG_INPUT_ATLAS_BTNS is not set
CONFIG_INPUT_ATI_REMOTE2=y
CONFIG_INPUT_KEYSPAN_REMOTE=y
# CONFIG_INPUT_KXTJ9 is not set
CONFIG_INPUT_POWERMATE=y
CONFIG_INPUT_YEALINK=y
CONFIG_INPUT_CM109=y
# CONFIG_INPUT_REGULATOR_HAPTIC is not set
# CONFIG_INPUT_RETU_PWRBUTTON is not set
# CONFIG_INPUT_TWL4030_PWRBUTTON is not set
# CONFIG_INPUT_TWL4030_VIBRA is not set
CONFIG_INPUT_UINPUT=y
# CONFIG_INPUT_PCF8574 is not set
# CONFIG_INPUT_GPIO_ROTARY_ENCODER is not set
# CONFIG_INPUT_DA7280_HAPTICS is not set
# CONFIG_INPUT_ADXL34X is not set
# CONFIG_INPUT_IBM_PANEL is not set
CONFIG_INPUT_IMS_PCU=y
# CONFIG_INPUT_IQS269A is not set
# CONFIG_INPUT_IQS626A is not set
# CONFIG_INPUT_IQS7222 is not set
# CONFIG_INPUT_ISA1200_HAPTIC is not set
# CONFIG_INPUT_CMA3000 is not set
# CONFIG_INPUT_IDEAPAD_SLIDEBAR is not set
# CONFIG_INPUT_AMD_SFH_TABLETMODE is not set
# CONFIG_INPUT_DRV260X_HAPTICS is not set
# CONFIG_INPUT_DRV2665_HAPTICS is not set
# CONFIG_INPUT_DRV2667_HAPTICS is not set
CONFIG_RMI4_CORE=y
# CONFIG_RMI4_I2C is not set
# CONFIG_RMI4_SPI is not set
# CONFIG_RMI4_SMB is not set
CONFIG_RMI4_F03=y
CONFIG_RMI4_F03_SERIO=y
CONFIG_RMI4_2D_SENSOR=y
CONFIG_RMI4_F11=y
CONFIG_RMI4_F12=y
# CONFIG_RMI4_F1A is not set
# CONFIG_RMI4_F21 is not set
CONFIG_RMI4_F30=y
# CONFIG_RMI4_F34 is not set
CONFIG_RMI4_F3A=y
# CONFIG_RMI4_F54 is not set
# CONFIG_RMI4_F55 is not set

#
# Hardware I/O ports
#
CONFIG_SERIO=y
CONFIG_ARCH_MIGHT_HAVE_PC_SERIO=y
CONFIG_SERIO_I8042=y
CONFIG_SERIO_SERPORT=y
# CONFIG_SERIO_PARKBD is not set
# CONFIG_SERIO_PCIPS2 is not set
CONFIG_SERIO_LIBPS2=y
# CONFIG_SERIO_RAW is not set
# CONFIG_SERIO_ALTERA_PS2 is not set
# CONFIG_SERIO_PS2MULT is not set
# CONFIG_SERIO_ARC_PS2 is not set
# CONFIG_SERIO_APBPS2 is not set
# CONFIG_SERIO_GPIO_PS2 is not set
CONFIG_USERIO=y
# CONFIG_GAMEPORT is not set
# end of Hardware I/O ports
# end of Input device support

#
# Character devices
#
CONFIG_TTY=y
CONFIG_VT=y
CONFIG_CONSOLE_TRANSLATIONS=y
CONFIG_VT_CONSOLE=y
CONFIG_VT_CONSOLE_SLEEP=y
CONFIG_VT_HW_CONSOLE_BINDING=y
CONFIG_UNIX98_PTYS=y
CONFIG_LEGACY_PTYS=y
CONFIG_LEGACY_PTY_COUNT=256
CONFIG_LEGACY_TIOCSTI=y
CONFIG_LDISC_AUTOLOAD=y

#
# Serial drivers
#
CONFIG_SERIAL_EARLYCON=y
CONFIG_SERIAL_8250=y
CONFIG_SERIAL_8250_PNP=y
# CONFIG_SERIAL_8250_16550A_VARIANTS is not set
# CONFIG_SERIAL_8250_FINTEK is not set
CONFIG_SERIAL_8250_CONSOLE=y
CONFIG_SERIAL_8250_DMA=y
CONFIG_SERIAL_8250_PCILIB=y
CONFIG_SERIAL_8250_PCI=y
# CONFIG_SERIAL_8250_EXAR is not set
CONFIG_SERIAL_8250_MOXA_PCIE=y
# CONFIG_SERIAL_8250_CS is not set
CONFIG_SERIAL_8250_NR_UARTS=32
CONFIG_SERIAL_8250_RUNTIME_UARTS=4
CONFIG_SERIAL_8250_EXTENDED=y
CONFIG_SERIAL_8250_SHARE_IRQ=y
CONFIG_SERIAL_8250_DETECT_IRQ=y
CONFIG_SERIAL_8250_RSA=y
CONFIG_SERIAL_8250_MANY_PORTS=y
# CONFIG_SERIAL_8250_PCI1XXXX is not set
# CONFIG_SERIAL_8250_DW is not set
# CONFIG_SERIAL_8250_RT288X is not set
CONFIG_SERIAL_8250_LPSS=y
CONFIG_SERIAL_8250_MID=y
CONFIG_SERIAL_8250_PERICOM=y
# CONFIG_SERIAL_8250_NI is not set
# CONFIG_SERIAL_OF_PLATFORM is not set
CONFIG_SERIAL_8250_DWLIB=y

#
# Non-8250 serial port support
#
# CONFIG_SERIAL_MAX3100 is not set
# CONFIG_SERIAL_MAX310X is not set
# CONFIG_SERIAL_UARTLITE is not set
CONFIG_SERIAL_CORE=y
CONFIG_SERIAL_CORE_CONSOLE=y
# CONFIG_SERIAL_JSM is not set
# CONFIG_SERIAL_SIFIVE is not set
# CONFIG_SERIAL_LANTIQ is not set
# CONFIG_SERIAL_SCCNXP is not set
# CONFIG_SERIAL_SC16IS7XX is not set
# CONFIG_SERIAL_ALTERA_JTAGUART is not set
# CONFIG_SERIAL_ALTERA_UART is not set
# CONFIG_SERIAL_XILINX_PS_UART is not set
# CONFIG_SERIAL_ARC is not set
# CONFIG_SERIAL_RP2 is not set
# CONFIG_SERIAL_FSL_LPUART is not set
# CONFIG_SERIAL_FSL_LINFLEXUART is not set
# CONFIG_SERIAL_CONEXANT_DIGICOLOR is not set
# CONFIG_SERIAL_SPRD is not set
# end of Serial drivers

CONFIG_SERIAL_MCTRL_GPIO=y
CONFIG_SERIAL_NONSTANDARD=y
# CONFIG_MOXA_INTELLIO is not set
# CONFIG_MOXA_SMARTIO is not set
CONFIG_N_HDLC=y
CONFIG_N_GSM=y
CONFIG_NOZOMI=y
CONFIG_NULL_TTY=y
CONFIG_HVC_DRIVER=y
CONFIG_SERIAL_DEV_BUS=y
CONFIG_SERIAL_DEV_CTRL_TTYPORT=y
CONFIG_TTY_PRINTK=y
CONFIG_TTY_PRINTK_LEVEL=6
# CONFIG_PRINTER is not set
# CONFIG_PPDEV is not set
CONFIG_VIRTIO_CONSOLE=y
# CONFIG_IPMI_HANDLER is not set
# CONFIG_SSIF_IPMI_BMC is not set
# CONFIG_IPMB_DEVICE_INTERFACE is not set
CONFIG_HW_RANDOM=y
# CONFIG_HW_RANDOM_TIMERIOMEM is not set
# CONFIG_HW_RANDOM_INTEL is not set
# CONFIG_HW_RANDOM_AMD is not set
# CONFIG_HW_RANDOM_BA431 is not set
# CONFIG_HW_RANDOM_VIA is not set
CONFIG_HW_RANDOM_VIRTIO=y
# CONFIG_HW_RANDOM_CCTRNG is not set
# CONFIG_HW_RANDOM_XIPHERA is not set
# CONFIG_DEVMEM is not set
CONFIG_NVRAM=y
# CONFIG_DEVPORT is not set
CONFIG_HPET=y
CONFIG_HPET_MMAP=y
CONFIG_HPET_MMAP_DEFAULT=y
# CONFIG_HANGCHECK_TIMER is not set
CONFIG_TCG_TPM=y
# CONFIG_TCG_TPM2_HMAC is not set
# CONFIG_HW_RANDOM_TPM is not set
CONFIG_TCG_TIS_CORE=y
CONFIG_TCG_TIS=y
# CONFIG_TCG_TIS_SPI is not set
# CONFIG_TCG_TIS_I2C is not set
# CONFIG_TCG_TIS_I2C_CR50 is not set
# CONFIG_TCG_TIS_I2C_ATMEL is not set
# CONFIG_TCG_TIS_I2C_INFINEON is not set
# CONFIG_TCG_TIS_I2C_NUVOTON is not set
# CONFIG_TCG_NSC is not set
# CONFIG_TCG_ATMEL is not set
# CONFIG_TCG_INFINEON is not set
CONFIG_TCG_CRB=y
# CONFIG_TCG_VTPM_PROXY is not set
# CONFIG_TCG_TIS_ST33ZP24_I2C is not set
# CONFIG_TCG_TIS_ST33ZP24_SPI is not set
# CONFIG_TELCLOCK is not set
CONFIG_XILLYBUS_CLASS=y
# CONFIG_XILLYBUS is not set
CONFIG_XILLYUSB=y
# end of Character devices

#
# I2C support
#
CONFIG_I2C=y
CONFIG_ACPI_I2C_OPREGION=y
CONFIG_I2C_BOARDINFO=y
CONFIG_I2C_CHARDEV=y
CONFIG_I2C_MUX=y

#
# Multiplexer I2C Chip support
#
# CONFIG_I2C_ARB_GPIO_CHALLENGE is not set
# CONFIG_I2C_MUX_GPIO is not set
# CONFIG_I2C_MUX_GPMUX is not set
# CONFIG_I2C_MUX_LTC4306 is not set
# CONFIG_I2C_MUX_PCA9541 is not set
# CONFIG_I2C_MUX_PCA954x is not set
CONFIG_I2C_MUX_REG=y
# CONFIG_I2C_MUX_MLXCPLD is not set
# end of Multiplexer I2C Chip support

CONFIG_I2C_HELPER_AUTO=y
CONFIG_I2C_SMBUS=y
CONFIG_I2C_ALGOBIT=y

#
# I2C Hardware Bus support
#

#
# PC SMBus host controller drivers
#
# CONFIG_I2C_ALI1535 is not set
# CONFIG_I2C_ALI1563 is not set
# CONFIG_I2C_ALI15X3 is not set
# CONFIG_I2C_AMD756 is not set
# CONFIG_I2C_AMD8111 is not set
# CONFIG_I2C_AMD_MP2 is not set
CONFIG_I2C_I801=y
# CONFIG_I2C_ISCH is not set
# CONFIG_I2C_ISMT is not set
# CONFIG_I2C_PIIX4 is not set
# CONFIG_I2C_CHT_WC is not set
# CONFIG_I2C_NFORCE2 is not set
# CONFIG_I2C_NVIDIA_GPU is not set
# CONFIG_I2C_SIS5595 is not set
# CONFIG_I2C_SIS630 is not set
# CONFIG_I2C_SIS96X is not set
# CONFIG_I2C_VIA is not set
# CONFIG_I2C_VIAPRO is not set
# CONFIG_I2C_ZHAOXIN is not set

#
# ACPI drivers
#
# CONFIG_I2C_SCMI is not set

#
# I2C system bus drivers (mostly embedded / system-on-chip)
#
# CONFIG_I2C_CBUS_GPIO is not set
CONFIG_I2C_DESIGNWARE_CORE=y
CONFIG_I2C_DESIGNWARE_PLATFORM=y
# CONFIG_I2C_DESIGNWARE_BAYTRAIL is not set
# CONFIG_I2C_DESIGNWARE_PCI is not set
# CONFIG_I2C_EMEV2 is not set
# CONFIG_I2C_GPIO is not set
# CONFIG_I2C_OCORES is not set
# CONFIG_I2C_PCA_PLATFORM is not set
# CONFIG_I2C_RK3X is not set
# CONFIG_I2C_SIMTEC is not set
# CONFIG_I2C_XILINX is not set

#
# External I2C/SMBus adapter drivers
#
CONFIG_I2C_DIOLAN_U2C=y
CONFIG_I2C_DLN2=y
CONFIG_I2C_LJCA=y
CONFIG_I2C_CP2615=y
# CONFIG_I2C_PARPORT is not set
# CONFIG_I2C_PCI1XXXX is not set
CONFIG_I2C_ROBOTFUZZ_OSIF=y
# CONFIG_I2C_TAOS_EVM is not set
CONFIG_I2C_TINY_USB=y
CONFIG_I2C_VIPERBOARD=y

#
# Other I2C/SMBus bus drivers
#
# CONFIG_I2C_MLXCPLD is not set
# CONFIG_I2C_VIRTIO is not set
# end of I2C Hardware Bus support

# CONFIG_I2C_STUB is not set
CONFIG_I2C_SLAVE=y
CONFIG_I2C_SLAVE_EEPROM=y
# CONFIG_I2C_SLAVE_TESTUNIT is not set
# CONFIG_I2C_DEBUG_CORE is not set
# CONFIG_I2C_DEBUG_ALGO is not set
# CONFIG_I2C_DEBUG_BUS is not set
# end of I2C support

# CONFIG_I3C is not set
CONFIG_I3C_OR_I2C=y
CONFIG_SPI=y
# CONFIG_SPI_DEBUG is not set
CONFIG_SPI_MASTER=y
# CONFIG_SPI_MEM is not set

#
# SPI Master Controller Drivers
#
# CONFIG_SPI_ALTERA is not set
# CONFIG_SPI_AXI_SPI_ENGINE is not set
# CONFIG_SPI_BITBANG is not set
# CONFIG_SPI_BUTTERFLY is not set
# CONFIG_SPI_CADENCE is not set
# CONFIG_SPI_CADENCE_QUADSPI is not set
# CONFIG_SPI_CH341 is not set
# CONFIG_SPI_DESIGNWARE is not set
CONFIG_SPI_DLN2=y
# CONFIG_SPI_GPIO is not set
# CONFIG_SPI_LM70_LLP is not set
# CONFIG_SPI_FSL_SPI is not set
CONFIG_SPI_LJCA=y
# CONFIG_SPI_MICROCHIP_CORE_QSPI is not set
# CONFIG_SPI_MICROCHIP_CORE_SPI is not set
# CONFIG_SPI_LANTIQ_SSC is not set
# CONFIG_SPI_OC_TINY is not set
# CONFIG_SPI_PCI1XXXX is not set
# CONFIG_SPI_PXA2XX is not set
# CONFIG_SPI_SC18IS602 is not set
# CONFIG_SPI_SIFIVE is not set
# CONFIG_SPI_MXIC is not set
# CONFIG_SPI_VIRTIO is not set
# CONFIG_SPI_XCOMM is not set
# CONFIG_SPI_XILINX is not set

#
# SPI Multiplexer support
#
# CONFIG_SPI_MUX is not set

#
# SPI Protocol Masters
#
# CONFIG_SPI_SPIDEV is not set
# CONFIG_SPI_LOOPBACK_TEST is not set
# CONFIG_SPI_TLE62X0 is not set
# CONFIG_SPI_SLAVE is not set
CONFIG_SPI_DYNAMIC=y
# CONFIG_SPMI is not set
# CONFIG_HSI is not set
CONFIG_PPS=y
# CONFIG_PPS_DEBUG is not set

#
# PPS clients support
#
# CONFIG_PPS_CLIENT_KTIMER is not set
# CONFIG_PPS_CLIENT_LDISC is not set
# CONFIG_PPS_CLIENT_PARPORT is not set
# CONFIG_PPS_CLIENT_GPIO is not set
# CONFIG_PPS_GENERATOR is not set

#
# PTP clock support
#
CONFIG_PTP_1588_CLOCK=y
CONFIG_PTP_1588_CLOCK_OPTIONAL=y

#
# Enable PHYLIB and NETWORK_PHY_TIMESTAMPING to see the additional clocks.
#
CONFIG_PTP_1588_CLOCK_KVM=y
CONFIG_PTP_1588_CLOCK_VMCLOCK=y
# CONFIG_PTP_1588_CLOCK_IDT82P33 is not set
# CONFIG_PTP_1588_CLOCK_IDTCM is not set
# CONFIG_PTP_1588_CLOCK_FC3W is not set
# CONFIG_PTP_1588_CLOCK_MOCK is not set
# CONFIG_PTP_1588_CLOCK_VMW is not set
# CONFIG_PTP_1588_CLOCK_OCP is not set
# CONFIG_PTP_NETC_V4_TIMER is not set
# end of PTP clock support

#
# DPLL device support
#
# CONFIG_ZL3073X_I2C is not set
# CONFIG_ZL3073X_SPI is not set
# end of DPLL device support

# CONFIG_PINCTRL is not set
CONFIG_GPIOLIB_LEGACY=y
CONFIG_GPIOLIB=y
CONFIG_GPIOLIB_FASTPATH_LIMIT=512
CONFIG_OF_GPIO=y
CONFIG_GPIO_ACPI=y
CONFIG_GPIOLIB_IRQCHIP=y
# CONFIG_DEBUG_GPIO is not set
# CONFIG_GPIO_SYSFS is not set
# CONFIG_GPIO_CDEV is not set

#
# Memory mapped GPIO drivers
#
# CONFIG_GPIO_74XX_MMIO is not set
# CONFIG_GPIO_ALTERA is not set
# CONFIG_GPIO_AMDPT is not set
# CONFIG_GPIO_BY_PINCTRL is not set
# CONFIG_GPIO_CADENCE is not set
# CONFIG_GPIO_DWAPB is not set
# CONFIG_GPIO_FTGPIO010 is not set
# CONFIG_GPIO_GENERIC_PLATFORM is not set
# CONFIG_GPIO_GRANITERAPIDS is not set
# CONFIG_GPIO_GRGPIO is not set
# CONFIG_GPIO_HLWD is not set
# CONFIG_GPIO_ICH is not set
# CONFIG_GPIO_LOGICVC is not set
# CONFIG_GPIO_MB86S7X is not set
# CONFIG_GPIO_POLARFIRE_SOC is not set
# CONFIG_GPIO_SIFIVE is not set
# CONFIG_GPIO_SYSCON is not set
# CONFIG_GPIO_WAVESHARE_DSI_TOUCH is not set
# CONFIG_GPIO_XILINX is not set
# CONFIG_GPIO_AMD_FCH is not set
# end of Memory mapped GPIO drivers

#
# Port-mapped I/O GPIO drivers
#
# CONFIG_GPIO_VX855 is not set
# CONFIG_GPIO_F7188X is not set
# CONFIG_GPIO_IT87 is not set
# CONFIG_GPIO_NOVALAKE is not set
# CONFIG_GPIO_SCH311X is not set
# CONFIG_GPIO_WINBOND is not set
# CONFIG_GPIO_WS16C48 is not set
# end of Port-mapped I/O GPIO drivers

#
# I2C GPIO expanders
#
# CONFIG_GPIO_ADNP is not set
# CONFIG_GPIO_FXL6408 is not set
# CONFIG_GPIO_DS4520 is not set
# CONFIG_GPIO_GW_PLD is not set
# CONFIG_GPIO_MAX7300 is not set
# CONFIG_GPIO_MAX732X is not set
# CONFIG_GPIO_PCA953X is not set
# CONFIG_GPIO_PCA9570 is not set
# CONFIG_GPIO_PCF857X is not set
# CONFIG_GPIO_TPIC2810 is not set
# end of I2C GPIO expanders

#
# MFD GPIO expanders
#
CONFIG_GPIO_DLN2=y
CONFIG_GPIO_LJCA=y
# CONFIG_GPIO_TWL4030 is not set
# CONFIG_GPIO_WHISKEY_COVE is not set
# end of MFD GPIO expanders

#
# Auxiliary Bus GPIO drivers
#
# end of Auxiliary Bus GPIO drivers

#
# PCI GPIO expanders
#
# CONFIG_GPIO_AMD8111 is not set
# CONFIG_GPIO_BT8XX is not set
# CONFIG_GPIO_ML_IOH is not set
# CONFIG_GPIO_PCI_IDIO_16 is not set
# CONFIG_GPIO_PCIE_IDIO_24 is not set
# CONFIG_GPIO_RDC321X is not set
# CONFIG_GPIO_SODAVILLE is not set
# end of PCI GPIO expanders

#
# SPI GPIO expanders
#
# CONFIG_GPIO_74X164 is not set
# CONFIG_GPIO_MAX3191X is not set
# CONFIG_GPIO_MAX7301 is not set
# CONFIG_GPIO_MC33880 is not set
# CONFIG_GPIO_PISOSR is not set
# CONFIG_GPIO_XRA1403 is not set
# end of SPI GPIO expanders

#
# USB GPIO expanders
#
CONFIG_GPIO_VIPERBOARD=y
# CONFIG_GPIO_MPSSE is not set
# end of USB GPIO expanders

#
# Virtual GPIO drivers
#
# CONFIG_GPIO_AGGREGATOR is not set
# CONFIG_GPIO_LATCH is not set
# CONFIG_GPIO_LINE_MUX is not set
# CONFIG_GPIO_MOCKUP is not set
# CONFIG_GPIO_VIRTIO is not set
# CONFIG_GPIO_SIM is not set
# end of Virtual GPIO drivers

#
# GPIO Debugging utilities
#
# CONFIG_GPIO_SLOPPY_LOGIC_ANALYZER is not set
# CONFIG_GPIO_VIRTUSER is not set
# end of GPIO Debugging utilities

# CONFIG_W1 is not set
# CONFIG_POWER_RESET is not set
# CONFIG_POWER_SEQUENCING is not set
CONFIG_POWER_SUPPLY=y
# CONFIG_POWER_SUPPLY_DEBUG is not set
CONFIG_POWER_SUPPLY_HWMON=y
# CONFIG_GENERIC_ADC_BATTERY is not set
# CONFIG_IP5XXX_POWER is not set
# CONFIG_TEST_POWER is not set
# CONFIG_CHARGER_ADP5061 is not set
# CONFIG_BATTERY_CHAGALL is not set
# CONFIG_BATTERY_CW2015 is not set
# CONFIG_BATTERY_DS2780 is not set
# CONFIG_BATTERY_DS2781 is not set
# CONFIG_BATTERY_DS2782 is not set
# CONFIG_BATTERY_SAMSUNG_SDI is not set
# CONFIG_BATTERY_S2MU005 is not set
# CONFIG_BATTERY_SBS is not set
# CONFIG_CHARGER_SBS is not set
# CONFIG_MANAGER_SBS is not set
# CONFIG_BATTERY_BQ27XXX is not set
# CONFIG_BATTERY_MAX17040 is not set
# CONFIG_BATTERY_MAX17042 is not set
# CONFIG_BATTERY_MAX1720X is not set
CONFIG_CHARGER_ISP1704=y
# CONFIG_CHARGER_MAX8903 is not set
# CONFIG_CHARGER_TWL4030 is not set
# CONFIG_CHARGER_TWL6030 is not set
# CONFIG_CHARGER_LP8727 is not set
# CONFIG_CHARGER_GPIO is not set
# CONFIG_CHARGER_MANAGER is not set
# CONFIG_CHARGER_LT3651 is not set
# CONFIG_CHARGER_LTC4162L is not set
# CONFIG_CHARGER_DETECTOR_MAX14656 is not set
# CONFIG_CHARGER_MAX77976 is not set
# CONFIG_CHARGER_MAX8971 is not set
# CONFIG_CHARGER_MT6360 is not set
# CONFIG_CHARGER_MT6370 is not set
# CONFIG_CHARGER_BQ2415X is not set
CONFIG_CHARGER_BQ24190=y
# CONFIG_CHARGER_BQ24257 is not set
# CONFIG_CHARGER_BQ24735 is not set
# CONFIG_CHARGER_BQ2515X is not set
# CONFIG_CHARGER_BQ25890 is not set
# CONFIG_CHARGER_BQ25980 is not set
# CONFIG_CHARGER_BQ25630 is not set
# CONFIG_CHARGER_BQ256XX is not set
# CONFIG_CHARGER_SGM41542 is not set
# CONFIG_CHARGER_SMB347 is not set
# CONFIG_BATTERY_GAUGE_LTC2941 is not set
# CONFIG_BATTERY_GOLDFISH is not set
# CONFIG_BATTERY_RT5033 is not set
# CONFIG_CHARGER_RT9455 is not set
# CONFIG_CHARGER_RT9467 is not set
# CONFIG_CHARGER_RT9471 is not set
# CONFIG_CHARGER_RT9756 is not set
# CONFIG_FUEL_GAUGE_STC3117 is not set
# CONFIG_CHARGER_UCS1002 is not set
# CONFIG_CHARGER_BD99954 is not set
# CONFIG_BATTERY_SURFACE is not set
# CONFIG_CHARGER_SURFACE is not set
# CONFIG_BATTERY_UG3105 is not set
# CONFIG_BATTERY_CHARGER_SURFACE_RT is not set
# CONFIG_FUEL_GAUGE_MM8013 is not set
CONFIG_HWMON=y
# CONFIG_HWMON_DEBUG_CHIP is not set

#
# Native drivers
#
# CONFIG_SENSORS_ABITUGURU is not set
# CONFIG_SENSORS_ABITUGURU3 is not set
# CONFIG_SENSORS_AD7314 is not set
# CONFIG_SENSORS_AD7414 is not set
# CONFIG_SENSORS_AD7418 is not set
# CONFIG_SENSORS_ADM1025 is not set
# CONFIG_SENSORS_ADM1026 is not set
# CONFIG_SENSORS_ADM1029 is not set
# CONFIG_SENSORS_ADM1031 is not set
# CONFIG_SENSORS_ADM1177 is not set
# CONFIG_SENSORS_ADM9240 is not set
# CONFIG_SENSORS_ADT7310 is not set
# CONFIG_SENSORS_ADT7410 is not set
# CONFIG_SENSORS_ADT7411 is not set
# CONFIG_SENSORS_ADT7462 is not set
# CONFIG_SENSORS_ADT7470 is not set
# CONFIG_SENSORS_ADT7475 is not set
# CONFIG_SENSORS_AHT10 is not set
CONFIG_SENSORS_AQUACOMPUTER_D5NEXT=y
# CONFIG_SENSORS_AS370 is not set
# CONFIG_SENSORS_ASC7621 is not set
# CONFIG_SENSORS_ASUS_ROG_RYUJIN is not set
# CONFIG_SENSORS_AXI_FAN_CONTROL is not set
# CONFIG_SENSORS_K8TEMP is not set
# CONFIG_SENSORS_K10TEMP is not set
# CONFIG_SENSORS_KB9002 is not set
# CONFIG_SENSORS_FAM15H_POWER is not set
# CONFIG_SENSORS_APPLESMC is not set
# CONFIG_SENSORS_ARCTIC_FAN_CONTROLLER is not set
# CONFIG_SENSORS_ASB100 is not set
# CONFIG_SENSORS_ATXP1 is not set
# CONFIG_SENSORS_CHIPCAP2 is not set
CONFIG_SENSORS_CORSAIR_CPRO=y
CONFIG_SENSORS_CORSAIR_PSU=y
# CONFIG_SENSORS_DRIVETEMP is not set
# CONFIG_SENSORS_DS620 is not set
# CONFIG_SENSORS_DS1621 is not set
# CONFIG_SENSORS_DELL_SMM is not set
# CONFIG_SENSORS_I5K_AMB is not set
# CONFIG_SENSORS_F71805F is not set
# CONFIG_SENSORS_F71882FG is not set
# CONFIG_SENSORS_F75375S is not set
# CONFIG_SENSORS_FSCHMD is not set
# CONFIG_SENSORS_FTSTEUTATES is not set
CONFIG_SENSORS_GIGABYTE_WATERFORCE=y
# CONFIG_SENSORS_GL518SM is not set
# CONFIG_SENSORS_GL520SM is not set
# CONFIG_SENSORS_GPD is not set
# CONFIG_SENSORS_G760A is not set
# CONFIG_SENSORS_G762 is not set
# CONFIG_SENSORS_GPIO_FAN is not set
# CONFIG_SENSORS_HIH6130 is not set
# CONFIG_SENSORS_HS3001 is not set
# CONFIG_SENSORS_HTU31 is not set
# CONFIG_SENSORS_IIO_HWMON is not set
# CONFIG_SENSORS_I5500 is not set
# CONFIG_SENSORS_CORETEMP is not set
# CONFIG_SENSORS_ISL28022 is not set
# CONFIG_SENSORS_IT87 is not set
# CONFIG_SENSORS_JC42 is not set
CONFIG_SENSORS_POWERZ=y
# CONFIG_SENSORS_POWR1220 is not set
# CONFIG_SENSORS_PROM21_XHCI is not set
# CONFIG_SENSORS_LATTEPANDA_SIGMA_EC is not set
# CONFIG_SENSORS_LENOVO_EC is not set
# CONFIG_SENSORS_LINEAGE is not set
# CONFIG_SENSORS_LTC2945 is not set
# CONFIG_SENSORS_LTC2947_I2C is not set
# CONFIG_SENSORS_LTC2947_SPI is not set
# CONFIG_SENSORS_LTC2990 is not set
# CONFIG_SENSORS_LTC2991 is not set
# CONFIG_SENSORS_LTC2992 is not set
# CONFIG_SENSORS_LTC4151 is not set
# CONFIG_SENSORS_LTC4215 is not set
# CONFIG_SENSORS_LTC4222 is not set
# CONFIG_SENSORS_LTC4245 is not set
# CONFIG_SENSORS_LTC4260 is not set
# CONFIG_SENSORS_LTC4261 is not set
# CONFIG_SENSORS_LTC4282 is not set
# CONFIG_SENSORS_LTC4283 is not set
# CONFIG_SENSORS_MAX1111 is not set
# CONFIG_SENSORS_MAX127 is not set
# CONFIG_SENSORS_MAX16065 is not set
# CONFIG_SENSORS_MAX1619 is not set
# CONFIG_SENSORS_MAX1668 is not set
# CONFIG_SENSORS_MAX197 is not set
# CONFIG_SENSORS_MAX31722 is not set
# CONFIG_SENSORS_MAX31730 is not set
# CONFIG_SENSORS_MAX31760 is not set
# CONFIG_MAX31827 is not set
# CONFIG_SENSORS_MAX6620 is not set
# CONFIG_SENSORS_MAX6621 is not set
# CONFIG_SENSORS_MAX6639 is not set
# CONFIG_SENSORS_MAX6650 is not set
# CONFIG_SENSORS_MAX6697 is not set
# CONFIG_SENSORS_MAX31790 is not set
# CONFIG_SENSORS_MC34VR500 is not set
# CONFIG_SENSORS_MCP3021 is not set
# CONFIG_SENSORS_MCP9982 is not set
# CONFIG_SENSORS_TC654 is not set
# CONFIG_SENSORS_TPS23861 is not set
# CONFIG_SENSORS_MR75203 is not set
# CONFIG_SENSORS_ADCXX is not set
# CONFIG_SENSORS_LM63 is not set
# CONFIG_SENSORS_LM70 is not set
# CONFIG_SENSORS_LM73 is not set
# CONFIG_SENSORS_LM75 is not set
# CONFIG_SENSORS_LM77 is not set
# CONFIG_SENSORS_LM78 is not set
# CONFIG_SENSORS_LM80 is not set
# CONFIG_SENSORS_LM83 is not set
# CONFIG_SENSORS_LM85 is not set
# CONFIG_SENSORS_LM87 is not set
# CONFIG_SENSORS_LM90 is not set
# CONFIG_SENSORS_LM92 is not set
# CONFIG_SENSORS_LM93 is not set
# CONFIG_SENSORS_LM95234 is not set
# CONFIG_SENSORS_LM95241 is not set
# CONFIG_SENSORS_LM95245 is not set
# CONFIG_SENSORS_PC87360 is not set
# CONFIG_SENSORS_PC87427 is not set
# CONFIG_SENSORS_NTC_THERMISTOR is not set
# CONFIG_SENSORS_NCT6683 is not set
# CONFIG_SENSORS_NCT6775 is not set
# CONFIG_SENSORS_NCT6775_I2C is not set
# CONFIG_SENSORS_NCT7363 is not set
# CONFIG_SENSORS_NCT7802 is not set
# CONFIG_SENSORS_NCT7904 is not set
# CONFIG_SENSORS_NPCM7XX is not set
CONFIG_SENSORS_NZXT_KRAKEN2=y
# CONFIG_SENSORS_NZXT_KRAKEN3 is not set
CONFIG_SENSORS_NZXT_SMART2=y
# CONFIG_SENSORS_OCC_P8_I2C is not set
# CONFIG_SENSORS_PCF8591 is not set
# CONFIG_PMBUS is not set
# CONFIG_SENSORS_PT5161L is not set
# CONFIG_SENSORS_SHT15 is not set
# CONFIG_SENSORS_SHT21 is not set
# CONFIG_SENSORS_SHT3x is not set
# CONFIG_SENSORS_SHT4x is not set
# CONFIG_SENSORS_SHTC1 is not set
# CONFIG_SENSORS_SIS5595 is not set
# CONFIG_SENSORS_DME1737 is not set
# CONFIG_SENSORS_EMC1403 is not set
# CONFIG_SENSORS_EMC1812 is not set
# CONFIG_SENSORS_EMC2103 is not set
# CONFIG_SENSORS_EMC2305 is not set
# CONFIG_SENSORS_EMC6W201 is not set
# CONFIG_SENSORS_SMSC47M1 is not set
# CONFIG_SENSORS_SMSC47M192 is not set
# CONFIG_SENSORS_SMSC47B397 is not set
# CONFIG_SENSORS_SCH5627 is not set
# CONFIG_SENSORS_SCH5636 is not set
# CONFIG_SENSORS_STTS751 is not set
# CONFIG_SENSORS_SURFACE_FAN is not set
# CONFIG_SENSORS_SURFACE_TEMP is not set
# CONFIG_SENSORS_ADC128D818 is not set
# CONFIG_SENSORS_ADS7828 is not set
# CONFIG_SENSORS_ADS7871 is not set
# CONFIG_SENSORS_AMC6821 is not set
# CONFIG_SENSORS_INA209 is not set
# CONFIG_SENSORS_INA2XX is not set
# CONFIG_SENSORS_INA238 is not set
# CONFIG_SENSORS_INA3221 is not set
# CONFIG_SENSORS_SPD5118 is not set
# CONFIG_SENSORS_TC74 is not set
# CONFIG_SENSORS_THMC50 is not set
# CONFIG_SENSORS_TMP102 is not set
# CONFIG_SENSORS_TMP103 is not set
# CONFIG_SENSORS_TMP108 is not set
# CONFIG_SENSORS_TMP401 is not set
# CONFIG_SENSORS_TMP421 is not set
# CONFIG_SENSORS_TMP464 is not set
# CONFIG_SENSORS_TMP513 is not set
# CONFIG_SENSORS_TSC1641 is not set
# CONFIG_SENSORS_VIA_CPUTEMP is not set
# CONFIG_SENSORS_VIA686A is not set
# CONFIG_SENSORS_VT1211 is not set
# CONFIG_SENSORS_VT8231 is not set
# CONFIG_SENSORS_W83773G is not set
# CONFIG_SENSORS_W83781D is not set
# CONFIG_SENSORS_W83791D is not set
# CONFIG_SENSORS_W83792D is not set
# CONFIG_SENSORS_W83793 is not set
# CONFIG_SENSORS_W83795 is not set
# CONFIG_SENSORS_W83L785TS is not set
# CONFIG_SENSORS_W83L786NG is not set
# CONFIG_SENSORS_W83627HF is not set
# CONFIG_SENSORS_W83627EHF is not set
# CONFIG_SENSORS_XGENE is not set
# CONFIG_SENSORS_YOGAFAN is not set

#
# ACPI drivers
#
# CONFIG_SENSORS_ACPI_POWER is not set
# CONFIG_SENSORS_ATK0110 is not set
# CONFIG_SENSORS_ASUS_WMI is not set
# CONFIG_SENSORS_ASUS_EC is not set
# CONFIG_SENSORS_HP_WMI is not set
CONFIG_THERMAL=y
CONFIG_THERMAL_NETLINK=y
# CONFIG_THERMAL_STATISTICS is not set
# CONFIG_THERMAL_DEBUGFS is not set
# CONFIG_THERMAL_CORE_TESTING is not set
CONFIG_THERMAL_EMERGENCY_POWEROFF_DELAY_MS=0
CONFIG_THERMAL_HWMON=y
# CONFIG_THERMAL_OF is not set
CONFIG_THERMAL_DEFAULT_GOV_STEP_WISE=y
# CONFIG_THERMAL_DEFAULT_GOV_FAIR_SHARE is not set
# CONFIG_THERMAL_DEFAULT_GOV_USER_SPACE is not set
# CONFIG_THERMAL_GOV_FAIR_SHARE is not set
CONFIG_THERMAL_GOV_STEP_WISE=y
# CONFIG_THERMAL_GOV_BANG_BANG is not set
# CONFIG_THERMAL_GOV_USER_SPACE is not set
# CONFIG_PCIE_THERMAL is not set
# CONFIG_THERMAL_EMULATION is not set
# CONFIG_THERMAL_MMIO is not set

#
# Intel thermal drivers
#
# CONFIG_INTEL_POWERCLAMP is not set
CONFIG_X86_THERMAL_VECTOR=y
# CONFIG_X86_PKG_TEMP_THERMAL is not set
# CONFIG_INTEL_SOC_DTS_THERMAL is not set

#
# ACPI INT340X thermal drivers
#
# CONFIG_INT340X_THERMAL is not set
# end of ACPI INT340X thermal drivers

# CONFIG_INTEL_BXT_PMIC_THERMAL is not set
# CONFIG_INTEL_PCH_THERMAL is not set
# CONFIG_INTEL_TCC_COOLING is not set
# CONFIG_INTEL_HFI_THERMAL is not set
# end of Intel thermal drivers

# CONFIG_GENERIC_ADC_THERMAL is not set
CONFIG_WATCHDOG=y
# CONFIG_WATCHDOG_CORE is not set
# CONFIG_WATCHDOG_NOWAYOUT is not set
CONFIG_WATCHDOG_HANDLE_BOOT_ENABLED=y
CONFIG_WATCHDOG_OPEN_TIMEOUT=0
# CONFIG_WATCHDOG_SYSFS is not set
# CONFIG_WATCHDOG_HRTIMER_PRETIMEOUT is not set

#
# Watchdog Pretimeout Governors
#

#
# Watchdog Device Drivers
#
# CONFIG_SOFT_WATCHDOG is not set
# CONFIG_GPIO_WATCHDOG is not set
# CONFIG_LENOVO_SE10_WDT is not set
# CONFIG_LENOVO_SE30_WDT is not set
# CONFIG_LENOVO_SE30G2_SE60_WDT is not set
# CONFIG_WDAT_WDT is not set
# CONFIG_XILINX_WATCHDOG is not set
# CONFIG_ZIIRAVE_WATCHDOG is not set
# CONFIG_CADENCE_WATCHDOG is not set
# CONFIG_DW_WATCHDOG is not set
# CONFIG_TWL4030_WATCHDOG is not set
# CONFIG_MAX63XX_WATCHDOG is not set
# CONFIG_RETU_WATCHDOG is not set
# CONFIG_ACQUIRE_WDT is not set
# CONFIG_ADVANTECH_WDT is not set
# CONFIG_ADVANTECH_EC_WDT is not set
# CONFIG_ALIM1535_WDT is not set
# CONFIG_ALIM7101_WDT is not set
# CONFIG_EBC_C384_WDT is not set
# CONFIG_EXAR_WDT is not set
# CONFIG_F71808E_WDT is not set
# CONFIG_SP5100_TCO is not set
# CONFIG_SBC_FITPC2_WATCHDOG is not set
# CONFIG_EUROTECH_WDT is not set
# CONFIG_IB700_WDT is not set
# CONFIG_IBMASR is not set
# CONFIG_WAFER_WDT is not set
# CONFIG_I6300ESB_WDT is not set
# CONFIG_IE6XX_WDT is not set
# CONFIG_INTEL_OC_WATCHDOG is not set
# CONFIG_ITCO_WDT is not set
# CONFIG_IT8712F_WDT is not set
# CONFIG_IT87_WDT is not set
# CONFIG_HP_WATCHDOG is not set
# CONFIG_SC1200_WDT is not set
# CONFIG_PC87413_WDT is not set
# CONFIG_NV_TCO is not set
# CONFIG_60XX_WDT is not set
# CONFIG_SMSC_SCH311X_WDT is not set
# CONFIG_SMSC37B787_WDT is not set
# CONFIG_TQMX86_WDT is not set
# CONFIG_VIA_WDT is not set
# CONFIG_W83627HF_WDT is not set
# CONFIG_W83877F_WDT is not set
# CONFIG_W83977F_WDT is not set
# CONFIG_SBC_EPX_C3_WATCHDOG is not set
# CONFIG_INTEL_MEI_WDT is not set
# CONFIG_NI903X_WDT is not set
# CONFIG_NIC7018_WDT is not set
# CONFIG_MEN_A21_WDT is not set

#
# PCI-based Watchdog Cards
#
# CONFIG_PCIPCWATCHDOG is not set
# CONFIG_WDTPCI is not set

#
# USB-based Watchdog Cards
#
CONFIG_USBPCWATCHDOG=y
CONFIG_SSB_POSSIBLE=y
CONFIG_SSB=y
CONFIG_SSB_PCIHOST_POSSIBLE=y
# CONFIG_SSB_PCIHOST is not set
CONFIG_SSB_PCMCIAHOST_POSSIBLE=y
# CONFIG_SSB_PCMCIAHOST is not set
CONFIG_SSB_SDIOHOST_POSSIBLE=y
# CONFIG_SSB_SDIOHOST is not set
# CONFIG_SSB_DRIVER_GPIO is not set
CONFIG_BCMA_POSSIBLE=y
CONFIG_BCMA=y
CONFIG_BCMA_HOST_PCI_POSSIBLE=y
# CONFIG_BCMA_HOST_PCI is not set
# CONFIG_BCMA_HOST_SOC is not set
# CONFIG_BCMA_DRIVER_PCI is not set
# CONFIG_BCMA_DRIVER_GMAC_CMN is not set
# CONFIG_BCMA_DRIVER_GPIO is not set
# CONFIG_BCMA_DEBUG is not set

#
# Multifunction device drivers
#
CONFIG_MFD_CORE=y
# CONFIG_MFD_ADP5585 is not set
# CONFIG_MFD_ACT8945A is not set
# CONFIG_MFD_AS3711 is not set
# CONFIG_MFD_SMPRO is not set
# CONFIG_MFD_AS3722 is not set
# CONFIG_PMIC_ADP5520 is not set
# CONFIG_MFD_AAT2870_CORE is not set
# CONFIG_MFD_ATMEL_FLEXCOM is not set
# CONFIG_MFD_ATMEL_HLCDC is not set
# CONFIG_MFD_BCM590XX is not set
# CONFIG_MFD_BD9571MWV is not set
# CONFIG_MFD_AXP20X_I2C is not set
# CONFIG_MFD_CGBC is not set
# CONFIG_MFD_CS40L50_I2C is not set
# CONFIG_MFD_CS40L50_SPI is not set
# CONFIG_MFD_CS42L43_I2C is not set
# CONFIG_MFD_CS42L43_SDW is not set
# CONFIG_MFD_LOCHNAGAR is not set
# CONFIG_MFD_MADERA is not set
# CONFIG_PMIC_DA903X is not set
# CONFIG_MFD_DA9052_SPI is not set
# CONFIG_MFD_DA9052_I2C is not set
# CONFIG_MFD_DA9055 is not set
# CONFIG_MFD_DA9062 is not set
# CONFIG_MFD_DA9063 is not set
# CONFIG_MFD_DA9150 is not set
CONFIG_MFD_DLN2=y
# CONFIG_MFD_GATEWORKS_GSC is not set
# CONFIG_MFD_MC13XXX_SPI is not set
# CONFIG_MFD_MC13XXX_I2C is not set
# CONFIG_MFD_MP2629 is not set
# CONFIG_MFD_PF1550 is not set
# CONFIG_MFD_HI6421_PMIC is not set
# CONFIG_MFD_INTEL_QUARK_I2C_GPIO is not set
CONFIG_LPC_ICH=y
# CONFIG_LPC_SCH is not set
# CONFIG_INTEL_SOC_PMIC is not set
CONFIG_INTEL_SOC_PMIC_BXTWC=y
CONFIG_INTEL_SOC_PMIC_CHTWC=y
# CONFIG_INTEL_SOC_PMIC_CHTDC_TI is not set
# CONFIG_MFD_INTEL_LPSS_ACPI is not set
# CONFIG_MFD_INTEL_LPSS_PCI is not set
CONFIG_MFD_INTEL_PMC_BXT=y
# CONFIG_MFD_IQS62X is not set
# CONFIG_MFD_JANZ_CMODIO is not set
# CONFIG_MFD_KEMPLD is not set
# CONFIG_MFD_88PM800 is not set
# CONFIG_MFD_88PM805 is not set
# CONFIG_MFD_88PM860X is not set
# CONFIG_MFD_88PM886_PMIC is not set
# CONFIG_MFD_MAX5970 is not set
# CONFIG_MFD_MAX14577 is not set
# CONFIG_MFD_MAX77541 is not set
# CONFIG_MFD_MAX77620 is not set
# CONFIG_MFD_MAX77650 is not set
# CONFIG_MFD_MAX77686 is not set
# CONFIG_MFD_MAX77693 is not set
# CONFIG_MFD_MAX77705 is not set
# CONFIG_MFD_MAX77714 is not set
# CONFIG_MFD_MAX77759 is not set
# CONFIG_MFD_MAX77843 is not set
# CONFIG_MFD_MAX8907 is not set
# CONFIG_MFD_MAX8925 is not set
# CONFIG_MFD_MAX8997 is not set
# CONFIG_MFD_MAX8998 is not set
CONFIG_MFD_MT6360=y
CONFIG_MFD_MT6370=y
# CONFIG_MFD_MT6397 is not set
# CONFIG_MFD_MENF21BMC is not set
# CONFIG_MFD_NCT6694 is not set
# CONFIG_MFD_OCELOT is not set
# CONFIG_MFD_CPCAP is not set
CONFIG_MFD_VIPERBOARD=y
# CONFIG_MFD_NTXEC is not set
CONFIG_MFD_RETU=y
# CONFIG_MFD_SY7636A is not set
# CONFIG_MFD_RDC321X is not set
# CONFIG_MFD_RT4831 is not set
# CONFIG_MFD_RT5033 is not set
# CONFIG_MFD_RT5120 is not set
# CONFIG_MFD_RC5T583 is not set
# CONFIG_MFD_RK8XX_I2C is not set
# CONFIG_MFD_RK8XX_SPI is not set
# CONFIG_MFD_RN5T618 is not set
# CONFIG_MFD_SEC_I2C is not set
# CONFIG_MFD_SI476X_CORE is not set
# CONFIG_MFD_SM501 is not set
# CONFIG_MFD_SKY81452 is not set
# CONFIG_MFD_STMPE is not set
CONFIG_MFD_SYSCON=y
# CONFIG_MFD_LP3943 is not set
# CONFIG_MFD_LP8788 is not set
# CONFIG_MFD_TI_LMU is not set
# CONFIG_MFD_BQ257XX is not set
# CONFIG_MFD_PALMAS is not set
# CONFIG_TPS6105X is not set
# CONFIG_TPS65010 is not set
# CONFIG_TPS6507X is not set
# CONFIG_MFD_TPS65086 is not set
# CONFIG_MFD_TPS65090 is not set
# CONFIG_MFD_TPS65217 is not set
# CONFIG_MFD_TI_LP873X is not set
# CONFIG_MFD_TI_LP87565 is not set
# CONFIG_MFD_TPS65218 is not set
# CONFIG_MFD_TPS65219 is not set
# CONFIG_MFD_TPS6586X is not set
# CONFIG_MFD_TPS65910 is not set
# CONFIG_MFD_TPS65912_I2C is not set
# CONFIG_MFD_TPS65912_SPI is not set
# CONFIG_MFD_TPS6594_I2C is not set
# CONFIG_MFD_TPS6594_SPI is not set
CONFIG_TWL4030_CORE=y
# CONFIG_MFD_TWL4030_AUDIO is not set
# CONFIG_TWL6040_CORE is not set
# CONFIG_MFD_LM3533 is not set
# CONFIG_MFD_TC3589X is not set
# CONFIG_MFD_TQMX86 is not set
# CONFIG_MFD_VX855 is not set
# CONFIG_MFD_ARIZONA_I2C is not set
# CONFIG_MFD_ARIZONA_SPI is not set
# CONFIG_MFD_WM8400 is not set
# CONFIG_MFD_WM831X_I2C is not set
# CONFIG_MFD_WM831X_SPI is not set
# CONFIG_MFD_WM8350_I2C is not set
# CONFIG_MFD_WM8994 is not set
# CONFIG_MFD_ROHM_BD718XX is not set
# CONFIG_MFD_ROHM_BD71828 is not set
# CONFIG_MFD_ROHM_BD957XMUF is not set
# CONFIG_MFD_ROHM_BD96801 is not set
# CONFIG_MFD_STPMIC1 is not set
# CONFIG_MFD_STMFX is not set
# CONFIG_MFD_ATC260X_I2C is not set
# CONFIG_MFD_QCOM_PM8008 is not set
# CONFIG_RAVE_SP_CORE is not set
# CONFIG_MFD_INTEL_M10_BMC_SPI is not set
# CONFIG_MFD_QNAP_MCU is not set
# CONFIG_MFD_RSMU_I2C is not set
# CONFIG_MFD_RSMU_SPI is not set
# CONFIG_MFD_UPBOARD_FPGA is not set
# CONFIG_MFD_MAX7360 is not set
# end of Multifunction device drivers

CONFIG_REGULATOR=y
# CONFIG_REGULATOR_DEBUG is not set
CONFIG_REGULATOR_FIXED_VOLTAGE=y
# CONFIG_REGULATOR_VIRTUAL_CONSUMER is not set
# CONFIG_REGULATOR_USERSPACE_CONSUMER is not set
# CONFIG_REGULATOR_NETLINK_EVENTS is not set
# CONFIG_REGULATOR_88PG86X is not set
# CONFIG_REGULATOR_ACT8865 is not set
# CONFIG_REGULATOR_AD5398 is not set
# CONFIG_REGULATOR_ADP5055 is not set
# CONFIG_REGULATOR_AW37503 is not set
# CONFIG_REGULATOR_DA9121 is not set
# CONFIG_REGULATOR_DA9210 is not set
# CONFIG_REGULATOR_DA9211 is not set
# CONFIG_REGULATOR_FAN53555 is not set
# CONFIG_REGULATOR_FAN53880 is not set
# CONFIG_REGULATOR_GPIO is not set
# CONFIG_REGULATOR_ISL9305 is not set
# CONFIG_REGULATOR_ISL6271A is not set
# CONFIG_REGULATOR_FP9931 is not set
# CONFIG_REGULATOR_LP3971 is not set
# CONFIG_REGULATOR_LP3972 is not set
# CONFIG_REGULATOR_LP872X is not set
# CONFIG_REGULATOR_LP8755 is not set
# CONFIG_REGULATOR_LTC3589 is not set
# CONFIG_REGULATOR_LTC3676 is not set
# CONFIG_REGULATOR_MAX1586 is not set
# CONFIG_REGULATOR_MAX77503 is not set
# CONFIG_REGULATOR_MAX77675 is not set
# CONFIG_REGULATOR_MAX77857 is not set
# CONFIG_REGULATOR_MAX8649 is not set
# CONFIG_REGULATOR_MAX8660 is not set
# CONFIG_REGULATOR_MAX8893 is not set
# CONFIG_REGULATOR_MAX8952 is not set
# CONFIG_REGULATOR_MAX20086 is not set
# CONFIG_REGULATOR_MAX20411 is not set
# CONFIG_REGULATOR_MAX77826 is not set
# CONFIG_REGULATOR_MAX77838 is not set
# CONFIG_REGULATOR_MCP16502 is not set
# CONFIG_REGULATOR_MP5416 is not set
# CONFIG_REGULATOR_MP8859 is not set
# CONFIG_REGULATOR_MP886X is not set
# CONFIG_REGULATOR_MPQ7920 is not set
# CONFIG_REGULATOR_MT6311 is not set
# CONFIG_REGULATOR_MT6360 is not set
# CONFIG_REGULATOR_MT6370 is not set
# CONFIG_REGULATOR_PCA9450 is not set
# CONFIG_REGULATOR_PF9453 is not set
# CONFIG_REGULATOR_PF0900 is not set
# CONFIG_REGULATOR_PF530X is not set
# CONFIG_REGULATOR_PF8X00 is not set
# CONFIG_REGULATOR_PFUZE100 is not set
# CONFIG_REGULATOR_PV88060 is not set
# CONFIG_REGULATOR_PV88080 is not set
# CONFIG_REGULATOR_PV88090 is not set
# CONFIG_REGULATOR_RAA215300 is not set
# CONFIG_REGULATOR_RT4801 is not set
# CONFIG_REGULATOR_RT4803 is not set
# CONFIG_REGULATOR_RT5133 is not set
# CONFIG_REGULATOR_RT5190A is not set
# CONFIG_REGULATOR_RT5739 is not set
# CONFIG_REGULATOR_RT5759 is not set
# CONFIG_REGULATOR_RT6160 is not set
# CONFIG_REGULATOR_RT6190 is not set
# CONFIG_REGULATOR_RT6245 is not set
# CONFIG_REGULATOR_RT8092 is not set
# CONFIG_REGULATOR_RTQ2134 is not set
# CONFIG_REGULATOR_RTMV20 is not set
# CONFIG_REGULATOR_RTQ6752 is not set
# CONFIG_REGULATOR_RTQ2208 is not set
# CONFIG_REGULATOR_SGM3804 is not set
# CONFIG_REGULATOR_SLG51000 is not set
# CONFIG_REGULATOR_SY8106A is not set
# CONFIG_REGULATOR_SY8824X is not set
# CONFIG_REGULATOR_SY8827N is not set
# CONFIG_REGULATOR_TPS51632 is not set
# CONFIG_REGULATOR_TPS62360 is not set
# CONFIG_REGULATOR_TPS6286X is not set
# CONFIG_REGULATOR_TPS6287X is not set
# CONFIG_REGULATOR_TPS65023 is not set
# CONFIG_REGULATOR_TPS6507X is not set
# CONFIG_REGULATOR_TPS65132 is not set
# CONFIG_REGULATOR_TPS65185 is not set
# CONFIG_REGULATOR_TPS6524X is not set
CONFIG_REGULATOR_TWL4030=y
# CONFIG_REGULATOR_VCTRL is not set
CONFIG_RC_CORE=y
# CONFIG_LIRC is not set
# CONFIG_RC_MAP is not set
# CONFIG_RC_DECODERS is not set
CONFIG_RC_DEVICES=y
# CONFIG_IR_ENE is not set
# CONFIG_IR_FINTEK is not set
# CONFIG_IR_GPIO_CIR is not set
# CONFIG_IR_HIX5HD2 is not set
CONFIG_IR_IGORPLUGUSB=y
CONFIG_IR_IGUANA=y
CONFIG_IR_IMON=y
CONFIG_IR_IMON_RAW=y
# CONFIG_IR_ITE_CIR is not set
CONFIG_IR_MCEUSB=y
# CONFIG_IR_NUVOTON is not set
CONFIG_IR_REDRAT3=y
# CONFIG_IR_SERIAL is not set
CONFIG_IR_STREAMZAP=y
CONFIG_IR_TOY=y
CONFIG_IR_TTUSBIR=y
# CONFIG_IR_WINBOND_CIR is not set
CONFIG_RC_ATI_REMOTE=y
# CONFIG_RC_LOOPBACK is not set
CONFIG_RC_XBOX_DVD=y
CONFIG_CEC_CORE=y

#
# CEC support
#
# CONFIG_MEDIA_CEC_RC is not set
CONFIG_MEDIA_CEC_SUPPORT=y
# CONFIG_CEC_CH7322 is not set
# CONFIG_CEC_NXP_TDA9950 is not set
# CONFIG_CEC_GPIO is not set
# CONFIG_CEC_SECO is not set
# CONFIG_USB_EXTRON_DA_HD_4K_PLUS_CEC is not set
CONFIG_USB_PULSE8_CEC=y
CONFIG_USB_RAINSHADOW_CEC=y
# end of CEC support

CONFIG_MEDIA_SUPPORT=y
CONFIG_MEDIA_SUPPORT_FILTER=y
# CONFIG_MEDIA_SUBDRV_AUTOSELECT is not set

#
# Media device types
#
CONFIG_MEDIA_CAMERA_SUPPORT=y
CONFIG_MEDIA_ANALOG_TV_SUPPORT=y
CONFIG_MEDIA_DIGITAL_TV_SUPPORT=y
CONFIG_MEDIA_RADIO_SUPPORT=y
CONFIG_MEDIA_SDR_SUPPORT=y
CONFIG_MEDIA_PLATFORM_SUPPORT=y
CONFIG_MEDIA_TEST_SUPPORT=y
# end of Media device types

CONFIG_VIDEO_DEV=y
CONFIG_MEDIA_CONTROLLER=y
CONFIG_DVB_CORE=y

#
# Video4Linux options
#
CONFIG_VIDEO_V4L2_I2C=y
CONFIG_VIDEO_V4L2_SUBDEV_API=y
# CONFIG_VIDEO_ADV_DEBUG is not set
# CONFIG_VIDEO_FIXED_MINOR_RANGES is not set
CONFIG_VIDEO_TUNER=y
CONFIG_V4L2_MEM2MEM_DEV=y
# end of Video4Linux options

#
# Media controller options
#
CONFIG_MEDIA_CONTROLLER_DVB=y
# end of Media controller options

#
# Digital TV options
#
# CONFIG_DVB_MMAP is not set
# CONFIG_DVB_NET is not set
CONFIG_DVB_MAX_ADAPTERS=16
# CONFIG_DVB_DYNAMIC_MINORS is not set
# CONFIG_DVB_DEMUX_SECTION_LOSS_LOG is not set
# CONFIG_DVB_ULE_DEBUG is not set
# end of Digital TV options

#
# Media drivers
#

#
# Drivers filtered as selected at 'Filter media drivers'
#

#
# Media drivers
#
CONFIG_MEDIA_USB_SUPPORT=y

#
# Webcam devices
#
CONFIG_USB_GSPCA=y
CONFIG_USB_GSPCA_BENQ=y
CONFIG_USB_GSPCA_CONEX=y
CONFIG_USB_GSPCA_CPIA1=y
CONFIG_USB_GSPCA_DTCS033=y
CONFIG_USB_GSPCA_ETOMS=y
CONFIG_USB_GSPCA_FINEPIX=y
CONFIG_USB_GSPCA_JEILINJ=y
CONFIG_USB_GSPCA_JL2005BCD=y
CONFIG_USB_GSPCA_KINECT=y
CONFIG_USB_GSPCA_KONICA=y
CONFIG_USB_GSPCA_MARS=y
CONFIG_USB_GSPCA_MR97310A=y
CONFIG_USB_GSPCA_NW80X=y
CONFIG_USB_GSPCA_OV519=y
CONFIG_USB_GSPCA_OV534=y
CONFIG_USB_GSPCA_OV534_9=y
CONFIG_USB_GSPCA_PAC207=y
CONFIG_USB_GSPCA_PAC7302=y
CONFIG_USB_GSPCA_PAC7311=y
CONFIG_USB_GSPCA_SE401=y
CONFIG_USB_GSPCA_SN9C2028=y
CONFIG_USB_GSPCA_SN9C20X=y
CONFIG_USB_GSPCA_SONIXB=y
CONFIG_USB_GSPCA_SONIXJ=y
CONFIG_USB_GSPCA_SPCA1528=y
CONFIG_USB_GSPCA_SPCA500=y
CONFIG_USB_GSPCA_SPCA501=y
CONFIG_USB_GSPCA_SPCA505=y
CONFIG_USB_GSPCA_SPCA506=y
CONFIG_USB_GSPCA_SPCA508=y
CONFIG_USB_GSPCA_SPCA561=y
CONFIG_USB_GSPCA_SQ905=y
CONFIG_USB_GSPCA_SQ905C=y
CONFIG_USB_GSPCA_SQ930X=y
CONFIG_USB_GSPCA_STK014=y
CONFIG_USB_GSPCA_STK1135=y
CONFIG_USB_GSPCA_STV0680=y
CONFIG_USB_GSPCA_SUNPLUS=y
CONFIG_USB_GSPCA_T613=y
CONFIG_USB_GSPCA_TOPRO=y
CONFIG_USB_GSPCA_TOUPTEK=y
CONFIG_USB_GSPCA_TV8532=y
CONFIG_USB_GSPCA_VC032X=y
CONFIG_USB_GSPCA_VICAM=y
CONFIG_USB_GSPCA_XIRLINK_CIT=y
CONFIG_USB_GSPCA_ZC3XX=y
CONFIG_USB_GL860=y
CONFIG_USB_M5602=y
CONFIG_USB_STV06XX=y
CONFIG_USB_PWC=y
# CONFIG_USB_PWC_DEBUG is not set
CONFIG_USB_PWC_INPUT_EVDEV=y
CONFIG_USB_S2255=y
CONFIG_VIDEO_USBTV=y
CONFIG_USB_VIDEO_CLASS=y
CONFIG_USB_VIDEO_CLASS_INPUT_EVDEV=y

#
# Analog TV USB devices
#
CONFIG_VIDEO_GO7007=y
CONFIG_VIDEO_GO7007_USB=y
CONFIG_VIDEO_GO7007_LOADER=y
CONFIG_VIDEO_GO7007_USB_S2250_BOARD=y
CONFIG_VIDEO_HDPVR=y
CONFIG_VIDEO_PVRUSB2=y
CONFIG_VIDEO_PVRUSB2_SYSFS=y
CONFIG_VIDEO_PVRUSB2_DVB=y
# CONFIG_VIDEO_PVRUSB2_DEBUGIFC is not set
CONFIG_VIDEO_STK1160=y

#
# Analog/digital TV USB devices
#
CONFIG_VIDEO_AU0828=y
CONFIG_VIDEO_AU0828_V4L2=y
CONFIG_VIDEO_AU0828_RC=y
CONFIG_VIDEO_CX231XX=y
CONFIG_VIDEO_CX231XX_RC=y
CONFIG_VIDEO_CX231XX_ALSA=y
CONFIG_VIDEO_CX231XX_DVB=y

#
# Digital TV USB devices
#
CONFIG_DVB_AS102=y
CONFIG_DVB_B2C2_FLEXCOP_USB=y
# CONFIG_DVB_B2C2_FLEXCOP_USB_DEBUG is not set
CONFIG_DVB_USB_V2=y
CONFIG_DVB_USB_AF9015=y
CONFIG_DVB_USB_AF9035=y
CONFIG_DVB_USB_ANYSEE=y
CONFIG_DVB_USB_AU6610=y
CONFIG_DVB_USB_AZ6007=y
CONFIG_DVB_USB_CE6230=y
CONFIG_DVB_USB_DVBSKY=y
CONFIG_DVB_USB_EC168=y
CONFIG_DVB_USB_GL861=y
CONFIG_DVB_USB_LME2510=y
CONFIG_DVB_USB_MXL111SF=y
CONFIG_DVB_USB_RTL28XXU=y
CONFIG_DVB_USB_ZD1301=y
CONFIG_DVB_USB=y
# CONFIG_DVB_USB_DEBUG is not set
CONFIG_DVB_USB_A800=y
CONFIG_DVB_USB_AF9005=y
CONFIG_DVB_USB_AF9005_REMOTE=y
CONFIG_DVB_USB_AZ6027=y
CONFIG_DVB_USB_CINERGY_T2=y
CONFIG_DVB_USB_CXUSB=y
CONFIG_DVB_USB_CXUSB_ANALOG=y
CONFIG_DVB_USB_DIB0700=y
CONFIG_DVB_USB_DIB3000MC=y
CONFIG_DVB_USB_DIBUSB_MB=y
# CONFIG_DVB_USB_DIBUSB_MB_FAULTY is not set
CONFIG_DVB_USB_DIBUSB_MC=y
CONFIG_DVB_USB_DIGITV=y
CONFIG_DVB_USB_DTT200U=y
CONFIG_DVB_USB_DTV5100=y
CONFIG_DVB_USB_DW2102=y
CONFIG_DVB_USB_GP8PSK=y
CONFIG_DVB_USB_M920X=y
CONFIG_DVB_USB_NOVA_T_USB2=y
CONFIG_DVB_USB_OPERA1=y
CONFIG_DVB_USB_PCTV452E=y
CONFIG_DVB_USB_TECHNISAT_USB2=y
CONFIG_DVB_USB_TTUSB2=y
CONFIG_DVB_USB_UMT_010=y
CONFIG_DVB_USB_VP702X=y
CONFIG_DVB_USB_VP7045=y
CONFIG_SMS_USB_DRV=y
CONFIG_DVB_TTUSB_BUDGET=y
CONFIG_DVB_TTUSB_DEC=y

#
# Webcam, TV (analog/digital) USB devices
#
CONFIG_VIDEO_EM28XX=y
CONFIG_VIDEO_EM28XX_V4L2=y
CONFIG_VIDEO_EM28XX_ALSA=y
CONFIG_VIDEO_EM28XX_DVB=y
CONFIG_VIDEO_EM28XX_RC=y

#
# Software defined radio USB devices
#
CONFIG_USB_AIRSPY=y
CONFIG_USB_HACKRF=y
CONFIG_USB_MSI2500=y
# CONFIG_MEDIA_PCI_SUPPORT is not set
CONFIG_RADIO_ADAPTERS=y
# CONFIG_RADIO_MAXIRADIO is not set
# CONFIG_RADIO_SAA7706H is not set
CONFIG_RADIO_SHARK=y
CONFIG_RADIO_SHARK2=y
CONFIG_RADIO_SI4713=y
CONFIG_RADIO_TEA575X=y
# CONFIG_RADIO_TEA5764 is not set
# CONFIG_RADIO_TEF6862 is not set
CONFIG_USB_DSBR=y
CONFIG_USB_KEENE=y
CONFIG_USB_MA901=y
CONFIG_USB_MR800=y
CONFIG_USB_RAREMONO=y
CONFIG_RADIO_SI470X=y
CONFIG_USB_SI470X=y
# CONFIG_I2C_SI470X is not set
CONFIG_USB_SI4713=y
# CONFIG_PLATFORM_SI4713 is not set
CONFIG_I2C_SI4713=y
# CONFIG_MEDIA_PLATFORM_DRIVERS is not set

#
# MMC/SDIO DVB adapters
#
CONFIG_SMS_SDIO_DRV=y
CONFIG_V4L_TEST_DRIVERS=y
CONFIG_VIDEO_VIM2M=y
CONFIG_VIDEO_VICODEC=y
CONFIG_VIDEO_VIMC=y
CONFIG_VIDEO_VIVID=y
CONFIG_VIDEO_VIVID_CEC=y
# CONFIG_VIDEO_VIVID_OSD is not set
CONFIG_VIDEO_VIVID_MAX_DEVS=64
# CONFIG_VIDEO_VISL is not set
CONFIG_DVB_TEST_DRIVERS=y
CONFIG_DVB_VIDTV=y

#
# FireWire (IEEE 1394) Adapters
#
# CONFIG_DVB_FIREDTV is not set
CONFIG_MEDIA_COMMON_OPTIONS=y

#
# common driver options
#
CONFIG_CYPRESS_FIRMWARE=y
CONFIG_TTPCI_EEPROM=y
CONFIG_UVC_COMMON=y
CONFIG_VIDEO_CX2341X=y
CONFIG_VIDEO_TVEEPROM=y
CONFIG_DVB_B2C2_FLEXCOP=y
CONFIG_SMS_SIANO_MDTV=y
CONFIG_SMS_SIANO_RC=y
CONFIG_SMS_SIANO_DEBUGFS=y
CONFIG_VIDEO_V4L2_TPG=y
CONFIG_VIDEOBUF2_CORE=y
CONFIG_VIDEOBUF2_V4L2=y
CONFIG_VIDEOBUF2_MEMOPS=y
CONFIG_VIDEOBUF2_DMA_CONTIG=y
CONFIG_VIDEOBUF2_VMALLOC=y
CONFIG_VIDEOBUF2_DMA_SG=y
# end of Media drivers

#
# Media ancillary drivers
#
CONFIG_MEDIA_ATTACH=y
# CONFIG_VIDEO_IR_I2C is not set
# CONFIG_VIDEO_CAMERA_SENSOR is not set

#
# Camera ISPs
#
# CONFIG_VIDEO_THP7312 is not set
# end of Camera ISPs

# CONFIG_VIDEO_CAMERA_LENS is not set

#
# Flash devices
#
# CONFIG_VIDEO_ADP1653 is not set
# CONFIG_VIDEO_LM3560 is not set
# CONFIG_VIDEO_LM3646 is not set
# end of Flash devices

#
# Audio decoders, processors and mixers
#
# CONFIG_VIDEO_CS3308 is not set
# CONFIG_VIDEO_CS5345 is not set
CONFIG_VIDEO_CS53L32A=y
CONFIG_VIDEO_MSP3400=y
# CONFIG_VIDEO_SONY_BTF_MPX is not set
# CONFIG_VIDEO_TDA1997X is not set
# CONFIG_VIDEO_TDA7432 is not set
# CONFIG_VIDEO_TDA9840 is not set
# CONFIG_VIDEO_TEA6415C is not set
# CONFIG_VIDEO_TEA6420 is not set
# CONFIG_VIDEO_TLV320AIC23B is not set
# CONFIG_VIDEO_TVAUDIO is not set
# CONFIG_VIDEO_UDA1342 is not set
# CONFIG_VIDEO_VP27SMPX is not set
# CONFIG_VIDEO_WM8739 is not set
CONFIG_VIDEO_WM8775=y
# end of Audio decoders, processors and mixers

#
# RDS decoders
#
# CONFIG_VIDEO_SAA6588 is not set
# end of RDS decoders

#
# Video decoders
#
# CONFIG_VIDEO_ADV7180 is not set
# CONFIG_VIDEO_ADV7183 is not set
# CONFIG_VIDEO_ADV748X is not set
# CONFIG_VIDEO_ADV7604 is not set
# CONFIG_VIDEO_ADV7842 is not set
# CONFIG_VIDEO_BT819 is not set
# CONFIG_VIDEO_BT856 is not set
# CONFIG_VIDEO_BT866 is not set
# CONFIG_VIDEO_ISL7998X is not set
# CONFIG_VIDEO_LT6911UXE is not set
# CONFIG_VIDEO_KS0127 is not set
# CONFIG_VIDEO_MAX9286 is not set
# CONFIG_VIDEO_ML86V7667 is not set
# CONFIG_VIDEO_SAA7110 is not set
CONFIG_VIDEO_SAA711X=y
# CONFIG_VIDEO_TC358743 is not set
# CONFIG_VIDEO_TC358746 is not set
# CONFIG_VIDEO_TVP514X is not set
# CONFIG_VIDEO_TVP5150 is not set
# CONFIG_VIDEO_TVP7002 is not set
# CONFIG_VIDEO_TW2804 is not set
# CONFIG_VIDEO_TW9900 is not set
# CONFIG_VIDEO_TW9903 is not set
# CONFIG_VIDEO_TW9906 is not set
# CONFIG_VIDEO_TW9910 is not set
# CONFIG_VIDEO_VPX3220 is not set

#
# Video and audio decoders
#
# CONFIG_VIDEO_SAA717X is not set
CONFIG_VIDEO_CX25840=y
# end of Video decoders

#
# Video encoders
#
# CONFIG_VIDEO_ADV7170 is not set
# CONFIG_VIDEO_ADV7175 is not set
# CONFIG_VIDEO_ADV7343 is not set
# CONFIG_VIDEO_ADV7393 is not set
# CONFIG_VIDEO_ADV7511 is not set
# CONFIG_VIDEO_AK881X is not set
# CONFIG_VIDEO_SAA7127 is not set
# CONFIG_VIDEO_SAA7185 is not set
# CONFIG_VIDEO_THS8200 is not set
# end of Video encoders

#
# Video improvement chips
#
# CONFIG_VIDEO_UPD64031A is not set
# CONFIG_VIDEO_UPD64083 is not set
# end of Video improvement chips

#
# Audio/Video compression chips
#
# CONFIG_VIDEO_SAA6752HS is not set
# end of Audio/Video compression chips

#
# SDR tuner chips
#
# CONFIG_SDR_MAX2175 is not set
# end of SDR tuner chips

#
# Miscellaneous helper chips
#
# CONFIG_VIDEO_INTEL_CVS is not set
# CONFIG_VIDEO_I2C is not set
# CONFIG_VIDEO_M52790 is not set
# CONFIG_VIDEO_ST_MIPID02 is not set
# CONFIG_VIDEO_THS7303 is not set
# end of Miscellaneous helper chips

#
# Video serializers and deserializers
#
# CONFIG_VIDEO_DS90UB913 is not set
# CONFIG_VIDEO_DS90UB953 is not set
# CONFIG_VIDEO_DS90UB960 is not set
# CONFIG_VIDEO_MAX96714 is not set
# CONFIG_VIDEO_MAX96717 is not set
# end of Video serializers and deserializers

#
# Media SPI Adapters
#
# CONFIG_CXD2880_SPI_DRV is not set
# CONFIG_VIDEO_GS1662 is not set
# end of Media SPI Adapters

CONFIG_MEDIA_TUNER=y

#
# Customize TV tuners
#
# CONFIG_MEDIA_TUNER_E4000 is not set
# CONFIG_MEDIA_TUNER_FC0011 is not set
# CONFIG_MEDIA_TUNER_FC0012 is not set
# CONFIG_MEDIA_TUNER_FC0013 is not set
# CONFIG_MEDIA_TUNER_FC2580 is not set
# CONFIG_MEDIA_TUNER_IT913X is not set
# CONFIG_MEDIA_TUNER_M88RS6000T is not set
# CONFIG_MEDIA_TUNER_MAX2165 is not set
# CONFIG_MEDIA_TUNER_MC44S803 is not set
CONFIG_MEDIA_TUNER_MSI001=y
# CONFIG_MEDIA_TUNER_MT2060 is not set
# CONFIG_MEDIA_TUNER_MT2063 is not set
# CONFIG_MEDIA_TUNER_MT20XX is not set
# CONFIG_MEDIA_TUNER_MT2131 is not set
# CONFIG_MEDIA_TUNER_MT2266 is not set
# CONFIG_MEDIA_TUNER_MXL301RF is not set
# CONFIG_MEDIA_TUNER_MXL5005S is not set
# CONFIG_MEDIA_TUNER_MXL5007T is not set
# CONFIG_MEDIA_TUNER_QM1D1B0004 is not set
# CONFIG_MEDIA_TUNER_QM1D1C0042 is not set
# CONFIG_MEDIA_TUNER_QT1010 is not set
# CONFIG_MEDIA_TUNER_R820T is not set
# CONFIG_MEDIA_TUNER_SI2157 is not set
# CONFIG_MEDIA_TUNER_SIMPLE is not set
# CONFIG_MEDIA_TUNER_TDA18212 is not set
# CONFIG_MEDIA_TUNER_TDA18218 is not set
# CONFIG_MEDIA_TUNER_TDA18250 is not set
# CONFIG_MEDIA_TUNER_TDA18271 is not set
# CONFIG_MEDIA_TUNER_TDA827X is not set
# CONFIG_MEDIA_TUNER_TDA8290 is not set
# CONFIG_MEDIA_TUNER_TDA9887 is not set
# CONFIG_MEDIA_TUNER_TEA5761 is not set
# CONFIG_MEDIA_TUNER_TEA5767 is not set
# CONFIG_MEDIA_TUNER_TUA9001 is not set
# CONFIG_MEDIA_TUNER_XC2028 is not set
# CONFIG_MEDIA_TUNER_XC4000 is not set
# CONFIG_MEDIA_TUNER_XC5000 is not set
# end of Customize TV tuners

#
# Customise DVB Frontends
#

#
# Multistandard (satellite) frontends
#
# CONFIG_DVB_M88DS3103 is not set
# CONFIG_DVB_MXL5XX is not set
# CONFIG_DVB_STB0899 is not set
# CONFIG_DVB_STB6100 is not set
# CONFIG_DVB_STV090x is not set
# CONFIG_DVB_STV0910 is not set
# CONFIG_DVB_STV6110x is not set
# CONFIG_DVB_STV6111 is not set

#
# Multistandard (cable + terrestrial) frontends
#
# CONFIG_DVB_DRXK is not set
# CONFIG_DVB_MN88472 is not set
# CONFIG_DVB_MN88473 is not set
# CONFIG_DVB_SI2165 is not set
# CONFIG_DVB_TDA18271C2DD is not set

#
# DVB-S (satellite) frontends
#
# CONFIG_DVB_CX24110 is not set
# CONFIG_DVB_CX24116 is not set
# CONFIG_DVB_CX24117 is not set
# CONFIG_DVB_CX24120 is not set
# CONFIG_DVB_CX24123 is not set
# CONFIG_DVB_DS3000 is not set
# CONFIG_DVB_MB86A16 is not set
# CONFIG_DVB_MT312 is not set
# CONFIG_DVB_S5H1420 is not set
# CONFIG_DVB_SI21XX is not set
# CONFIG_DVB_STB6000 is not set
# CONFIG_DVB_STV0288 is not set
# CONFIG_DVB_STV0299 is not set
# CONFIG_DVB_STV0900 is not set
# CONFIG_DVB_STV6110 is not set
# CONFIG_DVB_TDA10071 is not set
# CONFIG_DVB_TDA10086 is not set
# CONFIG_DVB_TDA8083 is not set
# CONFIG_DVB_TDA8261 is not set
# CONFIG_DVB_TDA826X is not set
# CONFIG_DVB_TS2020 is not set
# CONFIG_DVB_TUA6100 is not set
# CONFIG_DVB_TUNER_CX24113 is not set
# CONFIG_DVB_TUNER_ITD1000 is not set
# CONFIG_DVB_VES1X93 is not set
# CONFIG_DVB_ZL10036 is not set
# CONFIG_DVB_ZL10039 is not set

#
# DVB-T (terrestrial) frontends
#
CONFIG_DVB_AF9013=y
CONFIG_DVB_AS102_FE=y
# CONFIG_DVB_CX22700 is not set
# CONFIG_DVB_CX22702 is not set
# CONFIG_DVB_CXD2820R is not set
# CONFIG_DVB_CXD2841ER is not set
CONFIG_DVB_DIB3000MB=y
CONFIG_DVB_DIB3000MC=y
# CONFIG_DVB_DIB7000M is not set
# CONFIG_DVB_DIB7000P is not set
# CONFIG_DVB_DIB9000 is not set
# CONFIG_DVB_DRXD is not set
CONFIG_DVB_EC100=y
CONFIG_DVB_GP8PSK_FE=y
# CONFIG_DVB_L64781 is not set
# CONFIG_DVB_MT352 is not set
# CONFIG_DVB_NXT6000 is not set
CONFIG_DVB_RTL2830=y
CONFIG_DVB_RTL2832=y
CONFIG_DVB_RTL2832_SDR=y
# CONFIG_DVB_S5H1432 is not set
# CONFIG_DVB_SI2168 is not set
# CONFIG_DVB_SP887X is not set
# CONFIG_DVB_STV0367 is not set
# CONFIG_DVB_TDA10048 is not set
# CONFIG_DVB_TDA1004X is not set
# CONFIG_DVB_ZD1301_DEMOD is not set
CONFIG_DVB_ZL10353=y
# CONFIG_DVB_CXD2880 is not set

#
# DVB-C (cable) frontends
#
# CONFIG_DVB_STV0297 is not set
# CONFIG_DVB_TDA10021 is not set
# CONFIG_DVB_TDA10023 is not set
# CONFIG_DVB_VES1820 is not set

#
# ATSC (North American/Korean Terrestrial/Cable DTV) frontends
#
# CONFIG_DVB_AU8522_DTV is not set
# CONFIG_DVB_AU8522_V4L is not set
# CONFIG_DVB_BCM3510 is not set
# CONFIG_DVB_LG2160 is not set
# CONFIG_DVB_LGDT3305 is not set
# CONFIG_DVB_LGDT3306A is not set
# CONFIG_DVB_LGDT330X is not set
# CONFIG_DVB_MXL692 is not set
# CONFIG_DVB_NXT200X is not set
# CONFIG_DVB_OR51132 is not set
# CONFIG_DVB_OR51211 is not set
# CONFIG_DVB_S5H1409 is not set
# CONFIG_DVB_S5H1411 is not set

#
# ISDB-T (terrestrial) frontends
#
# CONFIG_DVB_DIB8000 is not set
# CONFIG_DVB_MB86A20S is not set
# CONFIG_DVB_S921 is not set

#
# ISDB-S (satellite) & ISDB-T (terrestrial) frontends
#
# CONFIG_DVB_MN88443X is not set
# CONFIG_DVB_TC90522 is not set

#
# Digital terrestrial only tuners/PLL
#
# CONFIG_DVB_PLL is not set
# CONFIG_DVB_TUNER_DIB0070 is not set
# CONFIG_DVB_TUNER_DIB0090 is not set

#
# SEC control devices for DVB-S
#
# CONFIG_DVB_A8293 is not set
CONFIG_DVB_AF9033=y
# CONFIG_DVB_ASCOT2E is not set
# CONFIG_DVB_ATBM8830 is not set
# CONFIG_DVB_HELENE is not set
# CONFIG_DVB_HORUS3A is not set
# CONFIG_DVB_ISL6405 is not set
# CONFIG_DVB_ISL6421 is not set
# CONFIG_DVB_ISL6423 is not set
# CONFIG_DVB_IX2505V is not set
# CONFIG_DVB_LGS8GL5 is not set
# CONFIG_DVB_LGS8GXX is not set
# CONFIG_DVB_LNBH25 is not set
# CONFIG_DVB_LNBH29 is not set
# CONFIG_DVB_LNBP21 is not set
# CONFIG_DVB_LNBP22 is not set
# CONFIG_DVB_M88RS2000 is not set
# CONFIG_DVB_TDA665x is not set
# CONFIG_DVB_DRX39XYJ is not set

#
# Common Interface (EN50221) controller drivers
#
# CONFIG_DVB_CXD2099 is not set
# CONFIG_DVB_SP2 is not set
# end of Customise DVB Frontends

#
# Tools to develop new frontends
#
# CONFIG_DVB_DUMMY_FE is not set
# end of Media ancillary drivers

#
# Graphics support
#
CONFIG_APERTURE_HELPERS=y
CONFIG_SCREEN_INFO=y
CONFIG_VIDEO=y
# CONFIG_AUXDISPLAY is not set
# CONFIG_PANEL is not set
CONFIG_AGP=y
CONFIG_AGP_AMD64=y
CONFIG_AGP_INTEL=y
# CONFIG_AGP_SIS is not set
# CONFIG_AGP_VIA is not set
CONFIG_INTEL_GTT=y
# CONFIG_VGA_SWITCHEROO is not set
CONFIG_GPU_BUDDY=y
CONFIG_DRM=y

#
# DRM debugging options
#
# CONFIG_DRM_WERROR is not set
CONFIG_DRM_DEBUG_MM=y
# end of DRM debugging options

CONFIG_DRM_MIPI_DSI=y
CONFIG_DRM_KMS_HELPER=y
# CONFIG_DRM_PANIC is not set
# CONFIG_DRM_RAS is not set
# CONFIG_DRM_DEBUG_DP_MST_TOPOLOGY_REFS is not set
# CONFIG_DRM_DEBUG_MODESET_LOCK is not set
CONFIG_DRM_CLIENT=y
CONFIG_DRM_CLIENT_LIB=y
CONFIG_DRM_CLIENT_SELECTION=y
CONFIG_DRM_CLIENT_SETUP=y

#
# Supported DRM clients
#
CONFIG_DRM_FBDEV_EMULATION=y
CONFIG_DRM_FBDEV_OVERALLOC=100
# CONFIG_DRM_FBDEV_LEAK_PHYS_SMEM is not set
# CONFIG_DRM_CLIENT_LOG is not set
CONFIG_DRM_CLIENT_DEFAULT_FBDEV=y
CONFIG_DRM_CLIENT_DEFAULT="fbdev"
# end of Supported DRM clients

# CONFIG_DRM_LOAD_EDID_FIRMWARE is not set
CONFIG_DRM_DISPLAY_DP_AUX_BUS=y
CONFIG_DRM_DISPLAY_HELPER=y
# CONFIG_DRM_DISPLAY_DP_AUX_CEC is not set
# CONFIG_DRM_DISPLAY_DP_AUX_CHARDEV is not set
CONFIG_DRM_DISPLAY_DP_HELPER=y
CONFIG_DRM_DISPLAY_DSC_HELPER=y
CONFIG_DRM_DISPLAY_HDCP_HELPER=y
CONFIG_DRM_DISPLAY_HDMI_HELPER=y
CONFIG_DRM_TTM=y
CONFIG_DRM_BUDDY=y
CONFIG_DRM_TTM_HELPER=y
CONFIG_DRM_GEM_SHMEM_HELPER=y
# CONFIG_DRM_AMDGPU is not set

#
# ARM devices
#
# CONFIG_DRM_KOMEDA is not set
# end of ARM devices

# CONFIG_DRM_AST is not set
CONFIG_DRM_BRIDGE=y
CONFIG_DRM_PANEL_BRIDGE=y
CONFIG_DRM_AUX_BRIDGE=y
CONFIG_DRM_AUX_HPD_BRIDGE=y

#
# Display Interface Bridges
#
# CONFIG_DRM_CHIPONE_ICN6211 is not set
# CONFIG_DRM_CHRONTEL_CH7033 is not set
# CONFIG_DRM_DISPLAY_CONNECTOR is not set
# CONFIG_DRM_I2C_NXP_TDA998X is not set
# CONFIG_DRM_ITE_IT6263 is not set
# CONFIG_DRM_ITE_IT6505 is not set
# CONFIG_DRM_LONTIUM_LT8912B is not set
# CONFIG_DRM_LONTIUM_LT9211 is not set
# CONFIG_DRM_LONTIUM_LT9611 is not set
# CONFIG_DRM_LONTIUM_LT9611UXC is not set
# CONFIG_DRM_LONTIUM_LT8713SX is not set
# CONFIG_DRM_ITE_IT66121 is not set
# CONFIG_DRM_LVDS_CODEC is not set
# CONFIG_DRM_MEGACHIPS_STDPXXXX_GE_B850V3_FW is not set
# CONFIG_DRM_NWL_MIPI_DSI is not set
# CONFIG_DRM_NXP_PTN3460 is not set
# CONFIG_DRM_PARADE_PS8622 is not set
# CONFIG_DRM_PARADE_PS8640 is not set
# CONFIG_DRM_SAMSUNG_DSIM is not set
# CONFIG_DRM_SIL_SII8620 is not set
# CONFIG_DRM_SII902X is not set
# CONFIG_DRM_SII9234 is not set
# CONFIG_DRM_SIMPLE_BRIDGE is not set
# CONFIG_DRM_SOLOMON_SSD2825 is not set
# CONFIG_DRM_THINE_THC63LVD1024 is not set
# CONFIG_DRM_TOSHIBA_TC358762 is not set
# CONFIG_DRM_TOSHIBA_TC358764 is not set
# CONFIG_DRM_TOSHIBA_TC358767 is not set
# CONFIG_DRM_TOSHIBA_TC358768 is not set
# CONFIG_DRM_TOSHIBA_TC358775 is not set
# CONFIG_DRM_TI_DLPC3433 is not set
# CONFIG_DRM_TI_TDP158 is not set
# CONFIG_DRM_TI_TFP410 is not set
# CONFIG_DRM_TI_SN65DSI83 is not set
# CONFIG_DRM_TI_SN65DSI86 is not set
# CONFIG_DRM_TI_TPD12S015 is not set
# CONFIG_DRM_WAVESHARE_BRIDGE is not set
# CONFIG_DRM_ANALOGIX_ANX6345 is not set
# CONFIG_DRM_ANALOGIX_ANX78XX is not set
# CONFIG_DRM_ANALOGIX_ANX7625 is not set
# CONFIG_DRM_I2C_ADV7511 is not set
# CONFIG_DRM_CDNS_DSI is not set
# CONFIG_DRM_CDNS_MHDP8546 is not set
# end of Display Interface Bridges

# CONFIG_DRM_ETNAVIV is not set
# CONFIG_DRM_GMA500 is not set
CONFIG_DRM_GUD=y
# CONFIG_DRM_HISI_HIBMC is not set
CONFIG_DRM_I915=y
CONFIG_DRM_I915_FORCE_PROBE=""
CONFIG_DRM_I915_CAPTURE_ERROR=y
CONFIG_DRM_I915_COMPRESS_ERROR=y
CONFIG_DRM_I915_USERPTR=y
# CONFIG_DRM_I915_GVT_KVMGT is not set
# CONFIG_DRM_I915_DP_TUNNEL is not set

#
# drm/i915 Debugging
#
# CONFIG_DRM_I915_WERROR is not set
# CONFIG_DRM_I915_REPLAY_GPU_HANGS_API is not set
# CONFIG_DRM_I915_DEBUG is not set
# CONFIG_DRM_I915_DEBUG_MMIO is not set
# CONFIG_DRM_I915_SW_FENCE_DEBUG_OBJECTS is not set
# CONFIG_DRM_I915_SW_FENCE_CHECK_DAG is not set
# CONFIG_DRM_I915_DEBUG_GUC is not set
# CONFIG_DRM_I915_SELFTEST is not set
# CONFIG_DRM_I915_LOW_LEVEL_TRACEPOINTS is not set
# CONFIG_DRM_I915_DEBUG_VBLANK_EVADE is not set
# CONFIG_DRM_I915_DEBUG_RUNTIME_PM is not set
# CONFIG_DRM_I915_DEBUG_WAKEREF is not set
# end of drm/i915 Debugging

#
# drm/i915 Profile Guided Optimisation
#
CONFIG_DRM_I915_REQUEST_TIMEOUT=20000
CONFIG_DRM_I915_FENCE_TIMEOUT=10000
CONFIG_DRM_I915_USERFAULT_AUTOSUSPEND=250
CONFIG_DRM_I915_HEARTBEAT_INTERVAL=2500
CONFIG_DRM_I915_PREEMPT_TIMEOUT=640
CONFIG_DRM_I915_PREEMPT_TIMEOUT_COMPUTE=7500
CONFIG_DRM_I915_MAX_REQUEST_BUSYWAIT=8000
CONFIG_DRM_I915_STOP_TIMEOUT=100
CONFIG_DRM_I915_TIMESLICE_DURATION=1
# end of drm/i915 Profile Guided Optimisation

# CONFIG_DRM_LOGICVC is not set
# CONFIG_DRM_MGAG200 is not set
# CONFIG_DRM_NOUVEAU is not set
CONFIG_DRM_PANEL=y

#
# Display Panels
#
# CONFIG_DRM_PANEL_ABT_Y030XX067A is not set
# CONFIG_DRM_PANEL_ANBERNIC_TD4310 is not set
# CONFIG_DRM_PANEL_ARM_VERSATILE is not set
# CONFIG_DRM_PANEL_ASUS_Z00T_TM5P5_NT35596 is not set
# CONFIG_DRM_PANEL_AUO_A030JTN01 is not set
# CONFIG_DRM_PANEL_BOE_BF060Y8M_AJ0 is not set
# CONFIG_DRM_PANEL_BOE_HIMAX8279D is not set
# CONFIG_DRM_PANEL_BOE_TD4320 is not set
# CONFIG_DRM_PANEL_BOE_TH101MB31UIG002_28A is not set
# CONFIG_DRM_PANEL_BOE_TV101WUM_NL6 is not set
# CONFIG_DRM_PANEL_BOE_TV101WUM_LL2 is not set
# CONFIG_DRM_PANEL_CHIPONE_ICNA35XX is not set
# CONFIG_DRM_PANEL_CHIPWEALTH_CH13726A is not set
# CONFIG_DRM_PANEL_EBBG_FT8719 is not set
# CONFIG_DRM_PANEL_ELIDA_KD35T133 is not set
# CONFIG_DRM_PANEL_FEIXIN_K101_IM2BA02 is not set
# CONFIG_DRM_PANEL_FEIYANG_FY07024DI26A30D is not set
# CONFIG_DRM_PANEL_FOCALTECH_OTA7290B is not set
# CONFIG_DRM_PANEL_DSI_CM is not set
# CONFIG_DRM_PANEL_LVDS is not set
# CONFIG_DRM_PANEL_HIMAX_HX8279 is not set
# CONFIG_DRM_PANEL_HIMAX_HX83102 is not set
# CONFIG_DRM_PANEL_HIMAX_HX83112A is not set
# CONFIG_DRM_PANEL_HIMAX_HX83112B is not set
# CONFIG_DRM_PANEL_HIMAX_HX83121A is not set
# CONFIG_DRM_PANEL_HIMAX_HX8394 is not set
# CONFIG_DRM_PANEL_HYDIS_HV101HD1 is not set
# CONFIG_DRM_PANEL_ILITEK_ILI7807S is not set
# CONFIG_DRM_PANEL_ILITEK_IL9322 is not set
# CONFIG_DRM_PANEL_ILITEK_ILI9341 is not set
# CONFIG_DRM_PANEL_ILITEK_ILI9488 is not set
# CONFIG_DRM_PANEL_ILITEK_ILI9805 is not set
# CONFIG_DRM_PANEL_ILITEK_ILI9806E_DSI is not set
# CONFIG_DRM_PANEL_ILITEK_ILI9806E_SPI is not set
# CONFIG_DRM_PANEL_ILITEK_ILI9881C is not set
# CONFIG_DRM_PANEL_ILITEK_ILI9882T is not set
# CONFIG_DRM_PANEL_INNOLUX_EJ030NA is not set
# CONFIG_DRM_PANEL_INNOLUX_P079ZCA is not set
# CONFIG_DRM_PANEL_JADARD_JD9365DA_H3 is not set
# CONFIG_DRM_PANEL_JDI_LPM102A188A is not set
# CONFIG_DRM_PANEL_JDI_LT070ME05000 is not set
# CONFIG_DRM_PANEL_JDI_R63452 is not set
# CONFIG_DRM_PANEL_KHADAS_TS050 is not set
# CONFIG_DRM_PANEL_KINGDISPLAY_KD097D04 is not set
# CONFIG_DRM_PANEL_LEADTEK_LTK050H3146W is not set
# CONFIG_DRM_PANEL_LEADTEK_LTK500HD1829 is not set
# CONFIG_DRM_PANEL_LINCOLNTECH_LCD197 is not set
# CONFIG_DRM_PANEL_LG_LB035Q02 is not set
# CONFIG_DRM_PANEL_LG_LD070WX3 is not set
# CONFIG_DRM_PANEL_LG_LG4573 is not set
# CONFIG_DRM_PANEL_LG_SW43408 is not set
# CONFIG_DRM_PANEL_LXD_M9189A is not set
# CONFIG_DRM_PANEL_MAGNACHIP_D53E6EA8966 is not set
# CONFIG_DRM_PANEL_MANTIX_MLAF057WE51 is not set
# CONFIG_DRM_PANEL_MOTOROLA_MOT is not set
# CONFIG_DRM_PANEL_NEC_NL8048HL11 is not set
# CONFIG_DRM_PANEL_NEWVISION_NV3051D is not set
# CONFIG_DRM_PANEL_NEWVISION_NV3052C is not set
# CONFIG_DRM_PANEL_NOVATEK_NT35510 is not set
# CONFIG_DRM_PANEL_NOVATEK_NT35532 is not set
# CONFIG_DRM_PANEL_NOVATEK_NT35560 is not set
# CONFIG_DRM_PANEL_NOVATEK_NT35950 is not set
# CONFIG_DRM_PANEL_NOVATEK_NT36523 is not set
# CONFIG_DRM_PANEL_NOVATEK_NT36536 is not set
# CONFIG_DRM_PANEL_NOVATEK_NT36672A is not set
# CONFIG_DRM_PANEL_NOVATEK_NT36672E is not set
# CONFIG_DRM_PANEL_NOVATEK_NT37700F is not set
# CONFIG_DRM_PANEL_NOVATEK_NT37801 is not set
# CONFIG_DRM_PANEL_NOVATEK_NT39016 is not set
# CONFIG_DRM_PANEL_OLIMEX_LCD_OLINUXINO is not set
# CONFIG_DRM_PANEL_ORISETECH_OTA5601A is not set
# CONFIG_DRM_PANEL_ORISETECH_OTM8009A is not set
# CONFIG_DRM_PANEL_OSD_OSD101T2587_53TS is not set
# CONFIG_DRM_PANEL_PANASONIC_VVX10F034N00 is not set
# CONFIG_DRM_PANEL_RASPBERRYPI_TOUCHSCREEN is not set
# CONFIG_DRM_PANEL_RAYDIUM_RM67191 is not set
# CONFIG_DRM_PANEL_RAYDIUM_RM67200 is not set
# CONFIG_DRM_PANEL_RAYDIUM_RM68200 is not set
# CONFIG_DRM_PANEL_RAYDIUM_RM692E5 is not set
# CONFIG_DRM_PANEL_RAYDIUM_RM69380 is not set
# CONFIG_DRM_PANEL_RENESAS_R61307 is not set
# CONFIG_DRM_PANEL_RENESAS_R63419 is not set
# CONFIG_DRM_PANEL_RENESAS_R69328 is not set
# CONFIG_DRM_PANEL_RONBO_RB070D30 is not set
# CONFIG_DRM_PANEL_SAMSUNG_AMS581VF01 is not set
# CONFIG_DRM_PANEL_SAMSUNG_AMS639RQ08 is not set
# CONFIG_DRM_PANEL_SAMSUNG_S6E88A0_AMS427AP24 is not set
# CONFIG_DRM_PANEL_SAMSUNG_S6E88A0_AMS452EF01 is not set
# CONFIG_DRM_PANEL_SAMSUNG_ATNA33XC20 is not set
# CONFIG_DRM_PANEL_SAMSUNG_DB7430 is not set
# CONFIG_DRM_PANEL_SAMSUNG_LD9040 is not set
# CONFIG_DRM_PANEL_SAMSUNG_LTL106HL02 is not set
# CONFIG_DRM_PANEL_SAMSUNG_S6E3FA7 is not set
# CONFIG_DRM_PANEL_SAMSUNG_S6D16D0 is not set
# CONFIG_DRM_PANEL_SAMSUNG_S6D27A1 is not set
# CONFIG_DRM_PANEL_SAMSUNG_S6D7AA0 is not set
# CONFIG_DRM_PANEL_SAMSUNG_S6E3FC2X01 is not set
# CONFIG_DRM_PANEL_SAMSUNG_S6E3HA2 is not set
# CONFIG_DRM_PANEL_SAMSUNG_S6E3HA8 is not set
# CONFIG_DRM_PANEL_SAMSUNG_S6E63J0X03 is not set
# CONFIG_DRM_PANEL_SAMSUNG_S6E63M0 is not set
# CONFIG_DRM_PANEL_SAMSUNG_S6E8AA0 is not set
# CONFIG_DRM_PANEL_SAMSUNG_S6E8AA5X01_AMS561RA01 is not set
# CONFIG_DRM_PANEL_SAMSUNG_S6E8FC0 is not set
# CONFIG_DRM_PANEL_SAMSUNG_SOFEF00 is not set
# CONFIG_DRM_PANEL_SEIKO_43WVF1G is not set
# CONFIG_DRM_PANEL_SHARP_LQ079L1SX01 is not set
# CONFIG_DRM_PANEL_SHARP_LQ101R1SX01 is not set
# CONFIG_DRM_PANEL_SHARP_LS037V7DW01 is not set
# CONFIG_DRM_PANEL_SHARP_LS043T1LE01 is not set
# CONFIG_DRM_PANEL_SHARP_LS060T1SX01 is not set
# CONFIG_DRM_PANEL_SITRONIX_ST7701 is not set
# CONFIG_DRM_PANEL_SITRONIX_ST7703 is not set
# CONFIG_DRM_PANEL_SITRONIX_ST7789V is not set
# CONFIG_DRM_PANEL_SONY_ACX565AKM is not set
# CONFIG_DRM_PANEL_SONY_TD4353_JDI is not set
# CONFIG_DRM_PANEL_SONY_TULIP_TRULY_NT35521 is not set
# CONFIG_DRM_PANEL_STARTEK_KD070FHFID015 is not set
CONFIG_DRM_PANEL_EDP=y
# CONFIG_DRM_PANEL_SIMPLE is not set
# CONFIG_DRM_PANEL_SUMMIT is not set
# CONFIG_DRM_PANEL_SYNAPTICS_R63353 is not set
# CONFIG_DRM_PANEL_SYNAPTICS_TDDI is not set
# CONFIG_DRM_PANEL_TDO_TL070WSH30 is not set
# CONFIG_DRM_PANEL_TPO_TD028TTEC1 is not set
# CONFIG_DRM_PANEL_TPO_TD043MTEA1 is not set
# CONFIG_DRM_PANEL_TPO_TPG110 is not set
# CONFIG_DRM_PANEL_TRULY_NT35597_WQXGA is not set
# CONFIG_DRM_PANEL_VISIONOX_G2647FB105 is not set
# CONFIG_DRM_PANEL_VISIONOX_R66451 is not set
# CONFIG_DRM_PANEL_VISIONOX_RM69299 is not set
# CONFIG_DRM_PANEL_VISIONOX_RM692E5 is not set
# CONFIG_DRM_PANEL_VISIONOX_VTDR6130 is not set
# CONFIG_DRM_PANEL_WIDECHIPS_WS2401 is not set
# CONFIG_DRM_PANEL_XINPENG_XPP055C272 is not set
# end of Display Panels

# CONFIG_DRM_QXL is not set
# CONFIG_DRM_RADEON is not set
# CONFIG_DRM_ST7571 is not set
# CONFIG_DRM_ST7586 is not set
# CONFIG_DRM_ST7735R is not set
# CONFIG_DRM_ST7920 is not set
# CONFIG_DRM_SSD130X is not set

#
# Drivers for system framebuffers
#
CONFIG_DRM_SYSFB_HELPER=y
CONFIG_DRM_SIMPLEDRM=y
# CONFIG_DRM_VESADRM is not set
# end of Drivers for system framebuffers

# CONFIG_DRM_APPLETBDRM is not set
# CONFIG_DRM_ARCPGU is not set
CONFIG_DRM_BOCHS=y
CONFIG_DRM_CIRRUS_QEMU=y
CONFIG_DRM_GM12U320=y
# CONFIG_DRM_PANEL_MIPI_DBI is not set
# CONFIG_DRM_PIXPAPER is not set
# CONFIG_TINYDRM_HX8357D is not set
# CONFIG_TINYDRM_ILI9163 is not set
# CONFIG_TINYDRM_ILI9225 is not set
# CONFIG_TINYDRM_ILI9341 is not set
# CONFIG_TINYDRM_ILI9486 is not set
# CONFIG_TINYDRM_MI0283QT is not set
# CONFIG_TINYDRM_REPAPER is not set
# CONFIG_TINYDRM_SHARP_MEMORY is not set
CONFIG_DRM_UDL=y
# CONFIG_DRM_VBOXVIDEO is not set
CONFIG_DRM_VGEM=y
CONFIG_DRM_VIRTIO_GPU=y
CONFIG_DRM_VIRTIO_GPU_KMS=y
# CONFIG_DRM_VKMS is not set
CONFIG_DRM_VMWGFX=y
# CONFIG_DRM_VMWGFX_MKSSTATS is not set
# CONFIG_DRM_XE is not set
CONFIG_DRM_PANEL_ORIENTATION_QUIRKS=y

#
# Frame buffer Devices
#
CONFIG_FB=y
# CONFIG_FB_CIRRUS is not set
# CONFIG_FB_PM2 is not set
# CONFIG_FB_CYBER2000 is not set
# CONFIG_FB_ARC is not set
# CONFIG_FB_ASILIANT is not set
# CONFIG_FB_IMSTT is not set
CONFIG_FB_VGA16=y
# CONFIG_FB_UVESA is not set
CONFIG_FB_VESA=y
# CONFIG_FB_N411 is not set
# CONFIG_FB_OPENCORES is not set
# CONFIG_FB_S1D13XXX is not set
# CONFIG_FB_NVIDIA is not set
# CONFIG_FB_RIVA is not set
# CONFIG_FB_I740 is not set
# CONFIG_FB_MATROX is not set
# CONFIG_FB_RADEON is not set
# CONFIG_FB_ATY128 is not set
# CONFIG_FB_ATY is not set
# CONFIG_FB_S3 is not set
# CONFIG_FB_SAVAGE is not set
# CONFIG_FB_SIS is not set
# CONFIG_FB_VIA is not set
# CONFIG_FB_NEOMAGIC is not set
# CONFIG_FB_KYRO is not set
# CONFIG_FB_3DFX is not set
# CONFIG_FB_VOODOO1 is not set
# CONFIG_FB_VT8623 is not set
# CONFIG_FB_TRIDENT is not set
# CONFIG_FB_ARK is not set
# CONFIG_FB_PM3 is not set
# CONFIG_FB_CARMINE is not set
# CONFIG_FB_SMSCUFX is not set
# CONFIG_FB_UDL is not set
# CONFIG_FB_IBM_GXT4500 is not set
CONFIG_FB_VIRTUAL=y
# CONFIG_FB_METRONOME is not set
# CONFIG_FB_MB862XX is not set
# CONFIG_FB_SSD1307 is not set
# CONFIG_FB_SM712 is not set
CONFIG_FB_CORE=y
CONFIG_FB_NOTIFY=y
CONFIG_FB_DEVICE=y
CONFIG_FB_CFB_FILLRECT=y
CONFIG_FB_CFB_COPYAREA=y
CONFIG_FB_CFB_IMAGEBLIT=y
CONFIG_FB_SYS_FILLRECT=y
CONFIG_FB_SYS_COPYAREA=y
CONFIG_FB_SYS_IMAGEBLIT=y
# CONFIG_FB_FOREIGN_ENDIAN is not set
CONFIG_FB_SYSMEM_FOPS=y
CONFIG_FB_DEFERRED_IO=y
CONFIG_FB_IOMEM_FOPS=y
CONFIG_FB_IOMEM_HELPERS=y
CONFIG_FB_SYSMEM_HELPERS=y
CONFIG_FB_SYSMEM_HELPERS_DEFERRED=y
CONFIG_FB_TILEBLITTING=y
# end of Frame buffer Devices

#
# Backlight & LCD device support
#
CONFIG_LCD_CLASS_DEVICE=y
# CONFIG_LCD_L4F00242T03 is not set
# CONFIG_LCD_LMS283GF05 is not set
# CONFIG_LCD_LTV350QV is not set
# CONFIG_LCD_ILI922X is not set
# CONFIG_LCD_ILI9320 is not set
# CONFIG_LCD_TDO24M is not set
# CONFIG_LCD_VGG2432A4 is not set
# CONFIG_LCD_PLATFORM is not set
# CONFIG_LCD_AMS369FG06 is not set
# CONFIG_LCD_LMS501KF03 is not set
# CONFIG_LCD_HX8357 is not set
# CONFIG_LCD_OTM3225A is not set
CONFIG_BACKLIGHT_CLASS_DEVICE=y
# CONFIG_BACKLIGHT_AW99706 is not set
# CONFIG_BACKLIGHT_KTD253 is not set
# CONFIG_BACKLIGHT_KTD2801 is not set
# CONFIG_BACKLIGHT_KTZ8866 is not set
# CONFIG_BACKLIGHT_SY7758 is not set
# CONFIG_BACKLIGHT_MAX25014 is not set
# CONFIG_BACKLIGHT_MT6370 is not set
# CONFIG_BACKLIGHT_APPLE is not set
# CONFIG_BACKLIGHT_QCOM_WLED is not set
# CONFIG_BACKLIGHT_SAHARA is not set
# CONFIG_BACKLIGHT_ADP8860 is not set
# CONFIG_BACKLIGHT_ADP8870 is not set
# CONFIG_BACKLIGHT_LM3509 is not set
# CONFIG_BACKLIGHT_LM3639 is not set
# CONFIG_BACKLIGHT_PANDORA is not set
# CONFIG_BACKLIGHT_GPIO is not set
# CONFIG_BACKLIGHT_LV5207LP is not set
# CONFIG_BACKLIGHT_BD6107 is not set
# CONFIG_BACKLIGHT_ARCXCNN is not set
# CONFIG_BACKLIGHT_LED is not set
# end of Backlight & LCD device support

CONFIG_VGASTATE=y
CONFIG_VIDEOMODE_HELPERS=y
CONFIG_HDMI=y
# CONFIG_FIRMWARE_EDID is not set

#
# Console display driver support
#
CONFIG_VGA_CONSOLE=y
CONFIG_DUMMY_CONSOLE=y
CONFIG_DUMMY_CONSOLE_COLUMNS=80
CONFIG_DUMMY_CONSOLE_ROWS=25
CONFIG_FRAMEBUFFER_CONSOLE=y
# CONFIG_FRAMEBUFFER_CONSOLE_LEGACY_ACCELERATION is not set
CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y
CONFIG_FRAMEBUFFER_CONSOLE_ROTATION=y
# CONFIG_FRAMEBUFFER_CONSOLE_DEFERRED_TAKEOVER is not set
# end of Console display driver support

CONFIG_LOGO=y
CONFIG_LOGO_LINUX_MONO=y
CONFIG_LOGO_LINUX_MONO_FILE="drivers/video/logo/logo_linux_mono.pbm"
CONFIG_LOGO_LINUX_VGA16=y
CONFIG_LOGO_LINUX_VGA16_FILE="drivers/video/logo/logo_linux_vga16.ppm"
# CONFIG_LOGO_LINUX_CLUT224 is not set
# CONFIG_TRACE_GPU_MEM is not set
# end of Graphics support

# CONFIG_DRM_ACCEL is not set
CONFIG_SOUND=y
CONFIG_SOUND_OSS_CORE=y
CONFIG_SOUND_OSS_CORE_PRECLAIM=y
CONFIG_SND=y
CONFIG_SND_TIMER=y
CONFIG_SND_PCM=y
CONFIG_SND_HWDEP=y
CONFIG_SND_SEQ_DEVICE=y
CONFIG_SND_RAWMIDI=y
CONFIG_SND_UMP=y
CONFIG_SND_UMP_LEGACY_RAWMIDI=y
CONFIG_SND_JACK=y
CONFIG_SND_JACK_INPUT_DEV=y
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=y
CONFIG_SND_PCM_OSS=y
CONFIG_SND_PCM_OSS_PLUGINS=y
CONFIG_SND_PCM_TIMER=y
CONFIG_SND_HRTIMER=y
# CONFIG_SND_DYNAMIC_MINORS is not set
# CONFIG_SND_SUPPORT_OLD_API is not set
CONFIG_SND_PROC_FS=y
CONFIG_SND_VERBOSE_PROCFS=y
CONFIG_SND_CTL_FAST_LOOKUP=y
CONFIG_SND_DEBUG=y
# CONFIG_SND_DEBUG_VERBOSE is not set
CONFIG_SND_PCM_XRUN_DEBUG=y
# CONFIG_SND_CTL_INPUT_VALIDATION is not set
# CONFIG_SND_CTL_DEBUG is not set
# CONFIG_SND_JACK_INJECTION_DEBUG is not set
# CONFIG_SND_UTIMER is not set
CONFIG_SND_VMASTER=y
CONFIG_SND_DMA_SGBUF=y
CONFIG_SND_CTL_LED=y
CONFIG_SND_SEQUENCER=y
CONFIG_SND_SEQ_DUMMY=y
CONFIG_SND_SEQUENCER_OSS=y
CONFIG_SND_SEQ_HRTIMER_DEFAULT=y
CONFIG_SND_SEQ_MIDI_EVENT=y
CONFIG_SND_SEQ_MIDI=y
CONFIG_SND_SEQ_VIRMIDI=y
# CONFIG_SND_SEQ_UMP is not set
CONFIG_SND_DRIVERS=y
# CONFIG_SND_PCSP is not set
CONFIG_SND_DUMMY=y
CONFIG_SND_ALOOP=y
# CONFIG_SND_PCMTEST is not set
CONFIG_SND_VIRMIDI=y
# CONFIG_SND_MTPAV is not set
# CONFIG_SND_MTS64 is not set
# CONFIG_SND_SERIAL_U16550 is not set
# CONFIG_SND_SERIAL_GENERIC is not set
# CONFIG_SND_MPU401 is not set
# CONFIG_SND_PORTMAN2X4 is not set
CONFIG_SND_PCI=y
# CONFIG_SND_AD1889 is not set
# CONFIG_SND_ALS300 is not set
# CONFIG_SND_ALS4000 is not set
# CONFIG_SND_ALI5451 is not set
# CONFIG_SND_ASIHPI is not set
# CONFIG_SND_ATIIXP is not set
# CONFIG_SND_ATIIXP_MODEM is not set
# CONFIG_SND_AU8810 is not set
# CONFIG_SND_AU8820 is not set
# CONFIG_SND_AU8830 is not set
# CONFIG_SND_AW2 is not set
# CONFIG_SND_AZT3328 is not set
# CONFIG_SND_BT87X is not set
# CONFIG_SND_CA0106 is not set
# CONFIG_SND_CMIPCI is not set
# CONFIG_SND_OXYGEN is not set
# CONFIG_SND_CS4281 is not set
# CONFIG_SND_CS46XX is not set
# CONFIG_SND_CTXFI is not set
# CONFIG_SND_DARLA20 is not set
# CONFIG_SND_GINA20 is not set
# CONFIG_SND_LAYLA20 is not set
# CONFIG_SND_DARLA24 is not set
# CONFIG_SND_GINA24 is not set
# CONFIG_SND_LAYLA24 is not set
# CONFIG_SND_MONA is not set
# CONFIG_SND_MIA is not set
# CONFIG_SND_ECHO3G is not set
# CONFIG_SND_INDIGO is not set
# CONFIG_SND_INDIGOIO is not set
# CONFIG_SND_INDIGODJ is not set
# CONFIG_SND_INDIGOIOX is not set
# CONFIG_SND_INDIGODJX is not set
# CONFIG_SND_EMU10K1 is not set
# CONFIG_SND_EMU10K1X is not set
# CONFIG_SND_ENS1370 is not set
# CONFIG_SND_ENS1371 is not set
# CONFIG_SND_ES1938 is not set
# CONFIG_SND_ES1968 is not set
# CONFIG_SND_FM801 is not set
# CONFIG_SND_HDSP is not set
# CONFIG_SND_HDSPM is not set
# CONFIG_SND_ICE1712 is not set
# CONFIG_SND_ICE1724 is not set
# CONFIG_SND_INTEL8X0 is not set
# CONFIG_SND_INTEL8X0M is not set
# CONFIG_SND_KORG1212 is not set
# CONFIG_SND_LOLA is not set
# CONFIG_SND_LX6464ES is not set
# CONFIG_SND_MAESTRO3 is not set
# CONFIG_SND_MIXART is not set
# CONFIG_SND_NM256 is not set
# CONFIG_SND_PCXHR is not set
# CONFIG_SND_RIPTIDE is not set
# CONFIG_SND_RME32 is not set
# CONFIG_SND_RME96 is not set
# CONFIG_SND_RME9652 is not set
# CONFIG_SND_SE6X is not set
# CONFIG_SND_SONICVIBES is not set
# CONFIG_SND_TRIDENT is not set
# CONFIG_SND_VIA82XX is not set
# CONFIG_SND_VIA82XX_MODEM is not set
# CONFIG_SND_VIRTUOSO is not set
# CONFIG_SND_VX222 is not set
# CONFIG_SND_YMFPCI is not set

#
# HD-Audio
#
CONFIG_SND_HDA=y
CONFIG_SND_HDA_HWDEP=y
CONFIG_SND_HDA_RECONFIG=y
CONFIG_SND_HDA_INPUT_BEEP=y
CONFIG_SND_HDA_INPUT_BEEP_MODE=1
CONFIG_SND_HDA_PATCH_LOADER=y
CONFIG_SND_HDA_POWER_SAVE_DEFAULT=0
# CONFIG_SND_HDA_CTL_DEV_ID is not set
CONFIG_SND_HDA_PREALLOC_SIZE=0
CONFIG_SND_HDA_INTEL=y
# CONFIG_SND_HDA_ACPI is not set
CONFIG_SND_HDA_GENERIC_LEDS=y
CONFIG_SND_HDA_CODEC_ANALOG=y
CONFIG_SND_HDA_CODEC_SIGMATEL=y
CONFIG_SND_HDA_CODEC_VIA=y
CONFIG_SND_HDA_CODEC_CONEXANT=y
# CONFIG_SND_HDA_CODEC_SENARYTECH is not set
CONFIG_SND_HDA_CODEC_CA0110=y
CONFIG_SND_HDA_CODEC_CA0132=y
# CONFIG_SND_HDA_CODEC_CA0132_DSP is not set
CONFIG_SND_HDA_CODEC_CMEDIA=y
# CONFIG_SND_HDA_CODEC_CM9825 is not set
CONFIG_SND_HDA_CODEC_SI3054=y
CONFIG_SND_HDA_GENERIC=y
CONFIG_SND_HDA_CODEC_REALTEK=y
# CONFIG_SND_HDA_CODEC_ALC260 is not set
# CONFIG_SND_HDA_CODEC_ALC262 is not set
# CONFIG_SND_HDA_CODEC_ALC268 is not set
# CONFIG_SND_HDA_CODEC_ALC269 is not set
# CONFIG_SND_HDA_CODEC_ALC662 is not set
# CONFIG_SND_HDA_CODEC_ALC680 is not set
# CONFIG_SND_HDA_CODEC_ALC861 is not set
# CONFIG_SND_HDA_CODEC_ALC861VD is not set
# CONFIG_SND_HDA_CODEC_ALC880 is not set
# CONFIG_SND_HDA_CODEC_ALC882 is not set
CONFIG_SND_HDA_CODEC_CIRRUS=y
# CONFIG_SND_HDA_CODEC_CS420X is not set
# CONFIG_SND_HDA_CODEC_CS421X is not set
# CONFIG_SND_HDA_CODEC_CS8409 is not set
CONFIG_SND_HDA_CODEC_HDMI=y
# CONFIG_SND_HDA_CODEC_HDMI_GENERIC is not set
# CONFIG_SND_HDA_CODEC_HDMI_SIMPLE is not set
# CONFIG_SND_HDA_CODEC_HDMI_INTEL is not set
# CONFIG_SND_HDA_CODEC_HDMI_ATI is not set
# CONFIG_SND_HDA_CODEC_HDMI_NVIDIA is not set
# CONFIG_SND_HDA_CODEC_HDMI_NVIDIA_MCP is not set
# CONFIG_SND_HDA_CODEC_HDMI_TEGRA is not set
# CONFIG_SND_HDA_SCODEC_AW88399_I2C is not set
# CONFIG_SND_HDA_SCODEC_CS35L56_I2C is not set
# CONFIG_SND_HDA_SCODEC_CS35L56_SPI is not set
CONFIG_SND_HDA_CORE=y
CONFIG_SND_HDA_COMPONENT=y
CONFIG_SND_HDA_I915=y
CONFIG_SND_INTEL_NHLT=y
CONFIG_SND_INTEL_DSP_CONFIG=y
CONFIG_SND_INTEL_SOUNDWIRE_ACPI=y
# end of HD-Audio

# CONFIG_SND_SPI is not set
CONFIG_SND_USB=y
CONFIG_SND_USB_AUDIO=y
CONFIG_SND_USB_AUDIO_MIDI_V2=y
CONFIG_SND_USB_AUDIO_USE_MEDIA_CONTROLLER=y
CONFIG_SND_USB_UA101=y
CONFIG_SND_USB_USX2Y=y
CONFIG_SND_USB_CAIAQ=y
CONFIG_SND_USB_CAIAQ_INPUT=y
CONFIG_SND_USB_US122L=y
# CONFIG_SND_USB_US144MKII is not set
CONFIG_SND_USB_6FIRE=y
CONFIG_SND_USB_HIFACE=y
CONFIG_SND_BCD2000=y
CONFIG_SND_USB_LINE6=y
CONFIG_SND_USB_POD=y
CONFIG_SND_USB_PODHD=y
CONFIG_SND_USB_TONEPORT=y
CONFIG_SND_USB_VARIAX=y
# CONFIG_SND_FIREWIRE is not set
CONFIG_SND_PCMCIA=y
# CONFIG_SND_VXPOCKET is not set
# CONFIG_SND_PDAUDIOCF is not set
CONFIG_SND_SOC=y
# CONFIG_SND_SOC_USB is not set

#
# Analog Devices
#
# CONFIG_SND_SOC_ADI_AXI_I2S is not set
# CONFIG_SND_SOC_ADI_AXI_SPDIF is not set
# end of Analog Devices

#
# AMD
#
# CONFIG_SND_SOC_AMD_ACP is not set
# CONFIG_SND_SOC_AMD_ACP3x is not set
# CONFIG_SND_SOC_AMD_RENOIR is not set
# CONFIG_SND_SOC_AMD_ACP5x is not set
# CONFIG_SND_SOC_AMD_ACP6x is not set
# CONFIG_SND_AMD_ACP_CONFIG is not set
# CONFIG_SND_SOC_AMD_ACP_COMMON is not set
# end of AMD

#
# Apple
#
# end of Apple

#
# Atmel
#
# CONFIG_SND_SOC_MIKROE_PROTO is not set
# end of Atmel

#
# Au1x
#
# end of Au1x

#
# Broadcom
#
# CONFIG_SND_BCM63XX_I2S_WHISTLER is not set
# end of Broadcom

#
# Cirrus Logic
#
# end of Cirrus Logic

#
# DesignWare
#
# CONFIG_SND_DESIGNWARE_I2S is not set
# end of DesignWare

#
# Freescale
#

#
# Common SoC Audio options for Freescale CPUs:
#
# CONFIG_SND_SOC_FSL_ASRC is not set
# CONFIG_SND_SOC_FSL_SAI is not set
# CONFIG_SND_SOC_FSL_AUDMIX is not set
# CONFIG_SND_SOC_FSL_SSI is not set
# CONFIG_SND_SOC_FSL_SPDIF is not set
# CONFIG_SND_SOC_FSL_ESAI is not set
# CONFIG_SND_SOC_FSL_MICFIL is not set
# CONFIG_SND_SOC_FSL_XCVR is not set
# CONFIG_SND_SOC_IMX_AUDMUX is not set
# end of Freescale

#
# Google
#
# CONFIG_SND_SOC_CHV3_I2S is not set
# end of Google

#
# Hisilicon
#
# CONFIG_SND_I2S_HI6210_I2S is not set
# end of Hisilicon

#
# JZ4740
#
# end of JZ4740

#
# Kirkwood
#
# end of Kirkwood

#
# Loongson
#
# end of Loongson

#
# Intel
#
# CONFIG_SND_SOC_INTEL_SST_TOPLEVEL is not set
# CONFIG_SND_SOC_INTEL_AVS is not set
# end of Intel

#
# Mediatek
#
# CONFIG_SND_SOC_MTK_BTCVSD is not set
# end of Mediatek

#
# PXA
#
# end of PXA

#
# SoundWire (SDCA)
#
# CONFIG_SND_SOC_SDCA is not set
CONFIG_SND_SOC_SDCA_OPTIONAL=y
# end of SoundWire (SDCA)

#
# ST SPEAr
#
# end of ST SPEAr

#
# Spreadtrum
#
# end of Spreadtrum

#
# STMicroelectronics STM32
#
# end of STMicroelectronics STM32

#
# Tegra
#
# end of Tegra

#
# Xilinx
#
# CONFIG_SND_SOC_XILINX_I2S is not set
# CONFIG_SND_SOC_XILINX_AUDIO_FORMATTER is not set
# CONFIG_SND_SOC_XILINX_SPDIF is not set
# end of Xilinx

#
# Xtensa
#
# CONFIG_SND_SOC_XTFPGA_I2S is not set
# end of Xtensa

# CONFIG_SND_SOC_SOF_TOPLEVEL is not set
CONFIG_SND_SOC_I2C_AND_SPI=y

#
# CODEC drivers
#
# CONFIG_SND_SOC_AC97_CODEC is not set
# CONFIG_SND_SOC_ADAU1372_I2C is not set
# CONFIG_SND_SOC_ADAU1372_SPI is not set
# CONFIG_SND_SOC_ADAU1373 is not set
# CONFIG_SND_SOC_ADAU1701 is not set
# CONFIG_SND_SOC_ADAU1761_I2C is not set
# CONFIG_SND_SOC_ADAU1761_SPI is not set
# CONFIG_SND_SOC_ADAU1977_SPI is not set
# CONFIG_SND_SOC_ADAU1977_I2C is not set
# CONFIG_SND_SOC_ADAU7002 is not set
# CONFIG_SND_SOC_ADAU7118_HW is not set
# CONFIG_SND_SOC_ADAU7118_I2C is not set
# CONFIG_SND_SOC_AK4104 is not set
# CONFIG_SND_SOC_AK4118 is not set
# CONFIG_SND_SOC_AK4375 is not set
# CONFIG_SND_SOC_AK4458 is not set
# CONFIG_SND_SOC_AK4554 is not set
# CONFIG_SND_SOC_AK4613 is not set
# CONFIG_SND_SOC_AK4619 is not set
# CONFIG_SND_SOC_AK4642 is not set
# CONFIG_SND_SOC_AK5386 is not set
# CONFIG_SND_SOC_AK5558 is not set
# CONFIG_SND_SOC_ALC5623 is not set
# CONFIG_SND_SOC_AUDIO_IIO_AUX is not set
# CONFIG_SND_SOC_AW8738 is not set
# CONFIG_SND_SOC_AW88395 is not set
# CONFIG_SND_SOC_AW88166 is not set
# CONFIG_SND_SOC_AW88261 is not set
# CONFIG_SND_SOC_AW88081 is not set
# CONFIG_SND_SOC_AW87390 is not set
# CONFIG_SND_SOC_AW88399 is not set
# CONFIG_SND_SOC_BD28623 is not set
# CONFIG_SND_SOC_BT_SCO is not set
# CONFIG_SND_SOC_CHV3_CODEC is not set
# CONFIG_SND_SOC_CS35L32 is not set
# CONFIG_SND_SOC_CS35L33 is not set
# CONFIG_SND_SOC_CS35L34 is not set
# CONFIG_SND_SOC_CS35L35 is not set
# CONFIG_SND_SOC_CS35L36 is not set
# CONFIG_SND_SOC_CS35L41_SPI is not set
# CONFIG_SND_SOC_CS35L41_I2C is not set
# CONFIG_SND_SOC_CS35L45_SPI is not set
# CONFIG_SND_SOC_CS35L45_I2C is not set
# CONFIG_SND_SOC_CS35L56_I2C is not set
# CONFIG_SND_SOC_CS35L56_SPI is not set
# CONFIG_SND_SOC_CS35L56_SDW is not set
# CONFIG_SND_SOC_CS42L42 is not set
# CONFIG_SND_SOC_CS42L42_SDW is not set
# CONFIG_SND_SOC_CS42L51_I2C is not set
# CONFIG_SND_SOC_CS42L52 is not set
# CONFIG_SND_SOC_CS42L56 is not set
# CONFIG_SND_SOC_CS42L73 is not set
# CONFIG_SND_SOC_CS42L83 is not set
# CONFIG_SND_SOC_CS42L84 is not set
# CONFIG_SND_SOC_CS4234 is not set
# CONFIG_SND_SOC_CS4265 is not set
# CONFIG_SND_SOC_CS4270 is not set
# CONFIG_SND_SOC_CS4271_I2C is not set
# CONFIG_SND_SOC_CS4271_SPI is not set
# CONFIG_SND_SOC_CS42XX8_SPI is not set
# CONFIG_SND_SOC_CS42XX8_I2C is not set
# CONFIG_SND_SOC_CS43130 is not set
# CONFIG_SND_SOC_CS4341 is not set
# CONFIG_SND_SOC_CS4349 is not set
# CONFIG_SND_SOC_CS48L32 is not set
# CONFIG_SND_SOC_CS53L30 is not set
# CONFIG_SND_SOC_CS530X_I2C is not set
# CONFIG_SND_SOC_CS530X_SPI is not set
# CONFIG_SND_SOC_CX2072X is not set
# CONFIG_SND_SOC_DA7213 is not set
# CONFIG_SND_SOC_DMIC is not set
# CONFIG_SND_SOC_ES7134 is not set
# CONFIG_SND_SOC_ES7241 is not set
# CONFIG_SND_SOC_ES8311 is not set
# CONFIG_SND_SOC_ES8316 is not set
# CONFIG_SND_SOC_ES8323 is not set
# CONFIG_SND_SOC_ES8326 is not set
# CONFIG_SND_SOC_ES8328_I2C is not set
# CONFIG_SND_SOC_ES8328_SPI is not set
# CONFIG_SND_SOC_ES8375 is not set
# CONFIG_SND_SOC_ES8389 is not set
# CONFIG_SND_SOC_FS210X is not set
# CONFIG_SND_SOC_GTM601 is not set
# CONFIG_SND_SOC_HDA is not set
# CONFIG_SND_SOC_ICS43432 is not set
# CONFIG_SND_SOC_IDT821034 is not set
# CONFIG_SND_SOC_MAX98088 is not set
# CONFIG_SND_SOC_MAX98090 is not set
# CONFIG_SND_SOC_MAX98357A is not set
# CONFIG_SND_SOC_MAX98504 is not set
# CONFIG_SND_SOC_MAX9867 is not set
# CONFIG_SND_SOC_MAX98927 is not set
# CONFIG_SND_SOC_MAX98520 is not set
# CONFIG_SND_SOC_MAX98363 is not set
# CONFIG_SND_SOC_MAX98373_I2C is not set
# CONFIG_SND_SOC_MAX98373_SDW is not set
# CONFIG_SND_SOC_MAX98388 is not set
# CONFIG_SND_SOC_MAX98390 is not set
# CONFIG_SND_SOC_MAX98396 is not set
# CONFIG_SND_SOC_MAX9860 is not set
# CONFIG_SND_SOC_MSM8916_WCD_DIGITAL is not set
# CONFIG_SND_SOC_PCM1681 is not set
# CONFIG_SND_SOC_PCM1754 is not set
# CONFIG_SND_SOC_PCM1789_I2C is not set
# CONFIG_SND_SOC_PCM179X_I2C is not set
# CONFIG_SND_SOC_PCM179X_SPI is not set
# CONFIG_SND_SOC_PCM186X_I2C is not set
# CONFIG_SND_SOC_PCM186X_SPI is not set
# CONFIG_SND_SOC_PCM3060_I2C is not set
# CONFIG_SND_SOC_PCM3060_SPI is not set
# CONFIG_SND_SOC_PCM3168A_I2C is not set
# CONFIG_SND_SOC_PCM3168A_SPI is not set
# CONFIG_SND_SOC_PCM5102A is not set
# CONFIG_SND_SOC_PCM512x_I2C is not set
# CONFIG_SND_SOC_PCM512x_SPI is not set
# CONFIG_SND_SOC_PCM6240 is not set
# CONFIG_SND_SOC_PEB2466 is not set
# CONFIG_SND_SOC_PM4125_SDW is not set
# CONFIG_SND_SOC_RT1017_SDCA_SDW is not set
# CONFIG_SND_SOC_RT1308_SDW is not set
# CONFIG_SND_SOC_RT1316_SDW is not set
# CONFIG_SND_SOC_RT1318_SDW is not set
# CONFIG_SND_SOC_RT1320_SDW is not set
# CONFIG_SND_SOC_RT5575 is not set
# CONFIG_SND_SOC_RT5616 is not set
# CONFIG_SND_SOC_RT5631 is not set
# CONFIG_SND_SOC_RT5640 is not set
# CONFIG_SND_SOC_RT5645 is not set
# CONFIG_SND_SOC_RT5659 is not set
# CONFIG_SND_SOC_RT5677 is not set
# CONFIG_SND_SOC_RT5682_SDW is not set
# CONFIG_SND_SOC_RT700_SDW is not set
# CONFIG_SND_SOC_RT711_SDW is not set
# CONFIG_SND_SOC_RT711_SDCA_SDW is not set
# CONFIG_SND_SOC_RT712_SDCA_SDW is not set
# CONFIG_SND_SOC_RT712_SDCA_DMIC_SDW is not set
# CONFIG_SND_SOC_RT721_SDCA_SDW is not set
# CONFIG_SND_SOC_RT722_SDCA_SDW is not set
# CONFIG_SND_SOC_RT715_SDW is not set
# CONFIG_SND_SOC_RT715_SDCA_SDW is not set
# CONFIG_SND_SOC_RT9120 is not set
# CONFIG_SND_SOC_RT9123 is not set
# CONFIG_SND_SOC_RT9123P is not set
# CONFIG_SND_SOC_RTQ9124 is not set
# CONFIG_SND_SOC_RTQ9128 is not set
# CONFIG_SND_SOC_SDW_MOCKUP is not set
# CONFIG_SND_SOC_SGTL5000 is not set
# CONFIG_SND_SOC_SIMPLE_AMPLIFIER is not set
# CONFIG_SND_SOC_SIMPLE_MUX is not set
# CONFIG_SND_SOC_SMA1303 is not set
# CONFIG_SND_SOC_SMA1307 is not set
# CONFIG_SND_SOC_SPDIF is not set
# CONFIG_SND_SOC_SRC4XXX_I2C is not set
# CONFIG_SND_SOC_SSM2305 is not set
# CONFIG_SND_SOC_SSM2518 is not set
# CONFIG_SND_SOC_SSM2602_SPI is not set
# CONFIG_SND_SOC_SSM2602_I2C is not set
# CONFIG_SND_SOC_SSM3515 is not set
# CONFIG_SND_SOC_SSM4567 is not set
# CONFIG_SND_SOC_STA32X is not set
# CONFIG_SND_SOC_STA350 is not set
# CONFIG_SND_SOC_STI_SAS is not set
# CONFIG_SND_SOC_TAS2552 is not set
# CONFIG_SND_SOC_TAS2562 is not set
# CONFIG_SND_SOC_TAS2764 is not set
# CONFIG_SND_SOC_TAS2770 is not set
# CONFIG_SND_SOC_TAS2780 is not set
# CONFIG_SND_SOC_TAS2781_I2C is not set
# CONFIG_SND_SOC_TAS5086 is not set
# CONFIG_SND_SOC_TAS571X is not set
# CONFIG_SND_SOC_TAS5720 is not set
# CONFIG_SND_SOC_TAS5805M is not set
# CONFIG_SND_SOC_TAS6424 is not set
# CONFIG_SND_SOC_TAS675X is not set
# CONFIG_SND_SOC_TDA7419 is not set
# CONFIG_SND_SOC_TFA9879 is not set
# CONFIG_SND_SOC_TFA989X is not set
# CONFIG_SND_SOC_TLV320ADC3XXX is not set
# CONFIG_SND_SOC_TLV320AIC23_I2C is not set
# CONFIG_SND_SOC_TLV320AIC23_SPI is not set
# CONFIG_SND_SOC_TLV320AIC31XX is not set
# CONFIG_SND_SOC_TLV320AIC32X4_I2C is not set
# CONFIG_SND_SOC_TLV320AIC32X4_SPI is not set
# CONFIG_SND_SOC_TLV320AIC3X_I2C is not set
# CONFIG_SND_SOC_TLV320AIC3X_SPI is not set
# CONFIG_SND_SOC_TLV320ADCX140 is not set
# CONFIG_SND_SOC_TS3A227E is not set
# CONFIG_SND_SOC_TSCS42XX is not set
# CONFIG_SND_SOC_TSCS454 is not set
# CONFIG_SND_SOC_UDA1334 is not set
# CONFIG_SND_SOC_UDA1342 is not set
# CONFIG_SND_SOC_UDA1380 is not set
# CONFIG_SND_SOC_WCD937X_SDW is not set
# CONFIG_SND_SOC_WCD938X_SDW is not set
# CONFIG_SND_SOC_WCD939X_SDW is not set
# CONFIG_SND_SOC_WM8510 is not set
# CONFIG_SND_SOC_WM8523 is not set
# CONFIG_SND_SOC_WM8524 is not set
# CONFIG_SND_SOC_WM8580 is not set
# CONFIG_SND_SOC_WM8711 is not set
# CONFIG_SND_SOC_WM8728 is not set
# CONFIG_SND_SOC_WM8731_I2C is not set
# CONFIG_SND_SOC_WM8731_SPI is not set
# CONFIG_SND_SOC_WM8737 is not set
# CONFIG_SND_SOC_WM8741 is not set
# CONFIG_SND_SOC_WM8750 is not set
# CONFIG_SND_SOC_WM8753 is not set
# CONFIG_SND_SOC_WM8770 is not set
# CONFIG_SND_SOC_WM8776 is not set
# CONFIG_SND_SOC_WM8782 is not set
# CONFIG_SND_SOC_WM8804_I2C is not set
# CONFIG_SND_SOC_WM8804_SPI is not set
# CONFIG_SND_SOC_WM8903 is not set
# CONFIG_SND_SOC_WM8904 is not set
# CONFIG_SND_SOC_WM8940 is not set
# CONFIG_SND_SOC_WM8960 is not set
# CONFIG_SND_SOC_WM8961 is not set
# CONFIG_SND_SOC_WM8962 is not set
# CONFIG_SND_SOC_WM8974 is not set
# CONFIG_SND_SOC_WM8978 is not set
# CONFIG_SND_SOC_WM8985 is not set
# CONFIG_SND_SOC_WSA881X is not set
# CONFIG_SND_SOC_WSA883X is not set
# CONFIG_SND_SOC_WSA884X is not set
# CONFIG_SND_SOC_WSA885X is not set
# CONFIG_SND_SOC_ZL38060 is not set
# CONFIG_SND_SOC_MAX9759 is not set
# CONFIG_SND_SOC_MT6351 is not set
# CONFIG_SND_SOC_MT6357 is not set
# CONFIG_SND_SOC_MT6358 is not set
# CONFIG_SND_SOC_MT6660 is not set
# CONFIG_SND_SOC_NAU8315 is not set
# CONFIG_SND_SOC_NAU8325 is not set
# CONFIG_SND_SOC_NAU8540 is not set
# CONFIG_SND_SOC_NAU8810 is not set
# CONFIG_SND_SOC_NAU8821 is not set
# CONFIG_SND_SOC_NAU8822 is not set
# CONFIG_SND_SOC_NAU8824 is not set
# CONFIG_SND_SOC_NTP8918 is not set
# CONFIG_SND_SOC_NTP8835 is not set
# CONFIG_SND_SOC_TPA6130A2 is not set
# CONFIG_SND_SOC_LPASS_WSA_MACRO is not set
# CONFIG_SND_SOC_LPASS_VA_MACRO is not set
# CONFIG_SND_SOC_LPASS_RX_MACRO is not set
# CONFIG_SND_SOC_LPASS_TX_MACRO is not set
# end of CODEC drivers

#
# Generic drivers
#
# CONFIG_SND_SIMPLE_CARD is not set
# CONFIG_SND_AUDIO_GRAPH_CARD is not set
# CONFIG_SND_AUDIO_GRAPH_CARD2 is not set
# CONFIG_SND_TEST_COMPONENT is not set
# end of Generic drivers

CONFIG_SND_X86=y
# CONFIG_HDMI_LPE_AUDIO is not set
CONFIG_SND_VIRTIO=y
CONFIG_HID_SUPPORT=y
CONFIG_HID=y
CONFIG_HID_BATTERY_STRENGTH=y
CONFIG_HIDRAW=y
CONFIG_UHID=y
CONFIG_HID_GENERIC=y
CONFIG_HID_HAPTIC=y

#
# Special HID drivers
#
CONFIG_HID_A4TECH=y
CONFIG_HID_ACCUTOUCH=y
CONFIG_HID_ACRUX=y
CONFIG_HID_ACRUX_FF=y
CONFIG_HID_APPLE=y
CONFIG_HID_APPLEIR=y
# CONFIG_HID_APPLETB_BL is not set
# CONFIG_HID_APPLETB_KBD is not set
CONFIG_HID_ASUS=y
CONFIG_HID_AUREAL=y
CONFIG_HID_BELKIN=y
CONFIG_HID_BETOP_FF=y
CONFIG_HID_BIGBEN_FF=y
CONFIG_HID_CHERRY=y
CONFIG_HID_CHICONY=y
CONFIG_HID_CORSAIR=y
CONFIG_HID_COUGAR=y
CONFIG_HID_MACALLY=y
CONFIG_HID_PRODIKEYS=y
CONFIG_HID_CMEDIA=y
CONFIG_HID_CP2112=y
CONFIG_HID_CREATIVE_SB0540=y
CONFIG_HID_CYPRESS=y
CONFIG_HID_DRAGONRISE=y
CONFIG_DRAGONRISE_FF=y
CONFIG_HID_EMS_FF=y
CONFIG_HID_ELAN=y
CONFIG_HID_ELECOM=y
CONFIG_HID_ELO=y
CONFIG_HID_EVISION=y
CONFIG_HID_EZKEY=y
CONFIG_HID_FT260=y
CONFIG_HID_GEMBIRD=y
CONFIG_HID_GFRM=y
CONFIG_HID_GLORIOUS=y
CONFIG_HID_HOLTEK=y
CONFIG_HOLTEK_FF=y
# CONFIG_HID_HYPERX is not set
CONFIG_HID_VIVALDI_COMMON=y
# CONFIG_HID_GOODIX_SPI is not set
CONFIG_HID_GOOGLE_STADIA_FF=y
CONFIG_HID_VIVALDI=y
CONFIG_HID_GT683R=y
# CONFIG_HID_MSI is not set
CONFIG_HID_KEYTOUCH=y
CONFIG_HID_KYE=y
# CONFIG_HID_KYSONA is not set
CONFIG_HID_UCLOGIC=y
CONFIG_HID_WALTOP=y
CONFIG_HID_VIEWSONIC=y
CONFIG_HID_VRC2=y
CONFIG_HID_XIAOMI=y
CONFIG_HID_GYRATION=y
CONFIG_HID_ICADE=y
CONFIG_HID_ITE=y
CONFIG_HID_JABRA=y
CONFIG_HID_TWINHAN=y
CONFIG_HID_KENSINGTON=y
CONFIG_HID_LCPOWER=y
CONFIG_HID_LED=y
CONFIG_HID_LENOVO=y
# CONFIG_HID_LENOVO_GO is not set
# CONFIG_HID_LENOVO_GO_S is not set
CONFIG_HID_LETSKETCH=y
CONFIG_HID_LOGITECH=y
CONFIG_HID_LOGITECH_DJ=y
CONFIG_HID_LOGITECH_HIDPP=y
CONFIG_LOGITECH_FF=y
CONFIG_LOGIRUMBLEPAD2_FF=y
CONFIG_LOGIG940_FF=y
CONFIG_LOGIWHEELS_FF=y
CONFIG_HID_MAGICMOUSE=y
CONFIG_HID_MALTRON=y
CONFIG_HID_MAYFLASH=y
CONFIG_HID_MEGAWORLD_FF=y
# CONFIG_HID_RAKK is not set
CONFIG_HID_REDRAGON=y
CONFIG_HID_MICROSOFT=y
CONFIG_HID_MONTEREY=y
CONFIG_HID_MULTITOUCH=y
CONFIG_HID_NINTENDO=y
CONFIG_NINTENDO_FF=y
CONFIG_HID_NTI=y
CONFIG_HID_NTRIG=y
CONFIG_HID_NVIDIA_SHIELD=y
CONFIG_NVIDIA_SHIELD_FF=y
CONFIG_HID_ORTEK=y
# CONFIG_HID_OXP is not set
CONFIG_HID_PANTHERLORD=y
CONFIG_PANTHERLORD_FF=y
CONFIG_HID_PENMOUNT=y
CONFIG_HID_PETALYNX=y
CONFIG_HID_PICOLCD=y
CONFIG_HID_PICOLCD_FB=y
CONFIG_HID_PICOLCD_BACKLIGHT=y
CONFIG_HID_PICOLCD_LCD=y
CONFIG_HID_PICOLCD_LEDS=y
CONFIG_HID_PICOLCD_CIR=y
CONFIG_HID_PLANTRONICS=y
CONFIG_HID_PLAYSTATION=y
CONFIG_PLAYSTATION_FF=y
CONFIG_HID_PXRC=y
# CONFIG_HID_RAPOO is not set
CONFIG_HID_RAZER=y
CONFIG_HID_PRIMAX=y
CONFIG_HID_RETRODE=y
CONFIG_HID_ROCCAT=y
CONFIG_HID_SAITEK=y
CONFIG_HID_SAMSUNG=y
CONFIG_HID_SEMITEK=y
CONFIG_HID_SIGMAMICRO=y
CONFIG_HID_SONY=y
CONFIG_SONY_FF=y
CONFIG_HID_SPEEDLINK=y
CONFIG_HID_STEAM=y
CONFIG_STEAM_FF=y
CONFIG_HID_STEELSERIES=y
CONFIG_HID_SUNPLUS=y
CONFIG_HID_RMI=y
CONFIG_HID_GREENASIA=y
CONFIG_GREENASIA_FF=y
CONFIG_HID_SMARTJOYPLUS=y
CONFIG_SMARTJOYPLUS_FF=y
CONFIG_HID_TIVO=y
CONFIG_HID_TOPSEED=y
CONFIG_HID_TOPRE=y
CONFIG_HID_THINGM=y
CONFIG_HID_THRUSTMASTER=y
CONFIG_THRUSTMASTER_FF=y
CONFIG_HID_UDRAW_PS3=y
CONFIG_HID_U2FZERO=y
# CONFIG_HID_UNIVERSAL_PIDFF is not set
CONFIG_HID_WACOM=y
CONFIG_HID_WIIMOTE=y
# CONFIG_HID_WINWING is not set
CONFIG_HID_XINMO=y
CONFIG_HID_ZEROPLUS=y
CONFIG_ZEROPLUS_FF=y
CONFIG_HID_ZYDACRON=y
CONFIG_HID_SENSOR_HUB=y
CONFIG_HID_SENSOR_CUSTOM_SENSOR=y
CONFIG_HID_ALPS=y
CONFIG_HID_MCP2200=y
CONFIG_HID_MCP2221=y
CONFIG_HID_HUAWEI=y
# end of Special HID drivers

#
# HID-BPF support
#
# end of HID-BPF support

CONFIG_I2C_HID=y
CONFIG_I2C_HID_ACPI=y
CONFIG_I2C_HID_OF=y
# CONFIG_I2C_HID_OF_ELAN is not set
# CONFIG_I2C_HID_OF_GOODIX is not set
CONFIG_I2C_HID_CORE=y

#
# Intel ISH HID support
#
CONFIG_INTEL_ISH_HID=y
CONFIG_INTEL_ISH_FIRMWARE_DOWNLOADER=y
# end of Intel ISH HID support

#
# AMD SFH HID Support
#
CONFIG_AMD_SFH_HID=y
# end of AMD SFH HID Support

#
# Surface System Aggregator Module HID support
#
CONFIG_SURFACE_HID=y
CONFIG_SURFACE_KBD=y
# end of Surface System Aggregator Module HID support

CONFIG_SURFACE_HID_CORE=y

#
# Intel THC HID Support
#
# CONFIG_INTEL_THC_HID is not set
# end of Intel THC HID Support

#
# USB HID support
#
CONFIG_USB_HID=y
CONFIG_HID_PID=y
CONFIG_USB_HIDDEV=y
# end of USB HID support

CONFIG_USB_OHCI_LITTLE_ENDIAN=y
CONFIG_USB_SUPPORT=y
CONFIG_USB_COMMON=y
CONFIG_USB_LED_TRIG=y
CONFIG_USB_ULPI_BUS=y
CONFIG_USB_CONN_GPIO=y
CONFIG_USB_ARCH_HAS_HCD=y
CONFIG_USB=y
CONFIG_USB_PCI=y
CONFIG_USB_PCI_AMD=y
CONFIG_USB_ANNOUNCE_NEW_DEVICES=y

#
# Miscellaneous USB options
#
CONFIG_USB_DEFAULT_PERSIST=y
CONFIG_USB_FEW_INIT_RETRIES=y
CONFIG_USB_DYNAMIC_MINORS=y
CONFIG_USB_OTG=y
# CONFIG_USB_OTG_PRODUCTLIST is not set
# CONFIG_USB_OTG_DISABLE_EXTERNAL_HUB is not set
CONFIG_USB_OTG_FSM=y
CONFIG_USB_LEDS_TRIGGER_USBPORT=y
CONFIG_USB_AUTOSUSPEND_DELAY=2
CONFIG_USB_DEFAULT_AUTHORIZATION_MODE=1
CONFIG_USB_MON=y

#
# USB Host Controller Drivers
#
CONFIG_USB_C67X00_HCD=y
CONFIG_USB_XHCI_HCD=y
CONFIG_USB_XHCI_DBGCAP=y
CONFIG_USB_XHCI_PCI=y
CONFIG_USB_XHCI_PCI_RENESAS=y
CONFIG_USB_XHCI_PLATFORM=y
# CONFIG_USB_XHCI_SIDEBAND is not set
CONFIG_USB_EHCI_HCD=y
CONFIG_USB_EHCI_ROOT_HUB_TT=y
CONFIG_USB_EHCI_TT_NEWSCHED=y
CONFIG_USB_EHCI_PCI=y
CONFIG_USB_EHCI_FSL=y
CONFIG_USB_EHCI_HCD_PLATFORM=y
CONFIG_USB_OXU210HP_HCD=y
CONFIG_USB_ISP116X_HCD=y
CONFIG_USB_MAX3421_HCD=y
CONFIG_USB_OHCI_HCD=y
CONFIG_USB_OHCI_HCD_PCI=y
# CONFIG_USB_OHCI_HCD_SSB is not set
CONFIG_USB_OHCI_HCD_PLATFORM=y
CONFIG_USB_UHCI_HCD=y
CONFIG_USB_SL811_HCD=y
CONFIG_USB_SL811_HCD_ISO=y
CONFIG_USB_SL811_CS=y
CONFIG_USB_R8A66597_HCD=y
CONFIG_USB_HCD_BCMA=y
CONFIG_USB_HCD_SSB=y
# CONFIG_USB_HCD_TEST_MODE is not set

#
# USB Device Class drivers
#
CONFIG_USB_ACM=y
CONFIG_USB_PRINTER=y
CONFIG_USB_WDM=y
CONFIG_USB_TMC=y

#
# NOTE: USB_STORAGE depends on SCSI but BLK_DEV_SD may also be needed; see USB_STORAGE Help for more info
#
CONFIG_USB_STORAGE=y
# CONFIG_USB_STORAGE_DEBUG is not set
CONFIG_USB_STORAGE_REALTEK=y
CONFIG_REALTEK_AUTOPM=y
CONFIG_USB_STORAGE_DATAFAB=y
CONFIG_USB_STORAGE_FREECOM=y
CONFIG_USB_STORAGE_ISD200=y
CONFIG_USB_STORAGE_USBAT=y
CONFIG_USB_STORAGE_SDDR09=y
CONFIG_USB_STORAGE_SDDR55=y
CONFIG_USB_STORAGE_JUMPSHOT=y
CONFIG_USB_STORAGE_ALAUDA=y
CONFIG_USB_STORAGE_ONETOUCH=y
CONFIG_USB_STORAGE_KARMA=y
CONFIG_USB_STORAGE_CYPRESS_ATACB=y
CONFIG_USB_STORAGE_ENE_UB6250=y
CONFIG_USB_UAS=y

#
# USB Imaging devices
#
CONFIG_USB_MDC800=y
CONFIG_USB_MICROTEK=y
CONFIG_USBIP_CORE=y
CONFIG_USBIP_VHCI_HCD=y
CONFIG_USBIP_VHCI_HC_PORTS=8
CONFIG_USBIP_VHCI_NR_HCS=16
CONFIG_USBIP_HOST=y
CONFIG_USBIP_VUDC=y
# CONFIG_USBIP_DEBUG is not set

#
# USB dual-mode controller drivers
#
CONFIG_USB_CDNS_SUPPORT=y
CONFIG_USB_CDNS3=y
CONFIG_USB_CDNS3_HOST=y
CONFIG_USB_CDNS3_GADGET=y

#
# Platform glue driver support
#
CONFIG_USB_CDNS3_PCI_WRAP=y
CONFIG_USB_CDNSP_PCI=y
CONFIG_USB_MUSB_HDRC=y
# CONFIG_USB_MUSB_HOST is not set
# CONFIG_USB_MUSB_GADGET is not set
CONFIG_USB_MUSB_DUAL_ROLE=y

#
# Platform Glue Layer
#

#
# MUSB DMA mode
#
CONFIG_MUSB_PIO_ONLY=y
CONFIG_USB_DWC3=y
CONFIG_USB_DWC3_ULPI=y
# CONFIG_USB_DWC3_HOST is not set
CONFIG_USB_DWC3_GADGET=y
# CONFIG_USB_DWC3_DUAL_ROLE is not set

#
# Platform Glue Driver Support
#
CONFIG_USB_DWC3_PCI=y
CONFIG_USB_DWC3_HAPS=y
CONFIG_USB_DWC3_OF_SIMPLE=y
CONFIG_USB_DWC3_GENERIC_PLAT=y
# CONFIG_USB_DWC3_GOOGLE is not set
CONFIG_USB_DWC2=y
CONFIG_USB_DWC2_HOST=y

#
# Gadget/Dual-role mode requires USB Gadget support to be enabled
#
# CONFIG_USB_DWC2_PERIPHERAL is not set
# CONFIG_USB_DWC2_DUAL_ROLE is not set
CONFIG_USB_DWC2_PCI=y
# CONFIG_USB_DWC2_DEBUG is not set
# CONFIG_USB_DWC2_TRACK_MISSED_SOFS is not set
CONFIG_USB_CHIPIDEA=y
CONFIG_USB_CHIPIDEA_UDC=y
CONFIG_USB_CHIPIDEA_HOST=y
CONFIG_USB_CHIPIDEA_PCI=y
CONFIG_USB_CHIPIDEA_MSM=y
CONFIG_USB_CHIPIDEA_NPCM=y
# CONFIG_USB_CHIPIDEA_IMX is not set
CONFIG_USB_CHIPIDEA_GENERIC=y
# CONFIG_USB_CHIPIDEA_TEGRA is not set
CONFIG_USB_ISP1760=y
CONFIG_USB_ISP1760_HCD=y
CONFIG_USB_ISP1761_UDC=y
# CONFIG_USB_ISP1760_HOST_ROLE is not set
# CONFIG_USB_ISP1760_GADGET_ROLE is not set
CONFIG_USB_ISP1760_DUAL_ROLE=y

#
# USB port drivers
#
CONFIG_USB_SERIAL=y
CONFIG_USB_SERIAL_CONSOLE=y
CONFIG_USB_SERIAL_GENERIC=y
CONFIG_USB_SERIAL_SIMPLE=y
CONFIG_USB_SERIAL_AIRCABLE=y
CONFIG_USB_SERIAL_ARK3116=y
CONFIG_USB_SERIAL_BELKIN=y
CONFIG_USB_SERIAL_CH341=y
CONFIG_USB_SERIAL_WHITEHEAT=y
CONFIG_USB_SERIAL_DIGI_ACCELEPORT=y
CONFIG_USB_SERIAL_CP210X=y
CONFIG_USB_SERIAL_CYPRESS_M8=y
CONFIG_USB_SERIAL_EMPEG=y
CONFIG_USB_SERIAL_FTDI_SIO=y
CONFIG_USB_SERIAL_VISOR=y
CONFIG_USB_SERIAL_IPAQ=y
CONFIG_USB_SERIAL_IR=y
CONFIG_USB_SERIAL_EDGEPORT=y
CONFIG_USB_SERIAL_EDGEPORT_TI=y
CONFIG_USB_SERIAL_F81232=y
CONFIG_USB_SERIAL_F8153X=y
CONFIG_USB_SERIAL_GARMIN=y
CONFIG_USB_SERIAL_IPW=y
CONFIG_USB_SERIAL_IUU=y
CONFIG_USB_SERIAL_KEYSPAN_PDA=y
CONFIG_USB_SERIAL_KEYSPAN=y
CONFIG_USB_SERIAL_KLSI=y
CONFIG_USB_SERIAL_KOBIL_SCT=y
CONFIG_USB_SERIAL_MCT_U232=y
CONFIG_USB_SERIAL_METRO=y
CONFIG_USB_SERIAL_MOS7720=y
CONFIG_USB_SERIAL_MOS7715_PARPORT=y
CONFIG_USB_SERIAL_MOS7840=y
CONFIG_USB_SERIAL_MXUPORT=y
CONFIG_USB_SERIAL_NAVMAN=y
CONFIG_USB_SERIAL_PL2303=y
CONFIG_USB_SERIAL_OTI6858=y
CONFIG_USB_SERIAL_QCAUX=y
CONFIG_USB_SERIAL_QUALCOMM=y
CONFIG_USB_SERIAL_SPCP8X5=y
CONFIG_USB_SERIAL_SAFE=y
# CONFIG_USB_SERIAL_SAFE_PADDED is not set
CONFIG_USB_SERIAL_SIERRAWIRELESS=y
CONFIG_USB_SERIAL_SYMBOL=y
CONFIG_USB_SERIAL_TI=y
CONFIG_USB_SERIAL_CYBERJACK=y
CONFIG_USB_SERIAL_WWAN=y
CONFIG_USB_SERIAL_OPTION=y
CONFIG_USB_SERIAL_OMNINET=y
CONFIG_USB_SERIAL_OPTICON=y
CONFIG_USB_SERIAL_XSENS_MT=y
CONFIG_USB_SERIAL_WISHBONE=y
CONFIG_USB_SERIAL_SSU100=y
CONFIG_USB_SERIAL_QT2=y
CONFIG_USB_SERIAL_UPD78F0730=y
CONFIG_USB_SERIAL_XR=y
CONFIG_USB_SERIAL_DEBUG=y

#
# USB Miscellaneous drivers
#
CONFIG_USB_USS720=y
CONFIG_USB_EMI62=y
CONFIG_USB_EMI26=y
CONFIG_USB_ADUTUX=y
CONFIG_USB_SEVSEG=y
CONFIG_USB_LEGOTOWER=y
CONFIG_USB_LCD=y
CONFIG_USB_CYPRESS_CY7C63=y
CONFIG_USB_CYTHERM=y
CONFIG_USB_IDMOUSE=y
CONFIG_USB_APPLEDISPLAY=y
CONFIG_APPLE_MFI_FASTCHARGE=y
CONFIG_USB_LJCA=y
# CONFIG_USB_USBIO is not set
CONFIG_USB_SISUSBVGA=y
CONFIG_USB_LD=y
CONFIG_USB_TRANCEVIBRATOR=y
CONFIG_USB_IOWARRIOR=y
CONFIG_USB_TEST=y
CONFIG_USB_EHSET_TEST_FIXTURE=y
CONFIG_USB_ISIGHTFW=y
CONFIG_USB_YUREX=y
CONFIG_USB_EZUSB_FX2=y
CONFIG_USB_HUB_USB251XB=y
CONFIG_USB_HSIC_USB3503=y
CONFIG_USB_HSIC_USB4604=y
CONFIG_USB_LINK_LAYER_TEST=y
CONFIG_USB_CHAOSKEY=y
# CONFIG_USB_ONBOARD_DEV is not set
CONFIG_USB_ATM=y
CONFIG_USB_SPEEDTOUCH=y
CONFIG_USB_CXACRU=y
CONFIG_USB_UEAGLEATM=y
CONFIG_USB_XUSBATM=y

#
# USB Physical Layer drivers
#
CONFIG_USB_PHY=y
CONFIG_NOP_USB_XCEIV=y
CONFIG_TAHVO_USB=y
CONFIG_TAHVO_USB_HOST_BY_DEFAULT=y
CONFIG_USB_ISP1301=y
# end of USB Physical Layer drivers

CONFIG_USB_GADGET=y
# CONFIG_USB_GADGET_DEBUG is not set
CONFIG_USB_GADGET_DEBUG_FILES=y
CONFIG_USB_GADGET_DEBUG_FS=y
CONFIG_USB_GADGET_VBUS_DRAW=2
CONFIG_USB_GADGET_STORAGE_NUM_BUFFERS=2
CONFIG_U_SERIAL_CONSOLE=y

#
# USB Peripheral Controller
#
CONFIG_USB_GR_UDC=y
CONFIG_USB_R8A66597=y
CONFIG_USB_PXA27X=y
CONFIG_USB_SNP_CORE=y
# CONFIG_USB_SNP_UDC_PLAT is not set
# CONFIG_USB_M66592 is not set
CONFIG_USB_BDC_UDC=y
CONFIG_USB_AMD5536UDC=y
CONFIG_USB_NET2280=y
CONFIG_USB_GOKU=y
CONFIG_USB_EG20T=y
# CONFIG_USB_GADGET_XILINX is not set
CONFIG_USB_MAX3420_UDC=y
CONFIG_USB_CDNS2_UDC=y
CONFIG_USB_DUMMY_HCD=y
# end of USB Peripheral Controller

CONFIG_USB_LIBCOMPOSITE=y
CONFIG_USB_F_ACM=y
CONFIG_USB_F_SS_LB=y
CONFIG_USB_U_SERIAL=y
CONFIG_USB_U_ETHER=y
CONFIG_USB_U_AUDIO=y
CONFIG_USB_F_SERIAL=y
CONFIG_USB_F_OBEX=y
CONFIG_USB_F_NCM=y
CONFIG_USB_F_ECM=y
CONFIG_USB_F_PHONET=y
CONFIG_USB_F_EEM=y
CONFIG_USB_F_SUBSET=y
CONFIG_USB_F_RNDIS=y
CONFIG_USB_F_MASS_STORAGE=y
CONFIG_USB_F_FS=y
CONFIG_USB_F_UAC1=y
CONFIG_USB_F_UAC1_LEGACY=y
CONFIG_USB_F_UAC2=y
CONFIG_USB_F_UVC=y
CONFIG_USB_F_MIDI=y
CONFIG_USB_F_MIDI2=y
CONFIG_USB_F_HID=y
CONFIG_USB_F_PRINTER=y
CONFIG_USB_F_TCM=y
CONFIG_USB_CONFIGFS=y
CONFIG_USB_CONFIGFS_SERIAL=y
CONFIG_USB_CONFIGFS_ACM=y
CONFIG_USB_CONFIGFS_OBEX=y
CONFIG_USB_CONFIGFS_NCM=y
CONFIG_USB_CONFIGFS_ECM=y
CONFIG_USB_CONFIGFS_ECM_SUBSET=y
CONFIG_USB_CONFIGFS_RNDIS=y
CONFIG_USB_CONFIGFS_EEM=y
CONFIG_USB_CONFIGFS_PHONET=y
CONFIG_USB_CONFIGFS_MASS_STORAGE=y
CONFIG_USB_CONFIGFS_F_LB_SS=y
CONFIG_USB_CONFIGFS_F_FS=y
CONFIG_USB_CONFIGFS_F_UAC1=y
CONFIG_USB_CONFIGFS_F_UAC1_LEGACY=y
CONFIG_USB_CONFIGFS_F_UAC2=y
CONFIG_USB_CONFIGFS_F_MIDI=y
CONFIG_USB_CONFIGFS_F_MIDI2=y
CONFIG_USB_CONFIGFS_F_HID=y
CONFIG_USB_CONFIGFS_F_UVC=y
CONFIG_USB_CONFIGFS_F_PRINTER=y
CONFIG_USB_CONFIGFS_F_TCM=y

#
# USB Gadget precomposed configurations
#
# CONFIG_USB_ZERO is not set
# CONFIG_USB_AUDIO is not set
# CONFIG_USB_ETH is not set
# CONFIG_USB_G_NCM is not set
CONFIG_USB_GADGETFS=y
# CONFIG_USB_FUNCTIONFS is not set
# CONFIG_USB_MASS_STORAGE is not set
# CONFIG_USB_GADGET_TARGET is not set
# CONFIG_USB_G_SERIAL is not set
# CONFIG_USB_MIDI_GADGET is not set
# CONFIG_USB_G_PRINTER is not set
# CONFIG_USB_CDC_COMPOSITE is not set
# CONFIG_USB_G_NOKIA is not set
# CONFIG_USB_G_ACM_MS is not set
# CONFIG_USB_G_MULTI is not set
# CONFIG_USB_G_HID is not set
# CONFIG_USB_G_DBGP is not set
# CONFIG_USB_G_WEBCAM is not set
CONFIG_USB_RAW_GADGET=y
# end of USB Gadget precomposed configurations

CONFIG_TYPEC=y
CONFIG_TYPEC_TCPM=y
CONFIG_TYPEC_TCPCI=y
CONFIG_TYPEC_RT1711H=y
CONFIG_TYPEC_MT6360=y
CONFIG_TYPEC_TCPCI_MT6370=y
CONFIG_TYPEC_TCPCI_MAXIM=y
CONFIG_TYPEC_FUSB302=y
CONFIG_TYPEC_WCOVE=y
CONFIG_TYPEC_UCSI=y
CONFIG_UCSI_CCG=y
CONFIG_UCSI_ACPI=y
CONFIG_UCSI_STM32G0=y
CONFIG_TYPEC_TPS6598X=y
CONFIG_TYPEC_ANX7411=y
CONFIG_TYPEC_RT1719=y
CONFIG_TYPEC_HD3SS3220=y
CONFIG_TYPEC_STUSB160X=y
CONFIG_TYPEC_WUSB3801=y

#
# USB Type-C Multiplexer/DeMultiplexer Switch support
#
CONFIG_TYPEC_MUX_FSA4480=y
CONFIG_TYPEC_MUX_GPIO_SBU=y
CONFIG_TYPEC_MUX_PI3USB30532=y
CONFIG_TYPEC_MUX_INTEL_PMC=y
# CONFIG_TYPEC_MUX_IT5205 is not set
CONFIG_TYPEC_MUX_NB7VPQ904M=y
# CONFIG_TYPEC_MUX_PS883X is not set
CONFIG_TYPEC_MUX_PTN36502=y
# CONFIG_TYPEC_MUX_TUSB1046 is not set
CONFIG_TYPEC_MUX_WCD939X_USBSS=y
# end of USB Type-C Multiplexer/DeMultiplexer Switch support

#
# USB Type-C Alternate Mode drivers
#
CONFIG_TYPEC_DP_ALTMODE=y
CONFIG_TYPEC_NVIDIA_ALTMODE=y
# CONFIG_TYPEC_TBT_ALTMODE is not set
# end of USB Type-C Alternate Mode drivers

CONFIG_USB_ROLE_SWITCH=y
CONFIG_USB_ROLES_INTEL_XHCI=y
CONFIG_MMC=y
# CONFIG_PWRSEQ_EMMC is not set
# CONFIG_PWRSEQ_SD8787 is not set
# CONFIG_PWRSEQ_SIMPLE is not set
# CONFIG_MMC_BLOCK is not set
# CONFIG_SDIO_UART is not set
# CONFIG_MMC_TEST is not set
# CONFIG_MMC_CRYPTO is not set

#
# MMC/SD/SDIO Host Controller Drivers
#
# CONFIG_MMC_DEBUG is not set
# CONFIG_MMC_SDHCI is not set
# CONFIG_MMC_WBSD is not set
# CONFIG_MMC_TIFM_SD is not set
# CONFIG_MMC_SPI is not set
# CONFIG_MMC_SDRICOH_CS is not set
# CONFIG_MMC_CB710 is not set
# CONFIG_MMC_VIA_SDMMC is not set
CONFIG_MMC_VUB300=y
CONFIG_MMC_USHC=y
# CONFIG_MMC_USDHI6ROL0 is not set
CONFIG_MMC_REALTEK_USB=y
# CONFIG_MMC_CQHCI is not set
# CONFIG_MMC_HSQ is not set
# CONFIG_MMC_TOSHIBA_PCI is not set
# CONFIG_MMC_MTK is not set
# CONFIG_SCSI_UFSHCD is not set
CONFIG_MEMSTICK=y
# CONFIG_MEMSTICK_DEBUG is not set

#
# MemoryStick drivers
#
# CONFIG_MEMSTICK_UNSAFE_RESUME is not set
# CONFIG_MSPRO_BLOCK is not set
# CONFIG_MS_BLOCK is not set

#
# MemoryStick Host Controller Drivers
#
# CONFIG_MEMSTICK_TIFM_MS is not set
# CONFIG_MEMSTICK_JMICRON_38X is not set
# CONFIG_MEMSTICK_R592 is not set
CONFIG_MEMSTICK_REALTEK_USB=y
CONFIG_NEW_LEDS=y
CONFIG_LEDS_CLASS=y
# CONFIG_LEDS_CLASS_FLASH is not set
CONFIG_LEDS_CLASS_MULTICOLOR=y
# CONFIG_LEDS_BRIGHTNESS_HW_CHANGED is not set

#
# LED drivers
#
# CONFIG_LEDS_AN30259A is not set
# CONFIG_LEDS_APU is not set
# CONFIG_LEDS_OSRAM_AMS_AS3668 is not set
# CONFIG_LEDS_AW200XX is not set
# CONFIG_LEDS_AW2013 is not set
# CONFIG_LEDS_BCM6328 is not set
# CONFIG_LEDS_BCM6358 is not set
# CONFIG_LEDS_CHT_WCOVE is not set
# CONFIG_LEDS_CR0014114 is not set
# CONFIG_LEDS_EL15203000 is not set
# CONFIG_LEDS_LM3530 is not set
# CONFIG_LEDS_LM3532 is not set
# CONFIG_LEDS_LM3642 is not set
# CONFIG_LEDS_LM3692X is not set
# CONFIG_LEDS_PCA9532 is not set
# CONFIG_LEDS_GPIO is not set
# CONFIG_LEDS_LP3944 is not set
# CONFIG_LEDS_LP3952 is not set
# CONFIG_LEDS_LP50XX is not set
# CONFIG_LEDS_LP55XX_COMMON is not set
# CONFIG_LEDS_LP8860 is not set
# CONFIG_LEDS_LP8864 is not set
# CONFIG_LEDS_PCA955X is not set
# CONFIG_LEDS_PCA963X is not set
# CONFIG_LEDS_PCA995X is not set
# CONFIG_LEDS_DAC124S085 is not set
# CONFIG_LEDS_REGULATOR is not set
# CONFIG_LEDS_BD2606MVV is not set
# CONFIG_LEDS_BD2802 is not set
# CONFIG_LEDS_INTEL_SS4200 is not set
# CONFIG_LEDS_LT3593 is not set
# CONFIG_LEDS_TCA6507 is not set
# CONFIG_LEDS_TLC591XX is not set
# CONFIG_LEDS_LM355x is not set
# CONFIG_LEDS_IS31FL319X is not set
# CONFIG_LEDS_IS31FL32XX is not set

#
# LED driver for blink(1) USB RGB LED is under Special HID drivers (HID_THINGM)
#
# CONFIG_LEDS_BLINKM is not set
# CONFIG_LEDS_SYSCON is not set
# CONFIG_LEDS_MLXCPLD is not set
# CONFIG_LEDS_MLXREG is not set
# CONFIG_LEDS_USER is not set
# CONFIG_LEDS_NIC78BX is not set
# CONFIG_LEDS_SPI_BYTE is not set
# CONFIG_LEDS_LM3697 is not set
# CONFIG_LEDS_ST1202 is not set
# CONFIG_LEDS_LTC3220 is not set
# CONFIG_LEDS_LGM is not set

#
# Flash and Torch LED drivers
#

#
# RGB LED drivers
#
# CONFIG_LEDS_GROUP_MULTICOLOR is not set
# CONFIG_LEDS_KTD202X is not set
# CONFIG_LEDS_LP5812 is not set
# CONFIG_LEDS_LP5860_CORE is not set
# CONFIG_LEDS_LP5860_SPI is not set
# CONFIG_LEDS_NCP5623 is not set
# CONFIG_LEDS_MT6370_RGB is not set

#
# LED Triggers
#
CONFIG_LEDS_TRIGGERS=y
# CONFIG_LEDS_TRIGGER_TIMER is not set
# CONFIG_LEDS_TRIGGER_ONESHOT is not set
# CONFIG_LEDS_TRIGGER_DISK is not set
# CONFIG_LEDS_TRIGGER_MTD is not set
# CONFIG_LEDS_TRIGGER_HEARTBEAT is not set
# CONFIG_LEDS_TRIGGER_BACKLIGHT is not set
# CONFIG_LEDS_TRIGGER_CPU is not set
# CONFIG_LEDS_TRIGGER_ACTIVITY is not set
# CONFIG_LEDS_TRIGGER_GPIO is not set
# CONFIG_LEDS_TRIGGER_DEFAULT_ON is not set

#
# iptables trigger is under Netfilter config (LED target)
#
# CONFIG_LEDS_TRIGGER_TRANSIENT is not set
# CONFIG_LEDS_TRIGGER_CAMERA is not set
# CONFIG_LEDS_TRIGGER_PANIC is not set
# CONFIG_LEDS_TRIGGER_NETDEV is not set
# CONFIG_LEDS_TRIGGER_PATTERN is not set
# CONFIG_LEDS_TRIGGER_TTY is not set
# CONFIG_LEDS_TRIGGER_INPUT_EVENTS is not set

#
# Simatic LED drivers
#
# CONFIG_ACCESSIBILITY is not set
CONFIG_INFINIBAND=y
CONFIG_INFINIBAND_USER_MAD=y
CONFIG_INFINIBAND_USER_ACCESS=y
CONFIG_INFINIBAND_USER_ACCESS_CORE=y
CONFIG_INFINIBAND_USER_MEM=y
CONFIG_INFINIBAND_ON_DEMAND_PAGING=y
CONFIG_INFINIBAND_ADDR_TRANS=y
CONFIG_INFINIBAND_ADDR_TRANS_CONFIGFS=y
CONFIG_INFINIBAND_VIRT_DMA=y
# CONFIG_INFINIBAND_EFA is not set
# CONFIG_INFINIBAND_ERDMA is not set
CONFIG_MLX4_INFINIBAND=y
# CONFIG_INFINIBAND_MTHCA is not set
# CONFIG_INFINIBAND_OCRDMA is not set
# CONFIG_INFINIBAND_USNIC is not set
# CONFIG_INFINIBAND_VMWARE_PVRDMA is not set
# CONFIG_INFINIBAND_RDMAVT is not set
CONFIG_RDMA_RXE=y
CONFIG_RDMA_SIW=y
CONFIG_INFINIBAND_IPOIB=y
CONFIG_INFINIBAND_IPOIB_CM=y
CONFIG_INFINIBAND_IPOIB_DEBUG=y
# CONFIG_INFINIBAND_IPOIB_DEBUG_DATA is not set
CONFIG_INFINIBAND_SRP=y
# CONFIG_INFINIBAND_SRPT is not set
CONFIG_INFINIBAND_ISER=y
CONFIG_INFINIBAND_RTRS=y
CONFIG_INFINIBAND_RTRS_CLIENT=y
# CONFIG_INFINIBAND_RTRS_SERVER is not set
CONFIG_EDAC_ATOMIC_SCRUB=y
CONFIG_EDAC_SUPPORT=y
CONFIG_EDAC=y
# CONFIG_EDAC_DEBUG is not set
# CONFIG_EDAC_DECODE_MCE is not set
# CONFIG_EDAC_SCRUB is not set
# CONFIG_EDAC_ECS is not set
# CONFIG_EDAC_MEM_REPAIR is not set
# CONFIG_EDAC_E752X is not set
# CONFIG_EDAC_I82975X is not set
# CONFIG_EDAC_I3000 is not set
# CONFIG_EDAC_I3200 is not set
# CONFIG_EDAC_IE31200 is not set
# CONFIG_EDAC_X38 is not set
# CONFIG_EDAC_I5400 is not set
# CONFIG_EDAC_I7CORE is not set
# CONFIG_EDAC_I5100 is not set
# CONFIG_EDAC_I7300 is not set
# CONFIG_EDAC_SBRIDGE is not set
# CONFIG_EDAC_SKX is not set
# CONFIG_EDAC_I10NM is not set
# CONFIG_EDAC_IMH is not set
# CONFIG_EDAC_PND2 is not set
# CONFIG_EDAC_IGEN6 is not set
CONFIG_RTC_LIB=y
CONFIG_RTC_MC146818_LIB=y
CONFIG_RTC_CLASS=y
# CONFIG_RTC_HCTOSYS is not set
CONFIG_RTC_SYSTOHC=y
CONFIG_RTC_SYSTOHC_DEVICE="rtc0"
# CONFIG_RTC_DEBUG is not set
# CONFIG_RTC_NVMEM is not set

#
# RTC interfaces
#
CONFIG_RTC_INTF_SYSFS=y
CONFIG_RTC_INTF_PROC=y
CONFIG_RTC_INTF_DEV=y
# CONFIG_RTC_INTF_DEV_UIE_EMUL is not set
# CONFIG_RTC_DRV_TEST is not set

#
# I2C RTC drivers
#
# CONFIG_RTC_DRV_ABB5ZES3 is not set
# CONFIG_RTC_DRV_ABEOZ9 is not set
# CONFIG_RTC_DRV_ABX80X is not set
# CONFIG_RTC_DRV_DS1307 is not set
# CONFIG_RTC_DRV_DS1374 is not set
# CONFIG_RTC_DRV_DS1672 is not set
# CONFIG_RTC_DRV_HYM8563 is not set
# CONFIG_RTC_DRV_MAX6900 is not set
# CONFIG_RTC_DRV_MAX31335 is not set
# CONFIG_RTC_DRV_NCT3018Y is not set
# CONFIG_RTC_DRV_RS5C372 is not set
# CONFIG_RTC_DRV_ISL1208 is not set
# CONFIG_RTC_DRV_ISL12022 is not set
# CONFIG_RTC_DRV_ISL12026 is not set
# CONFIG_RTC_DRV_X1205 is not set
# CONFIG_RTC_DRV_PCF8523 is not set
# CONFIG_RTC_DRV_PCF85363 is not set
# CONFIG_RTC_DRV_PCF8563 is not set
# CONFIG_RTC_DRV_PCF8583 is not set
# CONFIG_RTC_DRV_M41T80 is not set
# CONFIG_RTC_DRV_BQ32K is not set
# CONFIG_RTC_DRV_TWL4030 is not set
# CONFIG_RTC_DRV_S35390A is not set
# CONFIG_RTC_DRV_FM3130 is not set
# CONFIG_RTC_DRV_RX8010 is not set
# CONFIG_RTC_DRV_RX8111 is not set
# CONFIG_RTC_DRV_RX8581 is not set
# CONFIG_RTC_DRV_RX8025 is not set
# CONFIG_RTC_DRV_EM3027 is not set
# CONFIG_RTC_DRV_RV3028 is not set
# CONFIG_RTC_DRV_RV3032 is not set
# CONFIG_RTC_DRV_RV8803 is not set
# CONFIG_RTC_DRV_SD2405AL is not set
# CONFIG_RTC_DRV_SD3078 is not set

#
# SPI RTC drivers
#
# CONFIG_RTC_DRV_M41T93 is not set
# CONFIG_RTC_DRV_M41T94 is not set
# CONFIG_RTC_DRV_DS1302 is not set
# CONFIG_RTC_DRV_DS1305 is not set
# CONFIG_RTC_DRV_DS1343 is not set
# CONFIG_RTC_DRV_DS1347 is not set
# CONFIG_RTC_DRV_DS1390 is not set
# CONFIG_RTC_DRV_MAX6916 is not set
# CONFIG_RTC_DRV_R9701 is not set
# CONFIG_RTC_DRV_RX4581 is not set
# CONFIG_RTC_DRV_RS5C348 is not set
# CONFIG_RTC_DRV_MAX6902 is not set
# CONFIG_RTC_DRV_PCF2123 is not set
# CONFIG_RTC_DRV_MCP795 is not set
CONFIG_RTC_I2C_AND_SPI=y

#
# SPI and I2C RTC drivers
#
# CONFIG_RTC_DRV_DS3232 is not set
# CONFIG_RTC_DRV_PCF2127 is not set
# CONFIG_RTC_DRV_PCF85063 is not set
# CONFIG_RTC_DRV_RV3029C2 is not set
# CONFIG_RTC_DRV_RX6110 is not set

#
# Platform RTC drivers
#
CONFIG_RTC_DRV_CMOS=y
# CONFIG_RTC_DRV_DS1286 is not set
# CONFIG_RTC_DRV_DS1511 is not set
# CONFIG_RTC_DRV_DS1553 is not set
# CONFIG_RTC_DRV_DS1685_FAMILY is not set
# CONFIG_RTC_DRV_DS1742 is not set
# CONFIG_RTC_DRV_DS2404 is not set
# CONFIG_RTC_DRV_STK17TA8 is not set
# CONFIG_RTC_DRV_M48T86 is not set
# CONFIG_RTC_DRV_M48T35 is not set
# CONFIG_RTC_DRV_M48T59 is not set
# CONFIG_RTC_DRV_MSM6242 is not set
# CONFIG_RTC_DRV_RP5C01 is not set
# CONFIG_RTC_DRV_ZYNQMP is not set

#
# on-CPU RTC drivers
#
# CONFIG_RTC_DRV_CADENCE is not set
# CONFIG_RTC_DRV_FTRTC010 is not set
# CONFIG_RTC_DRV_R7301 is not set
# CONFIG_RTC_DRV_GOLDFISH is not set

#
# HID Sensor RTC drivers
#
CONFIG_RTC_DRV_HID_SENSOR_TIME=y
CONFIG_DMADEVICES=y
# CONFIG_DMADEVICES_DEBUG is not set

#
# DMA Devices
#
CONFIG_DMA_ENGINE=y
CONFIG_DMA_VIRTUAL_CHANNELS=y
CONFIG_DMA_ACPI=y
CONFIG_DMA_OF=y
# CONFIG_ALTERA_MSGDMA is not set
# CONFIG_DW_AXI_DMAC is not set
# CONFIG_FSL_EDMA is not set
CONFIG_INTEL_IDMA64=y
# CONFIG_INTEL_IDXD is not set
# CONFIG_INTEL_IDXD_COMPAT is not set
CONFIG_INTEL_IOATDMA=y
# CONFIG_PLX_DMA is not set
# CONFIG_SWITCHTEC_DMA is not set
# CONFIG_XILINX_DMA is not set
# CONFIG_XILINX_XDMA is not set
# CONFIG_XILINX_ZYNQMP_DPDMA is not set
# CONFIG_AMD_PTDMA is not set
# CONFIG_AMD_QDMA is not set
# CONFIG_QCOM_HIDMA_MGMT is not set
# CONFIG_QCOM_HIDMA is not set
CONFIG_DW_DMAC_CORE=y
# CONFIG_DW_DMAC is not set
# CONFIG_DW_DMAC_PCI is not set
# CONFIG_DW_EDMA is not set
CONFIG_HSU_DMA=y
# CONFIG_SF_PDMA is not set
# CONFIG_INTEL_LDMA is not set

#
# DMA Clients
#
CONFIG_ASYNC_TX_DMA=y
# CONFIG_DMATEST is not set
CONFIG_DMA_ENGINE_RAID=y

#
# DMABUF options
#
CONFIG_SYNC_FILE=y
CONFIG_SW_SYNC=y
CONFIG_UDMABUF=y
# CONFIG_DMABUF_DEBUG is not set
CONFIG_DMABUF_HEAPS=y
CONFIG_DMABUF_HEAPS_SYSTEM=y
# CONFIG_DMABUF_HEAPS_SYSTEM_CC_SHARED is not set
CONFIG_DMABUF_HEAPS_CMA=y
# end of DMABUF options

CONFIG_DCA=y
# CONFIG_UIO is not set
CONFIG_VFIO=y
CONFIG_VFIO_DEVICE_CDEV=y
# CONFIG_VFIO_GROUP is not set
# CONFIG_VFIO_NOIOMMU is not set
CONFIG_VFIO_VIRQFD=y
# CONFIG_VFIO_DEBUGFS is not set

#
# VFIO support for PCI devices
#
CONFIG_VFIO_PCI_CORE=y
CONFIG_VFIO_PCI_INTX=y
CONFIG_VFIO_PCI=y
# CONFIG_VFIO_PCI_VGA is not set
# CONFIG_VFIO_PCI_IGD is not set
# CONFIG_VIRTIO_VFIO_PCI is not set
# end of VFIO support for PCI devices

CONFIG_IRQ_BYPASS_MANAGER=y
# CONFIG_VIRT_DRIVERS is not set
CONFIG_VIRTIO_ANCHOR=y
CONFIG_VIRTIO=y
CONFIG_VIRTIO_PCI_LIB=y
CONFIG_VIRTIO_PCI_LIB_LEGACY=y
CONFIG_VIRTIO_MENU=y
CONFIG_VIRTIO_PCI=y
CONFIG_VIRTIO_PCI_ADMIN_LEGACY=y
CONFIG_VIRTIO_PCI_LEGACY=y
CONFIG_VIRTIO_VDPA=y
CONFIG_VIRTIO_PMEM=y
CONFIG_VIRTIO_BALLOON=y
CONFIG_VIRTIO_MEM=y
CONFIG_VIRTIO_INPUT=y
CONFIG_VIRTIO_MMIO=y
CONFIG_VIRTIO_MMIO_CMDLINE_DEVICES=y
CONFIG_VIRTIO_DMA_SHARED_BUFFER=y
# CONFIG_VIRTIO_DEBUG is not set
# CONFIG_VIRTIO_RTC is not set
CONFIG_VDPA=y
CONFIG_VDPA_SIM=y
CONFIG_VDPA_SIM_NET=y
CONFIG_VDPA_SIM_BLOCK=y
# CONFIG_VDPA_USER is not set
# CONFIG_IFCVF is not set
# CONFIG_MLX5_VDPA_STEERING_DEBUG is not set
CONFIG_VP_VDPA=y
# CONFIG_ALIBABA_ENI_VDPA is not set
# CONFIG_SNET_VDPA is not set
# CONFIG_OCTEONEP_VDPA is not set
CONFIG_VHOST_IOTLB=y
CONFIG_VHOST_RING=y
CONFIG_VHOST_TASK=y
CONFIG_VHOST=y
CONFIG_VHOST_MENU=y
CONFIG_VHOST_NET=y
# CONFIG_VHOST_SCSI is not set
CONFIG_VHOST_VSOCK=y
CONFIG_VHOST_VDPA=y
CONFIG_VHOST_CROSS_ENDIAN_LEGACY=y
CONFIG_VHOST_ENABLE_FORK_OWNER_CONTROL=y

#
# Microsoft Hyper-V guest support
#
# CONFIG_HYPERV is not set
# end of Microsoft Hyper-V guest support

CONFIG_GREYBUS=y
# CONFIG_GREYBUS_BEAGLEPLAY is not set
CONFIG_GREYBUS_ES2=y
CONFIG_COMEDI=y
# CONFIG_COMEDI_DEBUG is not set
CONFIG_COMEDI_DEFAULT_BUF_SIZE_KB=2048
CONFIG_COMEDI_DEFAULT_BUF_MAXSIZE_KB=20480
CONFIG_COMEDI_MISC_DRIVERS=y
CONFIG_COMEDI_BOND=y
CONFIG_COMEDI_TEST=y
CONFIG_COMEDI_PARPORT=y
CONFIG_COMEDI_ISA_DRIVERS=y
CONFIG_COMEDI_PCL711=y
CONFIG_COMEDI_PCL724=y
CONFIG_COMEDI_PCL726=y
CONFIG_COMEDI_PCL730=y
CONFIG_COMEDI_PCL812=y
CONFIG_COMEDI_PCL816=y
CONFIG_COMEDI_PCL818=y
CONFIG_COMEDI_PCM3724=y
CONFIG_COMEDI_AMPLC_DIO200_ISA=y
CONFIG_COMEDI_AMPLC_PC236_ISA=y
CONFIG_COMEDI_AMPLC_PC263_ISA=y
CONFIG_COMEDI_RTI800=y
CONFIG_COMEDI_RTI802=y
CONFIG_COMEDI_DAC02=y
CONFIG_COMEDI_DAS16M1=y
CONFIG_COMEDI_DAS08_ISA=y
# CONFIG_COMEDI_DAS16 is not set
CONFIG_COMEDI_DAS800=y
CONFIG_COMEDI_DAS1800=y
CONFIG_COMEDI_DAS6402=y
CONFIG_COMEDI_DT2801=y
CONFIG_COMEDI_DT2811=y
CONFIG_COMEDI_DT2814=y
CONFIG_COMEDI_DT2815=y
CONFIG_COMEDI_DT2817=y
CONFIG_COMEDI_DT282X=y
CONFIG_COMEDI_DMM32AT=y
CONFIG_COMEDI_FL512=y
CONFIG_COMEDI_AIO_AIO12_8=y
CONFIG_COMEDI_AIO_IIRO_16=y
# CONFIG_COMEDI_II_PCI20KC is not set
CONFIG_COMEDI_C6XDIGIO=y
CONFIG_COMEDI_MPC624=y
CONFIG_COMEDI_ADQ12B=y
CONFIG_COMEDI_NI_AT_A2150=y
CONFIG_COMEDI_NI_AT_AO=y
# CONFIG_COMEDI_NI_ATMIO is not set
CONFIG_COMEDI_NI_ATMIO16D=y
CONFIG_COMEDI_NI_LABPC_ISA=y
CONFIG_COMEDI_PCMAD=y
CONFIG_COMEDI_PCMDA12=y
CONFIG_COMEDI_PCMMIO=y
CONFIG_COMEDI_PCMUIO=y
CONFIG_COMEDI_MULTIQ3=y
CONFIG_COMEDI_S526=y
CONFIG_COMEDI_PCI_DRIVERS=y
CONFIG_COMEDI_8255_PCI=y
# CONFIG_COMEDI_ADDI_APCI_1032 is not set
# CONFIG_COMEDI_ADDI_APCI_1500 is not set
# CONFIG_COMEDI_ADDI_APCI_1516 is not set
# CONFIG_COMEDI_ADDI_APCI_1564 is not set
# CONFIG_COMEDI_ADDI_APCI_16XX is not set
# CONFIG_COMEDI_ADDI_APCI_2032 is not set
# CONFIG_COMEDI_ADDI_APCI_2200 is not set
# CONFIG_COMEDI_ADDI_APCI_3120 is not set
# CONFIG_COMEDI_ADDI_APCI_3501 is not set
# CONFIG_COMEDI_ADDI_APCI_3XXX is not set
# CONFIG_COMEDI_ADL_PCI6208 is not set
# CONFIG_COMEDI_ADL_PCI7250 is not set
# CONFIG_COMEDI_ADL_PCI7X3X is not set
# CONFIG_COMEDI_ADL_PCI8164 is not set
# CONFIG_COMEDI_ADL_PCI9111 is not set
CONFIG_COMEDI_ADL_PCI9118=y
# CONFIG_COMEDI_ADV_PCI1710 is not set
# CONFIG_COMEDI_ADV_PCI1720 is not set
# CONFIG_COMEDI_ADV_PCI1723 is not set
# CONFIG_COMEDI_ADV_PCI1724 is not set
# CONFIG_COMEDI_ADV_PCI1760 is not set
# CONFIG_COMEDI_ADV_PCI_DIO is not set
# CONFIG_COMEDI_AMPLC_DIO200_PCI is not set
# CONFIG_COMEDI_AMPLC_PC236_PCI is not set
# CONFIG_COMEDI_AMPLC_PC263_PCI is not set
# CONFIG_COMEDI_AMPLC_PCI224 is not set
# CONFIG_COMEDI_AMPLC_PCI230 is not set
# CONFIG_COMEDI_CONTEC_PCI_DIO is not set
# CONFIG_COMEDI_DAS08_PCI is not set
# CONFIG_COMEDI_DT3000 is not set
# CONFIG_COMEDI_DYNA_PCI10XX is not set
# CONFIG_COMEDI_GSC_HPDI is not set
# CONFIG_COMEDI_MF6X4 is not set
# CONFIG_COMEDI_ICP_MULTI is not set
# CONFIG_COMEDI_DAQBOARD2000 is not set
# CONFIG_COMEDI_JR3_PCI is not set
# CONFIG_COMEDI_KE_COUNTER is not set
# CONFIG_COMEDI_CB_PCIDAS64 is not set
# CONFIG_COMEDI_CB_PCIDAS is not set
# CONFIG_COMEDI_CB_PCIDDA is not set
# CONFIG_COMEDI_CB_PCIMDAS is not set
# CONFIG_COMEDI_CB_PCIMDDA is not set
# CONFIG_COMEDI_ME4000 is not set
# CONFIG_COMEDI_ME_DAQ is not set
# CONFIG_COMEDI_NI_6527 is not set
# CONFIG_COMEDI_NI_65XX is not set
# CONFIG_COMEDI_NI_660X is not set
# CONFIG_COMEDI_NI_670X is not set
CONFIG_COMEDI_NI_LABPC_PCI=y
# CONFIG_COMEDI_NI_PCIDIO is not set
# CONFIG_COMEDI_NI_PCIMIO is not set
# CONFIG_COMEDI_RTD520 is not set
# CONFIG_COMEDI_S626 is not set
CONFIG_COMEDI_PCMCIA_DRIVERS=y
# CONFIG_COMEDI_CB_DAS16_CS is not set
# CONFIG_COMEDI_DAS08_CS is not set
CONFIG_COMEDI_NI_DAQ_700_CS=y
# CONFIG_COMEDI_NI_DAQ_DIO24_CS is not set
CONFIG_COMEDI_NI_LABPC_CS=y
# CONFIG_COMEDI_NI_MIO_CS is not set
# CONFIG_COMEDI_QUATECH_DAQP_CS is not set
CONFIG_COMEDI_USB_DRIVERS=y
CONFIG_COMEDI_DT9812=y
CONFIG_COMEDI_NI_USB6501=y
CONFIG_COMEDI_USBDUX=y
CONFIG_COMEDI_USBDUXFAST=y
CONFIG_COMEDI_USBDUXSIGMA=y
CONFIG_COMEDI_VMK80XX=y
CONFIG_COMEDI_8254=y
CONFIG_COMEDI_8255=y
CONFIG_COMEDI_8255_SA=y
CONFIG_COMEDI_KCOMEDILIB=y
CONFIG_COMEDI_AMPLC_DIO200=y
CONFIG_COMEDI_AMPLC_PC236=y
CONFIG_COMEDI_DAS08=y
CONFIG_COMEDI_ISADMA=y
CONFIG_COMEDI_NI_LABPC=y
CONFIG_COMEDI_NI_LABPC_ISADMA=y
# CONFIG_COMEDI_TESTS is not set
# CONFIG_GPIB is not set
CONFIG_STAGING=y
# CONFIG_RTL8723BS is not set

#
# IIO staging drivers
#

#
# Accelerometers
#
# CONFIG_ADIS16203 is not set
# end of Accelerometers

#
# Analog to digital converters
#
# CONFIG_AD7816 is not set
# end of Analog to digital converters

#
# Analog digital bi-direction converters
#
# CONFIG_ADT7316 is not set
# end of Analog digital bi-direction converters

#
# Direct Digital Synthesis
#
# CONFIG_AD9832 is not set
# CONFIG_AD9834 is not set
# end of Direct Digital Synthesis

#
# Network Analyzer, Impedance Converters
#
# CONFIG_AD5933 is not set
# end of Network Analyzer, Impedance Converters
# end of IIO staging drivers

# CONFIG_FB_SM750 is not set
# CONFIG_STAGING_MEDIA is not set
# CONFIG_FB_TFT is not set
# CONFIG_MOST_COMPONENTS is not set
# CONFIG_GREYBUS_AUDIO is not set
# CONFIG_GREYBUS_BOOTROM is not set
# CONFIG_GREYBUS_FIRMWARE is not set
CONFIG_GREYBUS_HID=y
# CONFIG_GREYBUS_LOG is not set
# CONFIG_GREYBUS_LOOPBACK is not set
# CONFIG_GREYBUS_POWER is not set
# CONFIG_GREYBUS_RAW is not set
# CONFIG_GREYBUS_VIBRATOR is not set
CONFIG_GREYBUS_BRIDGED_PHY=y
# CONFIG_GREYBUS_GPIO is not set
# CONFIG_GREYBUS_I2C is not set
# CONFIG_GREYBUS_SDIO is not set
# CONFIG_GREYBUS_SPI is not set
# CONFIG_GREYBUS_UART is not set
CONFIG_GREYBUS_USB=y
# CONFIG_XIL_AXIS_FIFO is not set
# CONFIG_VME_BUS is not set
# CONFIG_GOLDFISH is not set
# CONFIG_CHROME_PLATFORMS is not set
# CONFIG_MELLANOX_PLATFORM is not set
CONFIG_SURFACE_PLATFORMS=y
# CONFIG_SURFACE3_WMI is not set
# CONFIG_SURFACE_3_POWER_OPREGION is not set
# CONFIG_SURFACE_ACPI_NOTIFY is not set
# CONFIG_SURFACE_AGGREGATOR_CDEV is not set
# CONFIG_SURFACE_AGGREGATOR_HUB is not set
CONFIG_SURFACE_AGGREGATOR_REGISTRY=y
# CONFIG_SURFACE_AGGREGATOR_TABLET_SWITCH is not set
# CONFIG_SURFACE_DTX is not set
# CONFIG_SURFACE_GPE is not set
# CONFIG_SURFACE_HOTPLUG is not set
# CONFIG_SURFACE_PLATFORM_PROFILE is not set
# CONFIG_SURFACE_PRO3_BUTTON is not set
CONFIG_SURFACE_AGGREGATOR=y
CONFIG_SURFACE_AGGREGATOR_BUS=y
CONFIG_X86_PLATFORM_DEVICES=y
CONFIG_WMI_BMOF=y
# CONFIG_HUAWEI_WMI is not set
# CONFIG_X86_PLATFORM_DRIVERS_UNIWILL is not set
# CONFIG_MXM_WMI is not set
# CONFIG_NVIDIA_WMI_EC_BACKLIGHT is not set
# CONFIG_XIAOMI_WMI is not set
# CONFIG_REDMI_WMI is not set
# CONFIG_GIGABYTE_WMI is not set
# CONFIG_BITLAND_MIFS_WMI is not set
# CONFIG_ACERHDF is not set
# CONFIG_ACER_WIRELESS is not set
# CONFIG_ACER_WMI is not set

#
# AMD HSMP Driver
#
# CONFIG_AMD_HSMP_ACPI is not set
# CONFIG_AMD_HSMP_PLAT is not set
# end of AMD HSMP Driver

# CONFIG_AMD_PMC is not set
# CONFIG_AMD_HFI is not set
# CONFIG_AMD_3D_VCACHE is not set
# CONFIG_AMD_WBRF is not set
# CONFIG_AMD_HALO_LED is not set
# CONFIG_AMD_ISP_PLATFORM is not set
# CONFIG_ADV_SWBUTTON is not set
# CONFIG_APPLE_GMUX is not set
# CONFIG_ASUS_LAPTOP is not set
# CONFIG_ASUS_WIRELESS is not set
# CONFIG_ASUS_ARMOURY is not set
CONFIG_ASUS_WMI=y
# CONFIG_ASUS_WMI_DEPRECATED_ATTRS is not set
# CONFIG_ASUS_NB_WMI is not set
CONFIG_ASUS_TF103C_DOCK=y
# CONFIG_AYANEO_EC is not set
CONFIG_EEEPC_LAPTOP=y
# CONFIG_EEEPC_WMI is not set
# CONFIG_X86_PLATFORM_DRIVERS_DELL is not set
# CONFIG_AMILO_RFKILL is not set
# CONFIG_FUJITSU_LAPTOP is not set
# CONFIG_FUJITSU_TABLET is not set
# CONFIG_GPD_POCKET_FAN is not set
# CONFIG_X86_PLATFORM_DRIVERS_HP is not set
# CONFIG_WIRELESS_HOTKEY is not set
# CONFIG_IBM_RTL is not set
# CONFIG_SENSORS_HDAPS is not set
# CONFIG_INTEL_ATOMISP2_PM is not set
# CONFIG_INTEL_IFS is not set
# CONFIG_INTEL_SAR_INT1092 is not set
# CONFIG_INTEL_SKL_INT3472 is not set

#
# Intel Speed Select Technology interface support
#
# CONFIG_INTEL_SPEED_SELECT_INTERFACE is not set
# end of Intel Speed Select Technology interface support

# CONFIG_INTEL_WMI_SBL_FW_UPDATE is not set
# CONFIG_INTEL_WMI_THUNDERBOLT is not set

#
# Intel Uncore Frequency Control
#
# CONFIG_INTEL_UNCORE_FREQ_CONTROL is not set
# end of Intel Uncore Frequency Control

# CONFIG_INTEL_HID_EVENT is not set
# CONFIG_INTEL_VBTN is not set
# CONFIG_INTEL_EHL_PSE_IO is not set
# CONFIG_INTEL_INT0002_VGPIO is not set
# CONFIG_INTEL_OAKTRAIL is not set
# CONFIG_INTEL_BXTWC_PMIC_TMU is not set
CONFIG_INTEL_CHTWC_INT33FE=y
CONFIG_INTEL_ISHTP_ECLITE=y
# CONFIG_INTEL_PUNIT_IPC is not set
# CONFIG_INTEL_RST is not set
# CONFIG_INTEL_SMARTCONNECT is not set
# CONFIG_INTEL_TURBO_MAX_3 is not set
# CONFIG_INTEL_VSEC is not set
# CONFIG_IDEAPAD_LAPTOP is not set
# CONFIG_LENOVO_WMI_HOTKEY_UTILITIES is not set
# CONFIG_LENOVO_WMI_CAMERA is not set
# CONFIG_LENOVO_YB9_KBDOCK is not set
# CONFIG_THINKPAD_ACPI is not set
# CONFIG_THINKPAD_LMI is not set
# CONFIG_YOGABOOK is not set
# CONFIG_YT2_1380 is not set
# CONFIG_LENOVO_WMI_GAMEZONE is not set
# CONFIG_LENOVO_WMI_TUNING is not set
# CONFIG_ACPI_QUICKSTART is not set
# CONFIG_MEEGOPAD_ANX7428 is not set
# CONFIG_MSI_EC is not set
# CONFIG_MSI_LAPTOP is not set
# CONFIG_MSI_WMI is not set
# CONFIG_MSI_WMI_PLATFORM is not set
# CONFIG_PCENGINES_APU2 is not set
# CONFIG_PORTWELL_EC is not set
# CONFIG_BARCO_P50_GPIO is not set
# CONFIG_SAMSUNG_GALAXYBOOK is not set
# CONFIG_SAMSUNG_LAPTOP is not set
# CONFIG_SAMSUNG_Q10 is not set
# CONFIG_ACPI_TOSHIBA is not set
# CONFIG_TOSHIBA_BT_RFKILL is not set
# CONFIG_TOSHIBA_HAPS is not set
# CONFIG_TOSHIBA_WMI is not set
# CONFIG_ACPI_CMPC is not set
# CONFIG_COMPAL_LAPTOP is not set
# CONFIG_LG_LAPTOP is not set
# CONFIG_PANASONIC_LAPTOP is not set
# CONFIG_SONY_LAPTOP is not set
# CONFIG_SYSTEM76_ACPI is not set
# CONFIG_TOPSTAR_LAPTOP is not set
# CONFIG_SERIAL_MULTI_INSTANTIATE is not set
# CONFIG_INSPUR_PLATFORM_PROFILE is not set
# CONFIG_DASHARO_ACPI is not set
# CONFIG_INTEL_IPS is not set
CONFIG_INTEL_SCU_IPC=y
# CONFIG_INTEL_SCU_PCI is not set
# CONFIG_INTEL_SCU_PLATFORM is not set
# CONFIG_SIEMENS_SIMATIC_IPC is not set
# CONFIG_SILICOM_PLATFORM is not set
# CONFIG_WINMATE_FM07_KEYS is not set
# CONFIG_OXP_EC is not set
# CONFIG_TUXEDO_NB04_WMI_AB is not set
CONFIG_P2SB=y
CONFIG_ACPI_WMI=y
# CONFIG_ACPI_WMI_LEGACY_DEVICE_NAMES is not set
CONFIG_HAVE_CLK=y
CONFIG_HAVE_CLK_PREPARE=y
CONFIG_COMMON_CLK=y
# CONFIG_LMK04832 is not set
# CONFIG_COMMON_CLK_MAX9485 is not set
# CONFIG_COMMON_CLK_SI5341 is not set
# CONFIG_COMMON_CLK_SI5351 is not set
# CONFIG_COMMON_CLK_SI514 is not set
# CONFIG_COMMON_CLK_SI544 is not set
# CONFIG_COMMON_CLK_SI570 is not set
# CONFIG_COMMON_CLK_CDCE706 is not set
# CONFIG_COMMON_CLK_CDCE925 is not set
# CONFIG_COMMON_CLK_CS2000_CP is not set
# CONFIG_CLK_TWL is not set
# CONFIG_COMMON_CLK_AXI_CLKGEN is not set
# CONFIG_COMMON_CLK_RS9_PCIE is not set
# CONFIG_COMMON_CLK_SI521XX is not set
# CONFIG_COMMON_CLK_VC3 is not set
# CONFIG_COMMON_CLK_VC5 is not set
# CONFIG_COMMON_CLK_VC7 is not set
# CONFIG_COMMON_CLK_FIXED_MMIO is not set

#
# Cixtech Audio Subsystem Clock Driver
#
# end of Cixtech Audio Subsystem Clock Driver

# CONFIG_CLK_LGM_CGU is not set
# CONFIG_XILINX_VCU is not set
# CONFIG_COMMON_CLK_XLNX_CLKWZRD is not set
# CONFIG_HWSPINLOCK is not set

#
# Clock Source drivers
#
CONFIG_CLKEVT_I8253=y
CONFIG_I8253_LOCK=y
CONFIG_CLKBLD_I8253=y
# end of Clock Source drivers

CONFIG_MAILBOX=y
# CONFIG_PLATFORM_MHU is not set
CONFIG_PCC=y
# CONFIG_ALTERA_MBOX is not set
# CONFIG_MAILBOX_TEST is not set
CONFIG_IOMMU_IOVA=y
CONFIG_IOMMU_API=y
CONFIG_IOMMUFD_DRIVER=y
CONFIG_IOMMU_SUPPORT=y

#
# Generic IOMMU Pagetable Support
#
# end of Generic IOMMU Pagetable Support

# CONFIG_IOMMU_DEBUGFS is not set
# CONFIG_IOMMU_DEFAULT_DMA_STRICT is not set
CONFIG_IOMMU_DEFAULT_DMA_LAZY=y
# CONFIG_IOMMU_DEFAULT_PASSTHROUGH is not set
CONFIG_OF_IOMMU=y
CONFIG_IOMMU_DMA=y
CONFIG_IOMMU_SVA=y
CONFIG_IOMMU_IOPF=y
CONFIG_AMD_IOMMU=y
# CONFIG_AMD_IOMMU_IOMMUFD is not set
CONFIG_DMAR_TABLE=y
CONFIG_INTEL_IOMMU=y
CONFIG_INTEL_IOMMU_SVM=y
CONFIG_INTEL_IOMMU_DEFAULT_ON=y
CONFIG_INTEL_IOMMU_SCALABLE_MODE_DEFAULT_ON=y
CONFIG_INTEL_IOMMU_PERF_EVENTS=y
CONFIG_IOMMUFD_DRIVER_CORE=y
CONFIG_IOMMUFD=y
CONFIG_IOMMUFD_TEST=y
CONFIG_IRQ_REMAP=y
# CONFIG_VIRTIO_IOMMU is not set
CONFIG_GENERIC_PT=y
CONFIG_DEBUG_GENERIC_PT=y
CONFIG_IOMMU_PT=y
CONFIG_IOMMU_PT_AMDV1=y
CONFIG_IOMMU_PT_VTDSS=y
# CONFIG_IOMMU_PT_RISCV64 is not set
CONFIG_IOMMU_PT_X86_64=y

#
# Remoteproc drivers
#
# CONFIG_REMOTEPROC is not set
# end of Remoteproc drivers

#
# Rpmsg drivers
#
# CONFIG_RPMSG_QCOM_GLINK_RPM is not set
# CONFIG_RPMSG_VIRTIO is not set
# end of Rpmsg drivers

CONFIG_SOUNDWIRE=y

#
# SoundWire Devices
#
# CONFIG_SOUNDWIRE_AMD is not set
# CONFIG_SOUNDWIRE_INTEL is not set
# CONFIG_SOUNDWIRE_QCOM is not set

#
# SOC (System On Chip) specific Drivers
#

#
# Amlogic SoC drivers
#
# end of Amlogic SoC drivers

#
# Broadcom SoC drivers
#
# end of Broadcom SoC drivers

#
# NXP/Freescale QorIQ SoC drivers
#
# end of NXP/Freescale QorIQ SoC drivers

#
# fujitsu SoC drivers
#
# end of fujitsu SoC drivers

#
# i.MX SoC drivers
#
# end of i.MX SoC drivers

#
# Enable LiteX SoC Builder specific drivers
#
# CONFIG_LITEX_SOC_CONTROLLER is not set
# end of Enable LiteX SoC Builder specific drivers

# CONFIG_WPCM450_SOC is not set
CONFIG_QCOM_QMI_HELPERS=y
# CONFIG_SOC_TI is not set

#
# Xilinx SoC drivers
#
# end of Xilinx SoC drivers
# end of SOC (System On Chip) specific Drivers

#
# PM Domains
#

#
# Amlogic PM Domains
#
# end of Amlogic PM Domains

#
# Broadcom PM Domains
#
# end of Broadcom PM Domains

#
# i.MX PM Domains
#
# end of i.MX PM Domains

#
# Qualcomm PM Domains
#
# end of Qualcomm PM Domains
# end of PM Domains

# CONFIG_PM_DEVFREQ is not set
CONFIG_EXTCON=y

#
# Extcon Device Drivers
#
# CONFIG_EXTCON_ADC_JACK is not set
# CONFIG_EXTCON_FSA9480 is not set
# CONFIG_EXTCON_GPIO is not set
# CONFIG_EXTCON_INTEL_INT3496 is not set
CONFIG_EXTCON_INTEL_CHT_WC=y
# CONFIG_EXTCON_LC824206XA is not set
# CONFIG_EXTCON_MAX3355 is not set
# CONFIG_EXTCON_MAX14526 is not set
CONFIG_EXTCON_PTN5150=y
# CONFIG_EXTCON_RT8973A is not set
# CONFIG_EXTCON_SM5502 is not set
# CONFIG_EXTCON_USB_GPIO is not set
CONFIG_EXTCON_USBC_TUSB320=y
# CONFIG_MEMORY is not set
CONFIG_IIO=y
CONFIG_IIO_BUFFER=y
# CONFIG_IIO_BUFFER_CB is not set
# CONFIG_IIO_BUFFER_DMA is not set
# CONFIG_IIO_BUFFER_DMAENGINE is not set
# CONFIG_IIO_BUFFER_HW_CONSUMER is not set
CONFIG_IIO_KFIFO_BUF=y
CONFIG_IIO_TRIGGERED_BUFFER=y
# CONFIG_IIO_CONFIGFS is not set
CONFIG_IIO_TRIGGER=y
CONFIG_IIO_CONSUMERS_PER_TRIGGER=2
# CONFIG_IIO_SW_DEVICE is not set
# CONFIG_IIO_SW_TRIGGER is not set
# CONFIG_IIO_TRIGGERED_EVENT is not set

#
# Accelerometers
#
# CONFIG_ADIS16201 is not set
# CONFIG_ADIS16209 is not set
# CONFIG_ADXL313_I2C is not set
# CONFIG_ADXL313_SPI is not set
# CONFIG_ADXL345_I2C is not set
# CONFIG_ADXL345_SPI is not set
# CONFIG_ADXL355_I2C is not set
# CONFIG_ADXL355_SPI is not set
# CONFIG_ADXL367_SPI is not set
# CONFIG_ADXL367_I2C is not set
# CONFIG_ADXL372_SPI is not set
# CONFIG_ADXL372_I2C is not set
# CONFIG_ADXL380_SPI is not set
# CONFIG_ADXL380_I2C is not set
# CONFIG_BMA180 is not set
# CONFIG_BMA220 is not set
# CONFIG_BMA400 is not set
# CONFIG_BMC150_ACCEL is not set
# CONFIG_BMI088_ACCEL is not set
# CONFIG_DA280 is not set
# CONFIG_DA311 is not set
# CONFIG_DMARD06 is not set
# CONFIG_DMARD09 is not set
# CONFIG_DMARD10 is not set
# CONFIG_FXLS8962AF_I2C is not set
# CONFIG_FXLS8962AF_SPI is not set
CONFIG_HID_SENSOR_ACCEL_3D=y
# CONFIG_IIO_ST_ACCEL_3AXIS is not set
# CONFIG_IIO_KX022A_SPI is not set
# CONFIG_IIO_KX022A_I2C is not set
# CONFIG_KXSD9 is not set
# CONFIG_KXCJK1013 is not set
# CONFIG_MC3230 is not set
# CONFIG_MMA7455_I2C is not set
# CONFIG_MMA7455_SPI is not set
# CONFIG_MMA7660 is not set
# CONFIG_MMA8452 is not set
# CONFIG_MMA9551 is not set
# CONFIG_MMA9553 is not set
# CONFIG_MSA311 is not set
# CONFIG_MXC4005 is not set
# CONFIG_MXC6255 is not set
# CONFIG_SCA3000 is not set
# CONFIG_SCA3300 is not set
# CONFIG_STK8312 is not set
# CONFIG_STK8BA50 is not set
# end of Accelerometers

#
# Analog to digital converters
#
# CONFIG_AD4000 is not set
# CONFIG_AD4080 is not set
# CONFIG_AD4130 is not set
# CONFIG_AD4134 is not set
# CONFIG_AD4170_4 is not set
# CONFIG_AD4691 is not set
# CONFIG_AD4695 is not set
# CONFIG_AD7091R5 is not set
# CONFIG_AD7091R8 is not set
# CONFIG_AD7124 is not set
# CONFIG_AD7173 is not set
# CONFIG_AD7191 is not set
# CONFIG_AD7192 is not set
# CONFIG_AD7266 is not set
# CONFIG_AD7280 is not set
# CONFIG_AD7291 is not set
# CONFIG_AD7292 is not set
# CONFIG_AD7298 is not set
# CONFIG_AD7380 is not set
# CONFIG_AD7476 is not set
# CONFIG_AD7606_IFACE_PARALLEL is not set
# CONFIG_AD7606_IFACE_SPI is not set
# CONFIG_AD7766 is not set
# CONFIG_AD7768_1 is not set
# CONFIG_AD7779 is not set
# CONFIG_AD7780 is not set
# CONFIG_AD7791 is not set
# CONFIG_AD7793 is not set
# CONFIG_AD7887 is not set
# CONFIG_AD7923 is not set
# CONFIG_AD7944 is not set
# CONFIG_AD7949 is not set
# CONFIG_AD799X is not set
# CONFIG_AD9467 is not set
# CONFIG_ADE9000 is not set
# CONFIG_CC10001_ADC is not set
CONFIG_DLN2_ADC=y
# CONFIG_ENVELOPE_DETECTOR is not set
# CONFIG_GEHC_PMC_ADC is not set
# CONFIG_HI8435 is not set
# CONFIG_HX711 is not set
# CONFIG_INA2XX_ADC is not set
# CONFIG_LTC2309 is not set
# CONFIG_LTC2471 is not set
# CONFIG_LTC2485 is not set
# CONFIG_LTC2496 is not set
# CONFIG_LTC2497 is not set
# CONFIG_MAX1027 is not set
# CONFIG_MAX11100 is not set
# CONFIG_MAX1118 is not set
# CONFIG_MAX11205 is not set
# CONFIG_MAX11410 is not set
# CONFIG_MAX1241 is not set
# CONFIG_MAX1363 is not set
# CONFIG_MAX14001 is not set
# CONFIG_MAX34408 is not set
# CONFIG_MAX9611 is not set
# CONFIG_MCP320X is not set
# CONFIG_MCP3422 is not set
# CONFIG_MCP3564 is not set
# CONFIG_MCP3911 is not set
# CONFIG_MEDIATEK_MT6360_ADC is not set
# CONFIG_MEDIATEK_MT6370_ADC is not set
# CONFIG_NAU7802 is not set
# CONFIG_NCT7201 is not set
# CONFIG_PAC1921 is not set
# CONFIG_PAC1934 is not set
# CONFIG_ROHM_BD79112 is not set
# CONFIG_ROHM_BD79124 is not set
# CONFIG_RICHTEK_RTQ6056 is not set
# CONFIG_SD_ADC_MODULATOR is not set
# CONFIG_TI_ADC081C is not set
# CONFIG_TI_ADC0832 is not set
# CONFIG_TI_ADC084S021 is not set
# CONFIG_TI_ADC108S102 is not set
# CONFIG_TI_ADC12138 is not set
# CONFIG_TI_ADC128S052 is not set
# CONFIG_TI_ADC161S626 is not set
# CONFIG_TI_ADS1015 is not set
# CONFIG_TI_ADS1018 is not set
# CONFIG_TI_ADS1100 is not set
# CONFIG_TI_ADS1119 is not set
# CONFIG_TI_ADS112C14 is not set
# CONFIG_TI_ADS124S08 is not set
# CONFIG_TI_ADS1298 is not set
# CONFIG_TI_ADS131E08 is not set
# CONFIG_TI_ADS131M02 is not set
# CONFIG_TI_ADS7138 is not set
# CONFIG_TI_ADS7924 is not set
# CONFIG_TI_ADS7950 is not set
# CONFIG_TI_ADS8344 is not set
# CONFIG_TI_ADS8688 is not set
# CONFIG_TI_LMP92064 is not set
# CONFIG_TI_TLC4541 is not set
# CONFIG_TI_TSC2046 is not set
# CONFIG_TWL4030_MADC is not set
# CONFIG_TWL6030_GPADC is not set
# CONFIG_VERSAL_SYSMON_I2C is not set
# CONFIG_VF610_ADC is not set
CONFIG_VIPERBOARD_ADC=y
# CONFIG_XILINX_XADC is not set
# end of Analog to digital converters

#
# Analog to digital and digital to analog converters
#
# CONFIG_AD74115 is not set
# CONFIG_AD74413R is not set
# end of Analog to digital and digital to analog converters

#
# Analog Front Ends
#
# CONFIG_IIO_RESCALE is not set
# end of Analog Front Ends

#
# Amplifiers
#
# CONFIG_AD8366 is not set
# CONFIG_ADA4250 is not set
# CONFIG_ADL8113 is not set
# CONFIG_HMC425 is not set
# end of Amplifiers

#
# Capacitance to digital converters
#
# CONFIG_AD7150 is not set
# CONFIG_AD7746 is not set
# end of Capacitance to digital converters

#
# Chemical Sensors
#
# CONFIG_AOSONG_AGS02MA is not set
# CONFIG_ATLAS_PH_SENSOR is not set
# CONFIG_ATLAS_EZO_SENSOR is not set
# CONFIG_BME680 is not set
# CONFIG_CCS811 is not set
# CONFIG_ENS160 is not set
# CONFIG_IAQCORE is not set
# CONFIG_MHZ19B is not set
# CONFIG_PMS7003 is not set
# CONFIG_SCD30_CORE is not set
# CONFIG_SCD4X is not set
# CONFIG_SEN0322 is not set
# CONFIG_SENSIRION_SGP30 is not set
# CONFIG_SENSIRION_SGP40 is not set
# CONFIG_SPS30_I2C is not set
# CONFIG_SPS30_SERIAL is not set
# CONFIG_SENSEAIR_SUNRISE_CO2 is not set
# CONFIG_VZ89X is not set
# end of Chemical Sensors

#
# Hid Sensor IIO Common
#
CONFIG_HID_SENSOR_IIO_COMMON=y
CONFIG_HID_SENSOR_IIO_TRIGGER=y
# end of Hid Sensor IIO Common

#
# IIO SCMI Sensors
#
# end of IIO SCMI Sensors

#
# SSP Sensor Common
#
# CONFIG_IIO_SSP_SENSORHUB is not set
# end of SSP Sensor Common

#
# Digital to analog converters
#
# CONFIG_AD3530R is not set
# CONFIG_AD3552R_HS is not set
# CONFIG_AD3552R is not set
# CONFIG_AD5064 is not set
# CONFIG_AD5360 is not set
# CONFIG_AD5380 is not set
# CONFIG_AD5421 is not set
# CONFIG_AD5446_SPI is not set
# CONFIG_AD5446_I2C is not set
# CONFIG_AD5449 is not set
# CONFIG_AD5592R is not set
# CONFIG_AD5593R is not set
# CONFIG_AD5504 is not set
# CONFIG_AD5624R_SPI is not set
# CONFIG_AD5706R is not set
# CONFIG_AD9739A is not set
# CONFIG_LTC2688 is not set
# CONFIG_AD5686_SPI is not set
# CONFIG_AD5696_I2C is not set
# CONFIG_AD5755 is not set
# CONFIG_AD5758 is not set
# CONFIG_AD5761 is not set
# CONFIG_AD5764 is not set
# CONFIG_AD5766 is not set
# CONFIG_AD5770R is not set
# CONFIG_AD5791 is not set
# CONFIG_AD7293 is not set
# CONFIG_AD7303 is not set
# CONFIG_AD8460 is not set
# CONFIG_AD8801 is not set
# CONFIG_BD79703 is not set
# CONFIG_CIO_DAC is not set
# CONFIG_DPOT_DAC is not set
# CONFIG_DS4424 is not set
# CONFIG_LTC1660 is not set
# CONFIG_LTC2632 is not set
# CONFIG_LTC2664 is not set
# CONFIG_M62332 is not set
# CONFIG_MAX517 is not set
# CONFIG_MAX22007 is not set
# CONFIG_MAX5522 is not set
# CONFIG_MAX5821 is not set
# CONFIG_MCP4725 is not set
# CONFIG_MCP4728 is not set
# CONFIG_MCP47A1 is not set
# CONFIG_MCP47FEB02 is not set
# CONFIG_MCP4821 is not set
# CONFIG_MCP4922 is not set
# CONFIG_TI_DAC082S085 is not set
# CONFIG_TI_DAC5571 is not set
# CONFIG_TI_DAC7311 is not set
# CONFIG_TI_DAC7612 is not set
# CONFIG_VF610_DAC is not set
# end of Digital to analog converters

#
# IIO dummy driver
#
# end of IIO dummy driver

#
# Filters
#
# CONFIG_ADMV8818 is not set
# end of Filters

#
# Flow sensors
#
# CONFIG_SENSIRION_SLF3S is not set
# end of Flow sensors

#
# Frequency Synthesizers DDS/PLL
#

#
# Clock Generator/Distribution
#
# CONFIG_AD9523 is not set
# end of Clock Generator/Distribution

#
# Phase-Locked Loop (PLL) frequency synthesizers
#
# CONFIG_ADF41513 is not set
# CONFIG_ADF4350 is not set
# CONFIG_ADF4371 is not set
# CONFIG_ADF4377 is not set
# CONFIG_ADMFM2000 is not set
# CONFIG_ADMV1013 is not set
# CONFIG_ADMV1014 is not set
# CONFIG_ADMV4420 is not set
# CONFIG_ADRF6780 is not set
# end of Phase-Locked Loop (PLL) frequency synthesizers
# end of Frequency Synthesizers DDS/PLL

#
# Digital gyroscope sensors
#
# CONFIG_ADIS16080 is not set
# CONFIG_ADIS16130 is not set
# CONFIG_ADIS16136 is not set
# CONFIG_ADIS16260 is not set
# CONFIG_ADXRS290 is not set
# CONFIG_ADXRS450 is not set
# CONFIG_BMG160 is not set
# CONFIG_FXAS21002C is not set
CONFIG_HID_SENSOR_GYRO_3D=y
# CONFIG_MPU3050_I2C is not set
# CONFIG_IIO_ST_GYRO_3AXIS is not set
# CONFIG_ITG3200 is not set
# end of Digital gyroscope sensors

#
# Health Sensors
#

#
# Heart Rate Monitors
#
# CONFIG_AFE4403 is not set
# CONFIG_AFE4404 is not set
# CONFIG_MAX30100 is not set
# CONFIG_MAX30102 is not set
# end of Heart Rate Monitors
# end of Health Sensors

#
# Humidity sensors
#
# CONFIG_AM2315 is not set
# CONFIG_DHT11 is not set
# CONFIG_ENS210 is not set
# CONFIG_HDC100X is not set
# CONFIG_HDC2010 is not set
# CONFIG_HDC3020 is not set
CONFIG_HID_SENSOR_HUMIDITY=y
# CONFIG_HTS221 is not set
# CONFIG_HTU21 is not set
# CONFIG_SI7005 is not set
# CONFIG_SI7020 is not set
# end of Humidity sensors

#
# Inertial measurement units
#
# CONFIG_ADIS16400 is not set
# CONFIG_ADIS16460 is not set
# CONFIG_ADIS16475 is not set
# CONFIG_ADIS16480 is not set
# CONFIG_ADIS16550 is not set
# CONFIG_BMI160_I2C is not set
# CONFIG_BMI160_SPI is not set
# CONFIG_BMI270_I2C is not set
# CONFIG_BMI270_SPI is not set
# CONFIG_BMI323_I2C is not set
# CONFIG_BMI323_SPI is not set
# CONFIG_BOSCH_BNO055_SERIAL is not set
# CONFIG_BOSCH_BNO055_I2C is not set
# CONFIG_FXOS8700_I2C is not set
# CONFIG_FXOS8700_SPI is not set
# CONFIG_KMX61 is not set
# CONFIG_INV_ICM42600_I2C is not set
# CONFIG_INV_ICM42600_SPI is not set
# CONFIG_INV_ICM42607_I2C is not set
# CONFIG_INV_ICM42607_SPI is not set
# CONFIG_INV_ICM45600_I2C is not set
# CONFIG_INV_ICM45600_SPI is not set
# CONFIG_INV_MPU6050_I2C is not set
# CONFIG_INV_MPU6050_SPI is not set
# CONFIG_SMI240 is not set
# CONFIG_SMI330_I2C is not set
# CONFIG_SMI330_SPI is not set
# CONFIG_IIO_ST_LSM6DSX is not set
# CONFIG_IIO_ST_LSM9DS0 is not set
# end of Inertial measurement units

#
# Light sensors
#
# CONFIG_ACPI_ALS is not set
# CONFIG_ADJD_S311 is not set
# CONFIG_ADUX1020 is not set
# CONFIG_AL3000A is not set
# CONFIG_AL3010 is not set
# CONFIG_AL3320A is not set
# CONFIG_APDS9160 is not set
# CONFIG_APDS9300 is not set
# CONFIG_APDS9306 is not set
# CONFIG_APDS9960 is not set
# CONFIG_APDS9999 is not set
# CONFIG_AS73211 is not set
# CONFIG_BH1745 is not set
# CONFIG_BH1750 is not set
# CONFIG_BH1780 is not set
# CONFIG_CM32181 is not set
# CONFIG_CM3232 is not set
# CONFIG_CM3323 is not set
# CONFIG_CM3605 is not set
# CONFIG_CM36651 is not set
# CONFIG_GP2AP002 is not set
# CONFIG_GP2AP020A00F is not set
# CONFIG_SENSORS_ISL29018 is not set
# CONFIG_SENSORS_ISL29028 is not set
# CONFIG_ISL29125 is not set
# CONFIG_ISL76682 is not set
CONFIG_HID_SENSOR_ALS=y
CONFIG_HID_SENSOR_PROX=y
# CONFIG_JSA1212 is not set
# CONFIG_ROHM_BU27034 is not set
# CONFIG_RPR0521 is not set
# CONFIG_LTR390 is not set
# CONFIG_LTR501 is not set
# CONFIG_LTRF216A is not set
# CONFIG_LV0104CS is not set
# CONFIG_MAX44000 is not set
# CONFIG_MAX44009 is not set
# CONFIG_NOA1305 is not set
# CONFIG_OPT3001 is not set
# CONFIG_OPT4001 is not set
# CONFIG_OPT4060 is not set
# CONFIG_PA12203001 is not set
# CONFIG_SI1133 is not set
# CONFIG_SI1145 is not set
# CONFIG_STK3310 is not set
# CONFIG_ST_UVIS25 is not set
# CONFIG_TCS3414 is not set
# CONFIG_TCS3472 is not set
# CONFIG_SENSORS_TSL2563 is not set
# CONFIG_TSL2583 is not set
# CONFIG_TSL2591 is not set
# CONFIG_TSL2772 is not set
# CONFIG_TSL4531 is not set
# CONFIG_US5182D is not set
# CONFIG_VCNL4000 is not set
# CONFIG_VCNL4035 is not set
# CONFIG_VEML3235 is not set
# CONFIG_VEML3328 is not set
# CONFIG_VEML6030 is not set
# CONFIG_VEML6040 is not set
# CONFIG_VEML6046X00 is not set
# CONFIG_VEML6070 is not set
# CONFIG_VEML6075 is not set
# CONFIG_VL6180 is not set
# CONFIG_ZOPT2201 is not set
# end of Light sensors

#
# Magnetometer sensors
#
# CONFIG_AF8133J is not set
# CONFIG_AK8974 is not set
# CONFIG_AK8975 is not set
# CONFIG_AK09911 is not set
# CONFIG_ALS31300 is not set
# CONFIG_BMC150_MAGN_I2C is not set
# CONFIG_BMC150_MAGN_SPI is not set
# CONFIG_MAG3110 is not set
CONFIG_HID_SENSOR_MAGNETOMETER_3D=y
# CONFIG_MMC35240 is not set
# CONFIG_MMC5633 is not set
# CONFIG_MMC5983 is not set
# CONFIG_IIO_ST_MAGN_3AXIS is not set
# CONFIG_INFINEON_TLV493D is not set
# CONFIG_QMC5883L is not set
# CONFIG_QMC6308 is not set
# CONFIG_SENSORS_HMC5843_I2C is not set
# CONFIG_SENSORS_HMC5843_SPI is not set
# CONFIG_SENSORS_RM3100_I2C is not set
# CONFIG_SENSORS_RM3100_SPI is not set
# CONFIG_SI7210 is not set
# CONFIG_TI_TMAG5273 is not set
# CONFIG_YAMAHA_YAS530 is not set
# end of Magnetometer sensors

#
# Multiplexers
#
# CONFIG_IIO_MUX is not set
# end of Multiplexers

#
# Inclinometer sensors
#
CONFIG_HID_SENSOR_INCLINOMETER_3D=y
CONFIG_HID_SENSOR_DEVICE_ROTATION=y
# end of Inclinometer sensors

#
# Triggers - standalone
#
# CONFIG_IIO_SYSFS_TRIGGER is not set
# end of Triggers - standalone

#
# Linear and angular position sensors
#
CONFIG_HID_SENSOR_CUSTOM_INTEL_HINGE=y
# end of Linear and angular position sensors

#
# Digital potentiometers
#
# CONFIG_AD5110 is not set
# CONFIG_AD5272 is not set
# CONFIG_DS1803 is not set
# CONFIG_MAX5432 is not set
# CONFIG_MAX5481 is not set
# CONFIG_MAX5487 is not set
# CONFIG_MCP4018 is not set
# CONFIG_MCP4131 is not set
# CONFIG_MCP4531 is not set
# CONFIG_MCP41010 is not set
# CONFIG_TPL0102 is not set
# CONFIG_X9250 is not set
# end of Digital potentiometers

#
# Digital potentiostats
#
# CONFIG_LMP91000 is not set
# end of Digital potentiostats

#
# Pressure sensors
#
# CONFIG_ABP060MG is not set
# CONFIG_ABP2030PA_I2C is not set
# CONFIG_ABP2030PA_SPI is not set
# CONFIG_ROHM_BM1390 is not set
# CONFIG_BMP280 is not set
# CONFIG_DLHL60D is not set
# CONFIG_DPS310 is not set
CONFIG_HID_SENSOR_PRESS=y
# CONFIG_HP03 is not set
# CONFIG_HSC030PA is not set
# CONFIG_ICP10100 is not set
# CONFIG_MPL115_I2C is not set
# CONFIG_MPL115_SPI is not set
# CONFIG_MPL3115 is not set
# CONFIG_MPRLS0025PA_I2C is not set
# CONFIG_MPRLS0025PA_SPI is not set
# CONFIG_MS5611 is not set
# CONFIG_MS5637 is not set
# CONFIG_SDP500 is not set
# CONFIG_IIO_ST_PRESS is not set
# CONFIG_T5403 is not set
# CONFIG_HP206C is not set
# CONFIG_ZPA2326 is not set
# CONFIG_ADP810 is not set
# end of Pressure sensors

#
# Lightning sensors
#
# CONFIG_AS3935 is not set
# end of Lightning sensors

#
# Proximity and distance sensors
#
# CONFIG_D3323AA is not set
# CONFIG_HX9023S is not set
# CONFIG_IRSD200 is not set
# CONFIG_ISL29501 is not set
# CONFIG_LIDAR_LITE_V2 is not set
# CONFIG_MB1232 is not set
# CONFIG_PING is not set
# CONFIG_RFD77402 is not set
# CONFIG_SRF04 is not set
# CONFIG_SX9310 is not set
# CONFIG_SX9324 is not set
# CONFIG_SX9360 is not set
# CONFIG_SX9500 is not set
# CONFIG_SRF08 is not set
# CONFIG_VCNL3020 is not set
# CONFIG_VL53L0X_I2C is not set
# CONFIG_VL53L1X_I2C is not set
# CONFIG_AW96103 is not set
# end of Proximity and distance sensors

#
# Resolver to digital converters
#
# CONFIG_AD2S90 is not set
# CONFIG_AD2S1200 is not set
# CONFIG_AD2S1210 is not set
# end of Resolver to digital converters

#
# Temperature sensors
#
# CONFIG_LTC2983 is not set
# CONFIG_MAXIM_THERMOCOUPLE is not set
CONFIG_HID_SENSOR_TEMP=y
# CONFIG_MLX90614 is not set
# CONFIG_MLX90632 is not set
# CONFIG_MLX90635 is not set
# CONFIG_TMP006 is not set
# CONFIG_TMP007 is not set
# CONFIG_TMP117 is not set
# CONFIG_TSYS01 is not set
# CONFIG_TSYS02D is not set
# CONFIG_MAX30208 is not set
# CONFIG_MAX31856 is not set
# CONFIG_MAX31865 is not set
# CONFIG_MCP9600 is not set
# end of Temperature sensors

# CONFIG_NTB is not set
# CONFIG_PWM is not set

#
# IRQ chip support
#
CONFIG_IRQCHIP=y
CONFIG_IRQ_MSI_LIB=y
# CONFIG_AL_FIC is not set
# CONFIG_XILINX_INTC is not set
# end of IRQ chip support

# CONFIG_IPACK_BUS is not set
CONFIG_RESET_CONTROLLER=y
# CONFIG_RESET_GPIO is not set
# CONFIG_RESET_INTEL_GW is not set
# CONFIG_RESET_SIMPLE is not set
# CONFIG_RESET_TI_SYSCON is not set
# CONFIG_RESET_TI_TPS380X is not set

#
# PHY Subsystem
#
CONFIG_GENERIC_PHY=y
# CONFIG_PHY_CAN_TRANSCEIVER is not set
CONFIG_PHY_GOOGLE_USB=y
CONFIG_USB_LGM_PHY=y
# CONFIG_PHY_NXP_PTN3222 is not set
# CONFIG_PHY_NXP_TJA1145 is not set

#
# PHY drivers for Broadcom platforms
#
# CONFIG_BCM_KONA_USB2_PHY is not set
# end of PHY drivers for Broadcom platforms

# CONFIG_PHY_CADENCE_TORRENT is not set
# CONFIG_PHY_CADENCE_DPHY is not set
# CONFIG_PHY_CADENCE_DPHY_RX is not set
# CONFIG_PHY_CADENCE_SIERRA is not set
# CONFIG_PHY_CADENCE_SALVO is not set
# CONFIG_PHY_INTEL_LGM_COMBO is not set
# CONFIG_PHY_INTEL_LGM_EMMC is not set
# CONFIG_PHY_PXA_28NM_HSIC is not set
# CONFIG_PHY_PXA_28NM_USB2 is not set
CONFIG_PHY_CPCAP_USB=y
# CONFIG_PHY_MAPPHONE_MDM6600 is not set
# CONFIG_PHY_OCELOT_SERDES is not set
CONFIG_PHY_QCOM_USB_HS=y
CONFIG_PHY_QCOM_USB_HSIC=y
CONFIG_PHY_SAMSUNG_USB2=y
# CONFIG_PHY_TI_DS125DF111 is not set
CONFIG_PHY_TUSB1210=y
# end of PHY Subsystem

# CONFIG_POWERCAP is not set
# CONFIG_MCB is not set

#
# Performance monitor support
#
# CONFIG_DWC_PCIE_PMU is not set
# end of Performance monitor support

CONFIG_RAS=y
CONFIG_USB4=y
CONFIG_USB4_CONFIGFS=y
# CONFIG_USB4_DEBUGFS_WRITE is not set
# CONFIG_USB4_DMA_TEST is not set
# CONFIG_USB4_STREAM is not set

#
# Android
#
CONFIG_ANDROID_BINDER_IPC=y
CONFIG_ANDROID_BINDERFS=y
CONFIG_ANDROID_BINDER_DEVICES="binder0,binder1"
# end of Android

CONFIG_LIBNVDIMM=y
CONFIG_BLK_DEV_PMEM=y
CONFIG_ND_CLAIM=y
CONFIG_ND_BTT=y
CONFIG_BTT=y
CONFIG_ND_PFN=y
CONFIG_NVDIMM_PFN=y
CONFIG_NVDIMM_DAX=y
CONFIG_OF_PMEM=y
# CONFIG_RAMDAX is not set
CONFIG_NVDIMM_KEYS=y
# CONFIG_NVDIMM_SECURITY_TEST is not set
CONFIG_DAX=y
CONFIG_DEV_DAX=y
# CONFIG_DEV_DAX_PMEM is not set
CONFIG_DEV_DAX_FSDEV=y
# CONFIG_DEV_DAX_KMEM is not set
CONFIG_NVMEM=y
CONFIG_NVMEM_SYSFS=y
CONFIG_NVMEM_LAYOUTS=y

#
# Layout Types
#
# CONFIG_NVMEM_LAYOUT_SL28_VPD is not set
# CONFIG_NVMEM_LAYOUT_ONIE_TLV is not set
# CONFIG_NVMEM_LAYOUT_U_BOOT_ENV is not set
# end of Layout Types

# CONFIG_EEPROM_AT24 is not set
# CONFIG_EEPROM_AT25 is not set
# CONFIG_EEPROM_93XX46 is not set
# CONFIG_EEPROM_EE1004 is not set
# CONFIG_EEPROM_M24LR is not set
# CONFIG_NVMEM_RMEM is not set
# CONFIG_NVMEM_U_BOOT_ENV is not set

#
# HW tracing support
#
# CONFIG_STM is not set
# CONFIG_INTEL_TH is not set
# end of HW tracing support

# CONFIG_FPGA is not set
# CONFIG_FSI is not set
CONFIG_TEE=y
CONFIG_TEE_DMABUF_HEAPS=y
CONFIG_OPTEE_STATIC_PROTMEM_POOL=y
# CONFIG_MUX_CORE is not set
# CONFIG_SIOX is not set
# CONFIG_SLIMBUS is not set
# CONFIG_INTERCONNECT is not set
CONFIG_COUNTER=y
# CONFIG_INTEL_QEP is not set
# CONFIG_INTERRUPT_CNT is not set
CONFIG_MOST=y
CONFIG_MOST_USB_HDM=y
# CONFIG_MOST_CDEV is not set
# CONFIG_MOST_SND is not set
# CONFIG_PECI is not set
# CONFIG_HTE is not set
# end of Device Drivers

#
# File systems
#
CONFIG_DCACHE_WORD_ACCESS=y
CONFIG_VALIDATE_FS_PARSER=y
CONFIG_FS_IOMAP=y
CONFIG_FS_STACK=y
CONFIG_BUFFER_HEAD=y
CONFIG_LEGACY_DIRECT_IO=y
# CONFIG_EXT2_FS is not set
CONFIG_EXT4_FS=y
CONFIG_EXT4_USE_FOR_EXT2=y
CONFIG_EXT4_FS_POSIX_ACL=y
CONFIG_EXT4_FS_SECURITY=y
# CONFIG_EXT4_DEBUG is not set
CONFIG_JBD2=y
# CONFIG_JBD2_DEBUG is not set
CONFIG_FS_MBCACHE=y
CONFIG_JFS_FS=y
CONFIG_JFS_POSIX_ACL=y
CONFIG_JFS_SECURITY=y
CONFIG_JFS_DEBUG=y
# CONFIG_JFS_STATISTICS is not set
CONFIG_XFS_FS=y
# CONFIG_XFS_SUPPORT_V4 is not set
# CONFIG_XFS_SUPPORT_ASCII_CI is not set
CONFIG_XFS_QUOTA=y
CONFIG_XFS_POSIX_ACL=y
CONFIG_XFS_RT=y
CONFIG_XFS_DRAIN_INTENTS=y
CONFIG_XFS_LIVE_HOOKS=y
CONFIG_XFS_MEMORY_BUFS=y
CONFIG_XFS_BTREE_IN_MEM=y
CONFIG_XFS_ONLINE_SCRUB=y
# CONFIG_XFS_ONLINE_SCRUB_STATS is not set
CONFIG_XFS_ONLINE_REPAIR=y
# CONFIG_XFS_WARN is not set
# CONFIG_XFS_DEBUG is not set
CONFIG_GFS2_FS=y
CONFIG_GFS2_FS_LOCKING_DLM=y
CONFIG_OCFS2_FS=y
CONFIG_OCFS2_FS_O2CB=y
CONFIG_OCFS2_FS_USERSPACE_CLUSTER=y
CONFIG_OCFS2_FS_STATS=y
# CONFIG_OCFS2_DEBUG_MASKLOG is not set
CONFIG_OCFS2_DEBUG_FS=y
CONFIG_BTRFS_FS=y
CONFIG_BTRFS_FS_POSIX_ACL=y
# CONFIG_BTRFS_FS_RUN_SANITY_TESTS is not set
# CONFIG_BTRFS_DEBUG is not set
CONFIG_BTRFS_ASSERT=y
# CONFIG_BTRFS_EXPERIMENTAL is not set
CONFIG_NILFS2_FS=y
CONFIG_F2FS_FS=y
CONFIG_F2FS_STAT_FS=y
CONFIG_F2FS_FS_XATTR=y
CONFIG_F2FS_FS_POSIX_ACL=y
CONFIG_F2FS_FS_SECURITY=y
CONFIG_F2FS_CHECK_FS=y
CONFIG_F2FS_FAULT_INJECTION=y
CONFIG_F2FS_FS_COMPRESSION=y
CONFIG_F2FS_FS_LZO=y
CONFIG_F2FS_FS_LZORLE=y
CONFIG_F2FS_FS_LZ4=y
CONFIG_F2FS_FS_LZ4HC=y
CONFIG_F2FS_FS_ZSTD=y
# CONFIG_F2FS_IOSTAT is not set
# CONFIG_F2FS_UNFAIR_RWSEM is not set
CONFIG_ZONEFS_FS=y
CONFIG_FS_DAX=y
CONFIG_FS_DAX_PMD=y
CONFIG_FS_POSIX_ACL=y
CONFIG_EXPORTFS=y
CONFIG_EXPORTFS_BLOCK_OPS=y
CONFIG_FILE_LOCKING=y
CONFIG_FS_ENCRYPTION=y
CONFIG_FS_ENCRYPTION_ALGS=y
CONFIG_FS_ENCRYPTION_INLINE_CRYPT=y
CONFIG_FS_VERITY=y
CONFIG_FS_VERITY_BUILTIN_SIGNATURES=y
CONFIG_FSNOTIFY=y
CONFIG_DNOTIFY=y
CONFIG_INOTIFY_USER=y
CONFIG_FANOTIFY=y
CONFIG_FANOTIFY_ACCESS_PERMISSIONS=y
CONFIG_QUOTA=y
CONFIG_QUOTA_NETLINK_INTERFACE=y
# CONFIG_QUOTA_DEBUG is not set
CONFIG_QUOTA_TREE=y
# CONFIG_QFMT_V1 is not set
CONFIG_QFMT_V2=y
CONFIG_QUOTACTL=y
CONFIG_AUTOFS_FS=y
CONFIG_FUSE_FS=y
CONFIG_CUSE=y
CONFIG_VIRTIO_FS=y
CONFIG_FUSE_DAX=y
# CONFIG_FUSE_PASSTHROUGH is not set
CONFIG_FUSE_IO_URING=y
CONFIG_OVERLAY_FS=y
CONFIG_OVERLAY_FS_REDIRECT_DIR=y
CONFIG_OVERLAY_FS_REDIRECT_ALWAYS_FOLLOW=y
CONFIG_OVERLAY_FS_INDEX=y
# CONFIG_OVERLAY_FS_NFS_EXPORT is not set
# CONFIG_OVERLAY_FS_XINO_AUTO is not set
# CONFIG_OVERLAY_FS_METACOPY is not set
CONFIG_OVERLAY_FS_DEBUG=y

#
# Caches
#
CONFIG_NETFS_SUPPORT=y
# CONFIG_NETFS_STATS is not set
# CONFIG_NETFS_DEBUG is not set
CONFIG_FSCACHE=y
# CONFIG_FSCACHE_STATS is not set
CONFIG_CACHEFILES=y
# CONFIG_CACHEFILES_DEBUG is not set
# CONFIG_CACHEFILES_ERROR_INJECTION is not set
# end of Caches

#
# CD-ROM/DVD Filesystems
#
CONFIG_ISO9660_FS=y
CONFIG_JOLIET=y
CONFIG_ZISOFS=y
CONFIG_UDF_FS=y
# end of CD-ROM/DVD Filesystems

#
# DOS/FAT/EXFAT/NT Filesystems
#
CONFIG_FAT_FS=y
CONFIG_MSDOS_FS=y
CONFIG_VFAT_FS=y
CONFIG_FAT_DEFAULT_CODEPAGE=437
CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1"
# CONFIG_FAT_DEFAULT_UTF8 is not set
CONFIG_EXFAT_FS=y
CONFIG_EXFAT_DEFAULT_IOCHARSET="utf8"
# CONFIG_NTFS_FS is not set
CONFIG_NTFS3_FS=y
# CONFIG_NTFS3_64BIT_CLUSTER is not set
CONFIG_NTFS3_LZX_XPRESS=y
CONFIG_NTFS3_FS_POSIX_ACL=y
# end of DOS/FAT/EXFAT/NT Filesystems

#
# Pseudo filesystems
#
CONFIG_PROC_FS=y
CONFIG_PROC_KCORE=y
CONFIG_PROC_VMCORE=y
# CONFIG_PROC_VMCORE_DEVICE_DUMP is not set
CONFIG_SYSCTL=y
CONFIG_PROC_PAGE_MONITOR=y
CONFIG_PROC_CHILDREN=y
CONFIG_PROC_PID_ARCH_STATUS=y
CONFIG_KERNFS=y
CONFIG_SYSFS=y
CONFIG_TMPFS=y
CONFIG_TMPFS_POSIX_ACL=y
CONFIG_TMPFS_XATTR=y
# CONFIG_TMPFS_INODE64 is not set
CONFIG_TMPFS_QUOTA=y
CONFIG_ARCH_SUPPORTS_HUGETLBFS=y
CONFIG_HUGETLBFS=y
# CONFIG_HUGETLB_PAGE_OPTIMIZE_VMEMMAP_DEFAULT_ON is not set
CONFIG_HUGETLB_PAGE=y
CONFIG_HUGETLB_PAGE_OPTIMIZE_VMEMMAP=y
CONFIG_HUGETLB_PMD_PAGE_TABLE_SHARING=y
CONFIG_ARCH_HAS_GIGANTIC_PAGE=y
CONFIG_CONFIGFS_FS=y
# end of Pseudo filesystems

CONFIG_MISC_FILESYSTEMS=y
CONFIG_ORANGEFS_FS=y
CONFIG_ADFS_FS=y
# CONFIG_ADFS_FS_RW is not set
CONFIG_AFFS_FS=y
CONFIG_ECRYPT_FS=y
CONFIG_ECRYPT_FS_MESSAGING=y
CONFIG_HFS_FS=y
CONFIG_HFSPLUS_FS=y
CONFIG_BEFS_FS=y
# CONFIG_BEFS_DEBUG is not set
CONFIG_BFS_FS=y
CONFIG_JFFS2_FS=y
CONFIG_JFFS2_FS_DEBUG=0
CONFIG_JFFS2_FS_WRITEBUFFER=y
# CONFIG_JFFS2_FS_WBUF_VERIFY is not set
CONFIG_JFFS2_SUMMARY=y
CONFIG_JFFS2_FS_XATTR=y
CONFIG_JFFS2_FS_POSIX_ACL=y
CONFIG_JFFS2_FS_SECURITY=y
CONFIG_JFFS2_COMPRESSION_OPTIONS=y
CONFIG_JFFS2_ZLIB=y
CONFIG_JFFS2_LZO=y
CONFIG_JFFS2_RTIME=y
CONFIG_JFFS2_RUBIN=y
# CONFIG_JFFS2_CMODE_NONE is not set
CONFIG_JFFS2_CMODE_PRIORITY=y
# CONFIG_JFFS2_CMODE_SIZE is not set
# CONFIG_JFFS2_CMODE_FAVOURLZO is not set
CONFIG_UBIFS_FS=y
CONFIG_UBIFS_FS_ADVANCED_COMPR=y
CONFIG_UBIFS_FS_LZO=y
CONFIG_UBIFS_FS_ZLIB=y
CONFIG_UBIFS_FS_ZSTD=y
CONFIG_UBIFS_ATIME_SUPPORT=y
CONFIG_UBIFS_FS_XATTR=y
CONFIG_UBIFS_FS_SECURITY=y
# CONFIG_UBIFS_FS_AUTHENTICATION is not set
CONFIG_CRAMFS=y
CONFIG_CRAMFS_BLOCKDEV=y
CONFIG_CRAMFS_MTD=y
CONFIG_SQUASHFS=y
# CONFIG_SQUASHFS_FILE_CACHE is not set
CONFIG_SQUASHFS_FILE_DIRECT=y
CONFIG_SQUASHFS_DECOMP_MULTI=y
# CONFIG_SQUASHFS_CHOICE_DECOMP_BY_MOUNT is not set
# CONFIG_SQUASHFS_COMPILE_DECOMP_SINGLE is not set
CONFIG_SQUASHFS_COMPILE_DECOMP_MULTI=y
# CONFIG_SQUASHFS_COMPILE_DECOMP_MULTI_PERCPU is not set
# CONFIG_SQUASHFS_MOUNT_DECOMP_THREADS is not set
CONFIG_SQUASHFS_XATTR=y
# CONFIG_SQUASHFS_COMP_CACHE_FULL is not set
CONFIG_SQUASHFS_ZLIB=y
CONFIG_SQUASHFS_LZ4=y
CONFIG_SQUASHFS_LZO=y
CONFIG_SQUASHFS_XZ=y
CONFIG_SQUASHFS_ZSTD=y
CONFIG_SQUASHFS_4K_DEVBLK_SIZE=y
# CONFIG_SQUASHFS_EMBEDDED is not set
CONFIG_SQUASHFS_FRAGMENT_CACHE_SIZE=3
CONFIG_MINIX_FS=y
CONFIG_OMFS_FS=y
CONFIG_HPFS_FS=y
CONFIG_QNX4FS_FS=y
CONFIG_QNX6FS_FS=y
# CONFIG_QNX6FS_DEBUG is not set
CONFIG_ROMFS_FS=y
# CONFIG_ROMFS_BACKED_BY_BLOCK is not set
# CONFIG_ROMFS_BACKED_BY_MTD is not set
CONFIG_ROMFS_BACKED_BY_BOTH=y
CONFIG_ROMFS_ON_BLOCK=y
CONFIG_ROMFS_ON_MTD=y
CONFIG_PSTORE=y
CONFIG_PSTORE_DEFAULT_KMSG_BYTES=10240
CONFIG_PSTORE_COMPRESS=y
# CONFIG_PSTORE_CONSOLE is not set
# CONFIG_PSTORE_PMSG is not set
# CONFIG_PSTORE_RAM is not set
# CONFIG_PSTORE_BLK is not set
CONFIG_UFS_FS=y
CONFIG_UFS_FS_WRITE=y
# CONFIG_UFS_DEBUG is not set
CONFIG_EROFS_FS=y
# CONFIG_EROFS_FS_DEBUG is not set
CONFIG_EROFS_FS_XATTR=y
CONFIG_EROFS_FS_POSIX_ACL=y
CONFIG_EROFS_FS_SECURITY=y
# CONFIG_EROFS_FS_BACKED_BY_FILE is not set
CONFIG_EROFS_FS_ZIP=y
# CONFIG_EROFS_FS_ZIP_LZMA is not set
# CONFIG_EROFS_FS_ZIP_DEFLATE is not set
# CONFIG_EROFS_FS_ZIP_ZSTD is not set
# CONFIG_EROFS_FS_ZIP_ACCEL is not set
# CONFIG_EROFS_FS_PCPU_KTHREAD is not set
# CONFIG_EROFS_FS_PAGE_CACHE_SHARE is not set
CONFIG_NETWORK_FILESYSTEMS=y
CONFIG_NFS_FS=y
# CONFIG_NFS_V2 is not set
CONFIG_NFS_V3=y
CONFIG_NFS_V3_ACL=y
CONFIG_NFS_V4=y
# CONFIG_NFS_SWAP is not set
CONFIG_NFS_V4_0=y
CONFIG_NFS_V4_2=y
CONFIG_PNFS_FILE_LAYOUT=y
CONFIG_PNFS_BLOCK=y
CONFIG_PNFS_FLEXFILE_LAYOUT=y
CONFIG_NFS_V4_1_IMPLEMENTATION_ID_DOMAIN="kernel.org"
# CONFIG_NFS_V4_1_MIGRATION is not set
CONFIG_NFS_V4_SECURITY_LABEL=y
CONFIG_ROOT_NFS=y
CONFIG_NFS_FSCACHE=y
# CONFIG_NFS_USE_LEGACY_DNS is not set
CONFIG_NFS_USE_KERNEL_DNS=y
# CONFIG_NFS_DISABLE_UDP_SUPPORT is not set
CONFIG_NFS_V4_2_READ_PLUS=y
CONFIG_NFSD=y
# CONFIG_NFSD_V2 is not set
CONFIG_NFSD_V3_ACL=y
CONFIG_NFSD_V4=y
CONFIG_NFSD_PNFS=y
CONFIG_NFSD_BLOCKLAYOUT=y
CONFIG_NFSD_SCSILAYOUT=y
CONFIG_NFSD_FLEXFILELAYOUT=y
CONFIG_NFSD_V4_2_INTER_SSC=y
CONFIG_NFSD_V4_SECURITY_LABEL=y
# CONFIG_NFSD_LEGACY_CLIENT_TRACKING is not set
# CONFIG_NFSD_V4_POSIX_ACLS is not set
CONFIG_GRACE_PERIOD=y
CONFIG_LOCKD=y
CONFIG_LOCKD_V4=y
CONFIG_NFS_ACL_SUPPORT=y
CONFIG_NFS_COMMON=y
# CONFIG_NFS_LOCALIO is not set
CONFIG_NFS_V4_2_SSC_HELPER=y
CONFIG_SUNRPC=y
CONFIG_SUNRPC_GSS=y
CONFIG_SUNRPC_BACKCHANNEL=y
CONFIG_RPCSEC_GSS_KRB5=y
# CONFIG_SUNRPC_DEBUG is not set
# CONFIG_SUNRPC_XPRT_RDMA is not set
CONFIG_CEPH_FS=y
CONFIG_CEPH_FSCACHE=y
CONFIG_CEPH_FS_POSIX_ACL=y
# CONFIG_CEPH_FS_SECURITY_LABEL is not set
CONFIG_CIFS=y
# CONFIG_CIFS_STATS2 is not set
CONFIG_CIFS_ALLOW_INSECURE_LEGACY=y
CONFIG_CIFS_UPCALL=y
CONFIG_CIFS_XATTR=y
CONFIG_CIFS_POSIX=y
CONFIG_CIFS_DEBUG=y
# CONFIG_CIFS_DEBUG2 is not set
# CONFIG_CIFS_DEBUG_DUMP_KEYS is not set
CONFIG_CIFS_DFS_UPCALL=y
CONFIG_CIFS_SWN_UPCALL=y
CONFIG_CIFS_SMB_DIRECT=y
CONFIG_CIFS_FSCACHE=y
# CONFIG_CIFS_ROOT is not set
# CONFIG_CIFS_COMPRESSION is not set
CONFIG_SMB_SERVER=y
# CONFIG_SMB_SERVER_SMBDIRECT is not set
# CONFIG_SMB_SERVER_CHECK_CAP_NET_ADMIN is not set
# CONFIG_SMB_SERVER_KERBEROS5 is not set
CONFIG_SMBDIRECT=y
CONFIG_SMBFS=y
# CONFIG_CODA_FS is not set
CONFIG_AFS_FS=y
# CONFIG_AFS_DEBUG is not set
CONFIG_AFS_FSCACHE=y
# CONFIG_AFS_DEBUG_CURSOR is not set
CONFIG_9P_FS=y
CONFIG_9P_FSCACHE=y
CONFIG_9P_FS_POSIX_ACL=y
CONFIG_9P_FS_SECURITY=y
CONFIG_NLS=y
CONFIG_NLS_DEFAULT="utf8"
CONFIG_NLS_CODEPAGE_437=y
CONFIG_NLS_CODEPAGE_737=y
CONFIG_NLS_CODEPAGE_775=y
CONFIG_NLS_CODEPAGE_850=y
CONFIG_NLS_CODEPAGE_852=y
CONFIG_NLS_CODEPAGE_855=y
CONFIG_NLS_CODEPAGE_857=y
CONFIG_NLS_CODEPAGE_860=y
CONFIG_NLS_CODEPAGE_861=y
CONFIG_NLS_CODEPAGE_862=y
CONFIG_NLS_CODEPAGE_863=y
CONFIG_NLS_CODEPAGE_864=y
CONFIG_NLS_CODEPAGE_865=y
CONFIG_NLS_CODEPAGE_866=y
CONFIG_NLS_CODEPAGE_869=y
CONFIG_NLS_CODEPAGE_936=y
CONFIG_NLS_CODEPAGE_950=y
CONFIG_NLS_CODEPAGE_932=y
CONFIG_NLS_CODEPAGE_949=y
CONFIG_NLS_CODEPAGE_874=y
CONFIG_NLS_ISO8859_8=y
CONFIG_NLS_CODEPAGE_1250=y
CONFIG_NLS_CODEPAGE_1251=y
CONFIG_NLS_ASCII=y
CONFIG_NLS_ISO8859_1=y
CONFIG_NLS_ISO8859_2=y
CONFIG_NLS_ISO8859_3=y
CONFIG_NLS_ISO8859_4=y
CONFIG_NLS_ISO8859_5=y
CONFIG_NLS_ISO8859_6=y
CONFIG_NLS_ISO8859_7=y
CONFIG_NLS_ISO8859_9=y
CONFIG_NLS_ISO8859_13=y
CONFIG_NLS_ISO8859_14=y
CONFIG_NLS_ISO8859_15=y
CONFIG_NLS_KOI8_R=y
CONFIG_NLS_KOI8_U=y
CONFIG_NLS_MAC_ROMAN=y
CONFIG_NLS_MAC_CELTIC=y
CONFIG_NLS_MAC_CENTEURO=y
CONFIG_NLS_MAC_CROATIAN=y
CONFIG_NLS_MAC_CYRILLIC=y
CONFIG_NLS_MAC_GAELIC=y
CONFIG_NLS_MAC_GREEK=y
CONFIG_NLS_MAC_ICELAND=y
CONFIG_NLS_MAC_INUIT=y
CONFIG_NLS_MAC_ROMANIAN=y
CONFIG_NLS_MAC_TURKISH=y
CONFIG_NLS_UTF8=y
CONFIG_NLS_UCS2_UTILS=y
CONFIG_DLM=y
# CONFIG_DLM_DEBUG is not set
CONFIG_UNICODE=y
CONFIG_IO_WQ=y
# end of File systems

#
# Security options
#
CONFIG_KEYS=y
CONFIG_KEYS_REQUEST_CACHE=y
CONFIG_PERSISTENT_KEYRINGS=y
CONFIG_BIG_KEYS=y
CONFIG_TRUSTED_KEYS=y
# CONFIG_TRUSTED_KEYS_TPM is not set
# CONFIG_TRUSTED_KEYS_TEE is not set

#
# No trust source selected!
#
CONFIG_ENCRYPTED_KEYS=y
# CONFIG_USER_DECRYPTED_DATA is not set
CONFIG_KEY_DH_OPERATIONS=y
CONFIG_KEY_NOTIFICATIONS=y
# CONFIG_SECURITY_DMESG_RESTRICT is not set
# CONFIG_PROC_MEM_ALWAYS_FORCE is not set
CONFIG_PROC_MEM_FORCE_PTRACE=y
# CONFIG_PROC_MEM_NO_FORCE is not set
CONFIG_SECURITY=y
CONFIG_HAS_SECURITY_AUDIT=y
CONFIG_SECURITYFS=y
CONFIG_SECURITY_NETWORK=y
CONFIG_SECURITY_INFINIBAND=y
CONFIG_SECURITY_NETWORK_XFRM=y
CONFIG_SECURITY_PATH=y
# CONFIG_INTEL_TXT is not set
CONFIG_LSM_MMAP_MIN_ADDR=65536
# CONFIG_STATIC_USERMODEHELPER is not set
CONFIG_SECURITY_SELINUX=y
CONFIG_SECURITY_SELINUX_BOOTPARAM=y
CONFIG_SECURITY_SELINUX_DEVELOP=y
CONFIG_SECURITY_SELINUX_AVC_STATS=y
CONFIG_SECURITY_SELINUX_SIDTAB_HASH_BITS=9
CONFIG_SECURITY_SELINUX_SID2STR_CACHE_SIZE=256
CONFIG_SECURITY_SELINUX_AVC_HASH_BITS=9
# CONFIG_SECURITY_SELINUX_DEBUG is not set
# CONFIG_SECURITY_SMACK is not set
CONFIG_SECURITY_TOMOYO=y
CONFIG_SECURITY_TOMOYO_MAX_ACCEPT_ENTRY=64
CONFIG_SECURITY_TOMOYO_MAX_AUDIT_LOG=32
CONFIG_SECURITY_TOMOYO_OMIT_USERSPACE_LOADER=y
CONFIG_SECURITY_TOMOYO_INSECURE_BUILTIN_SETTING=y
# CONFIG_SECURITY_APPARMOR is not set
# CONFIG_SECURITY_LOADPIN is not set
CONFIG_SECURITY_YAMA=y
CONFIG_SECURITY_SAFESETID=y
CONFIG_SECURITY_LOCKDOWN_LSM=y
CONFIG_SECURITY_LOCKDOWN_LSM_EARLY=y
CONFIG_LOCK_DOWN_KERNEL_FORCE_NONE=y
# CONFIG_LOCK_DOWN_KERNEL_FORCE_INTEGRITY is not set
# CONFIG_LOCK_DOWN_KERNEL_FORCE_CONFIDENTIALITY is not set
CONFIG_SECURITY_LANDLOCK=y
CONFIG_SECURITY_LANDLOCK_LOG=y
# CONFIG_SECURITY_IPE is not set
CONFIG_INTEGRITY=y
CONFIG_INTEGRITY_SIGNATURE=y
CONFIG_INTEGRITY_ASYMMETRIC_KEYS=y
CONFIG_INTEGRITY_TRUSTED_KEYRING=y
CONFIG_INTEGRITY_AUDIT=y
CONFIG_IMA=y
CONFIG_IMA_MEASURE_PCR_IDX=10
CONFIG_IMA_LSM_RULES=y
CONFIG_IMA_NG_TEMPLATE=y
# CONFIG_IMA_SIG_TEMPLATE is not set
CONFIG_IMA_DEFAULT_TEMPLATE="ima-ng"
# CONFIG_IMA_DEFAULT_HASH_SHA1 is not set
CONFIG_IMA_DEFAULT_HASH_SHA256=y
# CONFIG_IMA_DEFAULT_HASH_SHA512 is not set
# CONFIG_IMA_DEFAULT_HASH_WP512 is not set
CONFIG_IMA_DEFAULT_HASH="sha256"
CONFIG_IMA_WRITE_POLICY=y
CONFIG_IMA_READ_POLICY=y
CONFIG_IMA_APPRAISE=y
# CONFIG_IMA_ARCH_POLICY is not set
# CONFIG_IMA_APPRAISE_BUILD_POLICY is not set
# CONFIG_IMA_APPRAISE_BOOTPARAM is not set
CONFIG_IMA_APPRAISE_MODSIG=y
# CONFIG_IMA_KEYRINGS_PERMIT_SIGNED_BY_BUILTIN_OR_SECONDARY is not set
# CONFIG_IMA_BLACKLIST_KEYRING is not set
# CONFIG_IMA_LOAD_X509 is not set
CONFIG_IMA_MEASURE_ASYMMETRIC_KEYS=y
CONFIG_IMA_QUEUE_EARLY_BOOT_KEYS=y
# CONFIG_IMA_DISABLE_HTABLE is not set
# CONFIG_IMA_STAGING is not set
# CONFIG_IMA_INIT_LATE_SYNC is not set
CONFIG_EVM=y
CONFIG_EVM_ATTR_FSUUID=y
CONFIG_EVM_ADD_XATTRS=y
# CONFIG_EVM_LOAD_X509 is not set
CONFIG_DEFAULT_SECURITY_SELINUX=y
# CONFIG_DEFAULT_SECURITY_TOMOYO is not set
# CONFIG_DEFAULT_SECURITY_DAC is not set
CONFIG_LSM="landlock,lockdown,yama,safesetid,integrity,tomoyo,selinux,bpf"

#
# Kernel hardening options
#

#
# Memory initialization
#
CONFIG_CC_HAS_AUTO_VAR_INIT_PATTERN=y
CONFIG_CC_HAS_AUTO_VAR_INIT_ZERO_BARE=y
CONFIG_CC_HAS_AUTO_VAR_INIT_ZERO=y
# CONFIG_INIT_STACK_NONE is not set
# CONFIG_INIT_STACK_ALL_PATTERN is not set
CONFIG_INIT_STACK_ALL_ZERO=y
CONFIG_INIT_ON_ALLOC_DEFAULT_ON=y
# CONFIG_INIT_ON_FREE_DEFAULT_ON is not set
CONFIG_CC_HAS_ZERO_CALL_USED_REGS=y
# CONFIG_ZERO_CALL_USED_REGS is not set
# end of Memory initialization

#
# Bounds checking
#
CONFIG_FORTIFY_SOURCE=y
CONFIG_HARDENED_USERCOPY=y
# CONFIG_HARDENED_USERCOPY_DEFAULT_ON is not set
# end of Bounds checking

#
# Hardening of kernel data structures
#
CONFIG_LIST_HARDENED=y
CONFIG_BUG_ON_DATA_CORRUPTION=y
# end of Hardening of kernel data structures

CONFIG_RANDSTRUCT_NONE=y
# end of Kernel hardening options
# end of Security options

CONFIG_ASYNC_CORE=y
CONFIG_ASYNC_MEMCPY=y
CONFIG_ASYNC_XOR=y
CONFIG_ASYNC_PQ=y
CONFIG_ASYNC_RAID6_RECOV=y
CONFIG_CRYPTO=y

#
# Crypto core or helper
#
CONFIG_CRYPTO_ALGAPI=y
CONFIG_CRYPTO_ALGAPI2=y
CONFIG_CRYPTO_AEAD=y
CONFIG_CRYPTO_AEAD2=y
CONFIG_CRYPTO_SIG=y
CONFIG_CRYPTO_SIG2=y
CONFIG_CRYPTO_SKCIPHER=y
CONFIG_CRYPTO_SKCIPHER2=y
CONFIG_CRYPTO_HASH=y
CONFIG_CRYPTO_HASH2=y
CONFIG_CRYPTO_RNG=y
CONFIG_CRYPTO_RNG2=y
CONFIG_CRYPTO_AKCIPHER2=y
CONFIG_CRYPTO_AKCIPHER=y
CONFIG_CRYPTO_KPP2=y
CONFIG_CRYPTO_KPP=y
CONFIG_CRYPTO_ACOMP2=y
CONFIG_CRYPTO_ACOMP=y
CONFIG_CRYPTO_MANAGER=y
CONFIG_CRYPTO_MANAGER2=y
CONFIG_CRYPTO_USER=y
# CONFIG_CRYPTO_SELFTESTS is not set
CONFIG_CRYPTO_NULL=y
CONFIG_CRYPTO_PCRYPT=y
# CONFIG_CRYPTO_CRYPTD is not set
CONFIG_CRYPTO_AUTHENC=y
CONFIG_CRYPTO_KRB5ENC=y
# CONFIG_CRYPTO_BENCHMARK is not set
CONFIG_CRYPTO_ENGINE=y
# end of Crypto core or helper

#
# Public-key cryptography
#
CONFIG_CRYPTO_RSA=y
CONFIG_CRYPTO_DH=y
# CONFIG_CRYPTO_DH_RFC7919_GROUPS is not set
CONFIG_CRYPTO_ECC=y
CONFIG_CRYPTO_ECDH=y
# CONFIG_CRYPTO_ECDSA is not set
CONFIG_CRYPTO_ECRDSA=y
CONFIG_CRYPTO_MLDSA=y
# end of Public-key cryptography

#
# Block ciphers
#
CONFIG_CRYPTO_AES=y
CONFIG_CRYPTO_ANUBIS=y
CONFIG_CRYPTO_ARIA=y
CONFIG_CRYPTO_BLOWFISH=y
CONFIG_CRYPTO_BLOWFISH_COMMON=y
CONFIG_CRYPTO_CAMELLIA=y
CONFIG_CRYPTO_CAST_COMMON=y
CONFIG_CRYPTO_CAST5=y
CONFIG_CRYPTO_CAST6=y
CONFIG_CRYPTO_DES=y
CONFIG_CRYPTO_KHAZAD=y
CONFIG_CRYPTO_SEED=y
CONFIG_CRYPTO_SERPENT=y
CONFIG_CRYPTO_SM4=y
CONFIG_CRYPTO_SM4_GENERIC=y
CONFIG_CRYPTO_TEA=y
CONFIG_CRYPTO_TWOFISH=y
CONFIG_CRYPTO_TWOFISH_COMMON=y
# end of Block ciphers

#
# Length-preserving ciphers and modes
#
CONFIG_CRYPTO_ADIANTUM=y
CONFIG_CRYPTO_ARC4=y
CONFIG_CRYPTO_CHACHA20=y
CONFIG_CRYPTO_CBC=y
CONFIG_CRYPTO_CTR=y
CONFIG_CRYPTO_CTS=y
CONFIG_CRYPTO_ECB=y
CONFIG_CRYPTO_HCTR2=y
CONFIG_CRYPTO_LRW=y
CONFIG_CRYPTO_XCTR=y
CONFIG_CRYPTO_XTS=y
# end of Length-preserving ciphers and modes

#
# AEAD (authenticated encryption with associated data) ciphers
#
CONFIG_CRYPTO_AEGIS128=y
CONFIG_CRYPTO_CHACHA20POLY1305=y
CONFIG_CRYPTO_CCM=y
CONFIG_CRYPTO_GCM=y
CONFIG_CRYPTO_GENIV=y
CONFIG_CRYPTO_SEQIV=y
CONFIG_CRYPTO_ECHAINIV=y
CONFIG_CRYPTO_ESSIV=y
# end of AEAD (authenticated encryption with associated data) ciphers

#
# Hashes, digests, and MACs
#
# CONFIG_CRYPTO_BLAKE2B is not set
CONFIG_CRYPTO_CMAC=y
CONFIG_CRYPTO_HMAC=y
# CONFIG_CRYPTO_MD4 is not set
# CONFIG_CRYPTO_MD5 is not set
CONFIG_CRYPTO_RMD160=y
CONFIG_CRYPTO_SHA1=y
CONFIG_CRYPTO_SHA256=y
CONFIG_CRYPTO_SHA512=y
CONFIG_CRYPTO_SHA3=y
# CONFIG_CRYPTO_SM3 is not set
CONFIG_CRYPTO_STREEBOG=y
CONFIG_CRYPTO_WP512=y
CONFIG_CRYPTO_XCBC=y
# CONFIG_CRYPTO_XXHASH is not set
# end of Hashes, digests, and MACs

#
# CRCs (cyclic redundancy checks)
#
# CONFIG_CRYPTO_CRC32C is not set
# CONFIG_CRYPTO_CRC32 is not set
# end of CRCs (cyclic redundancy checks)

#
# Compression
#
CONFIG_CRYPTO_DEFLATE=y
CONFIG_CRYPTO_LZO=y
CONFIG_CRYPTO_842=y
CONFIG_CRYPTO_LZ4=y
CONFIG_CRYPTO_LZ4HC=y
CONFIG_CRYPTO_ZSTD=y
# end of Compression

#
# Random number generation
#
# CONFIG_CRYPTO_DRBG is not set
# CONFIG_CRYPTO_JITTERENTROPY is not set
CONFIG_CRYPTO_KDF800108_CTR=y
# end of Random number generation

#
# Userspace interface (deprecated)
#
CONFIG_CRYPTO_USER_API=y
CONFIG_CRYPTO_USER_API_HASH=y
CONFIG_CRYPTO_USER_API_SKCIPHER=y
CONFIG_CRYPTO_USER_API_RNG=y
CONFIG_CRYPTO_USER_API_AEAD=y
CONFIG_CRYPTO_USER_API_ENABLE_OBSOLETE=y
# end of Userspace interface (deprecated)

#
# Accelerated Cryptographic Algorithms for CPU (x86)
#
CONFIG_CRYPTO_AES_NI_INTEL=y
CONFIG_CRYPTO_BLOWFISH_X86_64=y
CONFIG_CRYPTO_CAMELLIA_X86_64=y
CONFIG_CRYPTO_CAMELLIA_AESNI_AVX_X86_64=y
CONFIG_CRYPTO_CAMELLIA_AESNI_AVX2_X86_64=y
CONFIG_CRYPTO_CAST5_AVX_X86_64=y
CONFIG_CRYPTO_CAST6_AVX_X86_64=y
CONFIG_CRYPTO_SERPENT_SSE2_X86_64=y
CONFIG_CRYPTO_SERPENT_AVX_X86_64=y
CONFIG_CRYPTO_SERPENT_AVX2_X86_64=y
CONFIG_CRYPTO_SM4_AESNI_AVX_X86_64=y
CONFIG_CRYPTO_SM4_AESNI_AVX2_X86_64=y
CONFIG_CRYPTO_TWOFISH_X86_64=y
CONFIG_CRYPTO_TWOFISH_X86_64_3WAY=y
CONFIG_CRYPTO_TWOFISH_AVX_X86_64=y
CONFIG_CRYPTO_ARIA_AESNI_AVX_X86_64=y
# CONFIG_CRYPTO_ARIA_AESNI_AVX2_X86_64 is not set
# CONFIG_CRYPTO_ARIA_GFNI_AVX512_X86_64 is not set
CONFIG_CRYPTO_AEGIS128_AESNI_SSE2=y
# end of Accelerated Cryptographic Algorithms for CPU (x86)

CONFIG_CRYPTO_HW=y
CONFIG_CRYPTO_DEV_PADLOCK=y
CONFIG_CRYPTO_DEV_PADLOCK_AES=y
CONFIG_CRYPTO_DEV_PADLOCK_SHA=y
# CONFIG_CRYPTO_DEV_ATMEL_ECC is not set
# CONFIG_CRYPTO_DEV_ATMEL_SHA204A is not set
CONFIG_CRYPTO_DEV_CCP=y
CONFIG_CRYPTO_DEV_CCP_DD=y
# CONFIG_CRYPTO_DEV_SP_CCP is not set
# CONFIG_CRYPTO_DEV_SP_PSP is not set
# CONFIG_CRYPTO_DEV_NITROX_CNN55XX is not set
CONFIG_CRYPTO_DEV_QAT=y
CONFIG_CRYPTO_DEV_QAT_DH895xCC=y
CONFIG_CRYPTO_DEV_QAT_C3XXX=y
CONFIG_CRYPTO_DEV_QAT_C62X=y
# CONFIG_CRYPTO_DEV_QAT_4XXX is not set
# CONFIG_CRYPTO_DEV_QAT_420XX is not set
# CONFIG_CRYPTO_DEV_QAT_6XXX is not set
CONFIG_CRYPTO_DEV_QAT_DH895xCCVF=y
CONFIG_CRYPTO_DEV_QAT_C3XXXVF=y
CONFIG_CRYPTO_DEV_QAT_C62XVF=y
# CONFIG_CRYPTO_DEV_QAT_ERROR_INJECTION is not set
CONFIG_CRYPTO_DEV_VIRTIO=y
# CONFIG_CRYPTO_DEV_SAFEXCEL is not set
# CONFIG_CRYPTO_DEV_CCREE is not set
# CONFIG_CRYPTO_DEV_AMLOGIC_GXL is not set
CONFIG_ASYMMETRIC_KEY_TYPE=y
CONFIG_ASYMMETRIC_PUBLIC_KEY_SUBTYPE=y
CONFIG_X509_CERTIFICATE_PARSER=y
CONFIG_PKCS8_PRIVATE_KEY_PARSER=y
CONFIG_PKCS7_MESSAGE_PARSER=y
# CONFIG_PKCS7_WAIVE_AUTHATTRS_REJECTION_FOR_MLDSA is not set
CONFIG_PKCS7_TEST_KEY=y
CONFIG_SIGNED_PE_FILE_VERIFICATION=y
# CONFIG_FIPS_SIGNATURE_SELFTEST is not set

#
# Certificates for signature checking
#
CONFIG_MODULE_SIG_KEY="certs/signing_key.pem"
# CONFIG_MODULE_SIG_KEY_TYPE_RSA is not set
CONFIG_MODULE_SIG_KEY_TYPE_MLDSA_44=y
# CONFIG_MODULE_SIG_KEY_TYPE_MLDSA_65 is not set
# CONFIG_MODULE_SIG_KEY_TYPE_MLDSA_87 is not set
CONFIG_SYSTEM_TRUSTED_KEYRING=y
CONFIG_SYSTEM_TRUSTED_KEYS=""
# CONFIG_SYSTEM_EXTRA_CERTIFICATE is not set
CONFIG_SECONDARY_TRUSTED_KEYRING=y
# CONFIG_SECONDARY_TRUSTED_KEYRING_SIGNED_BY_BUILTIN is not set
# CONFIG_SYSTEM_BLACKLIST_KEYRING is not set
CONFIG_OPENSSL_SUPPORTS_ML_DSA=y
# end of Certificates for signature checking

CONFIG_CRYPTO_KRB5=y
# CONFIG_CRYPTO_KRB5_SELFTESTS is not set
CONFIG_BINARY_PRINTF=y

#
# Library routines
#
CONFIG_LINEAR_RANGES=y
# CONFIG_PACKING is not set
CONFIG_BITREVERSE=y
CONFIG_GENERIC_BITREVERSE=y
CONFIG_GENERIC_STRNCPY_FROM_USER=y
CONFIG_GENERIC_STRNLEN_USER=y
CONFIG_GENERIC_NET_UTILS=y
# CONFIG_CORDIC is not set
# CONFIG_PRIME_NUMBERS is not set
CONFIG_RATIONAL=y
CONFIG_GENERIC_IOMAP=y
CONFIG_ARCH_USE_CMPXCHG_LOCKREF=y
CONFIG_ARCH_HAS_FAST_MULTIPLIER=y
CONFIG_ARCH_USE_SYM_ANNOTATIONS=y
CONFIG_CRC8=y
CONFIG_CRC16=y
CONFIG_CRC_CCITT=y
CONFIG_CRC_ITU_T=y
CONFIG_CRC_T10DIF=y
CONFIG_CRC_T10DIF_ARCH=y
CONFIG_CRC32=y
CONFIG_CRC32_ARCH=y
CONFIG_CRC64=y
CONFIG_CRC64_ARCH=y
CONFIG_CRC_OPTIMIZATIONS=y
CONFIG_CRYPTO_HASH_INFO=y
CONFIG_CRYPTO_LIB_UTILS=y
CONFIG_CRYPTO_LIB_AES=y
CONFIG_CRYPTO_LIB_AES_ARCH=y
CONFIG_CRYPTO_LIB_AES_CBC=y
CONFIG_CRYPTO_LIB_AES_CBC_MACS=y
CONFIG_CRYPTO_LIB_AES_CCM=y
CONFIG_CRYPTO_LIB_AES_CTR=y
CONFIG_CRYPTO_LIB_AES_ECB=y
CONFIG_CRYPTO_LIB_AES_GCM=y
CONFIG_CRYPTO_LIB_AES_XTS=y
CONFIG_CRYPTO_LIB_ARC4=y
CONFIG_CRYPTO_LIB_GF128MUL=y
CONFIG_CRYPTO_LIB_BLAKE2B=y
CONFIG_CRYPTO_LIB_BLAKE2S_ARCH=y
CONFIG_CRYPTO_LIB_CHACHA=y
CONFIG_CRYPTO_LIB_CHACHA_ARCH=y
CONFIG_CRYPTO_LIB_CURVE25519=y
CONFIG_CRYPTO_LIB_CURVE25519_ARCH=y
CONFIG_CRYPTO_LIB_CURVE25519_GENERIC=y
CONFIG_CRYPTO_LIB_DES=y
CONFIG_CRYPTO_LIB_GF128HASH=y
CONFIG_CRYPTO_LIB_GF128HASH_ARCH=y
CONFIG_CRYPTO_LIB_MD5=y
CONFIG_CRYPTO_LIB_MLDSA=y
CONFIG_CRYPTO_LIB_NH=y
CONFIG_CRYPTO_LIB_NH_ARCH=y
CONFIG_CRYPTO_LIB_POLY1305=y
CONFIG_CRYPTO_LIB_POLY1305_ARCH=y
CONFIG_CRYPTO_LIB_POLY1305_GENERIC=y
CONFIG_CRYPTO_LIB_POLY1305_RSIZE=11
CONFIG_CRYPTO_LIB_CHACHA20POLY1305=y
CONFIG_CRYPTO_LIB_SHA1=y
CONFIG_CRYPTO_LIB_SHA1_ARCH=y
CONFIG_CRYPTO_LIB_SHA256=y
CONFIG_CRYPTO_LIB_SHA256_ARCH=y
CONFIG_CRYPTO_LIB_SHA512=y
CONFIG_CRYPTO_LIB_SHA512_ARCH=y
CONFIG_CRYPTO_LIB_SHA3=y
CONFIG_XOR_BLOCKS=y
CONFIG_XOR_BLOCKS_ARCH=y
CONFIG_RAID6_PQ=y
CONFIG_RAID6_PQ_ARCH=y
# CONFIG_RAID6_PQ_BENCHMARK is not set
CONFIG_XXHASH=y
CONFIG_842_COMPRESS=y
CONFIG_842_DECOMPRESS=y
CONFIG_ZLIB_INFLATE=y
CONFIG_ZLIB_DEFLATE=y
CONFIG_LZO_COMPRESS=y
CONFIG_LZO_DECOMPRESS=y
CONFIG_LZ4_COMPRESS=y
CONFIG_LZ4HC_COMPRESS=y
CONFIG_LZ4_DECOMPRESS=y
CONFIG_ZSTD_COMMON=y
CONFIG_ZSTD_COMPRESS=y
CONFIG_ZSTD_DECOMPRESS=y
CONFIG_XZ_DEC=y
CONFIG_XZ_DEC_X86=y
CONFIG_XZ_DEC_POWERPC=y
CONFIG_XZ_DEC_ARM=y
CONFIG_XZ_DEC_ARMTHUMB=y
CONFIG_XZ_DEC_ARM64=y
CONFIG_XZ_DEC_SPARC=y
CONFIG_XZ_DEC_RISCV=y
# CONFIG_XZ_DEC_MICROLZMA is not set
CONFIG_XZ_DEC_BCJ=y
# CONFIG_XZ_DEC_TEST is not set
CONFIG_DECOMPRESS_GZIP=y
CONFIG_DECOMPRESS_BZIP2=y
CONFIG_DECOMPRESS_LZMA=y
CONFIG_DECOMPRESS_XZ=y
CONFIG_DECOMPRESS_LZO=y
CONFIG_DECOMPRESS_LZ4=y
CONFIG_DECOMPRESS_ZSTD=y
CONFIG_GENERIC_ALLOCATOR=y
CONFIG_REED_SOLOMON=y
CONFIG_REED_SOLOMON_DEC8=y
CONFIG_TEXTSEARCH=y
CONFIG_TEXTSEARCH_KMP=y
CONFIG_TEXTSEARCH_BM=y
CONFIG_TEXTSEARCH_FSM=y
CONFIG_INTERVAL_TREE=y
CONFIG_INTERVAL_TREE_SPAN_ITER=y
CONFIG_XARRAY_MULTI=y
CONFIG_ASSOCIATIVE_ARRAY=y
CONFIG_CLOSURES=y
CONFIG_HAS_IOMEM=y
CONFIG_HAS_IOPORT=y
CONFIG_HAS_IOPORT_MAP=y
CONFIG_HAS_DMA=y
CONFIG_DMA_OPS_HELPERS=y
CONFIG_NEED_SG_DMA_FLAGS=y
CONFIG_NEED_SG_DMA_LENGTH=y
CONFIG_NEED_DMA_MAP_STATE=y
CONFIG_ARCH_DMA_ADDR_T_64BIT=y
CONFIG_DMA_DECLARE_COHERENT=y
CONFIG_SWIOTLB=y
CONFIG_SWIOTLB_DEFAULT_SIZE_MB=64
# CONFIG_SWIOTLB_DYNAMIC is not set
CONFIG_DMA_NEED_SYNC=y
# CONFIG_DMA_RESTRICTED_POOL is not set
CONFIG_DMA_CMA=y
# CONFIG_DMA_NUMA_CMA is not set

#
# Default contiguous memory area size:
#
CONFIG_CMA_SIZE_MBYTES=0
CONFIG_CMA_SIZE_PERCENTAGE=0
# CONFIG_CMA_SIZE_SEL_MBYTES is not set
# CONFIG_CMA_SIZE_SEL_PERCENTAGE is not set
# CONFIG_CMA_SIZE_SEL_MIN is not set
CONFIG_CMA_SIZE_SEL_MAX=y
CONFIG_CMA_ALIGNMENT=8
# CONFIG_DMA_API_DEBUG is not set
# CONFIG_DMA_MAP_BENCHMARK is not set
CONFIG_SGL_ALLOC=y
CONFIG_CHECK_SIGNATURE=y
# CONFIG_CPUMASK_OFFSTACK is not set
CONFIG_CPU_RMAP=y
CONFIG_DQL=y
CONFIG_GLOB=y
CONFIG_NLATTR=y
CONFIG_CLZ_TAB=y
CONFIG_IRQ_POLL=y
CONFIG_MPILIB=y
CONFIG_SIGNATURE=y
CONFIG_DIMLIB=y
CONFIG_LIBFDT=y
CONFIG_OID_REGISTRY=y
CONFIG_VDSO_DATASTORE=y
CONFIG_GENERIC_GETTIMEOFDAY=y
CONFIG_GENERIC_VDSO_OVERFLOW_PROTECT=y
CONFIG_VDSO_GETRANDOM=y
CONFIG_FONT_SUPPORT=y
# CONFIG_FONTS is not set
CONFIG_FONT_8x8=y
CONFIG_FONT_8x16=y
CONFIG_SG_POOL=y
CONFIG_ARCH_HAS_PMEM_API=y
CONFIG_MEMREGION=y
CONFIG_ARCH_HAS_CPU_CACHE_INVALIDATE_MEMREGION=y
CONFIG_ARCH_HAS_UACCESS_FLUSHCACHE=y
CONFIG_ARCH_HAS_COPY_MC=y
CONFIG_ARCH_STACKWALK=y
CONFIG_STACKDEPOT=y
CONFIG_STACKDEPOT_ALWAYS_INIT=y
CONFIG_STACKDEPOT_MAX_FRAMES=64
CONFIG_REF_TRACKER=y
CONFIG_SBITMAP=y
# CONFIG_LWQ_TEST is not set
# end of Library routines

CONFIG_FIRMWARE_TABLE=y
CONFIG_UNION_FIND=y

#
# Kernel hacking
#

#
# printk and dmesg options
#
CONFIG_PRINTK_TIME=y
CONFIG_PRINTK_CALLER=y
# CONFIG_STACKTRACE_BUILD_ID is not set
CONFIG_CONSOLE_LOGLEVEL_DEFAULT=7
CONFIG_CONSOLE_LOGLEVEL_QUIET=4
CONFIG_MESSAGE_LOGLEVEL_DEFAULT=4
# CONFIG_BOOT_PRINTK_DELAY is not set
CONFIG_DYNAMIC_DEBUG=y
CONFIG_DYNAMIC_DEBUG_CORE=y
CONFIG_SYMBOLIC_ERRNAME=y
CONFIG_DEBUG_BUGVERBOSE=y
CONFIG_DEBUG_BUGVERBOSE_DETAILED=y
# end of printk and dmesg options

CONFIG_DEBUG_KERNEL=y
CONFIG_DEBUG_MISC=y

#
# Compile-time checks and compiler options
#
CONFIG_DEBUG_INFO=y
CONFIG_AS_HAS_NON_CONST_ULEB128=y
# CONFIG_DEBUG_INFO_NONE is not set
# CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT is not set
CONFIG_DEBUG_INFO_DWARF4=y
# CONFIG_DEBUG_INFO_DWARF5 is not set
# CONFIG_DEBUG_INFO_REDUCED is not set
CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
# CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
# CONFIG_DEBUG_INFO_SPLIT is not set
# CONFIG_DEBUG_INFO_BTF is not set
CONFIG_PAHOLE_HAS_LANG_EXCLUDE=y
# CONFIG_GDB_SCRIPTS is not set
CONFIG_FRAME_WARN=2048
# CONFIG_STRIP_ASM_SYMS is not set
# CONFIG_READABLE_ASM is not set
# CONFIG_HEADERS_INSTALL is not set
# CONFIG_DEBUG_SECTION_MISMATCH is not set
CONFIG_SECTION_MISMATCH_WARN_ONLY=y
# CONFIG_DEBUG_FORCE_FUNCTION_ALIGN_64B is not set
CONFIG_OBJTOOL=y
# CONFIG_OBJTOOL_WERROR is not set
CONFIG_NOINSTR_VALIDATION=y
# CONFIG_VMLINUX_MAP is not set
# end of Compile-time checks and compiler options

#
# Generic Kernel Debugging Instruments
#
# CONFIG_MAGIC_SYSRQ is not set
CONFIG_DEBUG_FS=y
CONFIG_DEBUG_FS_ALLOW_ALL=y
# CONFIG_DEBUG_FS_ALLOW_NONE is not set
CONFIG_HAVE_ARCH_KGDB=y
# CONFIG_KGDB is not set
CONFIG_ARCH_HAS_UBSAN=y
CONFIG_UBSAN=y
# CONFIG_UBSAN_TRAP is not set
CONFIG_CC_HAS_UBSAN_BOUNDS_STRICT=y
CONFIG_UBSAN_BOUNDS=y
CONFIG_UBSAN_BOUNDS_STRICT=y
CONFIG_UBSAN_SHIFT=y
# CONFIG_UBSAN_DIV_ZERO is not set
# CONFIG_UBSAN_BOOL is not set
# CONFIG_UBSAN_ENUM is not set
# CONFIG_UBSAN_ALIGNMENT is not set
# CONFIG_TEST_UBSAN is not set
CONFIG_HAVE_ARCH_KCSAN=y
CONFIG_HAVE_KCSAN_COMPILER=y
# end of Generic Kernel Debugging Instruments

#
# Networking Debugging
#
CONFIG_NET_DEV_REFCNT_TRACKER=y
CONFIG_NET_NS_REFCNT_TRACKER=y
CONFIG_DEBUG_NET=y
# CONFIG_DEBUG_NET_SMALL_RTNL is not set
# end of Networking Debugging

#
# Memory Debugging
#
CONFIG_PAGE_EXTENSION=y
# CONFIG_DEBUG_PAGEALLOC is not set
CONFIG_SLUB_DEBUG=y
# CONFIG_SLUB_DEBUG_ON is not set
CONFIG_SLUB_RCU_DEBUG=y
CONFIG_PAGE_OWNER=y
CONFIG_PAGE_TABLE_CHECK=y
CONFIG_PAGE_TABLE_CHECK_ENFORCED=y
CONFIG_PAGE_POISONING=y
# CONFIG_DEBUG_PAGE_REF is not set
# CONFIG_DEBUG_RODATA_TEST is not set
CONFIG_ARCH_HAS_DEBUG_WX=y
CONFIG_DEBUG_WX=y
CONFIG_ARCH_HAS_PTDUMP=y
CONFIG_PTDUMP=y
CONFIG_PTDUMP_DEBUGFS=y
CONFIG_HAVE_DEBUG_KMEMLEAK=y
# CONFIG_DEBUG_KMEMLEAK is not set
# CONFIG_PER_VMA_LOCK_STATS is not set
# CONFIG_MEM_ALLOC_PROFILING is not set
CONFIG_DEBUG_OBJECTS=y
# CONFIG_DEBUG_OBJECTS_SELFTEST is not set
CONFIG_DEBUG_OBJECTS_FREE=y
CONFIG_DEBUG_OBJECTS_TIMERS=y
CONFIG_DEBUG_OBJECTS_WORK=y
CONFIG_DEBUG_OBJECTS_RCU_HEAD=y
CONFIG_DEBUG_OBJECTS_PERCPU_COUNTER=y
CONFIG_DEBUG_OBJECTS_ENABLE_DEFAULT=1
# CONFIG_SHRINKER_DEBUG is not set
CONFIG_DEBUG_STACK_USAGE=y
CONFIG_SCHED_STACK_END_CHECK=y
CONFIG_ARCH_HAS_DEBUG_VM_PGTABLE=y
CONFIG_DEBUG_VFS=y
CONFIG_DEBUG_VM_IRQSOFF=y
CONFIG_DEBUG_VM=y
CONFIG_DEBUG_VM_MAPLE_TREE=y
CONFIG_DEBUG_VM_RB=y
CONFIG_DEBUG_VM_PGFLAGS=y
CONFIG_DEBUG_VM_PGTABLE=y
CONFIG_ARCH_HAS_DEBUG_VIRTUAL=y
CONFIG_DEBUG_VIRTUAL=y
CONFIG_DEBUG_MEMORY_INIT=y
CONFIG_DEBUG_PER_CPU_MAPS=y
CONFIG_DEBUG_KMAP_LOCAL=y
CONFIG_ARCH_SUPPORTS_KMAP_LOCAL_FORCE_MAP=y
CONFIG_DEBUG_KMAP_LOCAL_FORCE_MAP=y
CONFIG_HAVE_ARCH_KASAN=y
CONFIG_HAVE_ARCH_KASAN_VMALLOC=y
CONFIG_CC_HAS_KASAN_GENERIC=y
CONFIG_CC_HAS_KASAN_SW_TAGS=y
CONFIG_CC_HAS_WORKING_NOSANITIZE_ADDRESS=y
CONFIG_KASAN=y
CONFIG_CC_HAS_KASAN_MEMINTRINSIC_PREFIX=y
CONFIG_KASAN_GENERIC=y
# CONFIG_KASAN_OUTLINE is not set
CONFIG_KASAN_INLINE=y
CONFIG_KASAN_STACK=y
CONFIG_KASAN_VMALLOC=y
# CONFIG_KASAN_EXTRA_INFO is not set
CONFIG_HAVE_ARCH_KFENCE=y
CONFIG_KFENCE=y
CONFIG_KFENCE_SAMPLE_INTERVAL=100
CONFIG_KFENCE_NUM_OBJECTS=255
# CONFIG_KFENCE_DEFERRABLE is not set
CONFIG_KFENCE_STATIC_KEYS=y
CONFIG_KFENCE_STRESS_TEST_FAULTS=0
CONFIG_HAVE_ARCH_KMSAN=y
# end of Memory Debugging

# CONFIG_DEBUG_SHIRQ is not set

#
# Debug Oops, Lockups and Hangs
#
CONFIG_PANIC_ON_OOPS=y
CONFIG_PANIC_TIMEOUT=86400
CONFIG_LOCKUP_DETECTOR=y
CONFIG_SOFTLOCKUP_DETECTOR=y
# CONFIG_SOFTLOCKUP_DETECTOR_INTR_STORM is not set
CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC=1
CONFIG_HAVE_HARDLOCKUP_DETECTOR_BUDDY=y
CONFIG_HARDLOCKUP_DETECTOR=y
# CONFIG_HARDLOCKUP_DETECTOR_PREFER_BUDDY is not set
CONFIG_HARDLOCKUP_DETECTOR_PERF=y
# CONFIG_HARDLOCKUP_DETECTOR_BUDDY is not set
# CONFIG_HARDLOCKUP_DETECTOR_ARCH is not set
CONFIG_HARDLOCKUP_DETECTOR_COUNTS_HRTIMER=y
CONFIG_HARDLOCKUP_CHECK_TIMESTAMP=y
CONFIG_BOOTPARAM_HARDLOCKUP_PANIC=y
CONFIG_DETECT_HUNG_TASK=y
CONFIG_DEFAULT_HUNG_TASK_TIMEOUT=140
CONFIG_BOOTPARAM_HUNG_TASK_PANIC=1
# CONFIG_DETECT_HUNG_TASK_BLOCKER is not set
CONFIG_WQ_WATCHDOG=y
CONFIG_BOOTPARAM_WQ_STALL_PANIC=0
# CONFIG_WQ_CPU_INTENSIVE_REPORT is not set
# CONFIG_TEST_LOCKUP is not set
# end of Debug Oops, Lockups and Hangs

#
# Scheduler Debugging
#
CONFIG_SCHED_INFO=y
CONFIG_SCHEDSTATS=y
# end of Scheduler Debugging

CONFIG_DEBUG_PREEMPT=y
# CONFIG_DEBUG_ATOMIC is not set

#
# Lock Debugging (spinlocks, mutexes, etc...)
#
CONFIG_LOCK_DEBUGGING_SUPPORT=y
CONFIG_PROVE_LOCKING=y
CONFIG_PROVE_RAW_LOCK_NESTING=y
# CONFIG_LOCK_STAT is not set
CONFIG_DEBUG_RT_MUTEXES=y
CONFIG_DEBUG_SPINLOCK=y
CONFIG_DEBUG_MUTEXES=y
CONFIG_DEBUG_WW_MUTEX_SLOWPATH=y
CONFIG_DEBUG_RWSEMS=y
CONFIG_DEBUG_LOCK_ALLOC=y
CONFIG_LOCKDEP=y
CONFIG_LOCKDEP_BITS=20
CONFIG_LOCKDEP_CHAINS_BITS=20
CONFIG_LOCKDEP_STACK_TRACE_BITS=20
CONFIG_LOCKDEP_STACK_TRACE_HASH_BITS=14
CONFIG_LOCKDEP_CIRCULAR_QUEUE_BITS=12
# CONFIG_DEBUG_LOCKDEP is not set
CONFIG_DEBUG_ATOMIC_SLEEP=y
# CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set
# CONFIG_LOCK_TORTURE_TEST is not set
# CONFIG_WW_MUTEX_SELFTEST is not set
# CONFIG_SCF_TORTURE_TEST is not set
CONFIG_CSD_LOCK_WAIT_DEBUG=y
# CONFIG_CSD_LOCK_WAIT_DEBUG_DEFAULT is not set
# end of Lock Debugging (spinlocks, mutexes, etc...)

CONFIG_TRACE_IRQFLAGS=y
CONFIG_TRACE_IRQFLAGS_NMI=y
CONFIG_NMI_CHECK_CPU=y
CONFIG_DEBUG_IRQFLAGS=y
CONFIG_STACKTRACE=y
# CONFIG_DEBUG_KOBJECT is not set
# CONFIG_DEBUG_KOBJECT_RELEASE is not set

#
# Debug kernel data structures
#
CONFIG_DEBUG_LIST=y
CONFIG_DEBUG_PLIST=y
CONFIG_DEBUG_SG=y
CONFIG_DEBUG_NOTIFIERS=y
# CONFIG_DEBUG_CLOSURES is not set
CONFIG_DEBUG_MAPLE_TREE=y
# end of Debug kernel data structures

#
# RCU Debugging
#
CONFIG_PROVE_RCU=y
# CONFIG_RCU_SCALE_TEST is not set
# CONFIG_RCU_TORTURE_TEST is not set
# CONFIG_RCU_REF_SCALE_TEST is not set
CONFIG_RCU_CPU_STALL_TIMEOUT=100
CONFIG_RCU_EXP_CPU_STALL_TIMEOUT=0
# CONFIG_RCU_CPU_STALL_CPUTIME is not set
# CONFIG_RCU_TRACE is not set
CONFIG_RCU_EQS_DEBUG=y
# end of RCU Debugging

# CONFIG_DEBUG_WQ_FORCE_RR_CPU is not set
# CONFIG_CPU_HOTPLUG_STATE_CONTROL is not set
# CONFIG_LATENCYTOP is not set
CONFIG_USER_STACKTRACE_SUPPORT=y
CONFIG_NOP_TRACER=y
CONFIG_HAVE_RETHOOK=y
CONFIG_HAVE_FUNCTION_TRACER=y
CONFIG_HAVE_DYNAMIC_FTRACE=y
CONFIG_HAVE_DYNAMIC_FTRACE_WITH_REGS=y
CONFIG_HAVE_DYNAMIC_FTRACE_WITH_DIRECT_CALLS=y
CONFIG_HAVE_DYNAMIC_FTRACE_WITH_ARGS=y
CONFIG_HAVE_FTRACE_REGS_HAVING_PT_REGS=y
CONFIG_HAVE_DYNAMIC_FTRACE_NO_PATCHABLE=y
CONFIG_HAVE_DYNAMIC_FTRACE_WITH_JMP=y
CONFIG_HAVE_SYSCALL_TRACEPOINTS=y
CONFIG_HAVE_FENTRY=y
CONFIG_HAVE_OBJTOOL_MCOUNT=y
CONFIG_HAVE_OBJTOOL_NOP_MCOUNT=y
CONFIG_HAVE_C_RECORDMCOUNT=y
CONFIG_HAVE_BUILDTIME_MCOUNT_SORT=y
CONFIG_TRACE_CLOCK=y
CONFIG_RING_BUFFER=y
CONFIG_EVENT_TRACING=y
CONFIG_CONTEXT_SWITCH_TRACER=y
CONFIG_PREEMPTIRQ_TRACEPOINTS=y
CONFIG_TRACING=y
CONFIG_GENERIC_TRACER=y
CONFIG_TRACING_SUPPORT=y
CONFIG_FTRACE=y
CONFIG_TRACEFS_AUTOMOUNT_DEPRECATED=y
# CONFIG_BOOTTIME_TRACING is not set
# CONFIG_FUNCTION_TRACER is not set
# CONFIG_STACK_TRACER is not set
# CONFIG_IRQSOFF_TRACER is not set
# CONFIG_PREEMPT_TRACER is not set
# CONFIG_SCHED_TRACER is not set
# CONFIG_HWLAT_TRACER is not set
# CONFIG_OSNOISE_TRACER is not set
# CONFIG_TIMERLAT_TRACER is not set
# CONFIG_MMIOTRACE is not set
# CONFIG_FTRACE_SYSCALLS is not set
# CONFIG_TRACER_SNAPSHOT is not set
CONFIG_BRANCH_PROFILE_NONE=y
# CONFIG_PROFILE_ANNOTATED_BRANCHES is not set
CONFIG_BLK_DEV_IO_TRACE=y
# CONFIG_PROBE_EVENTS_DUMP_FETCHARG is not set
CONFIG_UPROBE_EVENTS=y
CONFIG_EPROBE_EVENTS=y
CONFIG_BPF_EVENTS=y
CONFIG_DYNAMIC_EVENTS=y
CONFIG_PROBE_EVENTS=y
# CONFIG_SYNTH_EVENTS is not set
# CONFIG_USER_EVENTS is not set
# CONFIG_HIST_TRIGGERS is not set
CONFIG_TRACE_EVENT_INJECT=y
# CONFIG_TRACEPOINT_BENCHMARK is not set
# CONFIG_RING_BUFFER_BENCHMARK is not set
# CONFIG_TRACE_EVAL_MAP_FILE is not set
# CONFIG_FTRACE_STARTUP_TEST is not set
# CONFIG_RING_BUFFER_STARTUP_TEST is not set
CONFIG_RING_BUFFER_VALIDATE_TIME_DELTAS=y
# CONFIG_RING_BUFFER_PERSISTENT_INJECT is not set
# CONFIG_PREEMPTIRQ_DELAY_TEST is not set
# CONFIG_RV is not set
# CONFIG_TRACE_REMOTE_TEST is not set
CONFIG_PROVIDE_OHCI1394_DMA_INIT=y
# CONFIG_SAMPLES is not set
CONFIG_HAVE_SAMPLE_FTRACE_DIRECT=y
CONFIG_HAVE_SAMPLE_FTRACE_DIRECT_MULTI=y
CONFIG_ARCH_HAS_DEVMEM_IS_ALLOWED=y
# CONFIG_STRICT_DEVMEM is not set

#
# x86 Debugging
#
CONFIG_EARLY_PRINTK_USB=y
CONFIG_X86_VERBOSE_BOOTUP=y
CONFIG_EARLY_PRINTK=y
CONFIG_EARLY_PRINTK_DBGP=y
# CONFIG_EARLY_PRINTK_USB_XDBC is not set
# CONFIG_DEBUG_TLBFLUSH is not set
CONFIG_HAVE_MMIOTRACE_SUPPORT=y
# CONFIG_X86_DECODER_SELFTEST is not set
CONFIG_IO_DELAY_0X80=y
# CONFIG_IO_DELAY_0XED is not set
# CONFIG_IO_DELAY_UDELAY is not set
# CONFIG_IO_DELAY_NONE is not set
CONFIG_DEBUG_BOOT_PARAMS=y
# CONFIG_CPA_DEBUG is not set
CONFIG_DEBUG_ENTRY=y
# CONFIG_DEBUG_NMI_SELFTEST is not set
CONFIG_X86_DEBUG_FPU=y
# CONFIG_PUNIT_ATOM_DEBUG is not set
CONFIG_UNWINDER_ORC=y
# CONFIG_UNWINDER_FRAME_POINTER is not set
# end of x86 Debugging

#
# Kernel Testing and Coverage
#
# CONFIG_KUNIT is not set
# CONFIG_NOTIFIER_ERROR_INJECTION is not set
CONFIG_FAULT_INJECTION=y
CONFIG_FAILSLAB=y
CONFIG_FAIL_PAGE_ALLOC=y
CONFIG_FAULT_INJECTION_USERCOPY=y
CONFIG_FAIL_MAKE_REQUEST=y
CONFIG_FAIL_IO_TIMEOUT=y
CONFIG_FAIL_FUTEX=y
CONFIG_FAULT_INJECTION_DEBUG_FS=y
# CONFIG_FAIL_MMC_REQUEST is not set
# CONFIG_FAIL_SKB_REALLOC is not set
CONFIG_FAULT_INJECTION_CONFIGFS=y
# CONFIG_FAULT_INJECTION_STACKTRACE_FILTER is not set
CONFIG_ARCH_HAS_KCOV=y
CONFIG_KCOV=y
CONFIG_KCOV_ENABLE_COMPARISONS=y
CONFIG_KCOV_INSTRUMENT_ALL=y
CONFIG_KCOV_IRQ_AREA_SIZE=0x40000
# CONFIG_KCOV_SELFTEST is not set
CONFIG_RUNTIME_TESTING_MENU=y
# CONFIG_TEST_DHRY is not set
# CONFIG_LKDTM is not set
# CONFIG_TEST_DIV64 is not set
# CONFIG_TEST_MULDIV64 is not set
# CONFIG_BACKTRACE_SELF_TEST is not set
# CONFIG_TEST_REF_TRACKER is not set
# CONFIG_RBTREE_TEST is not set
# CONFIG_REED_SOLOMON_TEST is not set
# CONFIG_INTERVAL_TREE_TEST is not set
# CONFIG_PERCPU_TEST is not set
# CONFIG_ATOMIC64_SELFTEST is not set
# CONFIG_ASYNC_RAID6_TEST is not set
# CONFIG_TEST_HEXDUMP is not set
# CONFIG_TEST_KSTRTOX is not set
# CONFIG_TEST_BITMAP is not set
# CONFIG_TEST_XARRAY is not set
# CONFIG_TEST_MAPLE_TREE is not set
# CONFIG_TEST_RHASHTABLE is not set
# CONFIG_TEST_IDA is not set
# CONFIG_TEST_LKM is not set
# CONFIG_TEST_BITOPS is not set
# CONFIG_TEST_VMALLOC is not set
# CONFIG_TEST_WORKQUEUE is not set
# CONFIG_TEST_BPF is not set
# CONFIG_FIND_BIT_BENCHMARK is not set
# CONFIG_REGION_ALLOC_BENCHMARK is not set
# CONFIG_TEST_FIRMWARE is not set
# CONFIG_TEST_SYSCTL is not set
# CONFIG_CONTEXT_ANALYSIS_TEST is not set
# CONFIG_TEST_UDELAY is not set
# CONFIG_TEST_STATIC_KEYS is not set
# CONFIG_TEST_DYNAMIC_DEBUG is not set
# CONFIG_TEST_KMOD is not set
# CONFIG_TEST_KALLSYMS is not set
# CONFIG_TEST_DEBUG_VIRTUAL is not set
# CONFIG_TEST_MEMCAT_P is not set
# CONFIG_TEST_MEMINIT is not set
# CONFIG_TEST_HMM is not set
# CONFIG_TEST_FREE_PAGES is not set
# CONFIG_TEST_CLOCKSOURCE_WATCHDOG is not set
# CONFIG_TEST_OBJPOOL is not set
CONFIG_ARCH_USE_MEMTEST=y
# CONFIG_MEMTEST is not set
# end of Kernel Testing and Coverage

#
# Rust hacking
#
# end of Rust hacking
# end of Kernel hacking

CONFIG_IO_URING_ZCRX=y
CONFIG_IO_URING_BPF=y
KernelRepo git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
ReproCID 0
ReproOpts
ReproSyzID 0
SyzkallerCommit 853b104bb454141a5b0fc0e4218ec78e9f34ffb1
TargetArch amd64
TargetOS linux
TargetVMArch amd64

Error:
log-in to see details

Outputs:

Crash report:
kcov: kcov_start: t = ffff88805cfd0000, size = 524288, area = ffffc90007923000
Oops: general protection fault, probably for non-canonical address 0xdffffc0000000065: 0000 [#1] SMP KASAN NOPTI
KASAN: null-ptr-deref in range [0x0000000000000328-0x000000000000032f]
CPU: 3 UID: 0 PID: 8172 Comm: syz.1.689 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
RIP: 0010:wacom_intuos_irq+0x62b/0x3430 drivers/hid/wacom_wac.c:1036
Code: c3 cc cc cc cc e8 35 b4 f1 f8 48 8b 04 24 44 0f b6 c5 48 8d b8 28 03 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 d4 27 00 00 48 8b 04 24 48 c7 c7 b8 d5 3e 91 48
RSP: 0018:ffffc90023e179f8 EFLAGS: 00010206
RAX: dffffc0000000000 RBX: ffff88804be480ae RCX: ffffc90007923000
RDX: 0000000000000065 RSI: ffffffff891a6b7b RDI: 0000000000000328
RBP: 000000000000002e R08: 000000000000002e R09: 0000000000000011
R10: 000000000000002e R11: 0000000000000001 R12: 000000000000005b
R13: ffff88804bc42048 R14: 000000000000002e R15: 0000000000000021
FS:  00007f1ee72ce6c0(0000) GS:ffff8880d5e56000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f1ee72cdff8 CR3: 000000002b6bc000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000400
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 wacom_bpt_irq drivers/hid/wacom_wac.c:3290 [inline]
 wacom_wac_irq+0x196b/0xab80 drivers/hid/wacom_wac.c:3560
 wacom_raw_event+0x6db/0xbf0 drivers/hid/wacom_sys.c:182
 __hid_input_report.constprop.0+0x319/0x470 drivers/hid/hid-core.c:2175
 uhid_dev_input2 drivers/hid/uhid.c:609 [inline]
 uhid_char_write+0xb6b/0x10e0 drivers/hid/uhid.c:767
 vfs_write+0x2aa/0x1050 fs/read_write.c:685
 ksys_write+0x1f8/0x250 fs/read_write.c:739
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x123/0x790 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f1ee639e159
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f1ee72ce028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f1ee6626090 RCX: 00007f1ee639e159
RDX: 0000000000000061 RSI: 0000200000000040 RDI: 0000000000000003
RBP: 00007f1ee643506b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f1ee6626128 R14: 00007f1ee6626090 R15: 00007ffec2a751d8
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:wacom_intuos_irq+0x62b/0x3430 drivers/hid/wacom_wac.c:1036
Code: c3 cc cc cc cc e8 35 b4 f1 f8 48 8b 04 24 44 0f b6 c5 48 8d b8 28 03 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 d4 27 00 00 48 8b 04 24 48 c7 c7 b8 d5 3e 91 48
RSP: 0018:ffffc90023e179f8 EFLAGS: 00010206
RAX: dffffc0000000000 RBX: ffff88804be480ae RCX: ffffc90007923000
RDX: 0000000000000065 RSI: ffffffff891a6b7b RDI: 0000000000000328
RBP: 000000000000002e R08: 000000000000002e R09: 0000000000000011
R10: 000000000000002e R11: 0000000000000001 R12: 000000000000005b
R13: ffff88804bc42048 R14: 000000000000002e R15: 0000000000000021
FS:  00007f1ee72ce6c0(0000) GS:ffff8880d5e56000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f1ee72cdff8 CR3: 000000002b6bc000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000400
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	c3                   	ret
   1:	cc                   	int3
   2:	cc                   	int3
   3:	cc                   	int3
   4:	cc                   	int3
   5:	e8 35 b4 f1 f8       	call   0xf8f1b43f
   a:	48 8b 04 24          	mov    (%rsp),%rax
   e:	44 0f b6 c5          	movzbl %bpl,%r8d
  12:	48 8d b8 28 03 00 00 	lea    0x328(%rax),%rdi
  19:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  20:	fc ff df
  23:	48 89 fa             	mov    %rdi,%rdx
  26:	48 c1 ea 03          	shr    $0x3,%rdx
* 2a:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1) <-- trapping instruction
  2e:	0f 85 d4 27 00 00    	jne    0x2808
  34:	48 8b 04 24          	mov    (%rsp),%rax
  38:	48 c7 c7 b8 d5 3e 91 	mov    $0xffffffff913ed5b8,%rdi
  3f:	48                   	rex.W

Trajectory: (Expand/Collapse All)
Seq Timestamp Type Name Duration
0/0 2026/09/21 00:04 flow assessment-security
1h13m Error:
log-in to see details

1/1 2026/09/21 00:04 action syz-repro-to-c-repro
0m Results:
map[SimplifiedCRepro:]

2/1 2026/09/21 00:04 action kernel-checkouter
1m Results:
map[KernelSrc:/app/workdir/cache/src/fe4ac171720cc33d58390e3690cb7da561a240e2]

3/1 2026/09/21 00:06 action kernel-builder
30m Results:
map[KernelObj:/app/workdir/cache/build/3d96be73c806e16304c15d62a4511644580b3925]

4/1 2026/09/21 00:36 action codesearch-prepare
21m Results:
map[Index:codesearch-index]

5/1 2026/09/21 00:58 agent expert
20m Model:
deep-reasoning

Error:
log-in to see details

Instruction:
You are an experienced Linux kernel security engineer. Your task is to analyze given kernel bug report
and determine its security impact based on the following dimensions.

Use the provided tools to examine the source code, check for capability checks (e.g., capable(), ns_capable()),
and understand the nature of the bug. Analyze the given kernel build and configuration.
You can check the kernel config by grepping ".config" file; you can check kernel cmdline by grepping
".config" file for "CONFIG_CMDLINE=". Assume sysctl parameters have default values.
But analyze for the corresponding production build w/o debugging tools enabled (like KASAN, KMSAN, UBSAN).

Try different strategies when analyzing the bug:
 - think of ways in which the vulnerable code is unreachable
 - or the other way around: try to come up with different ideas of how an unprivileged user can reach the bug
If still unsure err on the side of the bug being non-exploitable/not-accessible.
In the final reply, provide a reasoning for your assessment.

Analysis dimensions:

* Exploitable:
Determine if the bug can result in memory corruption, elevated privileges, or an information leak.
Memory safety issues are almost always exploitable (KASAN or UBSAN reports for use-after-free, out-of-bounds;
refcounting issues, corrupted lists, etc). When kernel is crashing on a completely wild pointer access
(e.g. user-space address, or non-canonical address, but not on NULL or address corresponding to KASAN shadow
for NULL address), including both data accesses and control transfers, that also usually implies possibility
of exploitation. Such reports usually say "unable to handle kernel paging request".
Uses of uninitialized values detected by KMSAN may be exploitable b/c attacker frequently can affect uninit
values with spraying techniques. However, for these exploitability depends on how exactly the uninit value
is used in the code, and what it affects.
Information leaks are exploitable on their own and should be classified as such. A bug that copies kernel
memory contents to userspace (e.g. an out-of-bounds read whose result is returned to the caller, or
uninitialized stack/heap bytes written to a user buffer) is exploitable: it can reveal kernel pointer
values and defeat KASLR, expose sensitive data such as cryptographic keys or other processes' memory, and
serves as a necessary building block in most modern kernel privilege-escalation exploit chains. Do not classify
an information leak as non-exploitable solely because it does not directly cause a memory write or control-flow
hijack; the leak itself is the exploit primitive.

Think of what happens after the bug is triggered. Some bugs cause kernel panic and halt execution,
they are harder to exploit. For example, BUG reports halts the kernel. However, WARNING reports don't halt
execution in production builds. Debug bug detection tools (like KASAN, KMSAN, KCSAN, UBSAN) are also not enabled
in production builds, so attacker can freely exploit these bugs w/o being detected by these tools.
If you see an integer overflow, think how the overflowed value used later (if it's used as allocation size,
or an array index). If you see an out-of-bounds read, think if it's followed by an out-of-bounds write as well.
Some KCSAN data-races may be exploitable by skilled attackers as well. Think what data structures got corrupted
as the result of data races and how. However, note that kernel has lots of "benign" data races that don't lead
to any runtime misbehavior at all.

* Denial Of Service:
Determine if the bug can result in denial-of-service. Most bugs can, since they cause system crash,
hangs, deadlocks, or resource leaks. This is mostly applicable to WARNING bugs that won't cause system crash
in production. For these think what will be consequences of the violation of the kernel assumptions flagged
by the WARNING. In some cases the unexpected condition is also properly handled by the normal control flow
(e.g. with "if (WARN_ON(...))"), these won't cause denial-of-service. If the condition is not handled,
then it may or may not cause denial-of-service.

* Accessible From Unprivileged Processes:
Determine if the bug can be reached from a typical (non-root) user process that does NOT have any special capabilities
(like CAP_SYS_ADMIN, CAP_NET_ADMIN, CAP_NET_RAW, CAP_PERFMON) or access to device nodes restricted to root.
Assume that unprivileged_bpf_disabled=1, that is eBPF loading is not accessible. However, cBPF (classical BPF)
is still accessible to non-root processes.
Assume that user namespaces are not accessible, that is, the process cannot get the mentioned capabilities even
within a new user namespace (checked by ns_capable() function in the kernel sources).

* Accessible From User Namespaces:
Determine if the bug can be reached within a user-namespace where the process has all capabilities
(including CAP_SYS_ADMIN, CAP_NET_ADMIN, CAP_NET_RAW, CAP_PERFMON). Such capabilities are checked with ns_capable()
function in the kernel sources.

* VM Guest Trigger:
Determine if the bug can be triggered from the context of a typical KVM guest (e.g., set up by a QEMU VMM).
Consider accesses to standard Linux host paravirtualized features (virtio-blk, virtio-net, etc.),
and handling of VM exits in the KVM code.

* VM Host Trigger in The Confidential Computing Context:
Determine if the bug can be triggered in a confidential computing guest kernel from the context of a KVM host.
Consider access to standard Linux guest paravirtualized features (virtio-blk, virtio-net, etc.).

* Ethernet Network Trigger:
Determine if the bug can be triggered by processing ingress network Ethernet traffic, either directly (network stack)
or via drivers exposed to network data.

* Other Remote Trigger:
Determine if the bug can be triggered by processing remote traffic other than Ethernet (Wifi, Bluetooth, NFC, etc).

* Peripheral Trigger:
Determine if the bug can be triggered via an untrusted peripheral device that can be physically plugged
into a system, such as a USB device or a niche hardware driver handling external hardware inputs.
This is particularly important for mobile and desktop environments where users can plug in unknown devices.

* Malicious Filesystem Trigger:
Determine if the bug can be triggered by the kernel mounting and parsing a malicious filesystem image.
This is highly critical for Desktop and Mobile environments where external media or downloaded images
might be auto-mounted.

Don't make assumptions about the kernel source code (it may be different from what you assume it is).
Extensively use the provided code access tools (codesearch-*, git-*, grepper, etc)
to examine the actual source code, and confirm any assumptions.
Prefer calling several tools at the same time to save round-trips.


Use set-results tool to provide results of the analysis.
It must be called exactly once before the final reply.
Ignore results of this tool.

Prompt:
The kernel bug report is:

kcov: kcov_start: t = ffff88805cfd0000, size = 524288, area = ffffc90007923000
Oops: general protection fault, probably for non-canonical address 0xdffffc0000000065: 0000 [#1] SMP KASAN NOPTI
KASAN: null-ptr-deref in range [0x0000000000000328-0x000000000000032f]
CPU: 3 UID: 0 PID: 8172 Comm: syz.1.689 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
RIP: 0010:wacom_intuos_irq+0x62b/0x3430 drivers/hid/wacom_wac.c:1036
Code: c3 cc cc cc cc e8 35 b4 f1 f8 48 8b 04 24 44 0f b6 c5 48 8d b8 28 03 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 d4 27 00 00 48 8b 04 24 48 c7 c7 b8 d5 3e 91 48
RSP: 0018:ffffc90023e179f8 EFLAGS: 00010206
RAX: dffffc0000000000 RBX: ffff88804be480ae RCX: ffffc90007923000
RDX: 0000000000000065 RSI: ffffffff891a6b7b RDI: 0000000000000328
RBP: 000000000000002e R08: 000000000000002e R09: 0000000000000011
R10: 000000000000002e R11: 0000000000000001 R12: 000000000000005b
R13: ffff88804bc42048 R14: 000000000000002e R15: 0000000000000021
FS:  00007f1ee72ce6c0(0000) GS:ffff8880d5e56000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f1ee72cdff8 CR3: 000000002b6bc000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000400
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 wacom_bpt_irq drivers/hid/wacom_wac.c:3290 [inline]
 wacom_wac_irq+0x196b/0xab80 drivers/hid/wacom_wac.c:3560
 wacom_raw_event+0x6db/0xbf0 drivers/hid/wacom_sys.c:182
 __hid_input_report.constprop.0+0x319/0x470 drivers/hid/hid-core.c:2175
 uhid_dev_input2 drivers/hid/uhid.c:609 [inline]
 uhid_char_write+0xb6b/0x10e0 drivers/hid/uhid.c:767
 vfs_write+0x2aa/0x1050 fs/read_write.c:685
 ksys_write+0x1f8/0x250 fs/read_write.c:739
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x123/0x790 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f1ee639e159
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f1ee72ce028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f1ee6626090 RCX: 00007f1ee639e159
RDX: 0000000000000061 RSI: 0000200000000040 RDI: 0000000000000003
RBP: 00007f1ee643506b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f1ee6626128 R14: 00007f1ee6626090 R15: 00007ffec2a751d8
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:wacom_intuos_irq+0x62b/0x3430 drivers/hid/wacom_wac.c:1036
Code: c3 cc cc cc cc e8 35 b4 f1 f8 48 8b 04 24 44 0f b6 c5 48 8d b8 28 03 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 d4 27 00 00 48 8b 04 24 48 c7 c7 b8 d5 3e 91 48
RSP: 0018:ffffc90023e179f8 EFLAGS: 00010206
RAX: dffffc0000000000 RBX: ffff88804be480ae RCX: ffffc90007923000
RDX: 0000000000000065 RSI: ffffffff891a6b7b RDI: 0000000000000328
RBP: 000000000000002e R08: 000000000000002e R09: 0000000000000011
R10: 000000000000002e R11: 0000000000000001 R12: 000000000000005b
R13: ffff88804bc42048 R14: 000000000000002e R15: 0000000000000021
FS:  00007f1ee72ce6c0(0000) GS:ffff8880d5e56000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f1ee72cdff8 CR3: 000000002b6bc000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000400
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	c3                   	ret
   1:	cc                   	int3
   2:	cc                   	int3
   3:	cc                   	int3
   4:	cc                   	int3
   5:	e8 35 b4 f1 f8       	call   0xf8f1b43f
   a:	48 8b 04 24          	mov    (%rsp),%rax
   e:	44 0f b6 c5          	movzbl %bpl,%r8d
  12:	48 8d b8 28 03 00 00 	lea    0x328(%rax),%rdi
  19:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  20:	fc ff df
  23:	48 89 fa             	mov    %rdi,%rdx
  26:	48 c1 ea 03          	shr    $0x3,%rdx
* 2a:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1) <-- trapping instruction
  2e:	0f 85 d4 27 00 00    	jne    0x2808
  34:	48 8b 04 24          	mov    (%rsp),%rax
  38:	48 c7 c7 b8 d5 3e 91 	mov    $0xffffffff913ed5b8,%rdi
  3f:	48                   	rex.W




6/2 2026/09/21 00:58 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 9187
							output: 40
							thoughts: 377
						

Thoughts:
**Analyzing a Kernel Null-Pointer Dereference**

Okay, so I've got a KASAN null-pointer dereference report. The interesting thing here is that it's in the `wacom_intuos_irq` function, within the `drivers/hid/wacom_wac.c` file. Specifically, the error is occurring at line 1036. That's a good starting point. The address range it's complaining about is also given, that can also be helpful.

Looking at the call trace, I can see the issue propagates from `wacom_bpt_irq` and `wacom_wac_irq` all the way up through `wacom_raw_event`, then through the HID core (`__hid_input_report`), and finally gets passed through `uhid_char_write` and down to `vfs_write`.  That call stack gives me the execution flow, which is crucial. `uhid` is involved as well, so there could also be some issues with the virtual HID device interactions.

This looks like it could be a race condition, or some sort of invalid pointer access in the Wacom driver's interrupt handling. I need to get to line 1036 in `wacom_wac.c` and figure out what's going on, and track back through that call stack to understand the context. The fact that the error occurs within the interrupt handler suggests the issue is time-critical. Let's see what that code does.



7/2 2026/09/21 00:58 tool read-file
0m Args:
map[File:drivers/hid/wacom_wac.c FirstLine:1020 LineCount:50]

Results:
map[Contents:1020:	}
1021:	
1022:	static int wacom_intuos_irq(struct wacom_wac *wacom)
1023:	{
1024:		unsigned char *data = wacom->data;
1025:		struct input_dev *input = wacom->pen_input;
1026:		int result;
1027:	
1028:		if (data[0] != WACOM_REPORT_PENABLED &&
1029:		    data[0] != WACOM_REPORT_INTUOS_ID1 &&
1030:		    data[0] != WACOM_REPORT_INTUOS_ID2 &&
1031:		    data[0] != WACOM_REPORT_INTUOSPAD &&
1032:		    data[0] != WACOM_REPORT_INTUOS_PEN &&
1033:		    data[0] != WACOM_REPORT_CINTIQ &&
1034:		    data[0] != WACOM_REPORT_CINTIQPAD &&
1035:		    data[0] != WACOM_REPORT_INTUOS5PAD) {
1036:			dev_dbg(input->dev.parent,
1037:				"%s: received unknown report #%d\n", __func__, data[0]);
1038:	                return 0;
1039:		}
1040:	
1041:		/* process pad events */
1042:		result = wacom_intuos_pad(wacom);
1043:		if (result)
1044:			return result;
1045:	
1046:		/* process in/out prox events */
1047:		result = wacom_intuos_inout(wacom);
1048:		if (result)
1049:			return result - 1;
1050:	
1051:		/* process general packets */
1052:		result = wacom_intuos_general(wacom);
1053:		if (result)
1054:			return result - 1;
1055:	
1056:		return 0;
1057:	}
1058:	
1059:	static int wacom_remote_irq(struct wacom_wac *wacom_wac, size_t len)
1060:	{
1061:		unsigned char *data = wacom_wac->data;
1062:		struct input_dev *input;
1063:		struct wacom *wacom = container_of(wacom_wac, struct wacom, wacom_wac);
1064:		struct wacom_remote *remote = wacom->remote;
1065:		int bat_charging, bat_percent, touch_ring_mode;
1066:		__u32 serial;
1067:		int i, index = -1;
1068:		unsigned long flags;
1069:	
]

8/2 2026/09/21 00:58 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 10725
							output: 21
							thoughts: 87
						

Thoughts:
Here's my thought process, as if I were analyzing that crash:

**Debugging the Input Device Crash**

Okay, so the kernel's dumped a crash, specifically at line 1036. The culprit is `dev_dbg(input->dev.parent, ...)` – a debug print, which is normally innocuous, but obviously not this time. The stack trace tells me that `input` is `wacom->pen_input`. Now, alarm bells are ringing because dereferencing something like `input->dev.parent` is a classic recipe for disaster if `input` is NULL.

My immediate hypothesis is that `wacom->pen_input` is NULL at this point. That debug print is trying to access `input->dev.parent`. If `input` is NULL, that's a NULL pointer dereference. The kernel, in its infinite wisdom, will be trying to access memory at offset `dev` of the `struct input_dev` + the offset of `parent` member of `struct device` within `struct device`. Essentially it is treating NULL as a pointer. Let's make sure I understand the struct layout, and how the `dev` member of `input_dev` is structured, so I can see what's actually being dereferenced.



9/2 2026/09/21 00:58 tool codesearch-struct-layout
0m Args:
map[Name:input_dev]

Results:
map[Fields:[map[Name:name OffsetBits:0 SizeBits:64] map[Name:phys OffsetBits:64 SizeBits:64] map[Name:uniq OffsetBits:128 SizeBits:64] map[Name:id OffsetBits:192 SizeBits:64] map[Name:propbit OffsetBits:256 SizeBits:64] map[Name:evbit OffsetBits:320 SizeBits:64] map[Name:keybit OffsetBits:384 SizeBits:768] map[Name:relbit OffsetBits:1152 SizeBits:64] map[Name:absbit OffsetBits:1216 SizeBits:64] map[Name:mscbit OffsetBits:1280 SizeBits:64] map[Name:ledbit OffsetBits:1344 SizeBits:64] map[Name:sndbit OffsetBits:1408 SizeBits:64] map[Name:ffbit OffsetBits:1472 SizeBits:128] map[Name:swbit OffsetBits:1600 SizeBits:64] map[Name:hint_events_per_packet OffsetBits:1664 SizeBits:32] map[Name:keycodemax OffsetBits:1696 SizeBits:32] map[Name:keycodesize OffsetBits:1728 SizeBits:32] map[Name:keycode OffsetBits:1792 SizeBits:64] map[Name:setkeycode OffsetBits:1856 SizeBits:64] map[Name:getkeycode OffsetBits:1920 SizeBits:64] map[Name:ff OffsetBits:1984 SizeBits:64] map[Name:poller OffsetBits:2048 SizeBits:64] map[Name:repeat_key OffsetBits:2112 SizeBits:32] map[Name:timer OffsetBits:2176 SizeBits:640] map[Name:rep OffsetBits:2816 SizeBits:64] map[Name:mt OffsetBits:2880 SizeBits:64] map[Name:absinfo OffsetBits:2944 SizeBits:64] map[Name:key OffsetBits:3008 SizeBits:768] map[Name:led OffsetBits:3776 SizeBits:64] map[Name:snd OffsetBits:3840 SizeBits:64] map[Name:sw OffsetBits:3904 SizeBits:64] map[Name:open OffsetBits:3968 SizeBits:64] map[Name:close OffsetBits:4032 SizeBits:64] map[Name:flush OffsetBits:4096 SizeBits:64] map[Name:event OffsetBits:4160 SizeBits:64] map[Name:grab OffsetBits:4224 SizeBits:64] map[Name:event_lock OffsetBits:4288 SizeBits:512] map[Name:mutex OffsetBits:4800 SizeBits:1088] map[Name:users OffsetBits:5888 SizeBits:32] map[Name:going_away OffsetBits:5920 SizeBits:8] map[Name:dev OffsetBits:5952 SizeBits:9792] map[Name:h_list OffsetBits:15744 SizeBits:128] map[Name:node OffsetBits:15872 SizeBits:128] map[Name:num_vals OffsetBits:16000 SizeBits:32] map[Name:max_vals OffsetBits:16032 SizeBits:32] map[Name:vals OffsetBits:16064 SizeBits:64] map[Name:devres_managed OffsetBits:16128 SizeBits:8] map[Name:timestamp OffsetBits:16192 SizeBits:192] map[Name:inhibited OffsetBits:16384 SizeBits:8] map[Name:ready OffsetBits:16392 SizeBits:8]]]

10/2 2026/09/21 00:58 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 12167
							output: 19
							thoughts: 113
						

Thoughts:
**Analyzing a Null Pointer Dereference**

Okay, so I'm looking at this crash report. The offset of `dev` is 5952 bits, which translates to 744 bytes, or in hexadecimal, 0x2e8. The critical part is the crash itself: a KASAN null-pointer dereference. The address range of the problem is between 0x328 and 0x32f. Now, 0x328 is the decimal 808.

My immediate thought is, let's figure out what's going on with the `parent` pointer within the `struct device`. Given the null-pointer dereference, it's highly probable that something is wrong with how `parent` is being accessed or initialized. Understanding its offset within the structure is key to pinpointing the root cause. I need to correlate that offset with the crash address to understand the memory layout and the sequence of events that led to this error. This offset will give me critical context for tracing the pointer's lifecycle.



11/2 2026/09/21 00:58 tool codesearch-struct-layout
0m Args:
map[Name:device]

Results:
map[Fields:[map[Name:kobj OffsetBits:0 SizeBits:512] map[Name:parent OffsetBits:512 SizeBits:64] map[Name:p OffsetBits:576 SizeBits:64] map[Name:init_name OffsetBits:640 SizeBits:64] map[Name:type OffsetBits:704 SizeBits:64] map[Name:bus OffsetBits:768 SizeBits:64] map[Name:driver OffsetBits:832 SizeBits:64] map[Name:platform_data OffsetBits:896 SizeBits:64] map[Name:driver_data OffsetBits:960 SizeBits:64] map[Name:driver_override OffsetBits:1024 SizeBits:576] map[Name:mutex OffsetBits:1600 SizeBits:1088] map[Name:links OffsetBits:2688 SizeBits:448] map[Name:power OffsetBits:3136 SizeBits:4416] map[Name:pm_domain OffsetBits:7552 SizeBits:64] map[Name:msi OffsetBits:7616 SizeBits:128] map[Name:dma_mask OffsetBits:7744 SizeBits:64] map[Name:coherent_dma_mask OffsetBits:7808 SizeBits:64] map[Name:bus_dma_limit OffsetBits:7872 SizeBits:64] map[Name:dma_range_map OffsetBits:7936 SizeBits:64] map[Name:dma_parms OffsetBits:8000 SizeBits:64] map[Name:dma_pools OffsetBits:8064 SizeBits:128] map[Name:dma_mem OffsetBits:8192 SizeBits:64] map[Name:cma_area OffsetBits:8256 SizeBits:64] map[Name:dma_io_tlb_mem OffsetBits:8320 SizeBits:64] map[Name:archdata OffsetBits:8384 SizeBits:0] map[Name:of_node OffsetBits:8384 SizeBits:64] map[Name:fwnode OffsetBits:8448 SizeBits:64] map[Name:numa_node OffsetBits:8512 SizeBits:32] map[Name:devt OffsetBits:8544 SizeBits:32] map[Name:id OffsetBits:8576 SizeBits:32] map[Name:devres_lock OffsetBits:8640 SizeBits:512] map[Name:devres_head OffsetBits:9152 SizeBits:128] map[Name:class OffsetBits:9280 SizeBits:64] map[Name:groups OffsetBits:9344 SizeBits:64] map[Name:release OffsetBits:9408 SizeBits:64] map[Name:iommu_group OffsetBits:9472 SizeBits:64] map[Name:iommu OffsetBits:9536 SizeBits:64] map[Name:physical_location OffsetBits:9600 SizeBits:64] map[Name:removable OffsetBits:9664 SizeBits:32] map[Name:flags OffsetBits:9728 SizeBits:64]]]

12/2 2026/09/21 00:58 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 13411
							output: 38
							thoughts: 1108
						

Thoughts:
**Analysis of a Kernel NULL Pointer Dereference**

Okay, so I've got this crash. The offset of `parent` within the `input` struct is 64 bytes or 0x40.  Adding that to the base address 0x2e8 gives me 0x328, which perfectly matches where the crash is happening.  It's a textbook NULL pointer dereference because `wacom->pen_input` is NULL.

Now, I need to figure out how `wacom->pen_input` gets initialized and how `wacom_intuos_irq` gets called. The call trace points to a route: `uhid_char_write` -> `wacom_raw_event` -> `wacom_wac_irq` -> `wacom_bpt_irq`. That means it's triggered via the `/dev/uhid` character device.

Normally, `/dev/uhid` is locked down; it’s typically only accessible to root or users with specific permissions. However, it's a misc device, not tied to network or user namespaces. So anyone with access to `/dev/uhid` can trigger it.

But wait, how else could this be triggered? The bug is in `wacom_wac.c`, which is a HID driver. Aha! This means it *could* be triggered by a malicious USB device (pretending to be a Wacom) sending a bad report. Or even a malicious Bluetooth device using HID over Bluetooth (BTHID) or something similar.  So yes, this is a peripheral trigger.

Next, I need to assess exploitability. It's a NULL pointer dereference, which is generally not good. Looking at the code:

```c
	if (data[0] != WACOM_REPORT_PENABLED &&
	    data[0] != WACOM_REPORT_INTUOS_ID1 &&
	    data[0] != WACOM_REPORT_INTUOS_ID2 &&
	    data[0] != WACOM_REPORT_INTUOSPAD &&
	    data[0] != WACOM_REPORT_INTUOS_PEN &&
	    data[0] != WACOM_REPORT_CINTIQ &&
	    data[0] != WACOM_REPORT_CINTIQPAD &&
	    data[0] != WACOM_REPORT_INTUOS5PAD) {
		dev_dbg(input->dev.parent,
			"%s: received unknown report #%d\n", __func__, data[0]);
                return 0;
	}
```

If `input` is NULL, the code attempts to dereference `input->dev.parent`. Since 0x328 is a small offset, this is indeed a classic NULL pointer dereference. The problem is that in modern kernels, you can't usually exploit this for privilege escalation directly because `mmap(0)` is restricted by `mmap_min_addr`. It will cause a kernel oops/panic, which means Denial of Service.

Wait, is this still exploitable though? Looking at the assembly, it's doing a `cmpb $0x0, (%rdx,%rax,1)`. The comparison implies KASAN is enabled, checking the shadow memory, and not actually performing a read from memory. However, without KASAN, it *would* be a read.

But then I remember `dev_dbg` is a macro, and maybe nothing is actually being read. Looking at the definition:

```c
#define dev_dbg(dev, fmt, ...)						\
({									\
	if (dev_dbg_default_noop())					\
		if (0)							\
			dev_printk(KERN_DEBUG, dev, fmt, ##__VA_ARGS__); \
	else								\
		dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__);	\
})
```

If dynamic debug is not enabled, then `dev_dbg` might actually not even evaluate its arguments, or just read the `dev` pointer without dereferencing anything! Okay, so I need to check the exact behavior of `dev_dbg` to confirm.



13/2 2026/09/21 00:58 tool codesearch-definition-source
0m Error:
log-in to see details

Args:
map[ContextFile:drivers/hid/wacom_wac.c Name:dev_dbg]

Results:
map[SourceCode: SourceFile:]

14/2 2026/09/21 00:58 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 15498
							output: 35
							thoughts: 10
						

Thoughts:
Here's my attempt at summarizing the thought process, tailored for an expert audience:

**Debugging Initiative: Utilizing `dev_dbg`**

Okay, so I need to get some more granular debugging information. Time to start digging into the code and narrow down the scope. My initial thought is to do a quick `grep` for instances of `dev_dbg`. That should give me a good starting point, showing me where the developer *intended* to leave diagnostic outputs. It's a pragmatic first step – quickly identifying existing debug infrastructure instead of starting completely from scratch. I’ll be looking not just for direct calls, but also for macros that might expand to `dev_dbg`. I need to remember any project-specific conventions, too, since the code base may not be consistent with the standard coding practices. From there, I can analyze the surrounding code to determine if those calls are being used effectively, and if the information they provide is relevant to the issue I'm tracking down. I'll mentally note the context of each call - what function is it in, what conditions trigger the output, and what specifically is being logged. This gives me a quick map of the diagnostic possibilities that I can then leverage.



15/2 2026/09/21 00:58 tool grepper
0m Args:
map[Expression:#define dev_dbg\( PathPrefix:include/linux/dev_printk.h]

Results:
map[Output:include/linux/dev_printk.h=95=void _dev_info(const struct device *dev, const char *fmt, ...)
--
include/linux/dev_printk.h-163-	(defined(CONFIG_DYNAMIC_DEBUG_CORE) && defined(DYNAMIC_DEBUG_MODULE))
include/linux/dev_printk.h:164:#define dev_dbg(dev, fmt, ...)						\
include/linux/dev_printk.h-165-	dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
include/linux/dev_printk.h-166-#elif defined(DEBUG)
include/linux/dev_printk.h:167:#define dev_dbg(dev, fmt, ...)						\
include/linux/dev_printk.h-168-	dev_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__)
include/linux/dev_printk.h-169-#else
include/linux/dev_printk.h:170:#define dev_dbg(dev, fmt, ...)						\
include/linux/dev_printk.h-171-	dev_no_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__)
]

16/2 2026/09/21 00:58 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 16106
							output: 36
							thoughts: 11
						

Thoughts:
Okay, here's my interpretation of that thought process, assuming I'm deep in my domain of expertise:

**Checking the `dev_no_printk` Flag**

Right, let's just quickly confirm something crucial. Before diving deeper, I need to make absolutely sure the `dev_no_printk` flag is set correctly. This flag is so critical to debugging and logging in this particular subsystem. I know I've been focusing on X, Y, and Z, but if `dev_no_printk` isn't behaving as expected, any conclusions I've drawn so far could be completely off-base. It's a fundamental parameter that impacts the diagnostic output, especially the logging granularity. If it's disabled when I expect it to be enabled, or vice versa, it would completely skew my understanding of the behavior I'm seeing. Better to verify this now, before I waste time chasing a phantom. I need to make sure the logging I'm relying on is giving me accurate information. Let's verify it's the correct state for the context of this issue. Quick check, then back to the main investigation.



17/2 2026/09/21 00:58 tool grepper
0m Args:
map[Expression:#define dev_no_printk PathPrefix:include/linux/dev_printk.h]

Results:
map[Output:include/linux/dev_printk.h=95=void _dev_info(const struct device *dev, const char *fmt, ...)
--
include/linux/dev_printk.h-135- */
include/linux/dev_printk.h:136:#define dev_no_printk(level, dev, fmt, ...)				\
include/linux/dev_printk.h-137-	({								\
]

18/2 2026/09/21 00:58 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 16504
							output: 37
							thoughts: 13
						

Thoughts:
Here's my attempt at summarizing the thought process, tailored for an expert audience:

**Analyzing the `dev_no_printk` Definition**

Okay, let's dive right in. The task is to understand the `dev_no_printk` definition. I need to refresh my memory on what this macro represents and how it functions within the kernel's print infrastructure. My initial hypothesis is that it likely pertains to suppressing or managing print messages from device drivers under specific circumstances. Perhaps it's tied to debugging levels, module loading/unloading states, or even error handling during early boot stages. I'll need to confirm these hunches by inspecting its actual implementation and where it's used within the codebase. Understanding this mechanism is crucial for diagnosing any potential print-related issues in a development workflow, and knowing what this definition means will definitely help determine how to best approach it.



19/2 2026/09/21 00:59 tool read-file
0m Args:
map[File:include/linux/dev_printk.h FirstLine:130 LineCount:20]

Results:
map[Contents: 130:		})
 131:	
 132:	/*
 133:	 * Dummy dev_printk for disabled debugging statements to use whilst maintaining
 134:	 * gcc's format checking.
 135:	 */
 136:	#define dev_no_printk(level, dev, fmt, ...)				\
 137:		({								\
 138:			if (0)							\
 139:				_dev_printk(level, dev, fmt, ##__VA_ARGS__);	\
 140:		})
 141:	
 142:	/*
 143:	 * #defines for all the dev_<level> macros to prefix with whatever
 144:	 * possible use of #define dev_fmt(fmt) ...
 145:	 */
 146:	
 147:	#define dev_emerg(dev, fmt, ...) \
 148:		dev_printk_index_wrap(_dev_emerg, KERN_EMERG, dev, dev_fmt(fmt), ##__VA_ARGS__)
 149:	#define dev_crit(dev, fmt, ...) \
]

20/2 2026/09/21 00:59 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 17045
							output: 36
							thoughts: 72
						

Thoughts:
**Debugging a Tricky Kernel Issue**

Okay, hold on a second. This is strange. If `dev_no_printk` is active, the `dev` variable *should* only be evaluated within that `if (0)` block. But the crash log clearly shows `dev` being evaluated! That doesn't make any sense... unless... Aha! I bet it's that `dynamic_dev_dbg` macro. I vaguely recall something like that. It likely gets used when `CONFIG_DYNAMIC_DEBUG` is enabled. Time to delve into the `dynamic_dev_dbg` macro and see what's going on there. I need to understand *why* `dev` is being accessed outside that conditional. This is likely the key to understanding the crash.



21/2 2026/09/21 00:59 tool grepper
0m Args:
map[Expression:#define dynamic_dev_dbg PathPrefix:include/linux/dynamic_debug.h]

Results:
map[Output:include/linux/dynamic_debug.h=160=void __dynamic_ibdev_dbg(struct _ddebug *descriptor,
--
include/linux/dynamic_debug.h-282-
include/linux/dynamic_debug.h:283:#define dynamic_dev_dbg(dev, fmt, ...)				\
include/linux/dynamic_debug.h-284-	_dynamic_func_call(fmt, __dynamic_dev_dbg, 		\
--
include/linux/dynamic_debug.h-319-	no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__)
include/linux/dynamic_debug.h:320:#define dynamic_dev_dbg(dev, fmt, ...)					\
include/linux/dynamic_debug.h-321-	dev_no_printk(KERN_DEBUG, dev, fmt, ##__VA_ARGS__)
]

22/2 2026/09/21 00:59 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 17541
							output: 37
							thoughts: 13
						

Thoughts:
Here's my attempt at summarizing the thought process, tailored for an expert audience:

**Analyzing the `dynamic_dev_dbg` Definition**

Okay, time to dissect this `dynamic_dev_dbg` definition. I'm already anticipating some of the nuances involved, given the name. I'm expecting this to be a debugging macro or function related to dynamically allocated devices or drivers. I'll need to drill down into the specifics of how it's implemented. Is it conditional compilation based on a debug flag? Does it employ a specific logging mechanism, like `printk` or something more sophisticated?

I'll be looking for potential pitfalls. Does it introduce any performance overhead that might be problematic in a production environment, even when debugging is disabled? Does it manage its debug level efficiently, perhaps allowing for selective enabling of debugging output for specific devices or modules? And critically, I want to see how this interacts with any existing kernel debug infrastructure. Does it integrate seamlessly, or does it reinvent the wheel? A close look at its arguments will tell me a lot about its intended usage and any device context that it assumes. I'll be particularly interested in any synchronization primitives involved. A poorly designed debug mechanism could introduce serious concurrency issues.



23/2 2026/09/21 00:59 tool read-file
0m Args:
map[File:include/linux/dynamic_debug.h FirstLine:275 LineCount:20]

Results:
map[Contents: 275:	#define dynamic_pr_debug_cls(cls, fmt, ...)				\
 276:		_dynamic_func_call_cls(cls, fmt, __dynamic_pr_debug,		\
 277:				   pr_fmt(fmt), ##__VA_ARGS__)
 278:	
 279:	#define dynamic_pr_debug(fmt, ...)				\
 280:		_dynamic_func_call(fmt, __dynamic_pr_debug,		\
 281:				   pr_fmt(fmt), ##__VA_ARGS__)
 282:	
 283:	#define dynamic_dev_dbg(dev, fmt, ...)				\
 284:		_dynamic_func_call(fmt, __dynamic_dev_dbg, 		\
 285:				   dev, fmt, ##__VA_ARGS__)
 286:	
 287:	#define dynamic_netdev_dbg(dev, fmt, ...)			\
 288:		_dynamic_func_call(fmt, __dynamic_netdev_dbg,		\
 289:				   dev, fmt, ##__VA_ARGS__)
 290:	
 291:	#define dynamic_ibdev_dbg(dev, fmt, ...)			\
 292:		_dynamic_func_call(fmt, __dynamic_ibdev_dbg,		\
 293:				   dev, fmt, ##__VA_ARGS__)
 294:	
]

24/2 2026/09/21 00:59 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 18231
							output: 37
							thoughts: 12
						

Thoughts:
Okay, let's dive into this. Here's my take on those thoughts, as if they're my own:

**Analyzing the Function Call**

Alright, let's get into it. The first thing I'm doing is focusing on that specific function call: `_dynamic_func_call`. It's immediately interesting because of the leading underscore. That typically signifies a "private" or internal function, one that the developer likely doesn't want to expose directly to external use. Understanding why it's there and what it *does* is key. Is it a helper function? A utility? Does it represent some underlying mechanism of abstraction? What kind of dynamic behavior does it enable? Does it suggest a more complex architecture than a cursory glance might reveal? Let's read this.



25/2 2026/09/21 00:59 tool read-file
0m Args:
map[File:include/linux/dynamic_debug.h FirstLine:250 LineCount:20]

Results:
map[Contents: 250:	/*
 251:	 * "Factory macro" for generating a call to func, guarded by a
 252:	 * DYNAMIC_DEBUG_BRANCH. The dynamic debug descriptor will be
 253:	 * initialized using the fmt argument. The function will be called with
 254:	 * the address of the descriptor as first argument, followed by all
 255:	 * the varargs. Note that fmt is repeated in invocations of this
 256:	 * macro.
 257:	 */
 258:	#define _dynamic_func_call_cls(cls, fmt, func, ...)			\
 259:		__dynamic_func_call_cls(__UNIQUE_ID(ddebug), cls, fmt, func, ##__VA_ARGS__)
 260:	#define _dynamic_func_call(fmt, func, ...)				\
 261:		_dynamic_func_call_cls(_DPRINTK_CLASS_DFLT, fmt, func, ##__VA_ARGS__)
 262:	
 263:	/*
 264:	 * A variant that does the same, except that the descriptor is not
 265:	 * passed as the first argument to the function; it is only called
 266:	 * with precisely the macro's varargs.
 267:	 */
 268:	#define _dynamic_func_call_cls_no_desc(cls, fmt, func, ...)		\
 269:		__dynamic_func_call_cls_no_desc(__UNIQUE_ID(ddebug), cls, fmt,	\
]

26/2 2026/09/21 00:59 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 18857
							output: 37
							thoughts: 14
						

Thoughts:
Here's my attempt at summarizing the thought process, tailored for an expert audience:

**Analyzing the Dynamic Function Call Class**

Okay, let's dive into this `__dynamic_func_call_cls`. My initial thought is to immediately parse the name and try to infer its purpose. The prefix "__" often denotes a special or internal method in Python, suggesting that this class probably handles some kind of dynamic behavior or metadata. The "func_call" part is quite telling; it strongly implies that the core functionality revolves around invoking functions, potentially in a flexible or runtime-determined manner. I'm already anticipating that it might be related to things like function decorators, metaprogramming, or perhaps even a custom implementation of dispatching logic. I wonder if it's involved in creating proxies or wrappers for functions. Is it designed to abstract away the details of the function being called, or provide some kind of pre- or post-processing capabilities? Is it for a specific framework or is it more general? I'll be looking for clues in its attributes and methods that will help me build out a clear understanding of its operation. Time to dig in and see the details.



27/2 2026/09/21 00:59 tool read-file
0m Args:
map[File:include/linux/dynamic_debug.h FirstLine:230 LineCount:20]

Results:
map[Contents: 230:		if (DYNAMIC_DEBUG_BRANCH(id)) {				\
 231:			func(&id, ##__VA_ARGS__);			\
 232:			__dynamic_dump_stack(id);			\
 233:		}							\
 234:	} while (0)
 235:	#define __dynamic_func_call(id, fmt, func, ...)				\
 236:		__dynamic_func_call_cls(id, _DPRINTK_CLASS_DFLT, fmt,		\
 237:					func, ##__VA_ARGS__)
 238:	
 239:	#define __dynamic_func_call_cls_no_desc(id, cls, fmt, func, ...) do {	\
 240:		DEFINE_DYNAMIC_DEBUG_METADATA_CLS(id, cls, fmt);		\
 241:		if (DYNAMIC_DEBUG_BRANCH(id)) {					\
 242:			func(__VA_ARGS__);					\
 243:			__dynamic_dump_stack(id);				\
 244:		}								\
 245:	} while (0)
 246:	#define __dynamic_func_call_no_desc(id, fmt, func, ...)			\
 247:		__dynamic_func_call_cls_no_desc(id, _DPRINTK_CLASS_DFLT,	\
 248:						fmt, func, ##__VA_ARGS__)
 249:	
]

28/2 2026/09/21 00:59 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 19545
							output: 38
							thoughts: 790
						

Thoughts:
**Debugging a Potentially Unsafe Kernel Memory Access**

Okay, so I'm looking at this code and trying to figure out why we're hitting a KASAN trap. The call to `func(&id, ##__VA_ARGS__)` seems to be the culprit. Specifically, it involves the `dev` variable, which I know is passed to `__dynamic_dev_dbg` at some point. But, hang on, this `dev` gets evaluated *before* it's actually used by `__dynamic_dev_dbg`. That's a key detail. The `__dynamic_func_call_cls` macro only actually evaluates `__VA_ARGS__` if `DYNAMIC_DEBUG_BRANCH(id)` is true.

The big question is, what is the value of `DYNAMIC_DEBUG_BRANCH` at the time of execution? If it's true, it evaluates `dev`, but if not, then it doesn't. Now, `dev` is, according to the code, `input->dev.parent`. The crucial question is, if `DYNAMIC_DEBUG_BRANCH` is false, is `input->dev.parent` *still* evaluated? The call to `func(&id, ##__VA_ARGS__)` is nested inside an `if` statement so the result is no, so `input->dev.parent` should NOT be evaluated.

Let's look at the assembly in the crash report. Specifically, I'm focusing on the instruction at address `0x2a:	80 3c 02 00` which I see is a `cmpb` instruction, specifically checking KASAN shadow memory for `input->dev.parent`. But why?

Then it hit me, it's possible that `dev_dbg` isn't calling `dynamic_dev_dbg`, but rather it's calling `dev_printk`, so let's look at the implementation of `dev_dbg`.

I check `include/linux/dev_printk.h` and see the implementation:

```c
#define dev_dbg(dev, fmt, ...)						\
({									\
	if (dev_dbg_default_noop())					\
		if (0)							\
			dev_printk(KERN_DEBUG, dev, fmt, ##__VA_ARGS__); \
	else								\
		dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__);	\
})
```

Okay, `dev_dbg` uses a macro that first checks `dev_dbg_default_noop()`. What is `dev_dbg_default_noop()`? Is it a function, or a macro? I need to check. This might provide the missing clue.



29/2 2026/09/21 00:59 tool grepper
0m Error:
log-in to see details

Args:
map[Expression:#define dev_dbg_default_noop PathPrefix:include/linux/dev_printk.h]

Results:
map[Output:]

30/2 2026/09/21 00:59 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 20977
							output: 36
							thoughts: 11
						

Thoughts:
Okay, here's my attempt at summarizing that thought process, keeping in mind I'm speaking to a fellow expert and I'm framing it as my own thought:

**Quick Sanity Check: `dev_dbg`**

Alright, let's just do a quick re-examination of `dev_dbg`. I've been working on this for a while and my brain's starting to feel fuzzy. Before I dive into anything new or try any complex debugging steps, I need to confirm the basics. I just want to run through that piece of the puzzle again in my head. A little re-check of `dev_dbg` seems like a good starting point. Make sure my understanding is solid. No need to make a mountain out of a molehill, let's keep it simple.



31/2 2026/09/21 00:59 tool grepper
0m Error:
log-in to see details

Args:
map[Expression:dev_dbg_default_noop PathPrefix:include/linux/dev_printk.h]

Results:
map[Output:]

32/2 2026/09/21 00:59 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 21206
							output: 34
							thoughts: 1626
						

Thoughts:
**Analyzing the Root Cause of a KASAN Crash in `dev_dbg`**

Okay, so I was looking at this crash and my initial grep of `dev_dbg` gave me the typical macro definitions. It seems like the behavior of `dev_dbg` really hinges on whether `CONFIG_DYNAMIC_DEBUG` is enabled, or if `DEBUG` is defined. If neither of those are true, we're dealing with `dev_no_printk`. My first thought was that if `dev_no_printk` is used because of the `if (0)` construct, the `dev` argument is never evaluated at runtime, and I initially dismissed KASAN as the cause.

However, the assembly code is showing me otherwise. I can see a KASAN shadow memory check, specifically targeting the address `0x328` offset from `%rax`, which appears to be reading `input->dev.parent`. Now, the tricky part is figuring out *why* this read is happening. Initially, I thought this was just a normal field access inside the macro. That's `input`, which is a pointer to a `struct input_dev`, then `input->dev`, and then `input->dev.parent`. The address is calculated as `input + 0x328`, then a KASAN check is performed. Clearly, since `input` is NULL, the crash occurs when KASAN attempts to check the shadow memory for the invalid address `0x328`.

The obvious question, then, is *why* is it dereferencing `input->dev.parent` if it is supposed to be optimized out in `dev_no_printk`? My thought immediately goes to `CONFIG_DYNAMIC_DEBUG`. If dynamic debug is enabled, `dev_dbg` expands to `dynamic_dev_dbg`. I went back and looked at the assembly, where I saw what appeared to be a `__sanitizer_cov_trace_pc` call. That makes sense. It looks like the KASAN check, which causes the crash, *must* be happening inside `dynamic_dev_dbg`.

In the `dynamic_dev_dbg` code, `dev` is passed as part of the variadic arguments. If `DYNAMIC_DEBUG_BRANCH` is true, it *should* evaluate `dev`. If it is false, it *should not* be evaluating `dev`. But the crash is happening. I need to re-examine the assembly closely, particularly the call stack, to see if `dynamic_dev_dbg` is actually being called, or something *like* `dynamic_dev_dbg`. Also, it's worth checking to see if `DEBUG` is defined anywhere.



33/2 2026/09/21 01:00 tool grepper
0m Error:
log-in to see details

Args:
map[Expression:#define DEBUG PathPrefix:drivers/hid/wacom_wac.c]

Results:
map[Output:]

34/2 2026/09/21 01:00 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 23454
							output: 34
							thoughts: 64
						

Thoughts:
**Debugging a Debugging Macro**

Okay, so I'm digging into this code and a question popped into my head: if `CONFIG_DYNAMIC_DEBUG` is enabled, could there be a problem if the `dev` variable is evaluated *before* the conditional check? It seems like it might be a potential optimization issue, or maybe even a bug. But then, I quickly remembered that it's a macro, right? Macros are substituted directly during compilation, so the order of evaluation shouldn't be a problem. That eliminates that as a concern.

Just to be sure, though, I should double-check the definition of `dev_dbg` in `include/linux/dev_printk.h`. Gotta make sure my assumptions are solid. It's always the best practice to verify what I *think* I know.



35/2 2026/09/21 01:00 tool grepper
0m Args:
map[Expression:#define dev_dbg PathPrefix:include/linux/dev_printk.h]

Results:
map[Output:include/linux/dev_printk.h=95=void _dev_info(const struct device *dev, const char *fmt, ...)
--
include/linux/dev_printk.h-163-	(defined(CONFIG_DYNAMIC_DEBUG_CORE) && defined(DYNAMIC_DEBUG_MODULE))
include/linux/dev_printk.h:164:#define dev_dbg(dev, fmt, ...)						\
include/linux/dev_printk.h-165-	dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
include/linux/dev_printk.h-166-#elif defined(DEBUG)
include/linux/dev_printk.h:167:#define dev_dbg(dev, fmt, ...)						\
include/linux/dev_printk.h-168-	dev_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__)
include/linux/dev_printk.h-169-#else
include/linux/dev_printk.h:170:#define dev_dbg(dev, fmt, ...)						\
include/linux/dev_printk.h-171-	dev_no_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__)
--
include/linux/dev_printk.h=186=do {									\
--
include/linux/dev_printk.h-205-	dev_level_once(dev_info, dev, fmt, ##__VA_ARGS__)
include/linux/dev_printk.h:206:#define dev_dbg_once(dev, fmt, ...)					\
include/linux/dev_printk.h-207-	dev_level_once(dev_dbg, dev, fmt, ##__VA_ARGS__)
--
include/linux/dev_printk.h=210=do {									\
--
include/linux/dev_printk.h-234-/* descriptor check is first to prevent flooding with "callbacks suppressed" */
include/linux/dev_printk.h:235:#define dev_dbg_ratelimited(dev, fmt, ...)				\
include/linux/dev_printk.h-236-do {									\
--
include/linux/dev_printk.h-246-#elif defined(DEBUG)
include/linux/dev_printk.h:247:#define dev_dbg_ratelimited(dev, fmt, ...)				\
include/linux/dev_printk.h-248-do {									\
--
include/linux/dev_printk.h-255-#else
include/linux/dev_printk.h:256:#define dev_dbg_ratelimited(dev, fmt, ...)				\
include/linux/dev_printk.h-257-	dev_no_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__)
]

36/2 2026/09/21 01:00 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 24426
							output: 37
							thoughts: 956
						

Thoughts:
**Analyzing Kernel Debugging Macros and Potential KASAN Issues**

Okay, let's break this down. I'm looking at `dev_no_printk` – that macro uses `if (0)`, so any expression within it, like the `dev` argument, shouldn't be evaluated at runtime. But, `dev` is still passed to `_dev_printk` inside the macro. I need to be absolutely certain that `dev` is not evaluated in the "no print" case. In standard C, expressions inside `if (0)` are indeed optimized out at compile time and not evaluated at runtime. However, I need to consider other possibilities, like what happens if `dev_dbg` isn't `dev_no_printk`. And the elephant in the room: `CONFIG_DYNAMIC_DEBUG`.

Aha! If dynamic debug is on, `dev_dbg` becomes `dynamic_dev_dbg`, which then goes through a series of macro calls: `_dynamic_func_call`, `_dynamic_func_call_cls`, and finally `__dynamic_func_call_cls`. Crucially, this last one has a `DYNAMIC_DEBUG_BRANCH(id)`. Now, if that branch is *taken* (i.e., `DYNAMIC_DEBUG_BRANCH(id)` is true), then `dev` *is* evaluated. Syzkaller kernels often have `CONFIG_DYNAMIC_DEBUG` enabled, but I have to remember that `DYNAMIC_DEBUG_BRANCH(id)` only enables dynamic debug for *this specific callsite*. So it's conditional.

Right, back to the assembly. That's where the real problem lies. The code loads an address relative to `rax`, which I believe is my input pointer, into `rdi`. Then, it checks the KASAN shadow memory at an address related to `input + 0x328`, which happens to be the address of `input->dev.parent`. It's checking KASAN, and this *must* mean the `dev` is evaluated! But wait. That branch is *conditionally* executed. The branch is taken *only* if dynamic debug is enabled at the call site.

Here's the critical question: is `dev` evaluated before the `if` statement? What if it's evaluated unconditionally, *then* the `if` happens? That could explain the KASAN check! I need to re-examine the definition of `dev_dbg`. Maybe it is a function. No. It is still a macro. Okay, let me go back to `include/linux/dev_printk.h` and check again...



37/2 2026/09/21 01:00 tool read-file
0m Args:
map[File:include/linux/dev_printk.h FirstLine:150 LineCount:30]

Results:
map[Contents: 150:		dev_printk_index_wrap(_dev_crit, KERN_CRIT, dev, dev_fmt(fmt), ##__VA_ARGS__)
 151:	#define dev_alert(dev, fmt, ...) \
 152:		dev_printk_index_wrap(_dev_alert, KERN_ALERT, dev, dev_fmt(fmt), ##__VA_ARGS__)
 153:	#define dev_err(dev, fmt, ...) \
 154:		dev_printk_index_wrap(_dev_err, KERN_ERR, dev, dev_fmt(fmt), ##__VA_ARGS__)
 155:	#define dev_warn(dev, fmt, ...) \
 156:		dev_printk_index_wrap(_dev_warn, KERN_WARNING, dev, dev_fmt(fmt), ##__VA_ARGS__)
 157:	#define dev_notice(dev, fmt, ...) \
 158:		dev_printk_index_wrap(_dev_notice, KERN_NOTICE, dev, dev_fmt(fmt), ##__VA_ARGS__)
 159:	#define dev_info(dev, fmt, ...) \
 160:		dev_printk_index_wrap(_dev_info, KERN_INFO, dev, dev_fmt(fmt), ##__VA_ARGS__)
 161:	
 162:	#if defined(CONFIG_DYNAMIC_DEBUG) || \
 163:		(defined(CONFIG_DYNAMIC_DEBUG_CORE) && defined(DYNAMIC_DEBUG_MODULE))
 164:	#define dev_dbg(dev, fmt, ...)						\
 165:		dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
 166:	#elif defined(DEBUG)
 167:	#define dev_dbg(dev, fmt, ...)						\
 168:		dev_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__)
 169:	#else
 170:	#define dev_dbg(dev, fmt, ...)						\
 171:		dev_no_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__)
 172:	#endif
 173:	
 174:	#ifdef CONFIG_PRINTK
 175:	#define dev_level_once(dev_level, dev, fmt, ...)			\
 176:	do {									\
 177:		static bool __print_once __read_mostly;				\
 178:										\
 179:		if (!__print_once) {						\
]

38/2 2026/09/21 01:00 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 26649
							output: 37
							thoughts: 85
						

Thoughts:
Here's my summary, as if I were thinking it:

**Digging into the `dev_dbg` Macro**

Okay, let's break this down. I'm looking at this `dev_dbg` macro definition, and it's calling out to `dynamic_dev_dbg`, which is interesting. Wait, now I see the conditional aspect. If `CONFIG_DYNAMIC_DEBUG` is enabled, then `dev_dbg` is aliased to `dynamic_dev_dbg`. That makes sense; so, if dynamic debugging is off, something else is probably happening with `dev_dbg`.

Alright, I should take another look at the `dynamic_dev_dbg` implementation itself, as that's where the core logic of the debug message likely is if the config is enabled. I need to be sure this is working correctly.



39/2 2026/09/21 01:00 tool read-file
0m Args:
map[File:include/linux/dynamic_debug.h FirstLine:270 LineCount:30]

Results:
map[Contents: 270:						func, ##__VA_ARGS__)
 271:	#define _dynamic_func_call_no_desc(fmt, func, ...)			\
 272:		_dynamic_func_call_cls_no_desc(_DPRINTK_CLASS_DFLT, fmt,	\
 273:					       func, ##__VA_ARGS__)
 274:	
 275:	#define dynamic_pr_debug_cls(cls, fmt, ...)				\
 276:		_dynamic_func_call_cls(cls, fmt, __dynamic_pr_debug,		\
 277:				   pr_fmt(fmt), ##__VA_ARGS__)
 278:	
 279:	#define dynamic_pr_debug(fmt, ...)				\
 280:		_dynamic_func_call(fmt, __dynamic_pr_debug,		\
 281:				   pr_fmt(fmt), ##__VA_ARGS__)
 282:	
 283:	#define dynamic_dev_dbg(dev, fmt, ...)				\
 284:		_dynamic_func_call(fmt, __dynamic_dev_dbg, 		\
 285:				   dev, fmt, ##__VA_ARGS__)
 286:	
 287:	#define dynamic_netdev_dbg(dev, fmt, ...)			\
 288:		_dynamic_func_call(fmt, __dynamic_netdev_dbg,		\
 289:				   dev, fmt, ##__VA_ARGS__)
 290:	
 291:	#define dynamic_ibdev_dbg(dev, fmt, ...)			\
 292:		_dynamic_func_call(fmt, __dynamic_ibdev_dbg,		\
 293:				   dev, fmt, ##__VA_ARGS__)
 294:	
 295:	#define dynamic_hex_dump(prefix_str, prefix_type, rowsize,		\
 296:				 groupsize, buf, len, ascii)			\
 297:		_dynamic_func_call_no_desc(__builtin_constant_p(prefix_str) ? prefix_str : "hexdump", \
 298:					   print_hex_dump,			\
 299:					   KERN_DEBUG, prefix_str, prefix_type,	\
]

40/2 2026/09/21 01:00 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 27557
							output: 30
							thoughts: 404
						

Thoughts:
**Analyzing the `_dynamic_func_call` Macro and Debugging a Crash**

Okay, let's break this down. First, I see that `_dynamic_func_call` is a macro defined in a chain. It starts with the basic `_dynamic_func_call` that ultimately calls `__dynamic_func_call_cls`.  This macro seems to be responsible for conditionally executing a function call based on a dynamic debug setting.

My initial concern was whether the arguments to the called function, specifically the `dev` argument, were being evaluated before the `if` statement, which could potentially cause issues if `dev` was uninitialized or had side effects that shouldn't always occur. However, I quickly realized the macro expansion handles this correctly. `dev` is being substituted directly into the function call `func(&id, ##__VA_ARGS__)`, so the evaluation of `dev` happens *inside* the `if` block, only when the condition `DYNAMIC_DEBUG_BRANCH(id)` is true. That clears that up.

So, if `DYNAMIC_DEBUG_BRANCH(id)` is true, as indicated by the crash, `dev` *should* be evaluated. Why is it crashing then? It's likely because dynamic debug *is* enabled for this call. Now, the next question is, what's enabling dynamic debug? Does syzkaller enable it for the entire file, perhaps as a general testing approach, or is it triggered by fault injection or some other specific test condition?

Another possibility, and this is important, is to check the configuration. Could it be that `CONFIG_DYNAMIC_DEBUG` is *not* enabled, but `DEBUG` *is*? This might lead to unexpected behavior. To confirm this, the next step is to examine the `drivers/hid/Makefile` to see if there are any conditional definitions of `DEBUG` or related flags that could be influencing this behavior. This would help identify if a broader debugging flag might be causing the issue.



41/2 2026/09/21 01:00 tool grepper
0m Error:
log-in to see details

Args:
map[Expression:ccflags-y.*DEBUG PathPrefix:drivers/hid/]

Results:
map[Output:]

42/2 2026/09/21 01:00 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 28427
							output: 36
							thoughts: 216
						

Thoughts:
**Analyzing Dynamic Debug and Potential Syzkaller Interactions**

Okay, so I'm looking into how dynamic debug, specifically within the context of syzkaller fuzzing, might be causing an issue. First, I need to confirm if `CONFIG_DYNAMIC_DEBUG` is even enabled in the syzkaller configuration. Typically, it's set to 'y'. If it *is* enabled, then `DYNAMIC_DEBUG_BRANCH(id)` translates to `unlikely(id.flags & _DPRINTK_FLAGS_PRINT)`. Hmm, if that condition *is* true, that tells me that dynamic debug has been specifically enabled for that particular `printk` statement. That's a red flag. Syzkaller could've done this through the `/sys/kernel/debug/dynamic_debug/control` interface. And if it *is* evaluated, boom - crash.

Now, my mind shifts to other potential ways `dev` could be evaluated and trigger the issue. I need to exhaust all possibilities. Is `dev_dbg` a function? No, of course not, it's a macro. Right, let's trace through the macros. What about `dev_fmt`? Does *that* evaluate `dev`? Let's refresh our memories. I know it's something like:
```c
#define dev_fmt(fmt) fmt
```
Ah, simple string formatting macro. That's not the problem. But wait... is `dev_fmt` redefined *anywhere* in the code base that could cause trouble? I'm specifically thinking of those driver directories, let's check `drivers/hid/wacom_wac.c`. I have to be thorough.



43/2 2026/09/21 01:00 tool grepper
0m Error:
log-in to see details

Args:
map[Expression:#define dev_fmt PathPrefix:drivers/hid/wacom_wac.c]

Results:
map[Output:]

44/2 2026/09/21 01:00 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 29055
							output: 34
							thoughts: 1418
						

Thoughts:
**Debugging a Suspected Null Pointer Dereference in Kernel Code**

Okay, so I'm digging into this crash, and it looks like it might be related to a potentially uninitialized value being used in a `dev_dbg` call. My initial thought was that perhaps `dev_dbg` wasn't being used, but some other debug call like `hid_dbg` was instead. I can eliminate that by just confirming that's not the case.

Looking at the code, it seems the crash happens when encountering an "unknown report."  The core of the problem seems to be the potential evaluation of `input->dev.parent` within the `dev_dbg` call. I started by tracing the call, thinking that maybe `dev_dbg` unconditionally evaluates its first argument.

I checked the definition of `dev_dbg` and remembered it uses `dynamic_dev_dbg` which can potentially be nullified to `dev_no_printk` if `CONFIG_DYNAMIC_DEBUG` is not enabled, or `DEBUG` isn't defined. This seemed like a potential issue, as in the `dev_no_printk` case, the `dev` argument is *supposed* to be inside an `if (0)` block. Then, if the code is dead, is the `dev` argument evaluated at all? The compiler, if all is working properly, should eliminate dead code.

Then I recalled KASAN, the kernel address sanitizer, and its role as a compiler plugin. I wondered if KASAN might be instrumenting those memory accesses, even within the `if (0)` block. But that's a dead end, as KASAN would either be elided or have no affect, and the issue would be different. I went back and re-examined `dev_no_printk`. `dev` is passed to `_dev_printk` and the `_dev_printk` function is *never* called, making it's arguments un-evaluated!

I had to look at the assembly. And that's where things got interesting. The assembly shows that the stack is being read and some value is loaded into `%rax`, then an offset from `%rax` is computed. That value from `%rax` is being checked with KASAN, and this occurs before a conditional jump. Then `%rax` is loaded with some seemingly static format string. This assembly confirmed that `dev_dbg` *is* being called.

So why is it being called? I went back to the source to understand. If `DYNAMIC_DEBUG_BRANCH(id)` is true, dynamic debug is enabled for this `printk`. This prompted me to question how that setting is made in the first place, and if an unprivileged user can enable it. Dynamic debug requires root access. If dynamic debug is disabled the crash wouldn't happen. 

I started to check if `dev_dbg` is always evaluated and I'm going to look to make sure it is defined as I expect it to be, in `include/linux/dev_printk.h` in the kernel source.



45/2 2026/09/21 01:01 tool grepper
0m Args:
map[Expression:#define dev_dbg PathPrefix:include/linux/dev_printk.h]

Results:
map[Output:include/linux/dev_printk.h=95=void _dev_info(const struct device *dev, const char *fmt, ...)
--
include/linux/dev_printk.h-163-	(defined(CONFIG_DYNAMIC_DEBUG_CORE) && defined(DYNAMIC_DEBUG_MODULE))
include/linux/dev_printk.h:164:#define dev_dbg(dev, fmt, ...)						\
include/linux/dev_printk.h-165-	dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
include/linux/dev_printk.h-166-#elif defined(DEBUG)
include/linux/dev_printk.h:167:#define dev_dbg(dev, fmt, ...)						\
include/linux/dev_printk.h-168-	dev_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__)
include/linux/dev_printk.h-169-#else
include/linux/dev_printk.h:170:#define dev_dbg(dev, fmt, ...)						\
include/linux/dev_printk.h-171-	dev_no_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__)
--
include/linux/dev_printk.h=186=do {									\
--
include/linux/dev_printk.h-205-	dev_level_once(dev_info, dev, fmt, ##__VA_ARGS__)
include/linux/dev_printk.h:206:#define dev_dbg_once(dev, fmt, ...)					\
include/linux/dev_printk.h-207-	dev_level_once(dev_dbg, dev, fmt, ##__VA_ARGS__)
--
include/linux/dev_printk.h=210=do {									\
--
include/linux/dev_printk.h-234-/* descriptor check is first to prevent flooding with "callbacks suppressed" */
include/linux/dev_printk.h:235:#define dev_dbg_ratelimited(dev, fmt, ...)				\
include/linux/dev_printk.h-236-do {									\
--
include/linux/dev_printk.h-246-#elif defined(DEBUG)
include/linux/dev_printk.h:247:#define dev_dbg_ratelimited(dev, fmt, ...)				\
include/linux/dev_printk.h-248-do {									\
--
include/linux/dev_printk.h-255-#else
include/linux/dev_printk.h:256:#define dev_dbg_ratelimited(dev, fmt, ...)				\
include/linux/dev_printk.h-257-	dev_no_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__)
]

46/2 2026/09/21 01:01 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 31854
							output: 31
							thoughts: 535
						

Thoughts:
**Analyzing the Potential for Device Driver Debug Information Exposure**

Okay, so I'm looking at how `dev_dbg` works and trying to understand a possible vulnerability. If `CONFIG_DYNAMIC_DEBUG` is enabled, then `dev_dbg` becomes `dynamic_dev_dbg`. Digging into that macro, it's clear it ultimately calls `__dynamic_dev_dbg`, passing the device pointer (`dev`), the format string (`fmt`), and any other arguments (`##__VA_ARGS__`). Crucially, the `dev` argument is *inside* the `if (DYNAMIC_DEBUG_BRANCH(id))` block. This means `dev` is only evaluated if that branch is taken.

Now, my initial thought is, is `DYNAMIC_DEBUG_BRANCH(id)` true by default? No, not usually. These dynamic debug statements are disabled unless someone enables them through a boot parameter, such as `ddebug_query`, or by writing to the `/sys/kernel/debug/dynamic_debug/control` file. However, syzkaller is known for messing with those sorts of things.

But that's not the only way `dev_dbg` can be defined. What if `DEBUG` is defined? If `DEBUG` is defined, `dev_dbg` becomes `dev_printk`, which always evaluates the device pointer (`dev`). That's a critical difference. In that case, the `dev` pointer would always be evaluated, regardless of dynamic debug settings. So, the question is whether `DEBUG` is defined for the target driver, `drivers/hid/wacom_wac.c`, or any driver that may be affected. Time to check the `Makefile` and see if there are any conditional compilation flags at play.



47/2 2026/09/21 01:01 tool read-file
0m Args:
map[File:drivers/hid/Makefile FirstLine:1 LineCount:50]

Results:
map[Contents:   1:	# SPDX-License-Identifier: GPL-2.0
   2:	#
   3:	# Makefile for the HID driver
   4:	#
   5:	hid-y			:= hid-core.o hid-input.o hid-quirks.o
   6:	hid-$(CONFIG_DEBUG_FS)		+= hid-debug.o
   7:	hid-$(CONFIG_HID_HAPTIC)	+= hid-haptic.o
   8:	
   9:	obj-$(CONFIG_HID_BPF)		+= bpf/
  10:	
  11:	obj-$(CONFIG_HID)		+= hid.o
  12:	obj-$(CONFIG_UHID)		+= uhid.o
  13:	
  14:	obj-$(CONFIG_HID_GENERIC)	+= hid-generic.o
  15:	
  16:	hid-$(CONFIG_HIDRAW)		+= hidraw.o
  17:	
  18:	hid-logitech-y		:= hid-lg.o
  19:	hid-logitech-$(CONFIG_LOGITECH_FF)	+= hid-lgff.o
  20:	hid-logitech-$(CONFIG_LOGIRUMBLEPAD2_FF)	+= hid-lg2ff.o
  21:	hid-logitech-$(CONFIG_LOGIG940_FF)	+= hid-lg3ff.o
  22:	hid-logitech-$(CONFIG_LOGIWHEELS_FF)	+= hid-lg4ff.o
  23:	
  24:	hid-wiimote-y		:= hid-wiimote-core.o hid-wiimote-modules.o
  25:	hid-wiimote-$(CONFIG_DEBUG_FS)	+= hid-wiimote-debug.o
  26:	
  27:	obj-$(CONFIG_HID_A4TECH)	+= hid-a4tech.o
  28:	obj-$(CONFIG_HID_ACCUTOUCH)	+= hid-accutouch.o
  29:	obj-$(CONFIG_HID_ALPS)		+= hid-alps.o
  30:	obj-$(CONFIG_HID_ACRUX)		+= hid-axff.o
  31:	obj-$(CONFIG_HID_APPLE)		+= hid-apple.o
  32:	obj-$(CONFIG_HID_APPLEIR)	+= hid-appleir.o
  33:	obj-$(CONFIG_HID_APPLETB_BL)	+= hid-appletb-bl.o
  34:	obj-$(CONFIG_HID_APPLETB_KBD)	+= hid-appletb-kbd.o
  35:	obj-$(CONFIG_HID_CREATIVE_SB0540)	+= hid-creative-sb0540.o
  36:	obj-$(CONFIG_HID_ASUS)		+= hid-asus.o
  37:	obj-$(CONFIG_HID_AUREAL)	+= hid-aureal.o
  38:	obj-$(CONFIG_HID_BELKIN)	+= hid-belkin.o
  39:	obj-$(CONFIG_HID_BETOP_FF)	+= hid-betopff.o
  40:	obj-$(CONFIG_HID_BIGBEN_FF)	+= hid-bigbenff.o
  41:	obj-$(CONFIG_HID_CHERRY)	+= hid-cherry.o
  42:	obj-$(CONFIG_HID_CHICONY)	+= hid-chicony.o
  43:	obj-$(CONFIG_HID_CMEDIA)	+= hid-cmedia.o
  44:	obj-$(CONFIG_HID_CORSAIR)	+= hid-corsair.o hid-corsair-void.o
  45:	obj-$(CONFIG_HID_COUGAR)	+= hid-cougar.o
  46:	obj-$(CONFIG_HID_CP2112)	+= hid-cp2112.o
  47:	obj-$(CONFIG_HID_CYPRESS)	+= hid-cypress.o
  48:	obj-$(CONFIG_HID_DRAGONRISE)	+= hid-dr.o
  49:	obj-$(CONFIG_HID_EMS_FF)	+= hid-emsff.o
  50:	obj-$(CONFIG_HID_ELAN)		+= hid-elan.o
]

48/2 2026/09/21 01:01 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 33885
							output: 27
							thoughts: 456
						

Thoughts:
**Debugging a Potential NULL Pointer Dereference**

Okay, so I'm looking at this issue, and the first thing that jumps out is the lack of a `DEBUG` definition in the Makefile. That's a classic starting point, but wait, what about the kernel config syzkaller is using? Could it be disabling `CONFIG_DYNAMIC_DEBUG` directly, but enabling `CONFIG_DEBUG_KERNEL` or something similar, and still defining `DEBUG` in a roundabout way? No, that's unlikely; `DEBUG` is usually controlled on a file-by-file basis or through `ccflags-y += -DDEBUG`.

Now, here's a wrinkle: what if `dev_dbg` is actually aliased to `dev_no_printk`, but KASAN is still instrumenting it? Aha! Let's check whether KASAN even bothers to instrument a memory access inside an `if (0)` block. Let me visualize this:

```c
if (0) {
    _dev_printk(KERN_DEBUG, input->dev.parent, ...);
}
```

Okay, the compiler parses it, builds the AST, and then, during the optimization pass, it should remove the dead code. KASAN instrumentation happens during a compiler pass, so if KASAN ran *before* dead code elimination, it *could* instrument that memory access, right? Let's consider `input->dev.parent`. KASAN would insert a check for `input + 0x328`, which is the offset of `dev.parent`. But wait! If the whole block is within `if (0)`, the whole block is eliminated. KASAN instrumentation is inserted into the Intermediate Representation (IR). If the block is eliminated, the KASAN checks are gone too! It CANNOT be that it's inside an `if (0)` statement, right? That means that `dev_dbg` *is* actually getting executed.

So, why is `dev_dbg` being executed? Maybe syzkaller enables dynamic debugging using fault injection or boot parameters? Ah, yes! Syzkaller *often* boots with `dyndbg="file * +p"` or something to enable all dynamic debugs for maximum code coverage! I'll assume that `dev_dbg` is indeed executed.

Now, the bug is a NULL pointer dereference on `wacom->pen_input`. So why is `wacom->pen_input` NULL? Time to track down where this thing is initialized. Let's see...



49/2 2026/09/21 01:01 tool codesearch-find-references
0m Args:
map[Name:wacom_wac::pen_input]

Results:
map[References:[map[ReferenceKind:writes ReferencingEntityKind:function ReferencingEntityName:wacom_allocate_inputs SourceFile:drivers/hid/wacom_sys.c SourceLine:2112] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_allocate_inputs SourceFile:drivers/hid/wacom_sys.c SourceLine:2115] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_allocate_inputs SourceFile:drivers/hid/wacom_sys.c SourceLine:2120] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_bpt_pen SourceFile:drivers/hid/wacom_wac.c SourceLine:3212] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_dtu_irq SourceFile:drivers/hid/wacom_wac.c SourceLine:263] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_dtus_irq SourceFile:drivers/hid/wacom_wac.c SourceLine:293] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_exit_report SourceFile:drivers/hid/wacom_wac.c SourceLine:736] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_force_proxout SourceFile:drivers/hid/wacom_wac.c SourceLine:43] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_graphire_irq SourceFile:drivers/hid/wacom_wac.c SourceLine:345] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_intuos_bt_irq SourceFile:drivers/hid/wacom_wac.c SourceLine:1215] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_intuos_bt_irq SourceFile:drivers/hid/wacom_wac.c SourceLine:1224] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_intuos_bt_irq SourceFile:drivers/hid/wacom_wac.c SourceLine:1242] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_intuos_bt_process_data SourceFile:drivers/hid/wacom_wac.c SourceLine:1201] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_intuos_general SourceFile:drivers/hid/wacom_wac.c SourceLine:853] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_intuos_inout SourceFile:drivers/hid/wacom_wac.c SourceLine:777] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_intuos_irq SourceFile:drivers/hid/wacom_wac.c SourceLine:1025] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_intuos_pro2_bt_irq SourceFile:drivers/hid/wacom_wac.c SourceLine:1548] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_intuos_pro2_bt_irq SourceFile:drivers/hid/wacom_wac.c SourceLine:1556] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_intuos_pro2_bt_irq SourceFile:drivers/hid/wacom_wac.c SourceLine:1561] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_intuos_pro2_bt_pen SourceFile:drivers/hid/wacom_wac.c SourceLine:1279] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_penpartner_irq SourceFile:drivers/hid/wacom_wac.c SourceLine:129] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_pl_irq SourceFile:drivers/hid/wacom_wac.c SourceLine:174] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_ptu_irq SourceFile:drivers/hid/wacom_wac.c SourceLine:234] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_register_inputs SourceFile:drivers/hid/wacom_sys.c SourceLine:2173] map[ReferenceKind:writes ReferencingEntityKind:function ReferencingEntityName:wacom_register_inputs SourceFile:drivers/hid/wacom_sys.c SourceLine:2200] map[ReferenceKind:writes ReferencingEntityKind:function ReferencingEntityName:wacom_release_resources SourceFile:drivers/hid/wacom_sys.c SourceLine:2339] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_set_barrel_switch3_usage SourceFile:drivers/hid/wacom_wac.c SourceLine:2322] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_basic_pro_pen SourceFile:drivers/hid/wacom_wac.c SourceLine:3596] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_cintiq SourceFile:drivers/hid/wacom_wac.c SourceLine:3610] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3787] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3787] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3787] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3787] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3787] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3788] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3788] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3788] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3788] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3788] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3789] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3789] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3789] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3789] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3789] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3790] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3790] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3790] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3790] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3790] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3791] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3791] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3791] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3791] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3791] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3792] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3792] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3792] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3792] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3792] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3793] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3793] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3793] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3793] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3793] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3794] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3794] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3794] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3794] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3794] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3795] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3795] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3795] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3795] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3795] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3796] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3796] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3796] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3796] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3796] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3797] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3797] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3797] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3797] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3797] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_inputs SourceFile:drivers/hid/wacom_sys.c SourceLine:2133] map[ReferenceKind:writes ReferencingEntityKind:function ReferencingEntityName:wacom_setup_inputs SourceFile:drivers/hid/wacom_sys.c SourceLine:2144] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_intuos SourceFile:drivers/hid/wacom_wac.c SourceLine:3629] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_tpc_irq SourceFile:drivers/hid/wacom_wac.c SourceLine:1799] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_tpc_irq SourceFile:drivers/hid/wacom_wac.c SourceLine:1800] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_tpc_pen SourceFile:drivers/hid/wacom_wac.c SourceLine:1768] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_wac_collection SourceFile:drivers/hid/wacom_wac.c SourceLine:3018] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_wac_event SourceFile:drivers/hid/wacom_wac.c SourceLine:2966] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_wac_irq SourceFile:drivers/hid/wacom_wac.c SourceLine:3585] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_wac_irq SourceFile:drivers/hid/wacom_wac.c SourceLine:3586] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_wac_pen_event SourceFile:drivers/hid/wacom_wac.c SourceLine:2429] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_wac_pen_report SourceFile:drivers/hid/wacom_wac.c SourceLine:2586] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_wac_pen_usage_mapping SourceFile:drivers/hid/wacom_wac.c SourceLine:2341] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_wac_report SourceFile:drivers/hid/wacom_wac.c SourceLine:3056]] TruncatedOutput:false]

50/2 2026/09/21 01:01 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 40558
							output: 39
							thoughts: 17
						

Thoughts:
Okay, here's my interpretation of that thought process, from an expert's perspective:

**Allocation of Input Structures for Wacom Devices**

Right, so we're diving into the Wacom driver, specifically the input handling. The function `wacom_allocate_inputs` is the key here. From the name, it's pretty clear: its primary function is to allocate the input structures related to a Wacom tablet. I'm assuming we're dealing with the core input layer here, not just setting up the device, or initializing the hardware.

What's it allocating? Ah, it's allocating `wacom->pen_input`. This tells me that the focus is on the pen input component, which is standard. Likely, this structure will hold all the necessary elements related to the pen's physical properties (e.g. pressure levels, button states, tilt data) and the associated input devices. And of course, it includes the actual `input_dev` struct, used by the kernel's input subsystem. This implies that there will also likely be the allocation of related structs.

This function is essentially the setup stage for the Wacom tablet, where we're going from the lower level hardware data to the standardized input handling system within the Linux kernel. It's the point where raw data is interpreted and prepared for higher level programs to use. This is where we hook into the whole input subsystem infrastructure, making everything compatible.



51/2 2026/09/21 01:01 tool read-file
0m Args:
map[File:drivers/hid/wacom_sys.c FirstLine:2100 LineCount:50]

Results:
map[Contents:2100:		input_dev->id.vendor  = hdev->vendor;
2101:		input_dev->id.product = wacom_wac->pid ? wacom_wac->pid : hdev->product;
2102:		input_dev->id.version = hdev->version;
2103:		input_set_drvdata(input_dev, wacom);
2104:	
2105:		return input_dev;
2106:	}
2107:	
2108:	static int wacom_allocate_inputs(struct wacom *wacom)
2109:	{
2110:		struct wacom_wac *wacom_wac = &(wacom->wacom_wac);
2111:	
2112:		wacom_wac->pen_input = wacom_allocate_input(wacom);
2113:		wacom_wac->touch_input = wacom_allocate_input(wacom);
2114:		wacom_wac->pad_input = wacom_allocate_input(wacom);
2115:		if (!wacom_wac->pen_input ||
2116:		    !wacom_wac->touch_input ||
2117:		    !wacom_wac->pad_input)
2118:			return -ENOMEM;
2119:	
2120:		wacom_wac->pen_input->name = wacom_wac->pen_name;
2121:		wacom_wac->touch_input->name = wacom_wac->touch_name;
2122:		wacom_wac->pad_input->name = wacom_wac->pad_name;
2123:	
2124:		return 0;
2125:	}
2126:	
2127:	static int wacom_setup_inputs(struct wacom *wacom)
2128:	{
2129:		struct input_dev *pen_input_dev, *touch_input_dev, *pad_input_dev;
2130:		struct wacom_wac *wacom_wac = &(wacom->wacom_wac);
2131:		int error = 0;
2132:	
2133:		pen_input_dev = wacom_wac->pen_input;
2134:		touch_input_dev = wacom_wac->touch_input;
2135:		pad_input_dev = wacom_wac->pad_input;
2136:	
2137:		if (!pen_input_dev || !touch_input_dev || !pad_input_dev)
2138:			return -EINVAL;
2139:	
2140:		error = wacom_setup_pen_input_capabilities(pen_input_dev, wacom_wac);
2141:		if (error) {
2142:			/* no pen in use on this interface */
2143:			input_free_device(pen_input_dev);
2144:			wacom_wac->pen_input = NULL;
2145:			pen_input_dev = NULL;
2146:		}
2147:	
2148:		error = wacom_setup_touch_input_capabilities(touch_input_dev, wacom_wac);
2149:		if (error) {
]

52/2 2026/09/21 01:01 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 41817
							output: 39
							thoughts: 67
						

Thoughts:
**My Analysis of Wacom Input Setup**

Okay, so `wacom_setup_inputs` is handling the cleanup nicely. It *should* free the `pen_input_dev` and nullify `wacom_wac->pen_input` if `wacom_setup_pen_input_capabilities` returns an error. That's good, prevents a memory leak. Now, the real crux of this setup lies in that `wacom_setup_pen_input_capabilities` function. I need to understand what it's doing, the conditions it's checking, and where it might fail. Let's delve into that function and make sure there are no obvious oversights or potential issues with the capabilities setup itself, as that's the point of failure. I expect it's handling the pen's initial configuration.



53/2 2026/09/21 01:01 tool read-file
0m Args:
map[File:drivers/hid/wacom_sys.c FirstLine:2000 LineCount:50]

Results:
map[Contents:2000:		.store = wacom_store_unpair_remote,
2001:	};
2002:	
2003:	static const struct attribute *remote_unpair_attrs[] = {
2004:		&unpair_remote_attr.attr,
2005:		NULL
2006:	};
2007:	
2008:	static void wacom_remotes_destroy(void *data)
2009:	{
2010:		struct wacom *wacom = data;
2011:		struct wacom_remote *remote = wacom->remote;
2012:	
2013:		if (!remote)
2014:			return;
2015:	
2016:		kobject_put(remote->remote_dir);
2017:		kfifo_free(&remote->remote_fifo);
2018:		wacom->remote = NULL;
2019:	}
2020:	
2021:	static int wacom_initialize_remotes(struct wacom *wacom)
2022:	{
2023:		int error = 0;
2024:		struct wacom_remote *remote;
2025:		int i;
2026:	
2027:		if (wacom->wacom_wac.features.type != REMOTE)
2028:			return 0;
2029:	
2030:		remote = devm_kzalloc(&wacom->hdev->dev, sizeof(*wacom->remote),
2031:				      GFP_KERNEL);
2032:		if (!remote)
2033:			return -ENOMEM;
2034:	
2035:		wacom->remote = remote;
2036:	
2037:		spin_lock_init(&remote->remote_lock);
2038:	
2039:		error = kfifo_alloc(&remote->remote_fifo,
2040:				5 * sizeof(struct wacom_remote_work_data),
2041:				GFP_KERNEL);
2042:		if (error) {
2043:			hid_err(wacom->hdev, "failed allocating remote_fifo\n");
2044:			return -ENOMEM;
2045:		}
2046:	
2047:		remote->remotes[0].group = remote0_serial_group;
2048:		remote->remotes[1].group = remote1_serial_group;
2049:		remote->remotes[2].group = remote2_serial_group;
]

54/2 2026/09/21 01:01 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 42799
							output: 44
							thoughts: 18
						

Thoughts:
Here's my attempt at summarizing the thought process, tailored for an expert audience:

**Investigating Pen Input Capabilities**

Okay, so I'm digging into this code, and the first thing I'm after is the `wacom_setup_pen_input_capabilities` function. It’s pretty clear from the name that's where the core initialization of pen input likely happens, the setting up of the groundwork for the device to respond as, well, a pen. Knowing that, and given my experience, I'm expecting to find the key initializations here, the crucial device-specific details. I'm imagining it's the gatekeeper to understanding how the driver actually *knows* what the pen *can* do, what its limitations are, and how it translates that into the system. Knowing this is critical to figuring out how the low level details get translated to the application layer.

I anticipate it'll be walking through different input modes, checking for various feature flags, possibly interacting with the hardware through some kind of register read/write mechanism... maybe even some probing for firmware versions. I'll be looking for where it sets up the data structures that'll be referenced later, things like the device capabilities struct, maybe some bitfields indicating pressure sensitivity, tilt support, number of buttons, and all those device-specific nuances. And of course, I'll be tracing the error handling – I always make a note of the likely failure cases, the corner cases. That gives me a head start on debugging later.



55/2 2026/09/21 01:01 tool codesearch-definition-source
0m Args:
map[ContextFile:drivers/hid/wacom_sys.c Name:wacom_setup_pen_input_capabilities]

Results:
map[SourceCode:3801:	int wacom_setup_pen_input_capabilities(struct input_dev *input_dev,
3802:					   struct wacom_wac *wacom_wac)
3803:	{
3804:		struct wacom_features *features = &wacom_wac->features;
3805:	
3806:		if (!(features->device_type & WACOM_DEVICETYPE_PEN))
3807:			return -ENODEV;
3808:	
3809:		if (features->device_type & WACOM_DEVICETYPE_DIRECT)
3810:			__set_bit(INPUT_PROP_DIRECT, input_dev->propbit);
3811:		else
3812:			__set_bit(INPUT_PROP_POINTER, input_dev->propbit);
3813:	
3814:		if (features->type == HID_GENERIC)
3815:			/* setup has already been done */
3816:			return 0;
3817:	
3818:		input_dev->evbit[0] |= BIT_MASK(EV_KEY) | BIT_MASK(EV_ABS);
3819:		__set_bit(BTN_TOUCH, input_dev->keybit);
3820:		__set_bit(ABS_MISC, input_dev->absbit);
3821:	
3822:		input_set_abs_params(input_dev, ABS_X, 0 + features->offset_left,
3823:				     features->x_max - features->offset_right,
3824:				     features->x_fuzz, 0);
3825:		input_set_abs_params(input_dev, ABS_Y, 0 + features->offset_top,
3826:				     features->y_max - features->offset_bottom,
3827:				     features->y_fuzz, 0);
3828:		input_set_abs_params(input_dev, ABS_PRESSURE, 0,
3829:			features->pressure_max, features->pressure_fuzz, 0);
3830:	
3831:		/* penabled devices have fixed resolution for each model */
3832:		input_abs_set_res(input_dev, ABS_X, features->x_resolution);
3833:		input_abs_set_res(input_dev, ABS_Y, features->y_resolution);
3834:	
3835:		switch (features->type) {
3836:		case GRAPHIRE_BT:
3837:			__clear_bit(ABS_MISC, input_dev->absbit);
3838:			fallthrough;
3839:	
3840:		case WACOM_MO:
3841:		case WACOM_G4:
3842:			input_set_abs_params(input_dev, ABS_DISTANCE, 0,
3843:						      features->distance_max,
3844:						      features->distance_fuzz, 0);
3845:			fallthrough;
3846:	
3847:		case GRAPHIRE:
3848:			input_set_capability(input_dev, EV_REL, REL_WHEEL);
3849:	
3850:			__set_bit(BTN_LEFT, input_dev->keybit);
3851:			__set_bit(BTN_RIGHT, input_dev->keybit);
3852:			__set_bit(BTN_MIDDLE, input_dev->keybit);
3853:	
3854:			__set_bit(BTN_TOOL_RUBBER, input_dev->keybit);
3855:			__set_bit(BTN_TOOL_PEN, input_dev->keybit);
3856:			__set_bit(BTN_TOOL_MOUSE, input_dev->keybit);
3857:			__set_bit(BTN_STYLUS, input_dev->keybit);
3858:			__set_bit(BTN_STYLUS2, input_dev->keybit);
3859:			break;
3860:	
3861:		case WACOM_27QHD:
3862:		case WACOM_24HD:
3863:		case DTK:
3864:		case WACOM_22HD:
3865:		case WACOM_21UX2:
3866:		case WACOM_BEE:
3867:		case CINTIQ:
3868:		case WACOM_13HD:
3869:		case CINTIQ_HYBRID:
3870:		case CINTIQ_COMPANION_2:
3871:			input_set_abs_params(input_dev, ABS_Z, -900, 899, 0, 0);
3872:			input_abs_set_res(input_dev, ABS_Z, 287);
3873:			wacom_setup_cintiq(wacom_wac);
3874:			break;
3875:	
3876:		case INTUOS3:
3877:		case INTUOS3L:
3878:		case INTUOS3S:
3879:		case INTUOS4:
3880:		case INTUOS4WL:
3881:		case INTUOS4L:
3882:		case INTUOS4S:
3883:			input_set_abs_params(input_dev, ABS_Z, -900, 899, 0, 0);
3884:			input_abs_set_res(input_dev, ABS_Z, 287);
3885:			fallthrough;
3886:	
3887:		case INTUOS:
3888:			wacom_setup_intuos(wacom_wac);
3889:			break;
3890:	
3891:		case INTUOS5:
3892:		case INTUOS5L:
3893:		case INTUOSPM:
3894:		case INTUOSPL:
3895:		case INTUOS5S:
3896:		case INTUOSPS:
3897:		case INTUOSP2_BT:
3898:		case INTUOSP2S_BT:
3899:			input_set_abs_params(input_dev, ABS_DISTANCE, 0,
3900:					      features->distance_max,
3901:					      features->distance_fuzz, 0);
3902:	
3903:			input_set_abs_params(input_dev, ABS_Z, -900, 899, 0, 0);
3904:			input_abs_set_res(input_dev, ABS_Z, 287);
3905:	
3906:			wacom_setup_intuos(wacom_wac);
3907:			break;
3908:	
3909:		case WACOM_24HDT:
3910:		case WACOM_27QHDT:
3911:		case MTSCREEN:
3912:		case MTTPC:
3913:		case MTTPC_B:
3914:		case TABLETPC2FG:
3915:		case TABLETPC:
3916:		case TABLETPCE:
3917:			__clear_bit(ABS_MISC, input_dev->absbit);
3918:			fallthrough;
3919:	
3920:		case DTUS:
3921:		case DTUSX:
3922:		case PL:
3923:		case DTU:
3924:			__set_bit(BTN_TOOL_PEN, input_dev->keybit);
3925:			__set_bit(BTN_TOOL_RUBBER, input_dev->keybit);
3926:			__set_bit(BTN_STYLUS, input_dev->keybit);
3927:			__set_bit(BTN_STYLUS2, input_dev->keybit);
3928:			break;
3929:	
3930:		case PTU:
3931:			__set_bit(BTN_STYLUS2, input_dev->keybit);
3932:			fallthrough;
3933:	
3934:		case PENPARTNER:
3935:			__set_bit(BTN_TOOL_PEN, input_dev->keybit);
3936:			__set_bit(BTN_TOOL_RUBBER, input_dev->keybit);
3937:			__set_bit(BTN_STYLUS, input_dev->keybit);
3938:			break;
3939:	
3940:		case INTUOSHT:
3941:		case BAMBOO_PT:
3942:		case BAMBOO_PEN:
3943:		case INTUOSHT2:
3944:		case INTUOSHT3_BT:
3945:			if (features->type == INTUOSHT2 ||
3946:			    features->type == INTUOSHT3_BT) {
3947:				wacom_setup_basic_pro_pen(wacom_wac);
3948:			} else {
3949:				__clear_bit(ABS_MISC, input_dev->absbit);
3950:				__set_bit(BTN_TOOL_PEN, input_dev->keybit);
3951:				__set_bit(BTN_TOOL_RUBBER, input_dev->keybit);
3952:				__set_bit(BTN_STYLUS, input_dev->keybit);
3953:				__set_bit(BTN_STYLUS2, input_dev->keybit);
3954:				input_set_abs_params(input_dev, ABS_DISTANCE, 0,
3955:					      features->distance_max,
3956:					      features->distance_fuzz, 0);
3957:			}
3958:			break;
3959:		case BAMBOO_PAD:
3960:			__clear_bit(ABS_MISC, input_dev->absbit);
3961:			break;
3962:		}
3963:		return 0;
3964:	}
 SourceFile:drivers/hid/wacom_wac.c]

56/2 2026/09/21 01:01 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 45951
							output: 40
							thoughts: 125
						

Thoughts:
Okay, let me break this down.

**My Analysis of Wacom Pen Input Initialization**

Right, so `wacom_setup_pen_input_capabilities` is the gatekeeper. It's supposed to determine if the device is actually a pen device. The code says that if the `device_type` field doesn't have the `WACOM_DEVICETYPE_PEN` bit set, it's going to return `-ENODEV`. Makes sense; can't set up pen input if it's not a pen device, or if it isn't configured as such.

Now, here's the crucial part. If that `-ENODEV` pops up, indicating a pen isn't supported or isn't detected as present, `wacom_setup_inputs` jumps into action. It frees `pen_input_dev` – the input device representing the pen – and *crucially*, sets `wacom_wac->pen_input = NULL`. This is the signal that pen input isn't initialized. I need to keep this in mind as I debug the subsequent code.

Okay, so far so good. I know how pen input is *supposed* to be set up. But, that's assuming that the device is correctly identified.

Now the interesting thing, when a device is connected and an interrupt comes... which is likely a pen input event, `wacom_intuos_irq` gets called. Hold on a second, though, wasn't that supposed to be disabled? Ah, it makes sense now, `wacom_intuos_irq` is called by `wacom_wac_irq`. I need to figure out how this is correctly handled. I have a feeling there's a race condition or some unexpected logic flow that is leading to issues. I need to check how the input events are handled at the lower levels and ensure that `pen_input_dev` is used correctly. This could indicate a problem if the pen input is expected but wasn't properly initialized. I'll need to double check that NULL check.



57/2 2026/09/21 01:02 tool read-file
0m Args:
map[File:drivers/hid/wacom_wac.c FirstLine:3550 LineCount:50]

Results:
map[Contents:3550:			break;
3551:	
3552:		case BAMBOO_PT:
3553:		case BAMBOO_PEN:
3554:		case BAMBOO_TOUCH:
3555:		case INTUOSHT:
3556:		case INTUOSHT2:
3557:			if (wacom_wac->data[0] == WACOM_REPORT_USB)
3558:				sync = wacom_status_irq(wacom_wac, len);
3559:			else
3560:				sync = wacom_bpt_irq(wacom_wac, len);
3561:			break;
3562:	
3563:		case BAMBOO_PAD:
3564:			sync = wacom_bamboo_pad_irq(wacom_wac, len);
3565:			break;
3566:	
3567:		case WIRELESS:
3568:			sync = wacom_wireless_irq(wacom_wac, len);
3569:			break;
3570:	
3571:		case REMOTE:
3572:			sync = false;
3573:			if (wacom_wac->data[0] == WACOM_REPORT_DEVICE_LIST)
3574:				wacom_remote_status_irq(wacom_wac, len);
3575:			else
3576:				sync = wacom_remote_irq(wacom_wac, len);
3577:			break;
3578:	
3579:		default:
3580:			sync = false;
3581:			break;
3582:		}
3583:	
3584:		if (sync) {
3585:			if (wacom_wac->pen_input)
3586:				input_sync(wacom_wac->pen_input);
3587:			if (wacom_wac->touch_input)
3588:				input_sync(wacom_wac->touch_input);
3589:			if (wacom_wac->pad_input)
3590:				input_sync(wacom_wac->pad_input);
3591:		}
3592:	}
3593:	
3594:	static void wacom_setup_basic_pro_pen(struct wacom_wac *wacom_wac)
3595:	{
3596:		struct input_dev *input_dev = wacom_wac->pen_input;
3597:	
3598:		input_set_capability(input_dev, EV_MSC, MSC_SERIAL);
3599:	
]

58/2 2026/09/21 01:02 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 47299
							output: 40
							thoughts: 27
						

Thoughts:
Here's my take on the thought process, as though I were the one thinking it:

**Interrupt Handler Investigation**

Okay, so the `wacom_bpt_irq` interrupt handler has been triggered. My first step is to confirm that this is indeed the routine I'm dealing with. Let's delve into the `wacom_bpt_irq` function. I need to understand what events are generating the interrupt, what the interrupt handler is designed to do, and the context in which it's operating. I'm going to start by reviewing the interrupt service routine itself, looking for any immediate clues about its function and the hardware it's managing. I need to quickly ascertain the function's responsibility, and then begin to reconstruct the chain of events that lead to this interrupt, especially the devices or operations that trigger it.



59/2 2026/09/21 01:02 tool read-file
0m Args:
map[File:drivers/hid/wacom_wac.c FirstLine:3280 LineCount:50]

Results:
map[Contents:3280:	
3281:		return 1;
3282:	}
3283:	
3284:	static int wacom_bpt_irq(struct wacom_wac *wacom, size_t len)
3285:	{
3286:		struct wacom_features *features = &wacom->features;
3287:	
3288:		if ((features->type == INTUOSHT2) &&
3289:		    (features->device_type & WACOM_DEVICETYPE_PEN))
3290:			return wacom_intuos_irq(wacom);
3291:		else if (len == WACOM_PKGLEN_BBTOUCH)
3292:			return wacom_bpt_touch(wacom);
3293:		else if (len == WACOM_PKGLEN_BBTOUCH3)
3294:			return wacom_bpt3_touch(wacom);
3295:		else if (len == WACOM_PKGLEN_BBFUN || len == WACOM_PKGLEN_BBPEN)
3296:			return wacom_bpt_pen(wacom);
3297:	
3298:		return 0;
3299:	}
3300:	
3301:	static void wacom_bamboo_pad_pen_event(struct wacom_wac *wacom,
3302:			unsigned char *data)
3303:	{
3304:		unsigned char prefix;
3305:	
3306:		/*
3307:		 * We need to reroute the event from the debug interface to the
3308:		 * pen interface.
3309:		 * We need to add the report ID to the actual pen report, so we
3310:		 * temporary overwrite the first byte to prevent having to kzalloc/kfree
3311:		 * and memcpy the report.
3312:		 */
3313:		prefix = data[0];
3314:		data[0] = WACOM_REPORT_BPAD_PEN;
3315:	
3316:		/*
3317:		 * actually reroute the event.
3318:		 * No need to check if wacom->shared->pen is valid, hid_input_report()
3319:		 * will check for us.
3320:		 */
3321:		hid_input_report(wacom->shared->pen, HID_INPUT_REPORT, data,
3322:				 WACOM_PKGLEN_PENABLED, 1);
3323:	
3324:		data[0] = prefix;
3325:	}
3326:	
3327:	static int wacom_bamboo_pad_touch_event(struct wacom_wac *wacom,
3328:			unsigned char *data)
3329:	{
]

60/2 2026/09/21 01:02 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 48318
							output: 40
							thoughts: 403
						

Thoughts:
**Debugging a Wacom Pen Input Issue**

Okay, let's break this down. My initial thought is: the `wacom_bpt_irq` function is clearly checking for the `WACOM_DEVICETYPE_PEN` flag. If it's set, which it should be in this scenario, then it calls `wacom_intuos_irq`. But, hang on a second... if that flag *is* set, then `wacom_setup_pen_input_capabilities` wouldn't have returned `-ENODEV`, right? The code explicitly checks for that. So, the `pen_input` device should *not* be NULL. And yet, it is.

So, why is `pen_input` unexpectedly NULL? It's allocated in `wacom_allocate_inputs`, so I need to check how it could be unset later. The obvious first thought is allocation failure in `wacom_allocate_inputs`, which would return `-ENOMEM`. But if that happened, `wacom_probe` itself would fail, right? The device wouldn't even register. So, that's likely not the problem.

Aha! What about the post-allocation setup? The code *does* call `wacom_setup_pen_input_capabilities` after allocation. The code snippet shows this:

```c
	error = wacom_setup_pen_input_capabilities(pen_input_dev, wacom_wac);
	if (error) {
		/* no pen in use on this interface */
		input_free_device(pen_input_dev);
		wacom_wac->pen_input = NULL;
		pen_input_dev = NULL;
	}
```

If that function returns an *error* other than `-ENODEV`, it deallocates the input device and sets `pen_input` to NULL. That's a definite possibility! I need to re-examine the implementation of `wacom_setup_pen_input_capabilities` to understand what other errors could be returned. I need to figure out which failures would result in the device being freed and the `pen_input` pointer being set to NULL. That's where I need to focus my attention.



61/2 2026/09/21 01:02 tool read-file
0m Args:
map[File:drivers/hid/wacom_wac.c FirstLine:3800 LineCount:50]

Results:
map[Contents:3800:	
3801:	int wacom_setup_pen_input_capabilities(struct input_dev *input_dev,
3802:					   struct wacom_wac *wacom_wac)
3803:	{
3804:		struct wacom_features *features = &wacom_wac->features;
3805:	
3806:		if (!(features->device_type & WACOM_DEVICETYPE_PEN))
3807:			return -ENODEV;
3808:	
3809:		if (features->device_type & WACOM_DEVICETYPE_DIRECT)
3810:			__set_bit(INPUT_PROP_DIRECT, input_dev->propbit);
3811:		else
3812:			__set_bit(INPUT_PROP_POINTER, input_dev->propbit);
3813:	
3814:		if (features->type == HID_GENERIC)
3815:			/* setup has already been done */
3816:			return 0;
3817:	
3818:		input_dev->evbit[0] |= BIT_MASK(EV_KEY) | BIT_MASK(EV_ABS);
3819:		__set_bit(BTN_TOUCH, input_dev->keybit);
3820:		__set_bit(ABS_MISC, input_dev->absbit);
3821:	
3822:		input_set_abs_params(input_dev, ABS_X, 0 + features->offset_left,
3823:				     features->x_max - features->offset_right,
3824:				     features->x_fuzz, 0);
3825:		input_set_abs_params(input_dev, ABS_Y, 0 + features->offset_top,
3826:				     features->y_max - features->offset_bottom,
3827:				     features->y_fuzz, 0);
3828:		input_set_abs_params(input_dev, ABS_PRESSURE, 0,
3829:			features->pressure_max, features->pressure_fuzz, 0);
3830:	
3831:		/* penabled devices have fixed resolution for each model */
3832:		input_abs_set_res(input_dev, ABS_X, features->x_resolution);
3833:		input_abs_set_res(input_dev, ABS_Y, features->y_resolution);
3834:	
3835:		switch (features->type) {
3836:		case GRAPHIRE_BT:
3837:			__clear_bit(ABS_MISC, input_dev->absbit);
3838:			fallthrough;
3839:	
3840:		case WACOM_MO:
3841:		case WACOM_G4:
3842:			input_set_abs_params(input_dev, ABS_DISTANCE, 0,
3843:						      features->distance_max,
3844:						      features->distance_fuzz, 0);
3845:			fallthrough;
3846:	
3847:		case GRAPHIRE:
3848:			input_set_capability(input_dev, EV_REL, REL_WHEEL);
3849:	
]

62/2 2026/09/21 01:02 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 50127
							output: 39
							thoughts: 91
						

Thoughts:
**Debugging a Wacom Driver Issue**

Okay, so I'm seeing a consistent behavior here that's bugging me. Specifically, when `features->device_type` indicates a pen device (using `WACOM_DEVICETYPE_PEN`), the function is *always* returning 0, and not reporting any other errors. That's highly suspect, it's not the correct behaviour and I'm not seeing any other errors.

Aha! What if the problem *isn't* inside `wacom_setup_pen_input_capabilities`, but happens *after* that, within the call to `wacom_setup_inputs`? That could explain the symptoms. Let's dig into that `wacom_setup_inputs` function. I'll need to check the code in `drivers/hid/wacom_sys.c` and see what it's doing. Hopefully, I'll see something obvious when inspecting this part of the code.



63/2 2026/09/21 01:02 tool read-file
0m Args:
map[File:drivers/hid/wacom_sys.c FirstLine:2130 LineCount:50]

Results:
map[Contents:2130:		struct wacom_wac *wacom_wac = &(wacom->wacom_wac);
2131:		int error = 0;
2132:	
2133:		pen_input_dev = wacom_wac->pen_input;
2134:		touch_input_dev = wacom_wac->touch_input;
2135:		pad_input_dev = wacom_wac->pad_input;
2136:	
2137:		if (!pen_input_dev || !touch_input_dev || !pad_input_dev)
2138:			return -EINVAL;
2139:	
2140:		error = wacom_setup_pen_input_capabilities(pen_input_dev, wacom_wac);
2141:		if (error) {
2142:			/* no pen in use on this interface */
2143:			input_free_device(pen_input_dev);
2144:			wacom_wac->pen_input = NULL;
2145:			pen_input_dev = NULL;
2146:		}
2147:	
2148:		error = wacom_setup_touch_input_capabilities(touch_input_dev, wacom_wac);
2149:		if (error) {
2150:			/* no touch in use on this interface */
2151:			input_free_device(touch_input_dev);
2152:			wacom_wac->touch_input = NULL;
2153:			touch_input_dev = NULL;
2154:		}
2155:	
2156:		error = wacom_setup_pad_input_capabilities(pad_input_dev, wacom_wac);
2157:		if (error) {
2158:			/* no pad events using this interface */
2159:			input_free_device(pad_input_dev);
2160:			wacom_wac->pad_input = NULL;
2161:			pad_input_dev = NULL;
2162:		}
2163:	
2164:		return 0;
2165:	}
2166:	
2167:	static int wacom_register_inputs(struct wacom *wacom)
2168:	{
2169:		struct input_dev *pen_input_dev, *touch_input_dev, *pad_input_dev;
2170:		struct wacom_wac *wacom_wac = &(wacom->wacom_wac);
2171:		int error = 0;
2172:	
2173:		pen_input_dev = wacom_wac->pen_input;
2174:		touch_input_dev = wacom_wac->touch_input;
2175:		pad_input_dev = wacom_wac->pad_input;
2176:	
2177:		if (pen_input_dev) {
2178:			error = input_register_device(pen_input_dev);
2179:			if (error)
]

64/2 2026/09/21 01:02 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 51298
							output: 39
							thoughts: 259
						

Thoughts:
**My Initial Conundrum**

Okay, so I'm digging into this Wacom driver code, and I've hit a head-scratcher. Specifically, `wacom_wac->pen_input` is getting set to NULL if `wacom_setup_pen_input_capabilities` fails. Fair enough. I see that the function returns `-ENODEV` if the device doesn't have pen capabilities, which is checked with `!(features->device_type & WACOM_DEVICETYPE_PEN)`. Therefore, if the `device_type` mask *doesn't* include the pen bit, `pen_input` ends up being NULL. Makes perfect sense, so far.

But then... wait a minute! Looking at `wacom_bpt_irq`, I see a conditional check:

```c
	if ((features->type == INTUOSHT2) &&
	    (features->device_type & WACOM_DEVICETYPE_PEN))
		return wacom_intuos_irq(wacom);
```

This *explicitly* checks `features->device_type & WACOM_DEVICETYPE_PEN`! If that bit is TRUE, and given the context, then `pen_input` *shouldn't* be NULL. It's supposed to be initialized, right? So, why am I seeing this as NULL? Something isn't adding up.

Did something change? Is it possible that `features->device_type` is being modified *after* `wacom_setup_inputs` has run? Or is it possible that `wacom_setup_inputs` was never called? Time to go back and check `wacom_probe`.



65/2 2026/09/21 01:02 tool read-file
0m Args:
map[File:drivers/hid/wacom_sys.c FirstLine:2700 LineCount:50]

Results:
map[Contents:2700:		devres_release_group(dev, &remote->remotes[index]);
2701:		remote->remotes[index].serial = 0;
2702:		return error;
2703:	}
2704:	
2705:	static int wacom_remote_attach_battery(struct wacom *wacom, int index)
2706:	{
2707:		struct wacom_remote *remote = wacom->remote;
2708:		int error;
2709:	
2710:		if (!remote->remotes[index].registered)
2711:			return 0;
2712:	
2713:		if (remote->remotes[index].battery.battery)
2714:			return 0;
2715:	
2716:		if (!remote->remotes[index].active_time)
2717:			return 0;
2718:	
2719:		if (wacom->led.groups[index].select == WACOM_STATUS_UNKNOWN)
2720:			return 0;
2721:	
2722:		error = __wacom_initialize_battery(wacom,
2723:						&wacom->remote->remotes[index].battery);
2724:		if (error)
2725:			return error;
2726:	
2727:		return 0;
2728:	}
2729:	
2730:	static void wacom_remote_work(struct work_struct *work)
2731:	{
2732:		struct wacom *wacom = container_of(work, struct wacom, remote_work);
2733:		struct wacom_remote *remote = wacom->remote;
2734:		ktime_t kt = ktime_get();
2735:		struct wacom_remote_work_data remote_work_data;
2736:		unsigned long flags;
2737:		unsigned int count;
2738:		u32 work_serial;
2739:		int i;
2740:	
2741:		spin_lock_irqsave(&remote->remote_lock, flags);
2742:	
2743:		count = kfifo_out(&remote->remote_fifo, &remote_work_data,
2744:				  sizeof(remote_work_data));
2745:	
2746:		if (count != sizeof(remote_work_data)) {
2747:			hid_err(wacom->hdev,
2748:				"workitem triggered without status available\n");
2749:			spin_unlock_irqrestore(&remote->remote_lock, flags);
]

66/2 2026/09/21 01:02 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 52702
							output: 38
							thoughts: 10
						

Thoughts:
Okay, here's my summary, framed in the first person, as if these are my immediate thoughts, knowing I'm discussing this with a fellow expert:

**Locating the Wacom Probe**

Alright, so I'm on the hunt for `wacom_probe`. I need to get my hands on it, understand what it's doing, and where it fits into the whole Wacom ecosystem. This isn't a casual search; I need to quickly and efficiently track it down. My immediate questions are: is this a kernel module, a user-space utility, or maybe even something embedded in a larger framework? The name suggests it's likely involved in device detection or initialization, but I need to confirm that.

If it's a kernel module, I'll start checking the usual suspects – the kernel source tree, relevant documentation directories, and looking for module aliases that might help me identify its purpose if the name isn't immediately obvious. I'll probably fire up `modinfo` and see what that turns up, maybe cross-reference its dependencies.

If it's user-space, the search becomes slightly broader. I'd check typical places like `/usr/bin`, `/usr/sbin`, maybe even look at packages like `xserver-xorg-input-wacom`, and related libraries. I'd definitely use `find` and `locate` with relevant keywords, and possibly delve into package management tools to see if it's part of a specific distribution or build. I'll need to look at any surrounding context too – is it called by a specific service, or a configuration file? The more context I have, the better my chances of zeroing in.

Ultimately, I need to understand its role and how it interacts with the rest of the Wacom stack, to determine its significance. So, let's dive in and get to work!



67/2 2026/09/21 01:02 tool codesearch-definition-source
0m Args:
map[ContextFile:drivers/hid/wacom_sys.c Name:wacom_probe]

Results:
map[SourceCode:2822:	static int wacom_probe(struct hid_device *hdev,
2823:			const struct hid_device_id *id)
2824:	{
2825:		struct wacom *wacom;
2826:		struct wacom_wac *wacom_wac;
2827:		struct wacom_features *features;
2828:		int error;
2829:	
2830:		if (!id->driver_data)
2831:			return -EINVAL;
2832:	
2833:		hdev->quirks |= HID_QUIRK_NO_INIT_REPORTS;
2834:	
2835:		/* hid-core sets this quirk for the boot interface */
2836:		hdev->quirks &= ~HID_QUIRK_NOGET;
2837:	
2838:		wacom = devm_kzalloc(&hdev->dev, sizeof(struct wacom), GFP_KERNEL);
2839:		if (!wacom)
2840:			return -ENOMEM;
2841:	
2842:		hid_set_drvdata(hdev, wacom);
2843:		wacom->hdev = hdev;
2844:	
2845:		wacom_wac = &wacom->wacom_wac;
2846:		wacom_wac->features = *((struct wacom_features *)id->driver_data);
2847:		features = &wacom_wac->features;
2848:	
2849:		if (features->check_for_hid_type && features->hid_type != hdev->type)
2850:			return -ENODEV;
2851:	
2852:		wacom_wac->hid_data.inputmode = -1;
2853:		wacom_wac->hid_data.inputmode_field_index = -1;
2854:		wacom_wac->mode_report = -1;
2855:	
2856:		if (hid_is_usb(hdev)) {
2857:			struct usb_interface *intf = to_usb_interface(hdev->dev.parent);
2858:			struct usb_device *dev = interface_to_usbdev(intf);
2859:	
2860:			wacom->usbdev = dev;
2861:			wacom->intf = intf;
2862:		}
2863:	
2864:		mutex_init(&wacom->lock);
2865:		INIT_DELAYED_WORK(&wacom->init_work, wacom_init_work);
2866:		INIT_DELAYED_WORK(&wacom->aes_battery_work, wacom_aes_battery_handler);
2867:		INIT_WORK(&wacom->wireless_work, wacom_wireless_work);
2868:		INIT_WORK(&wacom->battery_work, wacom_battery_work);
2869:		INIT_WORK(&wacom->remote_work, wacom_remote_work);
2870:		INIT_WORK(&wacom->mode_change_work, wacom_mode_change_work);
2871:		timer_setup(&wacom->idleprox_timer, &wacom_idleprox_timeout, TIMER_DEFERRABLE);
2872:	
2873:		/* ask for the report descriptor to be loaded by HID */
2874:		error = hid_parse(hdev);
2875:		if (error) {
2876:			hid_err(hdev, "parse failed\n");
2877:			return error;
2878:		}
2879:	
2880:		if (features->type == BOOTLOADER) {
2881:			hid_warn(hdev, "Using device in hidraw-only mode");
2882:			return hid_hw_start(hdev, HID_CONNECT_HIDRAW);
2883:		}
2884:	
2885:		error = wacom_parse_and_register(wacom, false);
2886:		if (error)
2887:			return error;
2888:	
2889:		if (hdev->bus == BUS_BLUETOOTH) {
2890:			error = device_create_file(&hdev->dev, &dev_attr_speed);
2891:			if (error)
2892:				hid_warn(hdev,
2893:					 "can't create sysfs speed attribute err: %d\n",
2894:					 error);
2895:		}
2896:	
2897:		wacom_wac->probe_complete = true;
2898:		return 0;
2899:	}
 SourceFile:drivers/hid/wacom_sys.c]

68/2 2026/09/21 01:02 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 54447
							output: 42
							thoughts: 19
						

Thoughts:
Here's a summary of my thought process, as requested:

**Diving into Wacom Device Initialization**

Okay, `wacom_parse_and_register` has been invoked. Let's dig in and see exactly what's happening. I know the Wacom driver pretty well, but it's always good to refresh my memory and verify the device parsing and registration are occurring as expected. It's the core of how new Wacom devices get integrated, so it's a critical point to scrutinize. I'll pay close attention to the data structures involved, the error handling, and how the device information is ultimately presented to the input subsystem. I expect to see the typical sequence: parsing the device description, creating internal device representations, registering the device with the input core, and potentially, setting up some initial configuration. Let's get to it.



69/2 2026/09/21 01:02 tool codesearch-definition-source
0m Args:
map[ContextFile:drivers/hid/wacom_sys.c Name:wacom_parse_and_register]

Results:
map[SourceCode:2370:	static int wacom_parse_and_register(struct wacom *wacom, bool wireless)
2371:	{
2372:		struct wacom_wac *wacom_wac = &wacom->wacom_wac;
2373:		struct wacom_features *features = &wacom_wac->features;
2374:		struct hid_device *hdev = wacom->hdev;
2375:		int error;
2376:		unsigned int connect_mask = HID_CONNECT_HIDRAW;
2377:	
2378:		features->pktlen = wacom_compute_pktlen(hdev);
2379:		if (!features->pktlen)
2380:			return -ENODEV;
2381:	
2382:		if (!devres_open_group(&hdev->dev, wacom, GFP_KERNEL))
2383:			return -ENOMEM;
2384:	
2385:		error = wacom_devm_kfifo_alloc(wacom);
2386:		if (error)
2387:			goto fail;
2388:	
2389:		wacom->resources = true;
2390:	
2391:		error = wacom_allocate_inputs(wacom);
2392:		if (error)
2393:			goto fail;
2394:	
2395:		/*
2396:		 * Bamboo Pad has a generic hid handling for the Pen, and we switch it
2397:		 * into debug mode for the touch part.
2398:		 * We ignore the other interfaces.
2399:		 */
2400:		if (features->type == BAMBOO_PAD) {
2401:			if (features->pktlen == WACOM_PKGLEN_PENABLED) {
2402:				features->type = HID_GENERIC;
2403:			} else if ((features->pktlen != WACOM_PKGLEN_BPAD_TOUCH) &&
2404:				   (features->pktlen != WACOM_PKGLEN_BPAD_TOUCH_USB)) {
2405:				error = -ENODEV;
2406:				goto fail;
2407:			}
2408:		}
2409:	
2410:		/* set the default size in case we do not get them from hid */
2411:		wacom_set_default_phy(features);
2412:	
2413:		/* Retrieve the physical and logical size for touch devices */
2414:		wacom_retrieve_hid_descriptor(hdev, features);
2415:		wacom_setup_device_quirks(wacom);
2416:	
2417:		if (features->device_type == WACOM_DEVICETYPE_NONE &&
2418:		    features->type != WIRELESS) {
2419:			error = features->type == HID_GENERIC ? -ENODEV : 0;
2420:	
2421:			dev_warn(&hdev->dev, "Unknown device_type for '%s'. %s.",
2422:				 hdev->name,
2423:				 error ? "Ignoring" : "Assuming pen");
2424:	
2425:			if (error)
2426:				goto fail;
2427:	
2428:			features->device_type |= WACOM_DEVICETYPE_PEN;
2429:		}
2430:	
2431:		wacom_calculate_res(features);
2432:	
2433:		wacom_update_name(wacom, wireless ? " (WL)" : "");
2434:	
2435:		/* pen only Bamboo neither support touch nor pad */
2436:		if ((features->type == BAMBOO_PEN) &&
2437:		    ((features->device_type & WACOM_DEVICETYPE_TOUCH) ||
2438:		    (features->device_type & WACOM_DEVICETYPE_PAD))) {
2439:			error = -ENODEV;
2440:			goto fail;
2441:		}
2442:	
2443:		error = wacom_add_shared_data(hdev);
2444:		if (error)
2445:			goto fail;
2446:	
2447:		error = wacom_setup_inputs(wacom);
2448:		if (error)
2449:			goto fail;
2450:	
2451:		if (features->type == HID_GENERIC)
2452:			connect_mask |= HID_CONNECT_DRIVER;
2453:	
2454:		/* Regular HID work starts now */
2455:		error = hid_hw_start(hdev, connect_mask);
2456:		if (error) {
2457:			hid_err(hdev, "hw start failed\n");
2458:			goto fail;
2459:		}
2460:	
2461:		error = wacom_register_inputs(wacom);
2462:		if (error)
2463:			goto fail_hw_stop;
2464:	
2465:		if (wacom->wacom_wac.features.device_type & WACOM_DEVICETYPE_PAD) {
2466:			error = wacom_initialize_leds(wacom);
2467:			if (error)
2468:				goto fail_hw_stop;
2469:	
2470:			error = wacom_initialize_remotes(wacom);
2471:			if (error)
2472:				goto fail_hw_stop;
2473:		}
2474:	
2475:		if (!wireless) {
2476:			/* Note that if query fails it is not a hard failure */
2477:			wacom_query_tablet_data(wacom);
2478:		}
2479:	
2480:		/* touch only Bamboo doesn't support pen */
2481:		if ((features->type == BAMBOO_TOUCH) &&
2482:		    (features->device_type & WACOM_DEVICETYPE_PEN)) {
2483:			cancel_delayed_work_sync(&wacom->init_work);
2484:			_wacom_query_tablet_data(wacom);
2485:			error = -ENODEV;
2486:			goto fail_hw_stop;
2487:		}
2488:	
2489:		if (features->device_type & WACOM_DEVICETYPE_WL_MONITOR) {
2490:			error = hid_hw_open(hdev);
2491:			if (error) {
2492:				hid_err(hdev, "hw open failed\n");
2493:				goto fail_hw_stop;
2494:			}
2495:		}
2496:	
2497:		wacom_set_shared_values(wacom_wac);
2498:		devres_close_group(&hdev->dev, wacom);
2499:	
2500:		return 0;
2501:	
2502:	fail_hw_stop:
2503:		hid_hw_stop(hdev);
2504:	fail:
2505:		wacom_release_resources(wacom);
2506:		return error;
2507:	}
 SourceFile:drivers/hid/wacom_sys.c]

70/2 2026/09/21 01:02 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 56732
							output: 26
							thoughts: 1105
						

Thoughts:
**Analyzing the Wacom Driver Initialization and Interrupt Handling**

Okay, let's break this down. I'm looking at the `wacom_parse_and_register` function, and my immediate concern is the potential for a race condition or incorrect state within the pen input handling.

Initially, `wacom_setup_inputs` is called, and I see the crucial line where `wacom_wac->pen_input` *could* be set to `NULL` if `wacom_setup_pen_input_capabilities` returns an error, specifically `-ENODEV`. Then, `hid_hw_start` is called, which might trigger an interrupt. If an interrupt occurs, it calls `wacom_wac_irq`, and within that, `wacom_bpt_irq` is dispatched.  The `wacom_bpt_irq` calls `wacom_intuos_irq` if `features->device_type & WACOM_DEVICETYPE_PEN` is true.

My thought is, *if* `features->device_type` indicates a pen device (i.e., this bit is set), then `wacom_setup_pen_input_capabilities` should *not* be returning an error. So, logically, `wacom_wac->pen_input` shouldn't be `NULL`. This suggests a potential inconsistency.

Let me double-check `wacom_setup_pen_input_capabilities`. Okay, I see that it explicitly checks `features->device_type & WACOM_DEVICETYPE_PEN` *at the beginning* and returns `-ENODEV` only if this check *fails*. Otherwise, it returns 0. So, the direct cause of `wacom_wac->pen_input` being `NULL` in the INTUOSHT2 case is not due to a fail in `wacom_setup_pen_input_capabilities` when `features->device_type & WACOM_DEVICETYPE_PEN` is set.

My next hunch is, perhaps, `wacom_allocate_inputs` is failing. However, it looks like if the allocations for pen, touch, or pad inputs fail, `wacom_parse_and_register` will return an error *before* getting to `hid_hw_start`. So, an allocation failure will not cause a `NULL` `pen_input`.

What about `wacom_setup_touch_input_capabilities` or `wacom_setup_pad_input_capabilities` failing and therefore the input being set to `NULL`? However, it looks like only the `touch_input` is freed and set to `NULL` if this setup fails. This also doesn't affect `pen_input`.

Finally, is it possible that `features->device_type` is modified *after* `wacom_setup_inputs` has run, creating a mismatch? This would be a crucial point to investigate. It seems that `features->device_type` must remain constant during the initialization and interrupt handling for this logic to be sound. I'll need to trace all modifications to `features->device_type` within the device initialization and interrupt handling code.



71/2 2026/09/21 01:03 tool codesearch-find-references
0m Args:
map[Name:wacom_features::device_type]

Results:
map[References:[map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:_wacom_query_tablet_data SourceFile:drivers/hid/wacom_sys.c SourceLine:696] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:_wacom_query_tablet_data SourceFile:drivers/hid/wacom_sys.c SourceLine:711] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_add_shared_data SourceFile:drivers/hid/wacom_sys.c SourceLine:918] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_add_shared_data SourceFile:drivers/hid/wacom_sys.c SourceLine:920] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_are_sibling SourceFile:drivers/hid/wacom_sys.c SourceLine:804] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_are_sibling SourceFile:drivers/hid/wacom_sys.c SourceLine:805] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_are_sibling SourceFile:drivers/hid/wacom_sys.c SourceLine:812] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_are_sibling SourceFile:drivers/hid/wacom_sys.c SourceLine:813] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_are_sibling SourceFile:drivers/hid/wacom_sys.c SourceLine:817] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_are_sibling SourceFile:drivers/hid/wacom_sys.c SourceLine:818] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_are_sibling SourceFile:drivers/hid/wacom_sys.c SourceLine:822] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_are_sibling SourceFile:drivers/hid/wacom_sys.c SourceLine:823] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_bpt_irq SourceFile:drivers/hid/wacom_wac.c SourceLine:3289] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_initialize_leds SourceFile:drivers/hid/wacom_sys.c SourceLine:1611] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_parse_and_register SourceFile:drivers/hid/wacom_sys.c SourceLine:2417] map[ReferenceKind:writes ReferencingEntityKind:function ReferencingEntityName:wacom_parse_and_register SourceFile:drivers/hid/wacom_sys.c SourceLine:2428] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_parse_and_register SourceFile:drivers/hid/wacom_sys.c SourceLine:2437] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_parse_and_register SourceFile:drivers/hid/wacom_sys.c SourceLine:2438] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_parse_and_register SourceFile:drivers/hid/wacom_sys.c SourceLine:2465] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_parse_and_register SourceFile:drivers/hid/wacom_sys.c SourceLine:2482] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_parse_and_register SourceFile:drivers/hid/wacom_sys.c SourceLine:2489] map[ReferenceKind:writes ReferencingEntityKind:function ReferencingEntityName:wacom_post_parse_hid SourceFile:drivers/hid/wacom_sys.c SourceLine:505] map[ReferenceKind:writes ReferencingEntityKind:function ReferencingEntityName:wacom_post_parse_hid SourceFile:drivers/hid/wacom_sys.c SourceLine:507] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_post_parse_hid SourceFile:drivers/hid/wacom_sys.c SourceLine:511] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_remove SourceFile:drivers/hid/wacom_sys.c SourceLine:2907] map[ReferenceKind:writes ReferencingEntityKind:function ReferencingEntityName:wacom_retrieve_hid_descriptor SourceFile:drivers/hid/wacom_sys.c SourceLine:748] map[ReferenceKind:writes ReferencingEntityKind:function ReferencingEntityName:wacom_retrieve_hid_descriptor SourceFile:drivers/hid/wacom_sys.c SourceLine:750] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_set_shared_values SourceFile:drivers/hid/wacom_sys.c SourceLine:2346] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3657] map[ReferenceKind:writes ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3658] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3662] map[ReferenceKind:writes ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3677] map[ReferenceKind:writes ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3679] map[ReferenceKind:writes ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3691] map[ReferenceKind:writes ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3704] map[ReferenceKind:writes ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3714] map[ReferenceKind:writes ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3717] map[ReferenceKind:writes ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3721] map[ReferenceKind:writes ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3728] map[ReferenceKind:writes ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3756] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3774] map[ReferenceKind:writes ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3780] map[ReferenceKind:writes ReferencingEntityKind:function ReferencingEntityName:wacom_setup_pad_input_capabilities SourceFile:drivers/hid/wacom_wac.c SourceLine:4245] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_pad_input_capabilities SourceFile:drivers/hid/wacom_wac.c SourceLine:4247] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_pen_input_capabilities SourceFile:drivers/hid/wacom_wac.c SourceLine:3806] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_pen_input_capabilities SourceFile:drivers/hid/wacom_wac.c SourceLine:3809] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_touch_input_capabilities SourceFile:drivers/hid/wacom_wac.c SourceLine:3971] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_touch_input_capabilities SourceFile:drivers/hid/wacom_wac.c SourceLine:3974] map[ReferenceKind:writes ReferencingEntityKind:function ReferencingEntityName:wacom_usage_mapping SourceFile:drivers/hid/wacom_sys.c SourceLine:454] map[ReferenceKind:writes ReferencingEntityKind:function ReferencingEntityName:wacom_usage_mapping SourceFile:drivers/hid/wacom_sys.c SourceLine:456] map[ReferenceKind:writes ReferencingEntityKind:function ReferencingEntityName:wacom_wac_pad_usage_mapping SourceFile:drivers/hid/wacom_wac.c SourceLine:2027] map[ReferenceKind:writes ReferencingEntityKind:function ReferencingEntityName:wacom_wac_pad_usage_mapping SourceFile:drivers/hid/wacom_wac.c SourceLine:2032] map[ReferenceKind:writes ReferencingEntityKind:function ReferencingEntityName:wacom_wac_pad_usage_mapping SourceFile:drivers/hid/wacom_wac.c SourceLine:2037] map[ReferenceKind:writes ReferencingEntityKind:function ReferencingEntityName:wacom_wac_pad_usage_mapping SourceFile:drivers/hid/wacom_wac.c SourceLine:2049] map[ReferenceKind:writes ReferencingEntityKind:function ReferencingEntityName:wacom_wac_pad_usage_mapping SourceFile:drivers/hid/wacom_wac.c SourceLine:2070] map[ReferenceKind:writes ReferencingEntityKind:function ReferencingEntityName:wacom_wac_pad_usage_mapping SourceFile:drivers/hid/wacom_wac.c SourceLine:2074] map[ReferenceKind:writes ReferencingEntityKind:function ReferencingEntityName:wacom_wac_pad_usage_mapping SourceFile:drivers/hid/wacom_wac.c SourceLine:2094] map[ReferenceKind:writes ReferencingEntityKind:function ReferencingEntityName:wacom_wac_pad_usage_mapping SourceFile:drivers/hid/wacom_wac.c SourceLine:2104] map[ReferenceKind:writes ReferencingEntityKind:function ReferencingEntityName:wacom_wac_pad_usage_mapping SourceFile:drivers/hid/wacom_wac.c SourceLine:2108] map[ReferenceKind:writes ReferencingEntityKind:function ReferencingEntityName:wacom_wac_pad_usage_mapping SourceFile:drivers/hid/wacom_wac.c SourceLine:2112] map[ReferenceKind:writes ReferencingEntityKind:function ReferencingEntityName:wacom_wac_pad_usage_mapping SourceFile:drivers/hid/wacom_wac.c SourceLine:2116] map[ReferenceKind:writes ReferencingEntityKind:function ReferencingEntityName:wacom_wac_pad_usage_mapping SourceFile:drivers/hid/wacom_wac.c SourceLine:2124] map[ReferenceKind:writes ReferencingEntityKind:function ReferencingEntityName:wacom_wac_pad_usage_mapping SourceFile:drivers/hid/wacom_wac.c SourceLine:2134] map[ReferenceKind:writes ReferencingEntityKind:function ReferencingEntityName:wacom_wac_usage_mapping SourceFile:drivers/hid/wacom_wac.c SourceLine:2937]] TruncatedOutput:false]

72/2 2026/09/21 01:03 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 62213
							output: 44
							thoughts: 247
						

Thoughts:
**My Initial Thoughts on Wacom Device Type Handling**

Right, so `wacom_parse_and_register` is changing `features->device_type`. I see it checks if `device_type` is currently `WACOM_DEVICETYPE_NONE` and it's not a wireless device. In that case, and if it's not a generic HID, it sets the error or assumes a pen. Crucially, it then *adds* `WACOM_DEVICETYPE_PEN` to `features->device_type`.

Interesting! This happens *before* `wacom_setup_inputs` is called. So, the implication is that `features->device_type` is augmented with the `PEN` bit and *then* the input setup occurs.

Now, my key question is: is there any other place where the `WACOM_DEVICETYPE_PEN` is added *after* the input setup? We need to verify the timing and sequence to ensure this behavior is consistent. Let's dig into `wacom_setup_device_quirks` to see what else is happening. This is likely where any late modification might occur.



73/2 2026/09/21 01:03 tool codesearch-definition-source
0m Args:
map[ContextFile:drivers/hid/wacom_wac.c Name:wacom_setup_device_quirks]

Results:
map[SourceCode:3648:	void wacom_setup_device_quirks(struct wacom *wacom)
3649:	{
3650:		struct wacom_wac *wacom_wac = &wacom->wacom_wac;
3651:		struct wacom_features *features = &wacom->wacom_wac.features;
3652:	
3653:		/* The pen and pad share the same interface on most devices */
3654:		if (features->type == GRAPHIRE_BT || features->type == WACOM_G4 ||
3655:		    features->type == DTUS ||
3656:		    (features->type >= INTUOS3S && features->type <= WACOM_MO)) {
3657:			if (features->device_type & WACOM_DEVICETYPE_PEN)
3658:				features->device_type |= WACOM_DEVICETYPE_PAD;
3659:		}
3660:	
3661:		/* touch device found but size is not defined. use default */
3662:		if (features->device_type & WACOM_DEVICETYPE_TOUCH && !features->x_max) {
3663:			features->x_max = 1023;
3664:			features->y_max = 1023;
3665:		}
3666:	
3667:		/*
3668:		 * Intuos5/Pro and Bamboo 3rd gen have no useful data about its
3669:		 * touch interface in its HID descriptor. If this is the touch
3670:		 * interface (PacketSize of WACOM_PKGLEN_BBTOUCH3), override the
3671:		 * tablet values.
3672:		 */
3673:		if ((features->type >= INTUOS5S && features->type <= INTUOSPL) ||
3674:			(features->type >= INTUOSHT && features->type <= BAMBOO_PT)) {
3675:			if (features->pktlen == WACOM_PKGLEN_BBTOUCH3) {
3676:				if (features->touch_max)
3677:					features->device_type |= WACOM_DEVICETYPE_TOUCH;
3678:				if (features->type >= INTUOSHT && features->type <= BAMBOO_PT)
3679:					features->device_type |= WACOM_DEVICETYPE_PAD;
3680:	
3681:				if (features->type == INTUOSHT2) {
3682:					features->x_max = features->x_max / 10;
3683:					features->y_max = features->y_max / 10;
3684:				}
3685:				else {
3686:					features->x_max = 4096;
3687:					features->y_max = 4096;
3688:				}
3689:			}
3690:			else if (features->pktlen == WACOM_PKGLEN_BBTOUCH) {
3691:				features->device_type |= WACOM_DEVICETYPE_PAD;
3692:			}
3693:		}
3694:	
3695:		/*
3696:		 * Hack for the Bamboo One:
3697:		 * the device presents a PAD/Touch interface as most Bamboos and even
3698:		 * sends ghosts PAD data on it. However, later, we must disable this
3699:		 * ghost interface, and we can not detect it unless we set it here
3700:		 * to WACOM_DEVICETYPE_PAD or WACOM_DEVICETYPE_TOUCH.
3701:		 */
3702:		if (features->type == BAMBOO_PEN &&
3703:		    features->pktlen == WACOM_PKGLEN_BBTOUCH3)
3704:			features->device_type |= WACOM_DEVICETYPE_PAD;
3705:	
3706:		/*
3707:		 * Raw Wacom-mode pen and touch events both come from interface
3708:		 * 0, whose HID descriptor has an application usage of 0xFF0D
3709:		 * (i.e., WACOM_HID_WD_DIGITIZER). We route pen packets back
3710:		 * out through the HID_GENERIC device created for interface 1,
3711:		 * so rewrite this one to be of type WACOM_DEVICETYPE_TOUCH.
3712:		 */
3713:		if (features->type == BAMBOO_PAD)
3714:			features->device_type = WACOM_DEVICETYPE_TOUCH;
3715:	
3716:		if (features->type == REMOTE)
3717:			features->device_type = WACOM_DEVICETYPE_PAD;
3718:	
3719:		if (features->type == INTUOSP2_BT ||
3720:		    features->type == INTUOSP2S_BT) {
3721:			features->device_type |= WACOM_DEVICETYPE_PEN |
3722:						 WACOM_DEVICETYPE_PAD |
3723:						 WACOM_DEVICETYPE_TOUCH;
3724:			features->quirks |= WACOM_QUIRK_BATTERY;
3725:		}
3726:	
3727:		if (features->type == INTUOSHT3_BT) {
3728:			features->device_type |= WACOM_DEVICETYPE_PEN |
3729:						 WACOM_DEVICETYPE_PAD;
3730:			features->quirks |= WACOM_QUIRK_BATTERY;
3731:		}
3732:	
3733:		switch (features->type) {
3734:		case PL:
3735:		case DTU:
3736:		case DTUS:
3737:		case DTUSX:
3738:		case WACOM_21UX2:
3739:		case WACOM_22HD:
3740:		case DTK:
3741:		case WACOM_24HD:
3742:		case WACOM_27QHD:
3743:		case CINTIQ_HYBRID:
3744:		case CINTIQ_COMPANION_2:
3745:		case CINTIQ:
3746:		case WACOM_BEE:
3747:		case WACOM_13HD:
3748:		case WACOM_24HDT:
3749:		case WACOM_27QHDT:
3750:		case TABLETPC:
3751:		case TABLETPCE:
3752:		case TABLETPC2FG:
3753:		case MTSCREEN:
3754:		case MTTPC:
3755:		case MTTPC_B:
3756:			features->device_type |= WACOM_DEVICETYPE_DIRECT;
3757:			break;
3758:		}
3759:	
3760:		if (wacom->hdev->bus == BUS_BLUETOOTH)
3761:			features->quirks |= WACOM_QUIRK_BATTERY;
3762:	
3763:		/* quirk for bamboo touch with 2 low res touches */
3764:		if ((features->type == BAMBOO_PT || features->type == BAMBOO_TOUCH) &&
3765:		    features->pktlen == WACOM_PKGLEN_BBTOUCH) {
3766:			features->x_max <<= 5;
3767:			features->y_max <<= 5;
3768:			features->x_fuzz <<= 5;
3769:			features->y_fuzz <<= 5;
3770:			features->quirks |= WACOM_QUIRK_BBTOUCH_LOWRES;
3771:		}
3772:	
3773:		if (features->type == WIRELESS) {
3774:			if (features->device_type == WACOM_DEVICETYPE_WL_MONITOR) {
3775:				features->quirks |= WACOM_QUIRK_BATTERY;
3776:			}
3777:		}
3778:	
3779:		if (features->type == REMOTE)
3780:			features->device_type |= WACOM_DEVICETYPE_WL_MONITOR;
3781:	
3782:		/* HID descriptor for DTK-2451 / DTH-2452 claims to report lots
3783:		 * of things it shouldn't. Lets fix up the damage...
3784:		 */
3785:		if (wacom->hdev->product == 0x382 || wacom->hdev->product == 0x37d) {
3786:			features->quirks &= ~WACOM_QUIRK_TOOLSERIAL;
3787:			__clear_bit(BTN_TOOL_BRUSH, wacom_wac->pen_input->keybit);
3788:			__clear_bit(BTN_TOOL_PENCIL, wacom_wac->pen_input->keybit);
3789:			__clear_bit(BTN_TOOL_AIRBRUSH, wacom_wac->pen_input->keybit);
3790:			__clear_bit(ABS_Z, wacom_wac->pen_input->absbit);
3791:			__clear_bit(ABS_DISTANCE, wacom_wac->pen_input->absbit);
3792:			__clear_bit(ABS_TILT_X, wacom_wac->pen_input->absbit);
3793:			__clear_bit(ABS_TILT_Y, wacom_wac->pen_input->absbit);
3794:			__clear_bit(ABS_WHEEL, wacom_wac->pen_input->absbit);
3795:			__clear_bit(ABS_MISC, wacom_wac->pen_input->absbit);
3796:			__clear_bit(MSC_SERIAL, wacom_wac->pen_input->mscbit);
3797:			__clear_bit(EV_MSC, wacom_wac->pen_input->evbit);
3798:		}
3799:	}
 SourceFile:drivers/hid/wacom_wac.c]

74/2 2026/09/21 01:03 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 65513
							output: 27
							thoughts: 919
						

Thoughts:
**Debugging the Wacom Driver: A Deep Dive into Pen Input**

Okay, let's break this down. It looks like `wacom_setup_device_quirks` gets called *before* `wacom_setup_inputs`. That's important. I'm checking `wacom_parse_and_register`, and the flow seems pretty clear: `wacom_setup_device_quirks` sets up the initial device characteristics. Then, if the `device_type` is unknown, and it's not wireless, there's some error handling. If there's an issue, we return an error. Otherwise, we assume it's a pen and set the `device_type` accordingly. I can calculate the resolution and update the device name. Then there are some checks for pens that don't support touch or pad inputs and errors that get handled appropriately. After all that is set, we run `wacom_setup_inputs`.

So, `features->device_type` should be fully initialized *before* `wacom_setup_inputs`.  If the `device_type` includes the `WACOM_DEVICETYPE_PEN` flag, the `wacom_setup_pen_input_capabilities` function shouldn't return `-ENODEV`. Therefore, `pen_input` shouldn't be set to `NULL`. I need to be absolutely sure about this; I checked and double checked `wacom_setup_pen_input_capabilities`, and it *only* returns `-ENODEV` or 0.

So, `pen_input` *should* be `NULL` only when `!(features->device_type & WACOM_DEVICETYPE_PEN)`. Now, let's consider the `wacom_bpt_irq` function. If `features->device_type & WACOM_DEVICETYPE_PEN` is FALSE, it doesn't even call `wacom_intuos_irq`. Therefore, `wacom_intuos_irq` is only *ever* called if `features->device_type & WACOM_DEVICETYPE_PEN` is TRUE.

This seems paradoxical. The code suggests that if the device is identified as a pen, `pen_input` should *not* be `NULL`, and the correct interrupt handler should be called. Yet, somehow, in the situation I'm looking at, `pen_input` *is* `NULL`. I need to figure out how this is happening. The key is in where `pen_input` is getting set to `NULL` to find out what's going on. Is there any other place where `pen_input` is being set to `NULL`? I need to check the entire codebase.



75/2 2026/09/21 01:03 tool codesearch-find-references
0m Args:
map[Name:wacom_wac::pen_input]

Results:
map[References:[map[ReferenceKind:writes ReferencingEntityKind:function ReferencingEntityName:wacom_allocate_inputs SourceFile:drivers/hid/wacom_sys.c SourceLine:2112] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_allocate_inputs SourceFile:drivers/hid/wacom_sys.c SourceLine:2115] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_allocate_inputs SourceFile:drivers/hid/wacom_sys.c SourceLine:2120] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_bpt_pen SourceFile:drivers/hid/wacom_wac.c SourceLine:3212] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_dtu_irq SourceFile:drivers/hid/wacom_wac.c SourceLine:263] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_dtus_irq SourceFile:drivers/hid/wacom_wac.c SourceLine:293] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_exit_report SourceFile:drivers/hid/wacom_wac.c SourceLine:736] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_force_proxout SourceFile:drivers/hid/wacom_wac.c SourceLine:43] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_graphire_irq SourceFile:drivers/hid/wacom_wac.c SourceLine:345] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_intuos_bt_irq SourceFile:drivers/hid/wacom_wac.c SourceLine:1215] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_intuos_bt_irq SourceFile:drivers/hid/wacom_wac.c SourceLine:1224] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_intuos_bt_irq SourceFile:drivers/hid/wacom_wac.c SourceLine:1242] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_intuos_bt_process_data SourceFile:drivers/hid/wacom_wac.c SourceLine:1201] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_intuos_general SourceFile:drivers/hid/wacom_wac.c SourceLine:853] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_intuos_inout SourceFile:drivers/hid/wacom_wac.c SourceLine:777] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_intuos_irq SourceFile:drivers/hid/wacom_wac.c SourceLine:1025] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_intuos_pro2_bt_irq SourceFile:drivers/hid/wacom_wac.c SourceLine:1548] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_intuos_pro2_bt_irq SourceFile:drivers/hid/wacom_wac.c SourceLine:1556] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_intuos_pro2_bt_irq SourceFile:drivers/hid/wacom_wac.c SourceLine:1561] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_intuos_pro2_bt_pen SourceFile:drivers/hid/wacom_wac.c SourceLine:1279] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_penpartner_irq SourceFile:drivers/hid/wacom_wac.c SourceLine:129] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_pl_irq SourceFile:drivers/hid/wacom_wac.c SourceLine:174] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_ptu_irq SourceFile:drivers/hid/wacom_wac.c SourceLine:234] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_register_inputs SourceFile:drivers/hid/wacom_sys.c SourceLine:2173] map[ReferenceKind:writes ReferencingEntityKind:function ReferencingEntityName:wacom_register_inputs SourceFile:drivers/hid/wacom_sys.c SourceLine:2200] map[ReferenceKind:writes ReferencingEntityKind:function ReferencingEntityName:wacom_release_resources SourceFile:drivers/hid/wacom_sys.c SourceLine:2339] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_set_barrel_switch3_usage SourceFile:drivers/hid/wacom_wac.c SourceLine:2322] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_basic_pro_pen SourceFile:drivers/hid/wacom_wac.c SourceLine:3596] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_cintiq SourceFile:drivers/hid/wacom_wac.c SourceLine:3610] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3787] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3787] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3787] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3787] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3787] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3788] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3788] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3788] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3788] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3788] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3789] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3789] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3789] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3789] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3789] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3790] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3790] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3790] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3790] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3790] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3791] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3791] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3791] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3791] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3791] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3792] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3792] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3792] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3792] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3792] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3793] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3793] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3793] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3793] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3793] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3794] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3794] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3794] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3794] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3794] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3795] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3795] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3795] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3795] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3795] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3796] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3796] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3796] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3796] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3796] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3797] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3797] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3797] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3797] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3797] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_inputs SourceFile:drivers/hid/wacom_sys.c SourceLine:2133] map[ReferenceKind:writes ReferencingEntityKind:function ReferencingEntityName:wacom_setup_inputs SourceFile:drivers/hid/wacom_sys.c SourceLine:2144] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_intuos SourceFile:drivers/hid/wacom_wac.c SourceLine:3629] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_tpc_irq SourceFile:drivers/hid/wacom_wac.c SourceLine:1799] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_tpc_irq SourceFile:drivers/hid/wacom_wac.c SourceLine:1800] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_tpc_pen SourceFile:drivers/hid/wacom_wac.c SourceLine:1768] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_wac_collection SourceFile:drivers/hid/wacom_wac.c SourceLine:3018] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_wac_event SourceFile:drivers/hid/wacom_wac.c SourceLine:2966] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_wac_irq SourceFile:drivers/hid/wacom_wac.c SourceLine:3585] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_wac_irq SourceFile:drivers/hid/wacom_wac.c SourceLine:3586] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_wac_pen_event SourceFile:drivers/hid/wacom_wac.c SourceLine:2429] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_wac_pen_report SourceFile:drivers/hid/wacom_wac.c SourceLine:2586] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_wac_pen_usage_mapping SourceFile:drivers/hid/wacom_wac.c SourceLine:2341] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_wac_report SourceFile:drivers/hid/wacom_wac.c SourceLine:3056]] TruncatedOutput:false]

76/2 2026/09/21 01:03 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 72697
							output: 39
							thoughts: 122
						

Thoughts:
**Investigating the Input Device Setup**

Okay, hold on a second... `wacom_setup_inputs` is setting the input device pointers to `NULL`. That's not right. Where else could these values possibly be set? Let me scan through the code... Nope, there are only a few places where these input structures are touched. Looks like the writes are limited to: `wacom_allocate_inputs` on line 2112, `wacom_setup_inputs` on line 2144, `wacom_register_inputs` on line 2200, and finally `wacom_release_resources` on line 2339. The issue must be in one of those functions.

Let's dive into `wacom_register_inputs` at line 2200. I need to understand what's happening there.



77/2 2026/09/21 01:03 tool read-file
0m Args:
map[File:drivers/hid/wacom_sys.c FirstLine:2170 LineCount:50]

Results:
map[Contents:2170:		struct wacom_wac *wacom_wac = &(wacom->wacom_wac);
2171:		int error = 0;
2172:	
2173:		pen_input_dev = wacom_wac->pen_input;
2174:		touch_input_dev = wacom_wac->touch_input;
2175:		pad_input_dev = wacom_wac->pad_input;
2176:	
2177:		if (pen_input_dev) {
2178:			error = input_register_device(pen_input_dev);
2179:			if (error)
2180:				goto fail;
2181:		}
2182:	
2183:		if (touch_input_dev) {
2184:			error = input_register_device(touch_input_dev);
2185:			if (error)
2186:				goto fail;
2187:		}
2188:	
2189:		if (pad_input_dev) {
2190:			error = input_register_device(pad_input_dev);
2191:			if (error)
2192:				goto fail;
2193:		}
2194:	
2195:		return 0;
2196:	
2197:	fail:
2198:		wacom_wac->pad_input = NULL;
2199:		wacom_wac->touch_input = NULL;
2200:		wacom_wac->pen_input = NULL;
2201:		return error;
2202:	}
2203:	
2204:	/*
2205:	 * Not all devices report physical dimensions from HID.
2206:	 * Compute the default from hardcoded logical dimension
2207:	 * and resolution before driver overwrites them.
2208:	 */
2209:	static void wacom_set_default_phy(struct wacom_features *features)
2210:	{
2211:		if (features->x_resolution) {
2212:			features->x_phy = (features->x_max * 100) /
2213:						features->x_resolution;
2214:			features->y_phy = (features->y_max * 100) /
2215:						features->y_resolution;
2216:		}
2217:	}
2218:	
2219:	static void wacom_calculate_res(struct wacom_features *features)
]

78/2 2026/09/21 01:03 llm expert-compressor
0m Model:
gemini-3.8-flash

Reply:
### Investigation Overview & Current State

The investigation focuses on a Linux kernel crash report triggered by syzkaller via `/dev/uhid`:
- **Crash Type**: KASAN null-pointer dereference (`Oops: general protection fault, probably for non-canonical address 0xdffffc0000000065`).
- **Target Location**: `wacom_intuos_irq+0x62b/0x3430` at `drivers/hid/wacom_wac.c:1036`.
- **Faulting Address / Dereference**: Dereferencing `input->dev.parent` when `input` (`wacom->pen_input`) is `NULL`. Specifically:
  - `input` (`pen_input`) is NULL (0x0).
  - Offset of `dev` in `struct input_dev`: 744 (0x2e8).
  - Offset of `parent` in `struct device`: 64 (0x40).
  - Total offset: `0x2e8 + 0x40 = 0x328`.
  - KASAN checked shadow memory for range `[0x0000000000000328 - 0x000000000000032f]`. Shadow computation: `0x328 >> 3 + 0xdffffc0000000000 = 0xdffffc0000000065`, triggering GPF on non-canonical shadow access.

---

### Root Cause & Vulnerable Code Analysis

#### 1. Vulnerable Code Snippet
In `drivers/hid/wacom_wac.c`:
```c
static int wacom_intuos_irq(struct wacom_wac *wacom)
{
    unsigned char *data = wacom->data;
    struct input_dev *input = wacom->pen_input;
    int result;

    if (data[0] != WACOM_REPORT_PENABLED &&
        data[0] != WACOM_REPORT_INTUOS_ID1 &&
        data[0] != WACOM_REPORT_INTUOS_ID2 &&
        data[0] != WACOM_REPORT_INTUOSPAD &&
        data[0] != WACOM_REPORT_INTUOS_PEN &&
        data[0] != WACOM_REPORT_CINTIQ &&
        data[0] != WACOM_REPORT_CINTIQPAD &&
        data[0] != WACOM_REPORT_INTUOS5PAD) {
        dev_dbg(input->dev.parent,
            "%s: received unknown report #%d\n", __func__, data[0]);
        return 0;
    }
    ...
```

Notice that `dev_dbg` accesses `input->dev.parent`. However, there is no check ensuring `input != NULL`.

#### 2. Call Chain Leading to Crash
From syzkaller call trace:
```
entry_SYSCALL_64_after_hwframe
  ksys_write
    vfs_write
      uhid_char_write (/dev/uhid)
        uhid_dev_input2
          __hid_input_report
            wacom_raw_event (drivers/hid/wacom_sys.c:182)
              wacom_wac_irq (drivers/hid/wacom_wac.c:3560)
                wacom_bpt_irq (drivers/hid/wacom_wac.c:3290)
                  wacom_intuos_irq (drivers/hid/wacom_wac.c:1036)
```

In `wacom_wac.c`:
```c
static int wacom_bpt_irq(struct wacom_wac *wacom, size_t len)
{
    struct wacom_features *features = &wacom->features;

    if ((features->type == INTUOSHT2) &&
        (features->device_type & WACOM_DEVICETYPE_PEN))
        return wacom_intuos_irq(wacom);
...
```

#### 3. How `wacom->pen_input` can be NULL
In `wacom_setup_inputs()` (`drivers/hid/wacom_sys.c`):
```c
static int wacom_setup_inputs(struct wacom *wacom)
{
    ...
    error = wacom_setup_pen_input_capabilities(pen_input_dev, wacom_wac);
    if (error) {
        /* no pen in use on this interface */
        input_free_device(pen_input_dev);
        wacom_wac->pen_input = NULL;
        pen_input_dev = NULL;
    }
```
And in `wacom_setup_pen_input_capabilities`:
```c
int wacom_setup_pen_input_capabilities(struct input_dev *input_dev,
                       struct wacom_wac *wacom_wac)
{
    struct wacom_features *features = &wacom_wac->features;

    if (!(features->device_type & WACOM_DEVICETYPE_PEN))
        return -ENODEV;
...
```
Still needed to inspect: How does `pen_input` become NULL when `features->type == INTUOSHT2` and `features->device_type & WACOM_DEVICETYPE_PEN`?
Possibilities:
- `wacom_parse_and_register()` or a quirk function resets or modifies `pen_input` or `device_type`.
- An interface or report descriptor quirk or failure during registration.
- A device with multiple interfaces where `pen_input` failed to register or was freed.
- Or simply `features->device_type` is modified after `wacom_setup_inputs()`.

---

### Approaches and Findings

1. **Static code inspection of `wacom_intuos_irq`**:
   - Identified that `input` is loaded directly from `wacom->pen_input`.
   - Line 1036 dereferences `input->dev.parent`.
   - If `input` is NULL, offset 0x328 is read.

2. **KASAN vs Production Behavior Investigation**:
   - Analyzed `dev_dbg` implementation in `include/linux/dev_printk.h` and `include/linux/dynamic_debug.h`:
     - Under `CONFIG_DYNAMIC_DEBUG`, `dev_dbg` calls `dynamic_dev_dbg`, which evaluates `dev` conditionally inside `if (DYNAMIC_DEBUG_BRANCH(id))`.
     - In production builds without dynamic debug (or when `DEBUG` is not set), `dev_dbg` expands to `dev_no_printk()`, which evaluates expressions inside `if (0)`.
     - However, under production builds WITH `CONFIG_DYNAMIC_DEBUG=y` (standard on Debian/Ubuntu/Fedora/RHEL/etc.), if dynamic debug is enabled for that statement, or under configurations where `DEBUG` or dynamic debug is active, dereferencing `input->dev.parent` occurs.
     - Even further: what happens if dynamic debug is NOT enabled or after the `if` check? Look at lines 1042-1054:
       ```c
       result = wacom_intuos_pad(wacom);
       ...
       result = wacom_intuos_inout(wacom);
       ...
       result = wacom_intuos_general(wacom);
       ```
       If an incoming report matches one of the expected reports (e.g. `WACOM_REPORT_PENABLED`, `WACOM_REPORT_INTUOS_PEN`, etc.), `wacom_intuos_general(wacom)` is called. In `wacom_intuos_general()`:
       Line 853 reads `wacom->pen_input`. If `wacom->pen_input` is NULL, does it also dereference it unconditionally?

3. **Repetitive Tool Calls Noted**:
   - Multiple greps were performed on `include/linux/dev_printk.h` searching for variations of `dev_dbg` / `dev_no_printk`. Avoid re-grepping `dev_printk.h`.

---

### Active Lines of Investigation / Next Steps

1. Check `wacom_parse_and_register()` and where `features->device_type` is set/modified in `drivers/hid/wacom_sys.c`.
2. Check how `wacom->pen_input` ends up NULL when `wacom_intuos_irq()` is called:
   - Examine `drivers/hid/wacom_sys.c:2885` (`wacom_parse_and_register`).
   - Check what `INTUOSHT2` device ID triggers this and how `/dev/uhid` creates it.
3. Check subsequent code in `wacom_intuos_general()` / `wacom_intuos_inout()` / `wacom_intuos_pad()`:
   - Does normal event handling also dereference `pen_input`?
4. Determine Reachability / Accessibility:
   - Triggered via `uhid_char_write` -> `/dev/uhid`.
   - Permissions of `/dev/uhid`: typically root only (crw------- root:root or system group on Android). Not accessible to unprivileged users unless specifically configured.
   - Peripheral trigger: Can a malicious USB device (or Bluetooth HID) presenting a Wacom VID/PID and matching descriptors trigger this? Yes, HID drivers are directly triggered when external USB peripherals are plugged in.
5. Determine Impact:
   - Read of `input->dev.parent` at offset `0x328` from NULL.
   - Causes page fault / kernel oops (DoS). Not arbitrary memory write or controlled execution hijack. Exploitable for DoS (system crash/reboot).

---

### Critical File Paths and References
- `drivers/hid/wacom_wac.c`: `wacom_intuos_irq` (line 1022), `wacom_bpt_irq` (line 3284), `wacom_wac_irq` (line 3560).
- `drivers/hid/wacom_sys.c`: `wacom_allocate_inputs` (line 2108), `wacom_setup_inputs` (line 2127), `wacom_setup_pen_input_capabilities` (line 3801 in `wacom_wac.c`), `wacom_probe` (line 2822).
- `include/linux/dev_printk.h`: `dev_dbg` macros.
- `include/linux/dynamic_debug.h`: `dynamic_dev_dbg` definitions.

Tokens:
							input: 44314
							output: 2486
							thoughts: 0
						

79/2 2026/09/21 01:03 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 28579
							output: 39
							thoughts: 0
						

80/2 2026/09/21 01:03 tool read-file
0m Args:
map[File:drivers/hid/wacom_sys.c FirstLine:2120 LineCount:50]

Results:
map[Contents:2120:		wacom_wac->pen_input->name = wacom_wac->pen_name;
2121:		wacom_wac->touch_input->name = wacom_wac->touch_name;
2122:		wacom_wac->pad_input->name = wacom_wac->pad_name;
2123:	
2124:		return 0;
2125:	}
2126:	
2127:	static int wacom_setup_inputs(struct wacom *wacom)
2128:	{
2129:		struct input_dev *pen_input_dev, *touch_input_dev, *pad_input_dev;
2130:		struct wacom_wac *wacom_wac = &(wacom->wacom_wac);
2131:		int error = 0;
2132:	
2133:		pen_input_dev = wacom_wac->pen_input;
2134:		touch_input_dev = wacom_wac->touch_input;
2135:		pad_input_dev = wacom_wac->pad_input;
2136:	
2137:		if (!pen_input_dev || !touch_input_dev || !pad_input_dev)
2138:			return -EINVAL;
2139:	
2140:		error = wacom_setup_pen_input_capabilities(pen_input_dev, wacom_wac);
2141:		if (error) {
2142:			/* no pen in use on this interface */
2143:			input_free_device(pen_input_dev);
2144:			wacom_wac->pen_input = NULL;
2145:			pen_input_dev = NULL;
2146:		}
2147:	
2148:		error = wacom_setup_touch_input_capabilities(touch_input_dev, wacom_wac);
2149:		if (error) {
2150:			/* no touch in use on this interface */
2151:			input_free_device(touch_input_dev);
2152:			wacom_wac->touch_input = NULL;
2153:			touch_input_dev = NULL;
2154:		}
2155:	
2156:		error = wacom_setup_pad_input_capabilities(pad_input_dev, wacom_wac);
2157:		if (error) {
2158:			/* no pad events using this interface */
2159:			input_free_device(pad_input_dev);
2160:			wacom_wac->pad_input = NULL;
2161:			pad_input_dev = NULL;
2162:		}
2163:	
2164:		return 0;
2165:	}
2166:	
2167:	static int wacom_register_inputs(struct wacom *wacom)
2168:	{
2169:		struct input_dev *pen_input_dev, *touch_input_dev, *pad_input_dev;
]

81/2 2026/09/21 01:03 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 29460
							output: 40
							thoughts: 0
						

82/2 2026/09/21 01:04 tool read-file
0m Args:
map[File:drivers/hid/wacom_wac.c FirstLine:3800 LineCount:50]

Results:
map[Contents:3800:	
3801:	int wacom_setup_pen_input_capabilities(struct input_dev *input_dev,
3802:					   struct wacom_wac *wacom_wac)
3803:	{
3804:		struct wacom_features *features = &wacom_wac->features;
3805:	
3806:		if (!(features->device_type & WACOM_DEVICETYPE_PEN))
3807:			return -ENODEV;
3808:	
3809:		if (features->device_type & WACOM_DEVICETYPE_DIRECT)
3810:			__set_bit(INPUT_PROP_DIRECT, input_dev->propbit);
3811:		else
3812:			__set_bit(INPUT_PROP_POINTER, input_dev->propbit);
3813:	
3814:		if (features->type == HID_GENERIC)
3815:			/* setup has already been done */
3816:			return 0;
3817:	
3818:		input_dev->evbit[0] |= BIT_MASK(EV_KEY) | BIT_MASK(EV_ABS);
3819:		__set_bit(BTN_TOUCH, input_dev->keybit);
3820:		__set_bit(ABS_MISC, input_dev->absbit);
3821:	
3822:		input_set_abs_params(input_dev, ABS_X, 0 + features->offset_left,
3823:				     features->x_max - features->offset_right,
3824:				     features->x_fuzz, 0);
3825:		input_set_abs_params(input_dev, ABS_Y, 0 + features->offset_top,
3826:				     features->y_max - features->offset_bottom,
3827:				     features->y_fuzz, 0);
3828:		input_set_abs_params(input_dev, ABS_PRESSURE, 0,
3829:			features->pressure_max, features->pressure_fuzz, 0);
3830:	
3831:		/* penabled devices have fixed resolution for each model */
3832:		input_abs_set_res(input_dev, ABS_X, features->x_resolution);
3833:		input_abs_set_res(input_dev, ABS_Y, features->y_resolution);
3834:	
3835:		switch (features->type) {
3836:		case GRAPHIRE_BT:
3837:			__clear_bit(ABS_MISC, input_dev->absbit);
3838:			fallthrough;
3839:	
3840:		case WACOM_MO:
3841:		case WACOM_G4:
3842:			input_set_abs_params(input_dev, ABS_DISTANCE, 0,
3843:						      features->distance_max,
3844:						      features->distance_fuzz, 0);
3845:			fallthrough;
3846:	
3847:		case GRAPHIRE:
3848:			input_set_capability(input_dev, EV_REL, REL_WHEEL);
3849:	
]

83/2 2026/09/21 01:04 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 30380
							output: 40
							thoughts: 0
						

84/2 2026/09/21 01:04 tool read-file
0m Args:
map[File:drivers/hid/wacom_wac.c FirstLine:1020 LineCount:50]

Results:
map[Contents:1020:	}
1021:	
1022:	static int wacom_intuos_irq(struct wacom_wac *wacom)
1023:	{
1024:		unsigned char *data = wacom->data;
1025:		struct input_dev *input = wacom->pen_input;
1026:		int result;
1027:	
1028:		if (data[0] != WACOM_REPORT_PENABLED &&
1029:		    data[0] != WACOM_REPORT_INTUOS_ID1 &&
1030:		    data[0] != WACOM_REPORT_INTUOS_ID2 &&
1031:		    data[0] != WACOM_REPORT_INTUOSPAD &&
1032:		    data[0] != WACOM_REPORT_INTUOS_PEN &&
1033:		    data[0] != WACOM_REPORT_CINTIQ &&
1034:		    data[0] != WACOM_REPORT_CINTIQPAD &&
1035:		    data[0] != WACOM_REPORT_INTUOS5PAD) {
1036:			dev_dbg(input->dev.parent,
1037:				"%s: received unknown report #%d\n", __func__, data[0]);
1038:	                return 0;
1039:		}
1040:	
1041:		/* process pad events */
1042:		result = wacom_intuos_pad(wacom);
1043:		if (result)
1044:			return result;
1045:	
1046:		/* process in/out prox events */
1047:		result = wacom_intuos_inout(wacom);
1048:		if (result)
1049:			return result - 1;
1050:	
1051:		/* process general packets */
1052:		result = wacom_intuos_general(wacom);
1053:		if (result)
1054:			return result - 1;
1055:	
1056:		return 0;
1057:	}
1058:	
1059:	static int wacom_remote_irq(struct wacom_wac *wacom_wac, size_t len)
1060:	{
1061:		unsigned char *data = wacom_wac->data;
1062:		struct input_dev *input;
1063:		struct wacom *wacom = container_of(wacom_wac, struct wacom, wacom_wac);
1064:		struct wacom_remote *remote = wacom->remote;
1065:		int bat_charging, bat_percent, touch_ring_mode;
1066:		__u32 serial;
1067:		int i, index = -1;
1068:		unsigned long flags;
1069:	
]

85/2 2026/09/21 01:04 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 31214
							output: 39
							thoughts: 0
						

86/2 2026/09/21 01:04 tool read-file
0m Args:
map[File:drivers/hid/wacom_wac.c FirstLine:840 LineCount:50]

Results:
map[Contents: 840:	{
 841:		return (touch_arbitration ? !wacom->shared->stylus_in_proximity : 1);
 842:	}
 843:	
 844:	static inline bool delay_pen_events(struct wacom_wac *wacom)
 845:	{
 846:		return (wacom->shared->touch_down && touch_arbitration);
 847:	}
 848:	
 849:	static int wacom_intuos_general(struct wacom_wac *wacom)
 850:	{
 851:		struct wacom_features *features = &wacom->features;
 852:		unsigned char *data = wacom->data;
 853:		struct input_dev *input = wacom->pen_input;
 854:		int idx = (features->type == INTUOS) ? (data[1] & 0x01) : 0;
 855:		unsigned char type = (data[1] >> 1) & 0x0F;
 856:		unsigned int x, y, distance, t;
 857:	
 858:		if (data[0] != WACOM_REPORT_PENABLED && data[0] != WACOM_REPORT_CINTIQ &&
 859:			data[0] != WACOM_REPORT_INTUOS_PEN)
 860:			return 0;
 861:	
 862:		if (delay_pen_events(wacom))
 863:			return 1;
 864:	
 865:		/* don't report events if we don't know the tool ID */
 866:		if (!wacom->id[idx]) {
 867:			/* but reschedule a read of the current tool */
 868:			wacom_intuos_schedule_prox_event(wacom);
 869:			return 1;
 870:		}
 871:	
 872:		/*
 873:		 * don't report events for invalid data
 874:		 */
 875:		/* older I4 styli don't work with new Cintiqs */
 876:		if ((!((wacom->id[idx] >> 16) & 0x01) &&
 877:				(features->type == WACOM_21UX2)) ||
 878:		    /* Only large Intuos support Lense Cursor */
 879:		    (wacom->tool[idx] == BTN_TOOL_LENS &&
 880:			(features->type == INTUOS3 ||
 881:			 features->type == INTUOS3S ||
 882:			 features->type == INTUOS4 ||
 883:			 features->type == INTUOS4S ||
 884:			 features->type == INTUOS5 ||
 885:			 features->type == INTUOS5S ||
 886:			 features->type == INTUOSPM ||
 887:			 features->type == INTUOSPS)) ||
 888:		   /* Cintiq doesn't send data when RDY bit isn't set */
 889:		   (features->type == CINTIQ && !(data[1] & 0x40)))
]

87/2 2026/09/21 01:04 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 32127
							output: 39
							thoughts: 0
						

88/2 2026/09/21 01:04 tool read-file
0m Args:
map[File:drivers/hid/wacom_wac.c FirstLine:890 LineCount:50]

Results:
map[Contents: 890:			return 1;
 891:	
 892:		x = (be16_to_cpup((__be16 *)&data[2]) << 1) | ((data[9] >> 1) & 1);
 893:		y = (be16_to_cpup((__be16 *)&data[4]) << 1) | (data[9] & 1);
 894:		distance = data[9] >> 2;
 895:		if (features->type < INTUOS3S) {
 896:			x >>= 1;
 897:			y >>= 1;
 898:			distance >>= 1;
 899:		}
 900:		if (features->type == INTUOSHT2)
 901:			distance = features->distance_max - distance;
 902:		input_report_abs(input, ABS_X, x);
 903:		input_report_abs(input, ABS_Y, y);
 904:		input_report_abs(input, ABS_DISTANCE, distance);
 905:	
 906:		switch (type) {
 907:		case 0x00:
 908:		case 0x01:
 909:		case 0x02:
 910:		case 0x03:
 911:			/* general pen packet */
 912:			t = (data[6] << 3) | ((data[7] & 0xC0) >> 5) | (data[1] & 1);
 913:			if (features->pressure_max < 2047)
 914:				t >>= 1;
 915:			input_report_abs(input, ABS_PRESSURE, t);
 916:			if (features->type != INTUOSHT2) {
 917:			    input_report_abs(input, ABS_TILT_X,
 918:					 (((data[7] << 1) & 0x7e) | (data[8] >> 7)) - 64);
 919:			    input_report_abs(input, ABS_TILT_Y, (data[8] & 0x7f) - 64);
 920:			}
 921:			input_report_key(input, BTN_STYLUS, data[1] & 2);
 922:			input_report_key(input, BTN_STYLUS2, data[1] & 4);
 923:			input_report_key(input, BTN_TOUCH, t > 10);
 924:			break;
 925:	
 926:		case 0x0a:
 927:			/* airbrush second packet */
 928:			input_report_abs(input, ABS_WHEEL,
 929:					(data[6] << 2) | ((data[7] >> 6) & 3));
 930:			input_report_abs(input, ABS_TILT_X,
 931:					 (((data[7] << 1) & 0x7e) | (data[8] >> 7)) - 64);
 932:			input_report_abs(input, ABS_TILT_Y, (data[8] & 0x7f) - 64);
 933:			break;
 934:	
 935:		case 0x05:
 936:			/* Rotation packet */
 937:			if (features->type >= INTUOS3S) {
 938:				/* I3 marker pen rotation */
 939:				t = (data[6] << 3) | ((data[7] >> 5) & 7);
]

89/2 2026/09/21 01:04 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 33166
							output: 39
							thoughts: 0
						

90/2 2026/09/21 01:04 tool read-file
0m Args:
map[File:drivers/hid/wacom_wac.c FirstLine:770 LineCount:50]

Results:
map[Contents: 770:		wacom->id[idx] = 0;
 771:	}
 772:	
 773:	static int wacom_intuos_inout(struct wacom_wac *wacom)
 774:	{
 775:		struct wacom_features *features = &wacom->features;
 776:		unsigned char *data = wacom->data;
 777:		struct input_dev *input = wacom->pen_input;
 778:		int idx = (features->type == INTUOS) ? (data[1] & 0x01) : 0;
 779:	
 780:		if (!(((data[1] & 0xfc) == 0xc0) ||  /* in prox */
 781:		    ((data[1] & 0xfe) == 0x20) ||    /* in range */
 782:		    ((data[1] & 0xfe) == 0x80)))     /* out prox */
 783:			return 0;
 784:	
 785:		/* Enter report */
 786:		if ((data[1] & 0xfc) == 0xc0) {
 787:			/* serial number of the tool */
 788:			wacom->serial[idx] = ((__u64)(data[3] & 0x0f) << 28) +
 789:				(data[4] << 20) + (data[5] << 12) +
 790:				(data[6] << 4) + (data[7] >> 4);
 791:	
 792:			wacom->id[idx] = (data[2] << 4) | (data[3] >> 4) |
 793:			     ((data[7] & 0x0f) << 16) | ((data[8] & 0xf0) << 8);
 794:	
 795:			wacom->tool[idx] = wacom_intuos_get_tool_type(wacom->id[idx]);
 796:	
 797:			wacom->shared->stylus_in_proximity = true;
 798:			return 1;
 799:		}
 800:	
 801:		/* in Range */
 802:		if ((data[1] & 0xfe) == 0x20) {
 803:			if (features->type != INTUOSHT2)
 804:				wacom->shared->stylus_in_proximity = true;
 805:	
 806:			/* in Range while exiting */
 807:			if (wacom->reporting_data) {
 808:				input_report_key(input, BTN_TOUCH, 0);
 809:				input_report_abs(input, ABS_PRESSURE, 0);
 810:				input_report_abs(input, ABS_DISTANCE, wacom->features.distance_max);
 811:				return 2;
 812:			}
 813:			return 1;
 814:		}
 815:	
 816:		/* Exit report */
 817:		if ((data[1] & 0xfe) == 0x80) {
 818:			wacom->shared->stylus_in_proximity = false;
 819:			wacom->reporting_data = false;
]

91/2 2026/09/21 01:04 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 34132
							output: 40
							thoughts: 0
						

92/2 2026/09/21 01:04 tool read-file
0m Args:
map[File:drivers/hid/wacom_wac.c FirstLine:3280 LineCount:50]

Results:
map[Contents:3280:	
3281:		return 1;
3282:	}
3283:	
3284:	static int wacom_bpt_irq(struct wacom_wac *wacom, size_t len)
3285:	{
3286:		struct wacom_features *features = &wacom->features;
3287:	
3288:		if ((features->type == INTUOSHT2) &&
3289:		    (features->device_type & WACOM_DEVICETYPE_PEN))
3290:			return wacom_intuos_irq(wacom);
3291:		else if (len == WACOM_PKGLEN_BBTOUCH)
3292:			return wacom_bpt_touch(wacom);
3293:		else if (len == WACOM_PKGLEN_BBTOUCH3)
3294:			return wacom_bpt3_touch(wacom);
3295:		else if (len == WACOM_PKGLEN_BBFUN || len == WACOM_PKGLEN_BBPEN)
3296:			return wacom_bpt_pen(wacom);
3297:	
3298:		return 0;
3299:	}
3300:	
3301:	static void wacom_bamboo_pad_pen_event(struct wacom_wac *wacom,
3302:			unsigned char *data)
3303:	{
3304:		unsigned char prefix;
3305:	
3306:		/*
3307:		 * We need to reroute the event from the debug interface to the
3308:		 * pen interface.
3309:		 * We need to add the report ID to the actual pen report, so we
3310:		 * temporary overwrite the first byte to prevent having to kzalloc/kfree
3311:		 * and memcpy the report.
3312:		 */
3313:		prefix = data[0];
3314:		data[0] = WACOM_REPORT_BPAD_PEN;
3315:	
3316:		/*
3317:		 * actually reroute the event.
3318:		 * No need to check if wacom->shared->pen is valid, hid_input_report()
3319:		 * will check for us.
3320:		 */
3321:		hid_input_report(wacom->shared->pen, HID_INPUT_REPORT, data,
3322:				 WACOM_PKGLEN_PENABLED, 1);
3323:	
3324:		data[0] = prefix;
3325:	}
3326:	
3327:	static int wacom_bamboo_pad_touch_event(struct wacom_wac *wacom,
3328:			unsigned char *data)
3329:	{
]

93/2 2026/09/21 01:04 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 34946
							output: 39
							thoughts: 0
						

94/2 2026/09/21 01:04 tool read-file
0m Args:
map[File:drivers/hid/wacom_sys.c FirstLine:2370 LineCount:50]

Results:
map[Contents:2370:	static int wacom_parse_and_register(struct wacom *wacom, bool wireless)
2371:	{
2372:		struct wacom_wac *wacom_wac = &wacom->wacom_wac;
2373:		struct wacom_features *features = &wacom_wac->features;
2374:		struct hid_device *hdev = wacom->hdev;
2375:		int error;
2376:		unsigned int connect_mask = HID_CONNECT_HIDRAW;
2377:	
2378:		features->pktlen = wacom_compute_pktlen(hdev);
2379:		if (!features->pktlen)
2380:			return -ENODEV;
2381:	
2382:		if (!devres_open_group(&hdev->dev, wacom, GFP_KERNEL))
2383:			return -ENOMEM;
2384:	
2385:		error = wacom_devm_kfifo_alloc(wacom);
2386:		if (error)
2387:			goto fail;
2388:	
2389:		wacom->resources = true;
2390:	
2391:		error = wacom_allocate_inputs(wacom);
2392:		if (error)
2393:			goto fail;
2394:	
2395:		/*
2396:		 * Bamboo Pad has a generic hid handling for the Pen, and we switch it
2397:		 * into debug mode for the touch part.
2398:		 * We ignore the other interfaces.
2399:		 */
2400:		if (features->type == BAMBOO_PAD) {
2401:			if (features->pktlen == WACOM_PKGLEN_PENABLED) {
2402:				features->type = HID_GENERIC;
2403:			} else if ((features->pktlen != WACOM_PKGLEN_BPAD_TOUCH) &&
2404:				   (features->pktlen != WACOM_PKGLEN_BPAD_TOUCH_USB)) {
2405:				error = -ENODEV;
2406:				goto fail;
2407:			}
2408:		}
2409:	
2410:		/* set the default size in case we do not get them from hid */
2411:		wacom_set_default_phy(features);
2412:	
2413:		/* Retrieve the physical and logical size for touch devices */
2414:		wacom_retrieve_hid_descriptor(hdev, features);
2415:		wacom_setup_device_quirks(wacom);
2416:	
2417:		if (features->device_type == WACOM_DEVICETYPE_NONE &&
2418:		    features->type != WIRELESS) {
2419:			error = features->type == HID_GENERIC ? -ENODEV : 0;
]

95/2 2026/09/21 01:04 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 35785
							output: 39
							thoughts: 0
						

96/2 2026/09/21 01:05 tool read-file
0m Args:
map[File:drivers/hid/wacom_sys.c FirstLine:2420 LineCount:50]

Results:
map[Contents:2420:	
2421:			dev_warn(&hdev->dev, "Unknown device_type for '%s'. %s.",
2422:				 hdev->name,
2423:				 error ? "Ignoring" : "Assuming pen");
2424:	
2425:			if (error)
2426:				goto fail;
2427:	
2428:			features->device_type |= WACOM_DEVICETYPE_PEN;
2429:		}
2430:	
2431:		wacom_calculate_res(features);
2432:	
2433:		wacom_update_name(wacom, wireless ? " (WL)" : "");
2434:	
2435:		/* pen only Bamboo neither support touch nor pad */
2436:		if ((features->type == BAMBOO_PEN) &&
2437:		    ((features->device_type & WACOM_DEVICETYPE_TOUCH) ||
2438:		    (features->device_type & WACOM_DEVICETYPE_PAD))) {
2439:			error = -ENODEV;
2440:			goto fail;
2441:		}
2442:	
2443:		error = wacom_add_shared_data(hdev);
2444:		if (error)
2445:			goto fail;
2446:	
2447:		error = wacom_setup_inputs(wacom);
2448:		if (error)
2449:			goto fail;
2450:	
2451:		if (features->type == HID_GENERIC)
2452:			connect_mask |= HID_CONNECT_DRIVER;
2453:	
2454:		/* Regular HID work starts now */
2455:		error = hid_hw_start(hdev, connect_mask);
2456:		if (error) {
2457:			hid_err(hdev, "hw start failed\n");
2458:			goto fail;
2459:		}
2460:	
2461:		error = wacom_register_inputs(wacom);
2462:		if (error)
2463:			goto fail_hw_stop;
2464:	
2465:		if (wacom->wacom_wac.features.device_type & WACOM_DEVICETYPE_PAD) {
2466:			error = wacom_initialize_leds(wacom);
2467:			if (error)
2468:				goto fail_hw_stop;
2469:	
]

97/2 2026/09/21 01:05 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 36527
							output: 40
							thoughts: 0
						

98/2 2026/09/21 01:05 tool codesearch-definition-source
0m Args:
map[ContextFile:drivers/hid/wacom_sys.c Name:wacom_allocate_inputs]

Results:
map[SourceCode:2108:	static int wacom_allocate_inputs(struct wacom *wacom)
2109:	{
2110:		struct wacom_wac *wacom_wac = &(wacom->wacom_wac);
2111:	
2112:		wacom_wac->pen_input = wacom_allocate_input(wacom);
2113:		wacom_wac->touch_input = wacom_allocate_input(wacom);
2114:		wacom_wac->pad_input = wacom_allocate_input(wacom);
2115:		if (!wacom_wac->pen_input ||
2116:		    !wacom_wac->touch_input ||
2117:		    !wacom_wac->pad_input)
2118:			return -ENOMEM;
2119:	
2120:		wacom_wac->pen_input->name = wacom_wac->pen_name;
2121:		wacom_wac->touch_input->name = wacom_wac->touch_name;
2122:		wacom_wac->pad_input->name = wacom_wac->pad_name;
2123:	
2124:		return 0;
2125:	}
 SourceFile:drivers/hid/wacom_sys.c]

99/2 2026/09/21 01:05 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 36939
							output: 40
							thoughts: 0
						

100/2 2026/09/21 01:05 tool codesearch-definition-source
0m Args:
map[ContextFile:drivers/hid/wacom_sys.c Name:wacom_allocate_input]

Results:
map[SourceCode:2083:	static struct input_dev *wacom_allocate_input(struct wacom *wacom)
2084:	{
2085:		struct input_dev *input_dev;
2086:		struct hid_device *hdev = wacom->hdev;
2087:		struct wacom_wac *wacom_wac = &(wacom->wacom_wac);
2088:	
2089:		input_dev = devm_input_allocate_device(&hdev->dev);
2090:		if (!input_dev)
2091:			return NULL;
2092:	
2093:		input_dev->name = wacom_wac->features.name;
2094:		input_dev->phys = hdev->phys;
2095:		input_dev->dev.parent = &hdev->dev;
2096:		input_dev->open = wacom_open;
2097:		input_dev->close = wacom_close;
2098:		input_dev->uniq = hdev->uniq;
2099:		input_dev->id.bustype = hdev->bus;
2100:		input_dev->id.vendor  = hdev->vendor;
2101:		input_dev->id.product = wacom_wac->pid ? wacom_wac->pid : hdev->product;
2102:		input_dev->id.version = hdev->version;
2103:		input_set_drvdata(input_dev, wacom);
2104:	
2105:		return input_dev;
2106:	}
 SourceFile:drivers/hid/wacom_sys.c]

101/2 2026/09/21 01:05 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 37438
							output: 369
							thoughts: 0
						

102/2 2026/09/21 01:05 tool codeexpert
5m Args:
map[Question:In `drivers/hid/wacom_wac.c`, `wacom_intuos_irq()` is called from `wacom_bpt_irq()` when `features->type == INTUOSHT2` and `features->device_type & WACOM_DEVICETYPE_PEN`.
In `wacom_intuos_irq()`, `wacom->pen_input` is dereferenced.
However, in `wacom_setup_inputs()`, `wacom->pen_input` can be set to NULL if `wacom_setup_pen_input_capabilities()` returns an error.
`wacom_setup_pen_input_capabilities()` returns `-ENODEV` if `!(features->device_type & WACOM_DEVICETYPE_PEN)`.
But since `wacom_bpt_irq()` checks for `features->device_type & WACOM_DEVICETYPE_PEN`, it seems `pen_input` shouldn't be NULL for this reason.

Are there any other ways `wacom->pen_input` can be NULL when `wacom_intuos_irq()` is called?
For example, could `wacom_setup_pen_input_capabilities()` return an error for another reason?
Or could `wacom->pen_input` be freed/set to NULL somewhere else after `wacom_setup_inputs()`?
Or could `features->device_type` be modified after `wacom_setup_inputs()`?
Or could `wacom_bpt_irq()` be called before `wacom_setup_inputs()` completes?]

Results:
map[Answer:Based on kernel source code analysis of `drivers/hid/wacom_sys.c` and `drivers/hid/wacom_wac.c`, here are the findings regarding the questions:

1. **Could `wacom_setup_pen_input_capabilities()` return an error for another reason?**
   - **No.** An inspection of `wacom_setup_pen_input_capabilities()` (lines 3801–3964) shows that it has only a single error exit point at line 3806:
     ```c
     if (!(features->device_type & WACOM_DEVICETYPE_PEN))
         return -ENODEV;
     ```
     All subsequent paths (including the `INTUOSHT2` case, which calls `wacom_setup_basic_pro_pen()` returning `void`) only set capability bits on the input device and conclude with `return 0;`. There are no memory allocations or other fallible operations.

2. **Where else can `wacom->pen_input` be freed or set to NULL?**
   Every write to `pen_input` across `drivers/hid/` was examined:
   - **Input registration failure (`wacom_register_inputs()` in `wacom_sys.c:2200`):**
     `wacom_register_inputs()` registers `pen_input`, `touch_input`, and `pad_input` sequentially. If `pen_input` is registered successfully but registering `touch_input` or `pad_input` fails with an error, the code jumps to `fail:`, setting:
     ```c
     wacom_wac->pad_input = NULL;
     wacom_wac->touch_input = NULL;
     wacom_wac->pen_input = NULL;
     ```
     Because `hid_hw_start()` was already called earlier in `wacom_parse_and_register()`, this occurs while the hardware interface is started, before `hid_hw_stop()` is called in the unwind path.
   - **Resource release / Wireless disconnect (`wacom_release_resources()` in `wacom_sys.c:2339`):**
     `wacom_release_resources()` sets `pen_input = NULL` (and releases the devres group). This function is called:
     - On failure cleanup paths in `wacom_parse_and_register()`.
     - In `wacom_wireless_work()` (`wacom_sys.c:2533`): when a wireless receiver reports that a tablet disconnected (`wacom_wac->pid == 0`), `wacom_release_resources(wacom1)` is called for the stylus interface, setting `wacom1->wacom_wac.pen_input = NULL;`.

3. **Could `features->device_type` be modified after `wacom_setup_inputs()`?**
   - In regular probe operation, `device_type` is determined prior to `wacom_setup_inputs()` and is not modified afterwards.
   - The only dynamic modifications to `features` occur during mode switching (`wacom_mode_change_work()`) and wireless tablet connect/disconnect (`wacom_wireless_work()`), both of which re-parse and re-register interfaces rather than mutating `device_type` in-place on an active interface.

4. **Could `wacom_bpt_irq()` be called before `wacom_setup_inputs()` completes?**
   - For a single interface during probe, `wacom_setup_inputs()` runs before `hid_hw_start()`. Raw input reports are only dispatched after hardware start and open, so `wacom_bpt_irq()` will not be called before `wacom_setup_inputs()` completes on that interface.
   - However, after `hid_hw_start()` is called, if `wacom_register_inputs()` fails or during wireless disconnect cleanup in `wacom_wireless_work()`, `pen_input` can be NULL while reports might still arrive.
   - Additionally, in other call paths leading to `wacom_intuos_irq()` (such as `wacom_wac_irq()` directly for `CINTIQ_COMPANION_2` and `INTUOS` models), there is no check for `WACOM_DEVICETYPE_PEN` prior to calling `wacom_intuos_irq()`, which can lead to dereferencing `pen_input == NULL` if an unexpected report is delivered to a touch- or pad-only interface.

(Caveat / unverified: The exact concurrency and locking behavior between USB URB completion in `wacom_raw_event()` and asynchronous work in `wacom_wireless_work()` was not fully traced due to tool limits.)]

103/3 2026/09/21 01:05 agent codeexpert
5m Model:
core

Results:
map[Answer:Based on kernel source code analysis of `drivers/hid/wacom_sys.c` and `drivers/hid/wacom_wac.c`, here are the findings regarding the questions:

1. **Could `wacom_setup_pen_input_capabilities()` return an error for another reason?**
   - **No.** An inspection of `wacom_setup_pen_input_capabilities()` (lines 3801–3964) shows that it has only a single error exit point at line 3806:
     ```c
     if (!(features->device_type & WACOM_DEVICETYPE_PEN))
         return -ENODEV;
     ```
     All subsequent paths (including the `INTUOSHT2` case, which calls `wacom_setup_basic_pro_pen()` returning `void`) only set capability bits on the input device and conclude with `return 0;`. There are no memory allocations or other fallible operations.

2. **Where else can `wacom->pen_input` be freed or set to NULL?**
   Every write to `pen_input` across `drivers/hid/` was examined:
   - **Input registration failure (`wacom_register_inputs()` in `wacom_sys.c:2200`):**
     `wacom_register_inputs()` registers `pen_input`, `touch_input`, and `pad_input` sequentially. If `pen_input` is registered successfully but registering `touch_input` or `pad_input` fails with an error, the code jumps to `fail:`, setting:
     ```c
     wacom_wac->pad_input = NULL;
     wacom_wac->touch_input = NULL;
     wacom_wac->pen_input = NULL;
     ```
     Because `hid_hw_start()` was already called earlier in `wacom_parse_and_register()`, this occurs while the hardware interface is started, before `hid_hw_stop()` is called in the unwind path.
   - **Resource release / Wireless disconnect (`wacom_release_resources()` in `wacom_sys.c:2339`):**
     `wacom_release_resources()` sets `pen_input = NULL` (and releases the devres group). This function is called:
     - On failure cleanup paths in `wacom_parse_and_register()`.
     - In `wacom_wireless_work()` (`wacom_sys.c:2533`): when a wireless receiver reports that a tablet disconnected (`wacom_wac->pid == 0`), `wacom_release_resources(wacom1)` is called for the stylus interface, setting `wacom1->wacom_wac.pen_input = NULL;`.

3. **Could `features->device_type` be modified after `wacom_setup_inputs()`?**
   - In regular probe operation, `device_type` is determined prior to `wacom_setup_inputs()` and is not modified afterwards.
   - The only dynamic modifications to `features` occur during mode switching (`wacom_mode_change_work()`) and wireless tablet connect/disconnect (`wacom_wireless_work()`), both of which re-parse and re-register interfaces rather than mutating `device_type` in-place on an active interface.

4. **Could `wacom_bpt_irq()` be called before `wacom_setup_inputs()` completes?**
   - For a single interface during probe, `wacom_setup_inputs()` runs before `hid_hw_start()`. Raw input reports are only dispatched after hardware start and open, so `wacom_bpt_irq()` will not be called before `wacom_setup_inputs()` completes on that interface.
   - However, after `hid_hw_start()` is called, if `wacom_register_inputs()` fails or during wireless disconnect cleanup in `wacom_wireless_work()`, `pen_input` can be NULL while reports might still arrive.
   - Additionally, in other call paths leading to `wacom_intuos_irq()` (such as `wacom_wac_irq()` directly for `CINTIQ_COMPANION_2` and `INTUOS` models), there is no check for `WACOM_DEVICETYPE_PEN` prior to calling `wacom_intuos_irq()`, which can lead to dereferencing `pen_input == NULL` if an unexpected report is delivered to a touch- or pad-only interface.

(Caveat / unverified: The exact concurrency and locking behavior between USB URB completion in `wacom_raw_event()` and asynchronous work in `wacom_wireless_work()` was not fully traced due to tool limits.)]

Instruction:
You are a capable Linux kernel developer tasked with researching complex questions
about kernel source code. You will be given a concrete question, and need to provide
a concrete answer.
Research the question using targeted, efficient tool calls. Don't make assumptions,
or rely on your previous knowledge about the kernel source code, use available tools
to access the actual source code. Keep your tool calls focused and limited to the
scope of the question. Do not explore tangential code paths or perform unbounded searches.
Use all available sources of information:
 - kernel source code
 - documentation in the Documentation dir in the source tree
 - git commits descriptions, git blame

Do not guess file names or file paths and attempt to read them without
verifying their existence first using content search or directory listing tools.
If a file, symbol, or directory is not found via content search (grepper) or
directory listing (codesearch-dir-index), treat it as completely absent.
Do not attempt to guess alternative names, extensions, or directories.

Tool Selection Guidelines:
1. For C functions, structs, and variables: Prefer codesearch-definition-source
   or codesearch-struct-layout FIRST to retrieve clean, exact definitions
   without line-number guessing.
2. If symbol lookup fails (e.g., preprocessor macros, macro-generated code, or
   disabled #ifdef branches), fall back to read-file or grepper.
3. For file headers, #include directives, preprocessor macro definitions, and
   non-C files (Kconfig, Makefiles, docs): Use read-file or grepper directly.
4. Be concise and targeted. Answer the question as directly and concisely as possible
   once you have located the relevant code or definitions. If a symbol or function cannot
   be found after targeted searches, conclude with the best available information rather
   than continuing repetitive searches.
Do NOT use git-log to search for the presence or existence of files in the
repository. git-log is only for tracing commit history of files that are
already present in the current checkout. If a file does not exist in the
current checkout, it cannot be used for reproduction.

Avoid running broad git-log queries (such as searches on the entire repo)
without a specific 'PathPrefix' to restrict the scope, as these are very
expensive and will time out.
If a git-log tool call times out, do not retry the query with the same broad
scope. You must specify a tighter, narrower 'PathPrefix' for subsequent queries.

Prefer calling several tools at the same time to save round-trips.


Use set-results tool to provide results of the analysis.
It must be called exactly once before the final reply.
Ignore results of this tool.

Prompt:
In `drivers/hid/wacom_wac.c`, `wacom_intuos_irq()` is called from `wacom_bpt_irq()` when `features->type == INTUOSHT2` and `features->device_type & WACOM_DEVICETYPE_PEN`.
In `wacom_intuos_irq()`, `wacom->pen_input` is dereferenced.
However, in `wacom_setup_inputs()`, `wacom->pen_input` can be set to NULL if `wacom_setup_pen_input_capabilities()` returns an error.
`wacom_setup_pen_input_capabilities()` returns `-ENODEV` if `!(features->device_type & WACOM_DEVICETYPE_PEN)`.
But since `wacom_bpt_irq()` checks for `features->device_type & WACOM_DEVICETYPE_PEN`, it seems `pen_input` shouldn't be NULL for this reason.

Are there any other ways `wacom->pen_input` can be NULL when `wacom_intuos_irq()` is called?
For example, could `wacom_setup_pen_input_capabilities()` return an error for another reason?
Or could `wacom->pen_input` be freed/set to NULL somewhere else after `wacom_setup_inputs()`?
Or could `features->device_type` be modified after `wacom_setup_inputs()`?
Or could `wacom_bpt_irq()` be called before `wacom_setup_inputs()` completes?

104/4 2026/09/21 01:05 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 4501
							output: 124
							thoughts: 450
						

Thoughts:
**Digging into a Wacom Driver Bug**

Okay, so I've got this very specific issue in `drivers/hid/wacom_wac.c` that's got me scratching my head. The user is on to something – there's a potential NULL pointer dereference in `wacom_intuos_irq()`.  Specifically, the code dereferences `wacom->pen_input`, but it's possible that this pointer might be NULL under certain circumstances.

The user has laid out the core logic: `wacom_intuos_irq()` gets called from `wacom_bpt_irq()` when we're dealing with an INTUOSHT2 device and a pen. The issue is that `wacom->pen_input` *could* be NULL after `wacom_setup_inputs()` runs.  The user points out a few potential paths to this:

*   `wacom_setup_pen_input_capabilities()` returning an error. They also noted the obvious one: this function *shouldn't* error out due to the `WACOM_DEVICETYPE_PEN` check that's done by `wacom_bpt_irq()`. But they're right to ask, are there other ways this function could fail?
*   `wacom->pen_input` getting freed or set to NULL somewhere *else* after `wacom_setup_inputs()` has completed. This is a crucial area to investigate.
*   The `features->device_type` being modified *after* `wacom_setup_inputs()`. This seems less likely, but we need to rule it out.
*   `wacom_bpt_irq()` being called *before* `wacom_setup_inputs()` is completely finished.  This would be a classic initialization problem.

Now, it's time to dive into the code.  I'm going to start searching for all these functions: `wacom_intuos_irq`, `wacom_bpt_irq`, `wacom_setup_inputs`, and `wacom_setup_pen_input_capabilities`, plus any uses of or assignments to `wacom->pen_input` to trace this through. We're getting to the bottom of this.



105/4 2026/09/21 01:06 tool grepper
0m Args:
map[Expression:wacom_setup_pen_input_capabilities PathPrefix:drivers/hid]

Results:
map[Output:drivers/hid/wacom.h=232=void wacom_setup_device_quirks(struct wacom *wacom);
drivers/hid/wacom.h:233:int wacom_setup_pen_input_capabilities(struct input_dev *input_dev,
drivers/hid/wacom.h-234-				   struct wacom_wac *wacom_wac);
--
drivers/hid/wacom_sys.c=2127=static int wacom_setup_inputs(struct wacom *wacom)
--
drivers/hid/wacom_sys.c-2139-
drivers/hid/wacom_sys.c:2140:	error = wacom_setup_pen_input_capabilities(pen_input_dev, wacom_wac);
drivers/hid/wacom_sys.c-2141-	if (error) {
--
drivers/hid/wacom_wac.c=3648=void wacom_setup_device_quirks(struct wacom *wacom)
--
drivers/hid/wacom_wac.c-3800-
drivers/hid/wacom_wac.c:3801:int wacom_setup_pen_input_capabilities(struct input_dev *input_dev,
drivers/hid/wacom_wac.c-3802-				   struct wacom_wac *wacom_wac)
]

106/4 2026/09/21 01:06 tool grepper
0m Args:
map[Expression:wacom_bpt_irq PathPrefix:drivers/hid]

Results:
map[Output:drivers/hid/wacom_wac.c=3209=static int wacom_bpt_pen(struct wacom_wac *wacom)
--
drivers/hid/wacom_wac.c-3283-
drivers/hid/wacom_wac.c:3284:static int wacom_bpt_irq(struct wacom_wac *wacom, size_t len)
drivers/hid/wacom_wac.c-3285-{
--
drivers/hid/wacom_wac.c=3461=void wacom_wac_irq(struct wacom_wac *wacom_wac, size_t len)
--
drivers/hid/wacom_wac.c-3559-		else
drivers/hid/wacom_wac.c:3560:			sync = wacom_bpt_irq(wacom_wac, len);
drivers/hid/wacom_wac.c-3561-		break;
]

107/4 2026/09/21 01:06 tool grepper
0m Args:
map[Expression:wacom_setup_inputs PathPrefix:drivers/hid]

Results:
map[Output:drivers/hid/wacom_sys.c=2108=static int wacom_allocate_inputs(struct wacom *wacom)
--
drivers/hid/wacom_sys.c-2126-
drivers/hid/wacom_sys.c:2127:static int wacom_setup_inputs(struct wacom *wacom)
drivers/hid/wacom_sys.c-2128-{
--
drivers/hid/wacom_sys.c=2370=static int wacom_parse_and_register(struct wacom *wacom, bool wireless)
--
drivers/hid/wacom_sys.c-2446-
drivers/hid/wacom_sys.c:2447:	error = wacom_setup_inputs(wacom);
drivers/hid/wacom_sys.c-2448-	if (error)
]

108/4 2026/09/21 01:06 tool grepper
0m Args:
map[Expression:wacom_intuos_irq PathPrefix:drivers/hid]

Results:
map[Output:drivers/hid/wacom.h-57- *		   - Fixed a Graphire bug
drivers/hid/wacom.h:58: *		   - Merged wacom_intuos3_irq into wacom_intuos_irq
drivers/hid/wacom.h-59- *	v1.44 (pc) - Added support for Graphire4, Cintiq 710, Intuos3 6x11, etc.
--
drivers/hid/wacom_wac.c=849=static int wacom_intuos_general(struct wacom_wac *wacom)
--
drivers/hid/wacom_wac.c-1021-
drivers/hid/wacom_wac.c:1022:static int wacom_intuos_irq(struct wacom_wac *wacom)
drivers/hid/wacom_wac.c-1023-{
--
drivers/hid/wacom_wac.c=1192=static void wacom_intuos_bt_process_data(struct wacom_wac *wacom,
--
drivers/hid/wacom_wac.c-1197-	wacom->data = data;
drivers/hid/wacom_wac.c:1198:	wacom_intuos_irq(wacom);
drivers/hid/wacom_wac.c-1199-	wacom->data = saved_data;
--
drivers/hid/wacom_wac.c=3284=static int wacom_bpt_irq(struct wacom_wac *wacom, size_t len)
--
drivers/hid/wacom_wac.c-3289-	    (features->device_type & WACOM_DEVICETYPE_PEN))
drivers/hid/wacom_wac.c:3290:		return wacom_intuos_irq(wacom);
drivers/hid/wacom_wac.c-3291-	else if (len == WACOM_PKGLEN_BBTOUCH)
--
drivers/hid/wacom_wac.c=3461=void wacom_wac_irq(struct wacom_wac *wacom_wac, size_t len)
--
drivers/hid/wacom_wac.c-3510-	case CINTIQ_COMPANION_2:
drivers/hid/wacom_wac.c:3511:		sync = wacom_intuos_irq(wacom_wac);
drivers/hid/wacom_wac.c-3512-		break;
--
drivers/hid/wacom_wac.c-3533-		else
drivers/hid/wacom_wac.c:3534:			sync = wacom_intuos_irq(wacom_wac);
drivers/hid/wacom_wac.c-3535-		break;
]

109/4 2026/09/21 01:06 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 7140
							output: 39
							thoughts: 83
						

Thoughts:
Here's my thought process, as I analyze this code snippet:

**Diving Deep into the Wacom Driver**

Okay, so I need to get a handle on how this Wacom driver is setting up its input devices. My first instinct is to zero in on the core initialization functions. I'm thinking, let's start by digging into `wacom_setup_inputs` and `wacom_setup_pen_input_capabilities` – those sound like likely candidates for the initial device configuration. And since interrupts are fundamental to how these devices work, I'll also bring `wacom_bpt_irq` and `wacom_intuos_irq` into the picture. They're probably dealing with the hardware interrupts.

To efficiently examine these functions, I'll use a `read-file` command to load up the `wacom_sys.c` source file, probably found in `drivers/hid/`. That should give me the context I need to understand what's happening within `wacom_setup_inputs`. I need to understand how the devices are set up. From there, I can analyze the interrupt routines, and how they interact with the hardware.



110/4 2026/09/21 01:06 tool read-file
0m Args:
map[File:drivers/hid/wacom_sys.c FirstLine:2100 LineCount:80]

Results:
map[Contents:2100:		input_dev->id.vendor  = hdev->vendor;
2101:		input_dev->id.product = wacom_wac->pid ? wacom_wac->pid : hdev->product;
2102:		input_dev->id.version = hdev->version;
2103:		input_set_drvdata(input_dev, wacom);
2104:	
2105:		return input_dev;
2106:	}
2107:	
2108:	static int wacom_allocate_inputs(struct wacom *wacom)
2109:	{
2110:		struct wacom_wac *wacom_wac = &(wacom->wacom_wac);
2111:	
2112:		wacom_wac->pen_input = wacom_allocate_input(wacom);
2113:		wacom_wac->touch_input = wacom_allocate_input(wacom);
2114:		wacom_wac->pad_input = wacom_allocate_input(wacom);
2115:		if (!wacom_wac->pen_input ||
2116:		    !wacom_wac->touch_input ||
2117:		    !wacom_wac->pad_input)
2118:			return -ENOMEM;
2119:	
2120:		wacom_wac->pen_input->name = wacom_wac->pen_name;
2121:		wacom_wac->touch_input->name = wacom_wac->touch_name;
2122:		wacom_wac->pad_input->name = wacom_wac->pad_name;
2123:	
2124:		return 0;
2125:	}
2126:	
2127:	static int wacom_setup_inputs(struct wacom *wacom)
2128:	{
2129:		struct input_dev *pen_input_dev, *touch_input_dev, *pad_input_dev;
2130:		struct wacom_wac *wacom_wac = &(wacom->wacom_wac);
2131:		int error = 0;
2132:	
2133:		pen_input_dev = wacom_wac->pen_input;
2134:		touch_input_dev = wacom_wac->touch_input;
2135:		pad_input_dev = wacom_wac->pad_input;
2136:	
2137:		if (!pen_input_dev || !touch_input_dev || !pad_input_dev)
2138:			return -EINVAL;
2139:	
2140:		error = wacom_setup_pen_input_capabilities(pen_input_dev, wacom_wac);
2141:		if (error) {
2142:			/* no pen in use on this interface */
2143:			input_free_device(pen_input_dev);
2144:			wacom_wac->pen_input = NULL;
2145:			pen_input_dev = NULL;
2146:		}
2147:	
2148:		error = wacom_setup_touch_input_capabilities(touch_input_dev, wacom_wac);
2149:		if (error) {
2150:			/* no touch in use on this interface */
2151:			input_free_device(touch_input_dev);
2152:			wacom_wac->touch_input = NULL;
2153:			touch_input_dev = NULL;
2154:		}
2155:	
2156:		error = wacom_setup_pad_input_capabilities(pad_input_dev, wacom_wac);
2157:		if (error) {
2158:			/* no pad events using this interface */
2159:			input_free_device(pad_input_dev);
2160:			wacom_wac->pad_input = NULL;
2161:			pad_input_dev = NULL;
2162:		}
2163:	
2164:		return 0;
2165:	}
2166:	
2167:	static int wacom_register_inputs(struct wacom *wacom)
2168:	{
2169:		struct input_dev *pen_input_dev, *touch_input_dev, *pad_input_dev;
2170:		struct wacom_wac *wacom_wac = &(wacom->wacom_wac);
2171:		int error = 0;
2172:	
2173:		pen_input_dev = wacom_wac->pen_input;
2174:		touch_input_dev = wacom_wac->touch_input;
2175:		pad_input_dev = wacom_wac->pad_input;
2176:	
2177:		if (pen_input_dev) {
2178:			error = input_register_device(pen_input_dev);
2179:			if (error)
]

111/4 2026/09/21 01:06 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 8888
							output: 40
							thoughts: 33
						

Thoughts:
Okay, here's my interpretation of that thought process, as if it were my own:

**Diving into the Wacom Driver's Pen Input**

Right, let's drill down into this Wacom driver situation a bit further. I need to understand how this pen input is *really* handled, so, I should check out the `wacom_setup_pen_input_capabilities()` function. That looks like a good starting point to delve into the core of how the driver figures out what the pen is capable of in the first place. That function, within the `drivers/hid/wacom_wac.c` file, should hold some vital clues, allowing me to understand how these devices are initialized and the capabilities reported. I expect to find some interesting code in there.



112/4 2026/09/21 01:06 tool read-file
0m Args:
map[File:drivers/hid/wacom_wac.c FirstLine:3800 LineCount:80]

Results:
map[Contents:3800:	
3801:	int wacom_setup_pen_input_capabilities(struct input_dev *input_dev,
3802:					   struct wacom_wac *wacom_wac)
3803:	{
3804:		struct wacom_features *features = &wacom_wac->features;
3805:	
3806:		if (!(features->device_type & WACOM_DEVICETYPE_PEN))
3807:			return -ENODEV;
3808:	
3809:		if (features->device_type & WACOM_DEVICETYPE_DIRECT)
3810:			__set_bit(INPUT_PROP_DIRECT, input_dev->propbit);
3811:		else
3812:			__set_bit(INPUT_PROP_POINTER, input_dev->propbit);
3813:	
3814:		if (features->type == HID_GENERIC)
3815:			/* setup has already been done */
3816:			return 0;
3817:	
3818:		input_dev->evbit[0] |= BIT_MASK(EV_KEY) | BIT_MASK(EV_ABS);
3819:		__set_bit(BTN_TOUCH, input_dev->keybit);
3820:		__set_bit(ABS_MISC, input_dev->absbit);
3821:	
3822:		input_set_abs_params(input_dev, ABS_X, 0 + features->offset_left,
3823:				     features->x_max - features->offset_right,
3824:				     features->x_fuzz, 0);
3825:		input_set_abs_params(input_dev, ABS_Y, 0 + features->offset_top,
3826:				     features->y_max - features->offset_bottom,
3827:				     features->y_fuzz, 0);
3828:		input_set_abs_params(input_dev, ABS_PRESSURE, 0,
3829:			features->pressure_max, features->pressure_fuzz, 0);
3830:	
3831:		/* penabled devices have fixed resolution for each model */
3832:		input_abs_set_res(input_dev, ABS_X, features->x_resolution);
3833:		input_abs_set_res(input_dev, ABS_Y, features->y_resolution);
3834:	
3835:		switch (features->type) {
3836:		case GRAPHIRE_BT:
3837:			__clear_bit(ABS_MISC, input_dev->absbit);
3838:			fallthrough;
3839:	
3840:		case WACOM_MO:
3841:		case WACOM_G4:
3842:			input_set_abs_params(input_dev, ABS_DISTANCE, 0,
3843:						      features->distance_max,
3844:						      features->distance_fuzz, 0);
3845:			fallthrough;
3846:	
3847:		case GRAPHIRE:
3848:			input_set_capability(input_dev, EV_REL, REL_WHEEL);
3849:	
3850:			__set_bit(BTN_LEFT, input_dev->keybit);
3851:			__set_bit(BTN_RIGHT, input_dev->keybit);
3852:			__set_bit(BTN_MIDDLE, input_dev->keybit);
3853:	
3854:			__set_bit(BTN_TOOL_RUBBER, input_dev->keybit);
3855:			__set_bit(BTN_TOOL_PEN, input_dev->keybit);
3856:			__set_bit(BTN_TOOL_MOUSE, input_dev->keybit);
3857:			__set_bit(BTN_STYLUS, input_dev->keybit);
3858:			__set_bit(BTN_STYLUS2, input_dev->keybit);
3859:			break;
3860:	
3861:		case WACOM_27QHD:
3862:		case WACOM_24HD:
3863:		case DTK:
3864:		case WACOM_22HD:
3865:		case WACOM_21UX2:
3866:		case WACOM_BEE:
3867:		case CINTIQ:
3868:		case WACOM_13HD:
3869:		case CINTIQ_HYBRID:
3870:		case CINTIQ_COMPANION_2:
3871:			input_set_abs_params(input_dev, ABS_Z, -900, 899, 0, 0);
3872:			input_abs_set_res(input_dev, ABS_Z, 287);
3873:			wacom_setup_cintiq(wacom_wac);
3874:			break;
3875:	
3876:		case INTUOS3:
3877:		case INTUOS3L:
3878:		case INTUOS3S:
3879:		case INTUOS4:
]

113/4 2026/09/21 01:06 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 10532
							output: 40
							thoughts: 28
						

Thoughts:
Here's your summary:

**Digging into `wacom_setup_pen_input_capabilities()`**

Alright, let's see what this `wacom_setup_pen_input_capabilities()` function is *really* doing. I want to understand its error handling and control flow. My immediate goal is to understand if there's any scenario where it might return an error that hasn't been properly dealt with upstream. Let's trace its execution and pay close attention to the return statements. I need to make sure this function behaves correctly in all expected scenarios. Time to dive in and get this nailed down.



114/4 2026/09/21 01:06 tool read-file
0m Args:
map[File:drivers/hid/wacom_wac.c FirstLine:3880 LineCount:70]

Results:
map[Contents:3880:		case INTUOS4WL:
3881:		case INTUOS4L:
3882:		case INTUOS4S:
3883:			input_set_abs_params(input_dev, ABS_Z, -900, 899, 0, 0);
3884:			input_abs_set_res(input_dev, ABS_Z, 287);
3885:			fallthrough;
3886:	
3887:		case INTUOS:
3888:			wacom_setup_intuos(wacom_wac);
3889:			break;
3890:	
3891:		case INTUOS5:
3892:		case INTUOS5L:
3893:		case INTUOSPM:
3894:		case INTUOSPL:
3895:		case INTUOS5S:
3896:		case INTUOSPS:
3897:		case INTUOSP2_BT:
3898:		case INTUOSP2S_BT:
3899:			input_set_abs_params(input_dev, ABS_DISTANCE, 0,
3900:					      features->distance_max,
3901:					      features->distance_fuzz, 0);
3902:	
3903:			input_set_abs_params(input_dev, ABS_Z, -900, 899, 0, 0);
3904:			input_abs_set_res(input_dev, ABS_Z, 287);
3905:	
3906:			wacom_setup_intuos(wacom_wac);
3907:			break;
3908:	
3909:		case WACOM_24HDT:
3910:		case WACOM_27QHDT:
3911:		case MTSCREEN:
3912:		case MTTPC:
3913:		case MTTPC_B:
3914:		case TABLETPC2FG:
3915:		case TABLETPC:
3916:		case TABLETPCE:
3917:			__clear_bit(ABS_MISC, input_dev->absbit);
3918:			fallthrough;
3919:	
3920:		case DTUS:
3921:		case DTUSX:
3922:		case PL:
3923:		case DTU:
3924:			__set_bit(BTN_TOOL_PEN, input_dev->keybit);
3925:			__set_bit(BTN_TOOL_RUBBER, input_dev->keybit);
3926:			__set_bit(BTN_STYLUS, input_dev->keybit);
3927:			__set_bit(BTN_STYLUS2, input_dev->keybit);
3928:			break;
3929:	
3930:		case PTU:
3931:			__set_bit(BTN_STYLUS2, input_dev->keybit);
3932:			fallthrough;
3933:	
3934:		case PENPARTNER:
3935:			__set_bit(BTN_TOOL_PEN, input_dev->keybit);
3936:			__set_bit(BTN_TOOL_RUBBER, input_dev->keybit);
3937:			__set_bit(BTN_STYLUS, input_dev->keybit);
3938:			break;
3939:	
3940:		case INTUOSHT:
3941:		case BAMBOO_PT:
3942:		case BAMBOO_PEN:
3943:		case INTUOSHT2:
3944:		case INTUOSHT3_BT:
3945:			if (features->type == INTUOSHT2 ||
3946:			    features->type == INTUOSHT3_BT) {
3947:				wacom_setup_basic_pro_pen(wacom_wac);
3948:			} else {
3949:				__clear_bit(ABS_MISC, input_dev->absbit);
]

115/4 2026/09/21 01:06 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 11845
							output: 40
							thoughts: 18
						

Thoughts:
Okay, here's the summary, rendered in the first person, assuming the user is an expert and incorporating a conversational tone:

**Onward to Line 3950!**

Alright, let's keep this ball rolling. I'm hitting the next chunk – lines 3950 through 4000. Considering my experience with this material, I'm expecting a continuation of [mention the relevant topic or sub-topic from the previous section, if any]. I'll be keeping an eye out for any subtle shifts in argumentation or any new perspectives that are being introduced. I'm particularly interested in seeing how the author handles [mention a specific aspect or potential challenge related to the text, if applicable]. I'm primed to identify anything groundbreaking, but also to scrutinize any potential weaknesses in the logic or evidence. Let's see what gems these lines hold!



116/4 2026/09/21 01:06 tool read-file
0m Args:
map[File:drivers/hid/wacom_wac.c FirstLine:3950 LineCount:50]

Results:
map[Contents:3950:				__set_bit(BTN_TOOL_PEN, input_dev->keybit);
3951:				__set_bit(BTN_TOOL_RUBBER, input_dev->keybit);
3952:				__set_bit(BTN_STYLUS, input_dev->keybit);
3953:				__set_bit(BTN_STYLUS2, input_dev->keybit);
3954:				input_set_abs_params(input_dev, ABS_DISTANCE, 0,
3955:					      features->distance_max,
3956:					      features->distance_fuzz, 0);
3957:			}
3958:			break;
3959:		case BAMBOO_PAD:
3960:			__clear_bit(ABS_MISC, input_dev->absbit);
3961:			break;
3962:		}
3963:		return 0;
3964:	}
3965:	
3966:	int wacom_setup_touch_input_capabilities(struct input_dev *input_dev,
3967:						 struct wacom_wac *wacom_wac)
3968:	{
3969:		struct wacom_features *features = &wacom_wac->features;
3970:	
3971:		if (!(features->device_type & WACOM_DEVICETYPE_TOUCH))
3972:			return -ENODEV;
3973:	
3974:		if (features->device_type & WACOM_DEVICETYPE_DIRECT)
3975:			__set_bit(INPUT_PROP_DIRECT, input_dev->propbit);
3976:		else
3977:			__set_bit(INPUT_PROP_POINTER, input_dev->propbit);
3978:	
3979:		if (features->type == HID_GENERIC)
3980:			/* setup has already been done */
3981:			return 0;
3982:	
3983:		input_dev->evbit[0] |= BIT_MASK(EV_KEY) | BIT_MASK(EV_ABS);
3984:		__set_bit(BTN_TOUCH, input_dev->keybit);
3985:	
3986:		if (features->touch_max == 1) {
3987:			input_set_abs_params(input_dev, ABS_X, 0,
3988:				features->x_max, features->x_fuzz, 0);
3989:			input_set_abs_params(input_dev, ABS_Y, 0,
3990:				features->y_max, features->y_fuzz, 0);
3991:			input_abs_set_res(input_dev, ABS_X,
3992:					  features->x_resolution);
3993:			input_abs_set_res(input_dev, ABS_Y,
3994:					  features->y_resolution);
3995:		}
3996:		else if (features->touch_max > 1) {
3997:			input_set_abs_params(input_dev, ABS_MT_POSITION_X, 0,
3998:				features->x_max, features->x_fuzz, 0);
3999:			input_set_abs_params(input_dev, ABS_MT_POSITION_Y, 0,
]

117/4 2026/09/21 01:06 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 12999
							output: 33
							thoughts: 147
						

Thoughts:
**Analyzing the Wacom Pen Input Capabilities**

Okay, let's dissect this `wacom_setup_pen_input_capabilities()` function. From what I'm seeing, the only spot where it actually throws an error – and specifically, an `-ENODEV` error – is right here:

```c
if (!(features->device_type & WACOM_DEVICETYPE_PEN))
    return -ENODEV;
```

That makes sense, if it's not a pen, it's not going to work. But what's interesting is, looking at the bigger picture, *all* other paths through this function seem to return 0 or are void. Even functions like `wacom_setup_basic_pro_pen()` and `wacom_setup_intuos` don't seem to have any explicit error handling! That feels… uncharacteristic, doesn't it? As an expert in this, that looks like a potential area for subtle bugs if something goes wrong later. I think checking `wacom_setup_basic_pro_pen()` more closely is a good idea. Let's see what's happening there.



118/4 2026/09/21 01:06 tool grepper
0m Args:
map[Expression:wacom_setup_basic_pro_pen PathPrefix:drivers/hid]

Results:
map[Output:drivers/hid/wacom_wac.c=3461=void wacom_wac_irq(struct wacom_wac *wacom_wac, size_t len)
--
drivers/hid/wacom_wac.c-3593-
drivers/hid/wacom_wac.c:3594:static void wacom_setup_basic_pro_pen(struct wacom_wac *wacom_wac)
drivers/hid/wacom_wac.c-3595-{
--
drivers/hid/wacom_wac.c=3608=static void wacom_setup_cintiq(struct wacom_wac *wacom_wac)
--
drivers/hid/wacom_wac.c-3612-
drivers/hid/wacom_wac.c:3613:	wacom_setup_basic_pro_pen(wacom_wac);
drivers/hid/wacom_wac.c-3614-
--
drivers/hid/wacom_wac.c=3801=int wacom_setup_pen_input_capabilities(struct input_dev *input_dev,
--
drivers/hid/wacom_wac.c-3946-		    features->type == INTUOSHT3_BT) {
drivers/hid/wacom_wac.c:3947:			wacom_setup_basic_pro_pen(wacom_wac);
drivers/hid/wacom_wac.c-3948-		} else {
]

119/4 2026/09/21 01:06 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 13818
							output: 33
							thoughts: 89
						

Thoughts:
**Analyzing the Wacom Pen Setup**

Okay, so `wacom_setup_basic_pro_pen()` is a void function. That’s good to know, that it doesn't return anything that I need to capture. Now, I need to get a really solid grasp on *everything* that happens from the point this function is called, right through to the end. I'm going to look at the whole lifecycle, the call paths, the critical references. I'm especially interested in how `pen_input` is handled – where is it used, how is it passed around? And I need to understand the role of `features->device_type` because that probably dictates a lot of the behavior. I also need to track the significance of the interrupt handlers: `wacom_intuos_irq` and `wacom_bpt_irq`. The overall starting point is `wacom_probe`, of course.

So, first things first, I'm going to find *every single* instance where `pen_input` is accessed. That's the key starting point to understand this entire control flow. I need to know where it's created, modified, used, and, eventually, destroyed. Then I can start to connect the dots.



120/4 2026/09/21 01:07 tool codesearch-find-references
0m Args:
map[IncludeSnippetLines:5 Name:wacom_wac::pen_input]

Results:
map[References:[map[ReferenceKind:writes ReferencingEntityKind:function ReferencingEntityName:wacom_allocate_inputs SourceFile:drivers/hid/wacom_sys.c SourceLine:2112 SourceSnippet:2108:	static int wacom_allocate_inputs(struct wacom *wacom)
2109:	{
2110:		struct wacom_wac *wacom_wac = &(wacom->wacom_wac);
2111:	
2112:		wacom_wac->pen_input = wacom_allocate_input(wacom);
2113:		wacom_wac->touch_input = wacom_allocate_input(wacom);
2114:		wacom_wac->pad_input = wacom_allocate_input(wacom);
2115:		if (!wacom_wac->pen_input ||
2116:		    !wacom_wac->touch_input ||
2117:		    !wacom_wac->pad_input)
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_allocate_inputs SourceFile:drivers/hid/wacom_sys.c SourceLine:2115 SourceSnippet:2110:		struct wacom_wac *wacom_wac = &(wacom->wacom_wac);
2111:	
2112:		wacom_wac->pen_input = wacom_allocate_input(wacom);
2113:		wacom_wac->touch_input = wacom_allocate_input(wacom);
2114:		wacom_wac->pad_input = wacom_allocate_input(wacom);
2115:		if (!wacom_wac->pen_input ||
2116:		    !wacom_wac->touch_input ||
2117:		    !wacom_wac->pad_input)
2118:			return -ENOMEM;
2119:	
2120:		wacom_wac->pen_input->name = wacom_wac->pen_name;
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_allocate_inputs SourceFile:drivers/hid/wacom_sys.c SourceLine:2120 SourceSnippet:2115:		if (!wacom_wac->pen_input ||
2116:		    !wacom_wac->touch_input ||
2117:		    !wacom_wac->pad_input)
2118:			return -ENOMEM;
2119:	
2120:		wacom_wac->pen_input->name = wacom_wac->pen_name;
2121:		wacom_wac->touch_input->name = wacom_wac->touch_name;
2122:		wacom_wac->pad_input->name = wacom_wac->pad_name;
2123:	
2124:		return 0;
2125:	}
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_bpt_pen SourceFile:drivers/hid/wacom_wac.c SourceLine:3212 SourceSnippet:3209:	static int wacom_bpt_pen(struct wacom_wac *wacom)
3210:	{
3211:		struct wacom_features *features = &wacom->features;
3212:		struct input_dev *input = wacom->pen_input;
3213:		unsigned char *data = wacom->data;
3214:		int x = 0, y = 0, p = 0, d = 0;
3215:		bool pen = false, btn1 = false, btn2 = false;
3216:		bool range, prox, rdy;
3217:	
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_dtu_irq SourceFile:drivers/hid/wacom_wac.c SourceLine:263 SourceSnippet: 260:	static int wacom_dtu_irq(struct wacom_wac *wacom)
 261:	{
 262:		unsigned char *data = wacom->data;
 263:		struct input_dev *input = wacom->pen_input;
 264:		int prox = data[1] & 0x20;
 265:	
 266:		dev_dbg(input->dev.parent,
 267:			"%s: received report #%d", __func__, data[0]);
 268:	
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_dtus_irq SourceFile:drivers/hid/wacom_wac.c SourceLine:293 SourceSnippet: 290:	static int wacom_dtus_irq(struct wacom_wac *wacom)
 291:	{
 292:		unsigned char *data = wacom->data;
 293:		struct input_dev *input = wacom->pen_input;
 294:		unsigned short prox, pressure = 0;
 295:	
 296:		if (data[0] != WACOM_REPORT_DTUS && data[0] != WACOM_REPORT_DTUSPAD) {
 297:			dev_dbg(input->dev.parent,
 298:				"%s: received unknown report #%d", __func__, data[0]);
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_exit_report SourceFile:drivers/hid/wacom_wac.c SourceLine:736 SourceSnippet: 734:	static void wacom_exit_report(struct wacom_wac *wacom)
 735:	{
 736:		struct input_dev *input = wacom->pen_input;
 737:		struct wacom_features *features = &wacom->features;
 738:		unsigned char *data = wacom->data;
 739:		int idx = (features->type == INTUOS) ? (data[1] & 0x01) : 0;
 740:	
 741:		/*
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_force_proxout SourceFile:drivers/hid/wacom_wac.c SourceLine:43 SourceSnippet:  41:	static void wacom_force_proxout(struct wacom_wac *wacom_wac)
  42:	{
  43:		struct input_dev *input = wacom_wac->pen_input;
  44:	
  45:		wacom_wac->shared->stylus_in_proximity = 0;
  46:	
  47:		input_report_key(input, BTN_TOUCH, 0);
  48:		input_report_key(input, BTN_STYLUS, 0);
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_graphire_irq SourceFile:drivers/hid/wacom_wac.c SourceLine:345 SourceSnippet: 341:	static int wacom_graphire_irq(struct wacom_wac *wacom)
 342:	{
 343:		struct wacom_features *features = &wacom->features;
 344:		unsigned char *data = wacom->data;
 345:		struct input_dev *input = wacom->pen_input;
 346:		struct input_dev *pad_input = wacom->pad_input;
 347:		int battery_capacity, ps_connected;
 348:		int prox;
 349:		int rw = 0;
 350:		int retval = 0;
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_intuos_bt_irq SourceFile:drivers/hid/wacom_wac.c SourceLine:1215 SourceSnippet:1210:		unsigned power_raw, battery_capacity, bat_charging, ps_connected;
1211:	
1212:		switch (data[0]) {
1213:		case 0x04:
1214:			if (len < 32) {
1215:				dev_warn(wacom->pen_input->dev.parent,
1216:					 "Report 0x04 too short: %zu bytes\n", len);
1217:				break;
1218:			}
1219:			wacom_intuos_bt_process_data(wacom, data + i);
1220:			i += 10;
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_intuos_bt_irq SourceFile:drivers/hid/wacom_wac.c SourceLine:1224 SourceSnippet:1219:			wacom_intuos_bt_process_data(wacom, data + i);
1220:			i += 10;
1221:			fallthrough;
1222:		case 0x03:
1223:			if (i == 1 && len < 22) {
1224:				dev_warn(wacom->pen_input->dev.parent,
1225:					 "Report 0x03 too short: %zu bytes\n", len);
1226:				break;
1227:			}
1228:			wacom_intuos_bt_process_data(wacom, data + i);
1229:			i += 10;
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_intuos_bt_irq SourceFile:drivers/hid/wacom_wac.c SourceLine:1242 SourceSnippet:1237:					     battery_capacity, bat_charging,
1238:					     battery_capacity || bat_charging,
1239:					     ps_connected);
1240:			break;
1241:		default:
1242:			dev_dbg(wacom->pen_input->dev.parent,
1243:					"Unknown report: %d,%d size:%zu\n",
1244:					data[0], data[1], len);
1245:			break;
1246:		}
1247:	
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_intuos_bt_process_data SourceFile:drivers/hid/wacom_wac.c SourceLine:1201 SourceSnippet:1196:	
1197:		wacom->data = data;
1198:		wacom_intuos_irq(wacom);
1199:		wacom->data = saved_data;
1200:	
1201:		input_sync(wacom->pen_input);
1202:		if (wacom->pad_input)
1203:			input_sync(wacom->pad_input);
1204:	}
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_intuos_general SourceFile:drivers/hid/wacom_wac.c SourceLine:853 SourceSnippet: 849:	static int wacom_intuos_general(struct wacom_wac *wacom)
 850:	{
 851:		struct wacom_features *features = &wacom->features;
 852:		unsigned char *data = wacom->data;
 853:		struct input_dev *input = wacom->pen_input;
 854:		int idx = (features->type == INTUOS) ? (data[1] & 0x01) : 0;
 855:		unsigned char type = (data[1] >> 1) & 0x0F;
 856:		unsigned int x, y, distance, t;
 857:	
 858:		if (data[0] != WACOM_REPORT_PENABLED && data[0] != WACOM_REPORT_CINTIQ &&
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_intuos_inout SourceFile:drivers/hid/wacom_wac.c SourceLine:777 SourceSnippet: 773:	static int wacom_intuos_inout(struct wacom_wac *wacom)
 774:	{
 775:		struct wacom_features *features = &wacom->features;
 776:		unsigned char *data = wacom->data;
 777:		struct input_dev *input = wacom->pen_input;
 778:		int idx = (features->type == INTUOS) ? (data[1] & 0x01) : 0;
 779:	
 780:		if (!(((data[1] & 0xfc) == 0xc0) ||  /* in prox */
 781:		    ((data[1] & 0xfe) == 0x20) ||    /* in range */
 782:		    ((data[1] & 0xfe) == 0x80)))     /* out prox */
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_intuos_irq SourceFile:drivers/hid/wacom_wac.c SourceLine:1025 SourceSnippet:1022:	static int wacom_intuos_irq(struct wacom_wac *wacom)
1023:	{
1024:		unsigned char *data = wacom->data;
1025:		struct input_dev *input = wacom->pen_input;
1026:		int result;
1027:	
1028:		if (data[0] != WACOM_REPORT_PENABLED &&
1029:		    data[0] != WACOM_REPORT_INTUOS_ID1 &&
1030:		    data[0] != WACOM_REPORT_INTUOS_ID2 &&
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_intuos_pro2_bt_irq SourceFile:drivers/hid/wacom_wac.c SourceLine:1548 SourceSnippet:1543:	static int wacom_intuos_pro2_bt_irq(struct wacom_wac *wacom, size_t len)
1544:	{
1545:		unsigned char *data = wacom->data;
1546:	
1547:		if (data[0] != 0x80 && data[0] != 0x81) {
1548:			dev_dbg(wacom->pen_input->dev.parent,
1549:				"%s: received unknown report #%d\n", __func__, data[0]);
1550:			return 0;
1551:		}
1552:	
1553:		if (wacom->features.type == INTUOSP2_BT ||
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_intuos_pro2_bt_irq SourceFile:drivers/hid/wacom_wac.c SourceLine:1556 SourceSnippet:1551:		}
1552:	
1553:		if (wacom->features.type == INTUOSP2_BT ||
1554:		    wacom->features.type == INTUOSP2S_BT) {
1555:			if (len < 286) {
1556:				dev_warn(wacom->pen_input->dev.parent,
1557:					 "Pro2 BT report too short: %zu bytes\n", len);
1558:				return 0;
1559:			}
1560:		} else if (len < 46) {
1561:			dev_warn(wacom->pen_input->dev.parent,
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_intuos_pro2_bt_irq SourceFile:drivers/hid/wacom_wac.c SourceLine:1561 SourceSnippet:1556:				dev_warn(wacom->pen_input->dev.parent,
1557:					 "Pro2 BT report too short: %zu bytes\n", len);
1558:				return 0;
1559:			}
1560:		} else if (len < 46) {
1561:			dev_warn(wacom->pen_input->dev.parent,
1562:				 "Pro2 BT report too short: %zu bytes\n", len);
1563:			return 0;
1564:		}
1565:	
1566:		wacom_intuos_pro2_bt_pen(wacom);
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_intuos_pro2_bt_pen SourceFile:drivers/hid/wacom_wac.c SourceLine:1279 SourceSnippet:1275:	static void wacom_intuos_pro2_bt_pen(struct wacom_wac *wacom)
1276:	{
1277:		int pen_frame_len, pen_frames;
1278:	
1279:		struct input_dev *pen_input = wacom->pen_input;
1280:		unsigned char *data = wacom->data;
1281:		int number_of_valid_frames = 0;
1282:		ktime_t time_interval = 15000000;
1283:		ktime_t time_packet_received = ktime_get();
1284:		int i;
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_penpartner_irq SourceFile:drivers/hid/wacom_wac.c SourceLine:129 SourceSnippet: 126:	static int wacom_penpartner_irq(struct wacom_wac *wacom)
 127:	{
 128:		unsigned char *data = wacom->data;
 129:		struct input_dev *input = wacom->pen_input;
 130:	
 131:		switch (data[0]) {
 132:		case 1:
 133:			if (data[5] & 0x80) {
 134:				wacom->tool[0] = (data[5] & 0x20) ? BTN_TOOL_RUBBER : BTN_TOOL_PEN;
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_pl_irq SourceFile:drivers/hid/wacom_wac.c SourceLine:174 SourceSnippet: 170:	static int wacom_pl_irq(struct wacom_wac *wacom)
 171:	{
 172:		struct wacom_features *features = &wacom->features;
 173:		unsigned char *data = wacom->data;
 174:		struct input_dev *input = wacom->pen_input;
 175:		int prox, pressure;
 176:	
 177:		if (data[0] != WACOM_REPORT_PENABLED) {
 178:			dev_dbg(input->dev.parent,
 179:				"%s: received unknown report #%d\n", __func__, data[0]);
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_ptu_irq SourceFile:drivers/hid/wacom_wac.c SourceLine:234 SourceSnippet: 231:	static int wacom_ptu_irq(struct wacom_wac *wacom)
 232:	{
 233:		unsigned char *data = wacom->data;
 234:		struct input_dev *input = wacom->pen_input;
 235:	
 236:		if (data[0] != WACOM_REPORT_PENABLED) {
 237:			dev_dbg(input->dev.parent,
 238:				"%s: received unknown report #%d\n", __func__, data[0]);
 239:			return 0;
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_register_inputs SourceFile:drivers/hid/wacom_sys.c SourceLine:2173 SourceSnippet:2168:	{
2169:		struct input_dev *pen_input_dev, *touch_input_dev, *pad_input_dev;
2170:		struct wacom_wac *wacom_wac = &(wacom->wacom_wac);
2171:		int error = 0;
2172:	
2173:		pen_input_dev = wacom_wac->pen_input;
2174:		touch_input_dev = wacom_wac->touch_input;
2175:		pad_input_dev = wacom_wac->pad_input;
2176:	
2177:		if (pen_input_dev) {
2178:			error = input_register_device(pen_input_dev);
] map[ReferenceKind:writes ReferencingEntityKind:function ReferencingEntityName:wacom_register_inputs SourceFile:drivers/hid/wacom_sys.c SourceLine:2200 SourceSnippet:2195:		return 0;
2196:	
2197:	fail:
2198:		wacom_wac->pad_input = NULL;
2199:		wacom_wac->touch_input = NULL;
2200:		wacom_wac->pen_input = NULL;
2201:		return error;
2202:	}
] map[ReferenceKind:writes ReferencingEntityKind:function ReferencingEntityName:wacom_release_resources SourceFile:drivers/hid/wacom_sys.c SourceLine:2339 SourceSnippet:2334:	
2335:		devres_release_group(&hdev->dev, wacom);
2336:	
2337:		wacom->resources = false;
2338:	
2339:		wacom->wacom_wac.pen_input = NULL;
2340:		wacom->wacom_wac.touch_input = NULL;
2341:		wacom->wacom_wac.pad_input = NULL;
2342:	}
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_set_barrel_switch3_usage SourceFile:drivers/hid/wacom_wac.c SourceLine:2322 SourceSnippet:2320:	static void wacom_set_barrel_switch3_usage(struct wacom_wac *wacom_wac)
2321:	{
2322:		struct input_dev *input = wacom_wac->pen_input;
2323:		struct wacom_features *features = &wacom_wac->features;
2324:	
2325:		if (!(features->quirks & WACOM_QUIRK_AESPEN) &&
2326:		    wacom_wac->hid_data.barrelswitch &&
2327:		    wacom_wac->hid_data.barrelswitch2 &&
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_basic_pro_pen SourceFile:drivers/hid/wacom_wac.c SourceLine:3596 SourceSnippet:3594:	static void wacom_setup_basic_pro_pen(struct wacom_wac *wacom_wac)
3595:	{
3596:		struct input_dev *input_dev = wacom_wac->pen_input;
3597:	
3598:		input_set_capability(input_dev, EV_MSC, MSC_SERIAL);
3599:	
3600:		__set_bit(BTN_TOOL_PEN, input_dev->keybit);
3601:		__set_bit(BTN_STYLUS, input_dev->keybit);
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_cintiq SourceFile:drivers/hid/wacom_wac.c SourceLine:3610 SourceSnippet:3608:	static void wacom_setup_cintiq(struct wacom_wac *wacom_wac)
3609:	{
3610:		struct input_dev *input_dev = wacom_wac->pen_input;
3611:		struct wacom_features *features = &wacom_wac->features;
3612:	
3613:		wacom_setup_basic_pro_pen(wacom_wac);
3614:	
3615:		__set_bit(BTN_TOOL_RUBBER, input_dev->keybit);
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3787 SourceSnippet:3782:		/* HID descriptor for DTK-2451 / DTH-2452 claims to report lots
3783:		 * of things it shouldn't. Lets fix up the damage...
3784:		 */
3785:		if (wacom->hdev->product == 0x382 || wacom->hdev->product == 0x37d) {
3786:			features->quirks &= ~WACOM_QUIRK_TOOLSERIAL;
3787:			__clear_bit(BTN_TOOL_BRUSH, wacom_wac->pen_input->keybit);
3788:			__clear_bit(BTN_TOOL_PENCIL, wacom_wac->pen_input->keybit);
3789:			__clear_bit(BTN_TOOL_AIRBRUSH, wacom_wac->pen_input->keybit);
3790:			__clear_bit(ABS_Z, wacom_wac->pen_input->absbit);
3791:			__clear_bit(ABS_DISTANCE, wacom_wac->pen_input->absbit);
3792:			__clear_bit(ABS_TILT_X, wacom_wac->pen_input->absbit);
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3787 SourceSnippet:3782:		/* HID descriptor for DTK-2451 / DTH-2452 claims to report lots
3783:		 * of things it shouldn't. Lets fix up the damage...
3784:		 */
3785:		if (wacom->hdev->product == 0x382 || wacom->hdev->product == 0x37d) {
3786:			features->quirks &= ~WACOM_QUIRK_TOOLSERIAL;
3787:			__clear_bit(BTN_TOOL_BRUSH, wacom_wac->pen_input->keybit);
3788:			__clear_bit(BTN_TOOL_PENCIL, wacom_wac->pen_input->keybit);
3789:			__clear_bit(BTN_TOOL_AIRBRUSH, wacom_wac->pen_input->keybit);
3790:			__clear_bit(ABS_Z, wacom_wac->pen_input->absbit);
3791:			__clear_bit(ABS_DISTANCE, wacom_wac->pen_input->absbit);
3792:			__clear_bit(ABS_TILT_X, wacom_wac->pen_input->absbit);
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3787 SourceSnippet:3782:		/* HID descriptor for DTK-2451 / DTH-2452 claims to report lots
3783:		 * of things it shouldn't. Lets fix up the damage...
3784:		 */
3785:		if (wacom->hdev->product == 0x382 || wacom->hdev->product == 0x37d) {
3786:			features->quirks &= ~WACOM_QUIRK_TOOLSERIAL;
3787:			__clear_bit(BTN_TOOL_BRUSH, wacom_wac->pen_input->keybit);
3788:			__clear_bit(BTN_TOOL_PENCIL, wacom_wac->pen_input->keybit);
3789:			__clear_bit(BTN_TOOL_AIRBRUSH, wacom_wac->pen_input->keybit);
3790:			__clear_bit(ABS_Z, wacom_wac->pen_input->absbit);
3791:			__clear_bit(ABS_DISTANCE, wacom_wac->pen_input->absbit);
3792:			__clear_bit(ABS_TILT_X, wacom_wac->pen_input->absbit);
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3787 SourceSnippet:3782:		/* HID descriptor for DTK-2451 / DTH-2452 claims to report lots
3783:		 * of things it shouldn't. Lets fix up the damage...
3784:		 */
3785:		if (wacom->hdev->product == 0x382 || wacom->hdev->product == 0x37d) {
3786:			features->quirks &= ~WACOM_QUIRK_TOOLSERIAL;
3787:			__clear_bit(BTN_TOOL_BRUSH, wacom_wac->pen_input->keybit);
3788:			__clear_bit(BTN_TOOL_PENCIL, wacom_wac->pen_input->keybit);
3789:			__clear_bit(BTN_TOOL_AIRBRUSH, wacom_wac->pen_input->keybit);
3790:			__clear_bit(ABS_Z, wacom_wac->pen_input->absbit);
3791:			__clear_bit(ABS_DISTANCE, wacom_wac->pen_input->absbit);
3792:			__clear_bit(ABS_TILT_X, wacom_wac->pen_input->absbit);
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3787 SourceSnippet:3782:		/* HID descriptor for DTK-2451 / DTH-2452 claims to report lots
3783:		 * of things it shouldn't. Lets fix up the damage...
3784:		 */
3785:		if (wacom->hdev->product == 0x382 || wacom->hdev->product == 0x37d) {
3786:			features->quirks &= ~WACOM_QUIRK_TOOLSERIAL;
3787:			__clear_bit(BTN_TOOL_BRUSH, wacom_wac->pen_input->keybit);
3788:			__clear_bit(BTN_TOOL_PENCIL, wacom_wac->pen_input->keybit);
3789:			__clear_bit(BTN_TOOL_AIRBRUSH, wacom_wac->pen_input->keybit);
3790:			__clear_bit(ABS_Z, wacom_wac->pen_input->absbit);
3791:			__clear_bit(ABS_DISTANCE, wacom_wac->pen_input->absbit);
3792:			__clear_bit(ABS_TILT_X, wacom_wac->pen_input->absbit);
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3788 SourceSnippet:3783:		 * of things it shouldn't. Lets fix up the damage...
3784:		 */
3785:		if (wacom->hdev->product == 0x382 || wacom->hdev->product == 0x37d) {
3786:			features->quirks &= ~WACOM_QUIRK_TOOLSERIAL;
3787:			__clear_bit(BTN_TOOL_BRUSH, wacom_wac->pen_input->keybit);
3788:			__clear_bit(BTN_TOOL_PENCIL, wacom_wac->pen_input->keybit);
3789:			__clear_bit(BTN_TOOL_AIRBRUSH, wacom_wac->pen_input->keybit);
3790:			__clear_bit(ABS_Z, wacom_wac->pen_input->absbit);
3791:			__clear_bit(ABS_DISTANCE, wacom_wac->pen_input->absbit);
3792:			__clear_bit(ABS_TILT_X, wacom_wac->pen_input->absbit);
3793:			__clear_bit(ABS_TILT_Y, wacom_wac->pen_input->absbit);
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3788 SourceSnippet:3783:		 * of things it shouldn't. Lets fix up the damage...
3784:		 */
3785:		if (wacom->hdev->product == 0x382 || wacom->hdev->product == 0x37d) {
3786:			features->quirks &= ~WACOM_QUIRK_TOOLSERIAL;
3787:			__clear_bit(BTN_TOOL_BRUSH, wacom_wac->pen_input->keybit);
3788:			__clear_bit(BTN_TOOL_PENCIL, wacom_wac->pen_input->keybit);
3789:			__clear_bit(BTN_TOOL_AIRBRUSH, wacom_wac->pen_input->keybit);
3790:			__clear_bit(ABS_Z, wacom_wac->pen_input->absbit);
3791:			__clear_bit(ABS_DISTANCE, wacom_wac->pen_input->absbit);
3792:			__clear_bit(ABS_TILT_X, wacom_wac->pen_input->absbit);
3793:			__clear_bit(ABS_TILT_Y, wacom_wac->pen_input->absbit);
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3788 SourceSnippet:3783:		 * of things it shouldn't. Lets fix up the damage...
3784:		 */
3785:		if (wacom->hdev->product == 0x382 || wacom->hdev->product == 0x37d) {
3786:			features->quirks &= ~WACOM_QUIRK_TOOLSERIAL;
3787:			__clear_bit(BTN_TOOL_BRUSH, wacom_wac->pen_input->keybit);
3788:			__clear_bit(BTN_TOOL_PENCIL, wacom_wac->pen_input->keybit);
3789:			__clear_bit(BTN_TOOL_AIRBRUSH, wacom_wac->pen_input->keybit);
3790:			__clear_bit(ABS_Z, wacom_wac->pen_input->absbit);
3791:			__clear_bit(ABS_DISTANCE, wacom_wac->pen_input->absbit);
3792:			__clear_bit(ABS_TILT_X, wacom_wac->pen_input->absbit);
3793:			__clear_bit(ABS_TILT_Y, wacom_wac->pen_input->absbit);
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3788 SourceSnippet:3783:		 * of things it shouldn't. Lets fix up the damage...
3784:		 */
3785:		if (wacom->hdev->product == 0x382 || wacom->hdev->product == 0x37d) {
3786:			features->quirks &= ~WACOM_QUIRK_TOOLSERIAL;
3787:			__clear_bit(BTN_TOOL_BRUSH, wacom_wac->pen_input->keybit);
3788:			__clear_bit(BTN_TOOL_PENCIL, wacom_wac->pen_input->keybit);
3789:			__clear_bit(BTN_TOOL_AIRBRUSH, wacom_wac->pen_input->keybit);
3790:			__clear_bit(ABS_Z, wacom_wac->pen_input->absbit);
3791:			__clear_bit(ABS_DISTANCE, wacom_wac->pen_input->absbit);
3792:			__clear_bit(ABS_TILT_X, wacom_wac->pen_input->absbit);
3793:			__clear_bit(ABS_TILT_Y, wacom_wac->pen_input->absbit);
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3788 SourceSnippet:3783:		 * of things it shouldn't. Lets fix up the damage...
3784:		 */
3785:		if (wacom->hdev->product == 0x382 || wacom->hdev->product == 0x37d) {
3786:			features->quirks &= ~WACOM_QUIRK_TOOLSERIAL;
3787:			__clear_bit(BTN_TOOL_BRUSH, wacom_wac->pen_input->keybit);
3788:			__clear_bit(BTN_TOOL_PENCIL, wacom_wac->pen_input->keybit);
3789:			__clear_bit(BTN_TOOL_AIRBRUSH, wacom_wac->pen_input->keybit);
3790:			__clear_bit(ABS_Z, wacom_wac->pen_input->absbit);
3791:			__clear_bit(ABS_DISTANCE, wacom_wac->pen_input->absbit);
3792:			__clear_bit(ABS_TILT_X, wacom_wac->pen_input->absbit);
3793:			__clear_bit(ABS_TILT_Y, wacom_wac->pen_input->absbit);
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3789 SourceSnippet:3784:		 */
3785:		if (wacom->hdev->product == 0x382 || wacom->hdev->product == 0x37d) {
3786:			features->quirks &= ~WACOM_QUIRK_TOOLSERIAL;
3787:			__clear_bit(BTN_TOOL_BRUSH, wacom_wac->pen_input->keybit);
3788:			__clear_bit(BTN_TOOL_PENCIL, wacom_wac->pen_input->keybit);
3789:			__clear_bit(BTN_TOOL_AIRBRUSH, wacom_wac->pen_input->keybit);
3790:			__clear_bit(ABS_Z, wacom_wac->pen_input->absbit);
3791:			__clear_bit(ABS_DISTANCE, wacom_wac->pen_input->absbit);
3792:			__clear_bit(ABS_TILT_X, wacom_wac->pen_input->absbit);
3793:			__clear_bit(ABS_TILT_Y, wacom_wac->pen_input->absbit);
3794:			__clear_bit(ABS_WHEEL, wacom_wac->pen_input->absbit);
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3789 SourceSnippet:3784:		 */
3785:		if (wacom->hdev->product == 0x382 || wacom->hdev->product == 0x37d) {
3786:			features->quirks &= ~WACOM_QUIRK_TOOLSERIAL;
3787:			__clear_bit(BTN_TOOL_BRUSH, wacom_wac->pen_input->keybit);
3788:			__clear_bit(BTN_TOOL_PENCIL, wacom_wac->pen_input->keybit);
3789:			__clear_bit(BTN_TOOL_AIRBRUSH, wacom_wac->pen_input->keybit);
3790:			__clear_bit(ABS_Z, wacom_wac->pen_input->absbit);
3791:			__clear_bit(ABS_DISTANCE, wacom_wac->pen_input->absbit);
3792:			__clear_bit(ABS_TILT_X, wacom_wac->pen_input->absbit);
3793:			__clear_bit(ABS_TILT_Y, wacom_wac->pen_input->absbit);
3794:			__clear_bit(ABS_WHEEL, wacom_wac->pen_input->absbit);
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3789 SourceSnippet:3784:		 */
3785:		if (wacom->hdev->product == 0x382 || wacom->hdev->product == 0x37d) {
3786:			features->quirks &= ~WACOM_QUIRK_TOOLSERIAL;
3787:			__clear_bit(BTN_TOOL_BRUSH, wacom_wac->pen_input->keybit);
3788:			__clear_bit(BTN_TOOL_PENCIL, wacom_wac->pen_input->keybit);
3789:			__clear_bit(BTN_TOOL_AIRBRUSH, wacom_wac->pen_input->keybit);
3790:			__clear_bit(ABS_Z, wacom_wac->pen_input->absbit);
3791:			__clear_bit(ABS_DISTANCE, wacom_wac->pen_input->absbit);
3792:			__clear_bit(ABS_TILT_X, wacom_wac->pen_input->absbit);
3793:			__clear_bit(ABS_TILT_Y, wacom_wac->pen_input->absbit);
3794:			__clear_bit(ABS_WHEEL, wacom_wac->pen_input->absbit);
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3789 SourceSnippet:3784:		 */
3785:		if (wacom->hdev->product == 0x382 || wacom->hdev->product == 0x37d) {
3786:			features->quirks &= ~WACOM_QUIRK_TOOLSERIAL;
3787:			__clear_bit(BTN_TOOL_BRUSH, wacom_wac->pen_input->keybit);
3788:			__clear_bit(BTN_TOOL_PENCIL, wacom_wac->pen_input->keybit);
3789:			__clear_bit(BTN_TOOL_AIRBRUSH, wacom_wac->pen_input->keybit);
3790:			__clear_bit(ABS_Z, wacom_wac->pen_input->absbit);
3791:			__clear_bit(ABS_DISTANCE, wacom_wac->pen_input->absbit);
3792:			__clear_bit(ABS_TILT_X, wacom_wac->pen_input->absbit);
3793:			__clear_bit(ABS_TILT_Y, wacom_wac->pen_input->absbit);
3794:			__clear_bit(ABS_WHEEL, wacom_wac->pen_input->absbit);
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3789 SourceSnippet:3784:		 */
3785:		if (wacom->hdev->product == 0x382 || wacom->hdev->product == 0x37d) {
3786:			features->quirks &= ~WACOM_QUIRK_TOOLSERIAL;
3787:			__clear_bit(BTN_TOOL_BRUSH, wacom_wac->pen_input->keybit);
3788:			__clear_bit(BTN_TOOL_PENCIL, wacom_wac->pen_input->keybit);
3789:			__clear_bit(BTN_TOOL_AIRBRUSH, wacom_wac->pen_input->keybit);
3790:			__clear_bit(ABS_Z, wacom_wac->pen_input->absbit);
3791:			__clear_bit(ABS_DISTANCE, wacom_wac->pen_input->absbit);
3792:			__clear_bit(ABS_TILT_X, wacom_wac->pen_input->absbit);
3793:			__clear_bit(ABS_TILT_Y, wacom_wac->pen_input->absbit);
3794:			__clear_bit(ABS_WHEEL, wacom_wac->pen_input->absbit);
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3790 SourceSnippet:3785:		if (wacom->hdev->product == 0x382 || wacom->hdev->product == 0x37d) {
3786:			features->quirks &= ~WACOM_QUIRK_TOOLSERIAL;
3787:			__clear_bit(BTN_TOOL_BRUSH, wacom_wac->pen_input->keybit);
3788:			__clear_bit(BTN_TOOL_PENCIL, wacom_wac->pen_input->keybit);
3789:			__clear_bit(BTN_TOOL_AIRBRUSH, wacom_wac->pen_input->keybit);
3790:			__clear_bit(ABS_Z, wacom_wac->pen_input->absbit);
3791:			__clear_bit(ABS_DISTANCE, wacom_wac->pen_input->absbit);
3792:			__clear_bit(ABS_TILT_X, wacom_wac->pen_input->absbit);
3793:			__clear_bit(ABS_TILT_Y, wacom_wac->pen_input->absbit);
3794:			__clear_bit(ABS_WHEEL, wacom_wac->pen_input->absbit);
3795:			__clear_bit(ABS_MISC, wacom_wac->pen_input->absbit);
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3790 SourceSnippet:3785:		if (wacom->hdev->product == 0x382 || wacom->hdev->product == 0x37d) {
3786:			features->quirks &= ~WACOM_QUIRK_TOOLSERIAL;
3787:			__clear_bit(BTN_TOOL_BRUSH, wacom_wac->pen_input->keybit);
3788:			__clear_bit(BTN_TOOL_PENCIL, wacom_wac->pen_input->keybit);
3789:			__clear_bit(BTN_TOOL_AIRBRUSH, wacom_wac->pen_input->keybit);
3790:			__clear_bit(ABS_Z, wacom_wac->pen_input->absbit);
3791:			__clear_bit(ABS_DISTANCE, wacom_wac->pen_input->absbit);
3792:			__clear_bit(ABS_TILT_X, wacom_wac->pen_input->absbit);
3793:			__clear_bit(ABS_TILT_Y, wacom_wac->pen_input->absbit);
3794:			__clear_bit(ABS_WHEEL, wacom_wac->pen_input->absbit);
3795:			__clear_bit(ABS_MISC, wacom_wac->pen_input->absbit);
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3790 SourceSnippet:3785:		if (wacom->hdev->product == 0x382 || wacom->hdev->product == 0x37d) {
3786:			features->quirks &= ~WACOM_QUIRK_TOOLSERIAL;
3787:			__clear_bit(BTN_TOOL_BRUSH, wacom_wac->pen_input->keybit);
3788:			__clear_bit(BTN_TOOL_PENCIL, wacom_wac->pen_input->keybit);
3789:			__clear_bit(BTN_TOOL_AIRBRUSH, wacom_wac->pen_input->keybit);
3790:			__clear_bit(ABS_Z, wacom_wac->pen_input->absbit);
3791:			__clear_bit(ABS_DISTANCE, wacom_wac->pen_input->absbit);
3792:			__clear_bit(ABS_TILT_X, wacom_wac->pen_input->absbit);
3793:			__clear_bit(ABS_TILT_Y, wacom_wac->pen_input->absbit);
3794:			__clear_bit(ABS_WHEEL, wacom_wac->pen_input->absbit);
3795:			__clear_bit(ABS_MISC, wacom_wac->pen_input->absbit);
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3790 SourceSnippet:3785:		if (wacom->hdev->product == 0x382 || wacom->hdev->product == 0x37d) {
3786:			features->quirks &= ~WACOM_QUIRK_TOOLSERIAL;
3787:			__clear_bit(BTN_TOOL_BRUSH, wacom_wac->pen_input->keybit);
3788:			__clear_bit(BTN_TOOL_PENCIL, wacom_wac->pen_input->keybit);
3789:			__clear_bit(BTN_TOOL_AIRBRUSH, wacom_wac->pen_input->keybit);
3790:			__clear_bit(ABS_Z, wacom_wac->pen_input->absbit);
3791:			__clear_bit(ABS_DISTANCE, wacom_wac->pen_input->absbit);
3792:			__clear_bit(ABS_TILT_X, wacom_wac->pen_input->absbit);
3793:			__clear_bit(ABS_TILT_Y, wacom_wac->pen_input->absbit);
3794:			__clear_bit(ABS_WHEEL, wacom_wac->pen_input->absbit);
3795:			__clear_bit(ABS_MISC, wacom_wac->pen_input->absbit);
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3790 SourceSnippet:3785:		if (wacom->hdev->product == 0x382 || wacom->hdev->product == 0x37d) {
3786:			features->quirks &= ~WACOM_QUIRK_TOOLSERIAL;
3787:			__clear_bit(BTN_TOOL_BRUSH, wacom_wac->pen_input->keybit);
3788:			__clear_bit(BTN_TOOL_PENCIL, wacom_wac->pen_input->keybit);
3789:			__clear_bit(BTN_TOOL_AIRBRUSH, wacom_wac->pen_input->keybit);
3790:			__clear_bit(ABS_Z, wacom_wac->pen_input->absbit);
3791:			__clear_bit(ABS_DISTANCE, wacom_wac->pen_input->absbit);
3792:			__clear_bit(ABS_TILT_X, wacom_wac->pen_input->absbit);
3793:			__clear_bit(ABS_TILT_Y, wacom_wac->pen_input->absbit);
3794:			__clear_bit(ABS_WHEEL, wacom_wac->pen_input->absbit);
3795:			__clear_bit(ABS_MISC, wacom_wac->pen_input->absbit);
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3791 SourceSnippet:3786:			features->quirks &= ~WACOM_QUIRK_TOOLSERIAL;
3787:			__clear_bit(BTN_TOOL_BRUSH, wacom_wac->pen_input->keybit);
3788:			__clear_bit(BTN_TOOL_PENCIL, wacom_wac->pen_input->keybit);
3789:			__clear_bit(BTN_TOOL_AIRBRUSH, wacom_wac->pen_input->keybit);
3790:			__clear_bit(ABS_Z, wacom_wac->pen_input->absbit);
3791:			__clear_bit(ABS_DISTANCE, wacom_wac->pen_input->absbit);
3792:			__clear_bit(ABS_TILT_X, wacom_wac->pen_input->absbit);
3793:			__clear_bit(ABS_TILT_Y, wacom_wac->pen_input->absbit);
3794:			__clear_bit(ABS_WHEEL, wacom_wac->pen_input->absbit);
3795:			__clear_bit(ABS_MISC, wacom_wac->pen_input->absbit);
3796:			__clear_bit(MSC_SERIAL, wacom_wac->pen_input->mscbit);
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3791 SourceSnippet:3786:			features->quirks &= ~WACOM_QUIRK_TOOLSERIAL;
3787:			__clear_bit(BTN_TOOL_BRUSH, wacom_wac->pen_input->keybit);
3788:			__clear_bit(BTN_TOOL_PENCIL, wacom_wac->pen_input->keybit);
3789:			__clear_bit(BTN_TOOL_AIRBRUSH, wacom_wac->pen_input->keybit);
3790:			__clear_bit(ABS_Z, wacom_wac->pen_input->absbit);
3791:			__clear_bit(ABS_DISTANCE, wacom_wac->pen_input->absbit);
3792:			__clear_bit(ABS_TILT_X, wacom_wac->pen_input->absbit);
3793:			__clear_bit(ABS_TILT_Y, wacom_wac->pen_input->absbit);
3794:			__clear_bit(ABS_WHEEL, wacom_wac->pen_input->absbit);
3795:			__clear_bit(ABS_MISC, wacom_wac->pen_input->absbit);
3796:			__clear_bit(MSC_SERIAL, wacom_wac->pen_input->mscbit);
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3791 SourceSnippet:3786:			features->quirks &= ~WACOM_QUIRK_TOOLSERIAL;
3787:			__clear_bit(BTN_TOOL_BRUSH, wacom_wac->pen_input->keybit);
3788:			__clear_bit(BTN_TOOL_PENCIL, wacom_wac->pen_input->keybit);
3789:			__clear_bit(BTN_TOOL_AIRBRUSH, wacom_wac->pen_input->keybit);
3790:			__clear_bit(ABS_Z, wacom_wac->pen_input->absbit);
3791:			__clear_bit(ABS_DISTANCE, wacom_wac->pen_input->absbit);
3792:			__clear_bit(ABS_TILT_X, wacom_wac->pen_input->absbit);
3793:			__clear_bit(ABS_TILT_Y, wacom_wac->pen_input->absbit);
3794:			__clear_bit(ABS_WHEEL, wacom_wac->pen_input->absbit);
3795:			__clear_bit(ABS_MISC, wacom_wac->pen_input->absbit);
3796:			__clear_bit(MSC_SERIAL, wacom_wac->pen_input->mscbit);
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3791 SourceSnippet:3786:			features->quirks &= ~WACOM_QUIRK_TOOLSERIAL;
3787:			__clear_bit(BTN_TOOL_BRUSH, wacom_wac->pen_input->keybit);
3788:			__clear_bit(BTN_TOOL_PENCIL, wacom_wac->pen_input->keybit);
3789:			__clear_bit(BTN_TOOL_AIRBRUSH, wacom_wac->pen_input->keybit);
3790:			__clear_bit(ABS_Z, wacom_wac->pen_input->absbit);
3791:			__clear_bit(ABS_DISTANCE, wacom_wac->pen_input->absbit);
3792:			__clear_bit(ABS_TILT_X, wacom_wac->pen_input->absbit);
3793:			__clear_bit(ABS_TILT_Y, wacom_wac->pen_input->absbit);
3794:			__clear_bit(ABS_WHEEL, wacom_wac->pen_input->absbit);
3795:			__clear_bit(ABS_MISC, wacom_wac->pen_input->absbit);
3796:			__clear_bit(MSC_SERIAL, wacom_wac->pen_input->mscbit);
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3791 SourceSnippet:3786:			features->quirks &= ~WACOM_QUIRK_TOOLSERIAL;
3787:			__clear_bit(BTN_TOOL_BRUSH, wacom_wac->pen_input->keybit);
3788:			__clear_bit(BTN_TOOL_PENCIL, wacom_wac->pen_input->keybit);
3789:			__clear_bit(BTN_TOOL_AIRBRUSH, wacom_wac->pen_input->keybit);
3790:			__clear_bit(ABS_Z, wacom_wac->pen_input->absbit);
3791:			__clear_bit(ABS_DISTANCE, wacom_wac->pen_input->absbit);
3792:			__clear_bit(ABS_TILT_X, wacom_wac->pen_input->absbit);
3793:			__clear_bit(ABS_TILT_Y, wacom_wac->pen_input->absbit);
3794:			__clear_bit(ABS_WHEEL, wacom_wac->pen_input->absbit);
3795:			__clear_bit(ABS_MISC, wacom_wac->pen_input->absbit);
3796:			__clear_bit(MSC_SERIAL, wacom_wac->pen_input->mscbit);
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3792 SourceSnippet:3787:			__clear_bit(BTN_TOOL_BRUSH, wacom_wac->pen_input->keybit);
3788:			__clear_bit(BTN_TOOL_PENCIL, wacom_wac->pen_input->keybit);
3789:			__clear_bit(BTN_TOOL_AIRBRUSH, wacom_wac->pen_input->keybit);
3790:			__clear_bit(ABS_Z, wacom_wac->pen_input->absbit);
3791:			__clear_bit(ABS_DISTANCE, wacom_wac->pen_input->absbit);
3792:			__clear_bit(ABS_TILT_X, wacom_wac->pen_input->absbit);
3793:			__clear_bit(ABS_TILT_Y, wacom_wac->pen_input->absbit);
3794:			__clear_bit(ABS_WHEEL, wacom_wac->pen_input->absbit);
3795:			__clear_bit(ABS_MISC, wacom_wac->pen_input->absbit);
3796:			__clear_bit(MSC_SERIAL, wacom_wac->pen_input->mscbit);
3797:			__clear_bit(EV_MSC, wacom_wac->pen_input->evbit);
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3792 SourceSnippet:3787:			__clear_bit(BTN_TOOL_BRUSH, wacom_wac->pen_input->keybit);
3788:			__clear_bit(BTN_TOOL_PENCIL, wacom_wac->pen_input->keybit);
3789:			__clear_bit(BTN_TOOL_AIRBRUSH, wacom_wac->pen_input->keybit);
3790:			__clear_bit(ABS_Z, wacom_wac->pen_input->absbit);
3791:			__clear_bit(ABS_DISTANCE, wacom_wac->pen_input->absbit);
3792:			__clear_bit(ABS_TILT_X, wacom_wac->pen_input->absbit);
3793:			__clear_bit(ABS_TILT_Y, wacom_wac->pen_input->absbit);
3794:			__clear_bit(ABS_WHEEL, wacom_wac->pen_input->absbit);
3795:			__clear_bit(ABS_MISC, wacom_wac->pen_input->absbit);
3796:			__clear_bit(MSC_SERIAL, wacom_wac->pen_input->mscbit);
3797:			__clear_bit(EV_MSC, wacom_wac->pen_input->evbit);
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3792 SourceSnippet:3787:			__clear_bit(BTN_TOOL_BRUSH, wacom_wac->pen_input->keybit);
3788:			__clear_bit(BTN_TOOL_PENCIL, wacom_wac->pen_input->keybit);
3789:			__clear_bit(BTN_TOOL_AIRBRUSH, wacom_wac->pen_input->keybit);
3790:			__clear_bit(ABS_Z, wacom_wac->pen_input->absbit);
3791:			__clear_bit(ABS_DISTANCE, wacom_wac->pen_input->absbit);
3792:			__clear_bit(ABS_TILT_X, wacom_wac->pen_input->absbit);
3793:			__clear_bit(ABS_TILT_Y, wacom_wac->pen_input->absbit);
3794:			__clear_bit(ABS_WHEEL, wacom_wac->pen_input->absbit);
3795:			__clear_bit(ABS_MISC, wacom_wac->pen_input->absbit);
3796:			__clear_bit(MSC_SERIAL, wacom_wac->pen_input->mscbit);
3797:			__clear_bit(EV_MSC, wacom_wac->pen_input->evbit);
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3792 SourceSnippet:3787:			__clear_bit(BTN_TOOL_BRUSH, wacom_wac->pen_input->keybit);
3788:			__clear_bit(BTN_TOOL_PENCIL, wacom_wac->pen_input->keybit);
3789:			__clear_bit(BTN_TOOL_AIRBRUSH, wacom_wac->pen_input->keybit);
3790:			__clear_bit(ABS_Z, wacom_wac->pen_input->absbit);
3791:			__clear_bit(ABS_DISTANCE, wacom_wac->pen_input->absbit);
3792:			__clear_bit(ABS_TILT_X, wacom_wac->pen_input->absbit);
3793:			__clear_bit(ABS_TILT_Y, wacom_wac->pen_input->absbit);
3794:			__clear_bit(ABS_WHEEL, wacom_wac->pen_input->absbit);
3795:			__clear_bit(ABS_MISC, wacom_wac->pen_input->absbit);
3796:			__clear_bit(MSC_SERIAL, wacom_wac->pen_input->mscbit);
3797:			__clear_bit(EV_MSC, wacom_wac->pen_input->evbit);
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3792 SourceSnippet:3787:			__clear_bit(BTN_TOOL_BRUSH, wacom_wac->pen_input->keybit);
3788:			__clear_bit(BTN_TOOL_PENCIL, wacom_wac->pen_input->keybit);
3789:			__clear_bit(BTN_TOOL_AIRBRUSH, wacom_wac->pen_input->keybit);
3790:			__clear_bit(ABS_Z, wacom_wac->pen_input->absbit);
3791:			__clear_bit(ABS_DISTANCE, wacom_wac->pen_input->absbit);
3792:			__clear_bit(ABS_TILT_X, wacom_wac->pen_input->absbit);
3793:			__clear_bit(ABS_TILT_Y, wacom_wac->pen_input->absbit);
3794:			__clear_bit(ABS_WHEEL, wacom_wac->pen_input->absbit);
3795:			__clear_bit(ABS_MISC, wacom_wac->pen_input->absbit);
3796:			__clear_bit(MSC_SERIAL, wacom_wac->pen_input->mscbit);
3797:			__clear_bit(EV_MSC, wacom_wac->pen_input->evbit);
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3793 SourceSnippet:3788:			__clear_bit(BTN_TOOL_PENCIL, wacom_wac->pen_input->keybit);
3789:			__clear_bit(BTN_TOOL_AIRBRUSH, wacom_wac->pen_input->keybit);
3790:			__clear_bit(ABS_Z, wacom_wac->pen_input->absbit);
3791:			__clear_bit(ABS_DISTANCE, wacom_wac->pen_input->absbit);
3792:			__clear_bit(ABS_TILT_X, wacom_wac->pen_input->absbit);
3793:			__clear_bit(ABS_TILT_Y, wacom_wac->pen_input->absbit);
3794:			__clear_bit(ABS_WHEEL, wacom_wac->pen_input->absbit);
3795:			__clear_bit(ABS_MISC, wacom_wac->pen_input->absbit);
3796:			__clear_bit(MSC_SERIAL, wacom_wac->pen_input->mscbit);
3797:			__clear_bit(EV_MSC, wacom_wac->pen_input->evbit);
3798:		}
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3793 SourceSnippet:3788:			__clear_bit(BTN_TOOL_PENCIL, wacom_wac->pen_input->keybit);
3789:			__clear_bit(BTN_TOOL_AIRBRUSH, wacom_wac->pen_input->keybit);
3790:			__clear_bit(ABS_Z, wacom_wac->pen_input->absbit);
3791:			__clear_bit(ABS_DISTANCE, wacom_wac->pen_input->absbit);
3792:			__clear_bit(ABS_TILT_X, wacom_wac->pen_input->absbit);
3793:			__clear_bit(ABS_TILT_Y, wacom_wac->pen_input->absbit);
3794:			__clear_bit(ABS_WHEEL, wacom_wac->pen_input->absbit);
3795:			__clear_bit(ABS_MISC, wacom_wac->pen_input->absbit);
3796:			__clear_bit(MSC_SERIAL, wacom_wac->pen_input->mscbit);
3797:			__clear_bit(EV_MSC, wacom_wac->pen_input->evbit);
3798:		}
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3793 SourceSnippet:3788:			__clear_bit(BTN_TOOL_PENCIL, wacom_wac->pen_input->keybit);
3789:			__clear_bit(BTN_TOOL_AIRBRUSH, wacom_wac->pen_input->keybit);
3790:			__clear_bit(ABS_Z, wacom_wac->pen_input->absbit);
3791:			__clear_bit(ABS_DISTANCE, wacom_wac->pen_input->absbit);
3792:			__clear_bit(ABS_TILT_X, wacom_wac->pen_input->absbit);
3793:			__clear_bit(ABS_TILT_Y, wacom_wac->pen_input->absbit);
3794:			__clear_bit(ABS_WHEEL, wacom_wac->pen_input->absbit);
3795:			__clear_bit(ABS_MISC, wacom_wac->pen_input->absbit);
3796:			__clear_bit(MSC_SERIAL, wacom_wac->pen_input->mscbit);
3797:			__clear_bit(EV_MSC, wacom_wac->pen_input->evbit);
3798:		}
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3793 SourceSnippet:3788:			__clear_bit(BTN_TOOL_PENCIL, wacom_wac->pen_input->keybit);
3789:			__clear_bit(BTN_TOOL_AIRBRUSH, wacom_wac->pen_input->keybit);
3790:			__clear_bit(ABS_Z, wacom_wac->pen_input->absbit);
3791:			__clear_bit(ABS_DISTANCE, wacom_wac->pen_input->absbit);
3792:			__clear_bit(ABS_TILT_X, wacom_wac->pen_input->absbit);
3793:			__clear_bit(ABS_TILT_Y, wacom_wac->pen_input->absbit);
3794:			__clear_bit(ABS_WHEEL, wacom_wac->pen_input->absbit);
3795:			__clear_bit(ABS_MISC, wacom_wac->pen_input->absbit);
3796:			__clear_bit(MSC_SERIAL, wacom_wac->pen_input->mscbit);
3797:			__clear_bit(EV_MSC, wacom_wac->pen_input->evbit);
3798:		}
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3793 SourceSnippet:3788:			__clear_bit(BTN_TOOL_PENCIL, wacom_wac->pen_input->keybit);
3789:			__clear_bit(BTN_TOOL_AIRBRUSH, wacom_wac->pen_input->keybit);
3790:			__clear_bit(ABS_Z, wacom_wac->pen_input->absbit);
3791:			__clear_bit(ABS_DISTANCE, wacom_wac->pen_input->absbit);
3792:			__clear_bit(ABS_TILT_X, wacom_wac->pen_input->absbit);
3793:			__clear_bit(ABS_TILT_Y, wacom_wac->pen_input->absbit);
3794:			__clear_bit(ABS_WHEEL, wacom_wac->pen_input->absbit);
3795:			__clear_bit(ABS_MISC, wacom_wac->pen_input->absbit);
3796:			__clear_bit(MSC_SERIAL, wacom_wac->pen_input->mscbit);
3797:			__clear_bit(EV_MSC, wacom_wac->pen_input->evbit);
3798:		}
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3794 SourceSnippet:3789:			__clear_bit(BTN_TOOL_AIRBRUSH, wacom_wac->pen_input->keybit);
3790:			__clear_bit(ABS_Z, wacom_wac->pen_input->absbit);
3791:			__clear_bit(ABS_DISTANCE, wacom_wac->pen_input->absbit);
3792:			__clear_bit(ABS_TILT_X, wacom_wac->pen_input->absbit);
3793:			__clear_bit(ABS_TILT_Y, wacom_wac->pen_input->absbit);
3794:			__clear_bit(ABS_WHEEL, wacom_wac->pen_input->absbit);
3795:			__clear_bit(ABS_MISC, wacom_wac->pen_input->absbit);
3796:			__clear_bit(MSC_SERIAL, wacom_wac->pen_input->mscbit);
3797:			__clear_bit(EV_MSC, wacom_wac->pen_input->evbit);
3798:		}
3799:	}
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3794 SourceSnippet:3789:			__clear_bit(BTN_TOOL_AIRBRUSH, wacom_wac->pen_input->keybit);
3790:			__clear_bit(ABS_Z, wacom_wac->pen_input->absbit);
3791:			__clear_bit(ABS_DISTANCE, wacom_wac->pen_input->absbit);
3792:			__clear_bit(ABS_TILT_X, wacom_wac->pen_input->absbit);
3793:			__clear_bit(ABS_TILT_Y, wacom_wac->pen_input->absbit);
3794:			__clear_bit(ABS_WHEEL, wacom_wac->pen_input->absbit);
3795:			__clear_bit(ABS_MISC, wacom_wac->pen_input->absbit);
3796:			__clear_bit(MSC_SERIAL, wacom_wac->pen_input->mscbit);
3797:			__clear_bit(EV_MSC, wacom_wac->pen_input->evbit);
3798:		}
3799:	}
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3794 SourceSnippet:3789:			__clear_bit(BTN_TOOL_AIRBRUSH, wacom_wac->pen_input->keybit);
3790:			__clear_bit(ABS_Z, wacom_wac->pen_input->absbit);
3791:			__clear_bit(ABS_DISTANCE, wacom_wac->pen_input->absbit);
3792:			__clear_bit(ABS_TILT_X, wacom_wac->pen_input->absbit);
3793:			__clear_bit(ABS_TILT_Y, wacom_wac->pen_input->absbit);
3794:			__clear_bit(ABS_WHEEL, wacom_wac->pen_input->absbit);
3795:			__clear_bit(ABS_MISC, wacom_wac->pen_input->absbit);
3796:			__clear_bit(MSC_SERIAL, wacom_wac->pen_input->mscbit);
3797:			__clear_bit(EV_MSC, wacom_wac->pen_input->evbit);
3798:		}
3799:	}
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3794 SourceSnippet:3789:			__clear_bit(BTN_TOOL_AIRBRUSH, wacom_wac->pen_input->keybit);
3790:			__clear_bit(ABS_Z, wacom_wac->pen_input->absbit);
3791:			__clear_bit(ABS_DISTANCE, wacom_wac->pen_input->absbit);
3792:			__clear_bit(ABS_TILT_X, wacom_wac->pen_input->absbit);
3793:			__clear_bit(ABS_TILT_Y, wacom_wac->pen_input->absbit);
3794:			__clear_bit(ABS_WHEEL, wacom_wac->pen_input->absbit);
3795:			__clear_bit(ABS_MISC, wacom_wac->pen_input->absbit);
3796:			__clear_bit(MSC_SERIAL, wacom_wac->pen_input->mscbit);
3797:			__clear_bit(EV_MSC, wacom_wac->pen_input->evbit);
3798:		}
3799:	}
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3794 SourceSnippet:3789:			__clear_bit(BTN_TOOL_AIRBRUSH, wacom_wac->pen_input->keybit);
3790:			__clear_bit(ABS_Z, wacom_wac->pen_input->absbit);
3791:			__clear_bit(ABS_DISTANCE, wacom_wac->pen_input->absbit);
3792:			__clear_bit(ABS_TILT_X, wacom_wac->pen_input->absbit);
3793:			__clear_bit(ABS_TILT_Y, wacom_wac->pen_input->absbit);
3794:			__clear_bit(ABS_WHEEL, wacom_wac->pen_input->absbit);
3795:			__clear_bit(ABS_MISC, wacom_wac->pen_input->absbit);
3796:			__clear_bit(MSC_SERIAL, wacom_wac->pen_input->mscbit);
3797:			__clear_bit(EV_MSC, wacom_wac->pen_input->evbit);
3798:		}
3799:	}
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3795 SourceSnippet:3790:			__clear_bit(ABS_Z, wacom_wac->pen_input->absbit);
3791:			__clear_bit(ABS_DISTANCE, wacom_wac->pen_input->absbit);
3792:			__clear_bit(ABS_TILT_X, wacom_wac->pen_input->absbit);
3793:			__clear_bit(ABS_TILT_Y, wacom_wac->pen_input->absbit);
3794:			__clear_bit(ABS_WHEEL, wacom_wac->pen_input->absbit);
3795:			__clear_bit(ABS_MISC, wacom_wac->pen_input->absbit);
3796:			__clear_bit(MSC_SERIAL, wacom_wac->pen_input->mscbit);
3797:			__clear_bit(EV_MSC, wacom_wac->pen_input->evbit);
3798:		}
3799:	}
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3795 SourceSnippet:3790:			__clear_bit(ABS_Z, wacom_wac->pen_input->absbit);
3791:			__clear_bit(ABS_DISTANCE, wacom_wac->pen_input->absbit);
3792:			__clear_bit(ABS_TILT_X, wacom_wac->pen_input->absbit);
3793:			__clear_bit(ABS_TILT_Y, wacom_wac->pen_input->absbit);
3794:			__clear_bit(ABS_WHEEL, wacom_wac->pen_input->absbit);
3795:			__clear_bit(ABS_MISC, wacom_wac->pen_input->absbit);
3796:			__clear_bit(MSC_SERIAL, wacom_wac->pen_input->mscbit);
3797:			__clear_bit(EV_MSC, wacom_wac->pen_input->evbit);
3798:		}
3799:	}
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3795 SourceSnippet:3790:			__clear_bit(ABS_Z, wacom_wac->pen_input->absbit);
3791:			__clear_bit(ABS_DISTANCE, wacom_wac->pen_input->absbit);
3792:			__clear_bit(ABS_TILT_X, wacom_wac->pen_input->absbit);
3793:			__clear_bit(ABS_TILT_Y, wacom_wac->pen_input->absbit);
3794:			__clear_bit(ABS_WHEEL, wacom_wac->pen_input->absbit);
3795:			__clear_bit(ABS_MISC, wacom_wac->pen_input->absbit);
3796:			__clear_bit(MSC_SERIAL, wacom_wac->pen_input->mscbit);
3797:			__clear_bit(EV_MSC, wacom_wac->pen_input->evbit);
3798:		}
3799:	}
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3795 SourceSnippet:3790:			__clear_bit(ABS_Z, wacom_wac->pen_input->absbit);
3791:			__clear_bit(ABS_DISTANCE, wacom_wac->pen_input->absbit);
3792:			__clear_bit(ABS_TILT_X, wacom_wac->pen_input->absbit);
3793:			__clear_bit(ABS_TILT_Y, wacom_wac->pen_input->absbit);
3794:			__clear_bit(ABS_WHEEL, wacom_wac->pen_input->absbit);
3795:			__clear_bit(ABS_MISC, wacom_wac->pen_input->absbit);
3796:			__clear_bit(MSC_SERIAL, wacom_wac->pen_input->mscbit);
3797:			__clear_bit(EV_MSC, wacom_wac->pen_input->evbit);
3798:		}
3799:	}
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3795 SourceSnippet:3790:			__clear_bit(ABS_Z, wacom_wac->pen_input->absbit);
3791:			__clear_bit(ABS_DISTANCE, wacom_wac->pen_input->absbit);
3792:			__clear_bit(ABS_TILT_X, wacom_wac->pen_input->absbit);
3793:			__clear_bit(ABS_TILT_Y, wacom_wac->pen_input->absbit);
3794:			__clear_bit(ABS_WHEEL, wacom_wac->pen_input->absbit);
3795:			__clear_bit(ABS_MISC, wacom_wac->pen_input->absbit);
3796:			__clear_bit(MSC_SERIAL, wacom_wac->pen_input->mscbit);
3797:			__clear_bit(EV_MSC, wacom_wac->pen_input->evbit);
3798:		}
3799:	}
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3796 SourceSnippet:3791:			__clear_bit(ABS_DISTANCE, wacom_wac->pen_input->absbit);
3792:			__clear_bit(ABS_TILT_X, wacom_wac->pen_input->absbit);
3793:			__clear_bit(ABS_TILT_Y, wacom_wac->pen_input->absbit);
3794:			__clear_bit(ABS_WHEEL, wacom_wac->pen_input->absbit);
3795:			__clear_bit(ABS_MISC, wacom_wac->pen_input->absbit);
3796:			__clear_bit(MSC_SERIAL, wacom_wac->pen_input->mscbit);
3797:			__clear_bit(EV_MSC, wacom_wac->pen_input->evbit);
3798:		}
3799:	}
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3796 SourceSnippet:3791:			__clear_bit(ABS_DISTANCE, wacom_wac->pen_input->absbit);
3792:			__clear_bit(ABS_TILT_X, wacom_wac->pen_input->absbit);
3793:			__clear_bit(ABS_TILT_Y, wacom_wac->pen_input->absbit);
3794:			__clear_bit(ABS_WHEEL, wacom_wac->pen_input->absbit);
3795:			__clear_bit(ABS_MISC, wacom_wac->pen_input->absbit);
3796:			__clear_bit(MSC_SERIAL, wacom_wac->pen_input->mscbit);
3797:			__clear_bit(EV_MSC, wacom_wac->pen_input->evbit);
3798:		}
3799:	}
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3796 SourceSnippet:3791:			__clear_bit(ABS_DISTANCE, wacom_wac->pen_input->absbit);
3792:			__clear_bit(ABS_TILT_X, wacom_wac->pen_input->absbit);
3793:			__clear_bit(ABS_TILT_Y, wacom_wac->pen_input->absbit);
3794:			__clear_bit(ABS_WHEEL, wacom_wac->pen_input->absbit);
3795:			__clear_bit(ABS_MISC, wacom_wac->pen_input->absbit);
3796:			__clear_bit(MSC_SERIAL, wacom_wac->pen_input->mscbit);
3797:			__clear_bit(EV_MSC, wacom_wac->pen_input->evbit);
3798:		}
3799:	}
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3796 SourceSnippet:3791:			__clear_bit(ABS_DISTANCE, wacom_wac->pen_input->absbit);
3792:			__clear_bit(ABS_TILT_X, wacom_wac->pen_input->absbit);
3793:			__clear_bit(ABS_TILT_Y, wacom_wac->pen_input->absbit);
3794:			__clear_bit(ABS_WHEEL, wacom_wac->pen_input->absbit);
3795:			__clear_bit(ABS_MISC, wacom_wac->pen_input->absbit);
3796:			__clear_bit(MSC_SERIAL, wacom_wac->pen_input->mscbit);
3797:			__clear_bit(EV_MSC, wacom_wac->pen_input->evbit);
3798:		}
3799:	}
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3796 SourceSnippet:3791:			__clear_bit(ABS_DISTANCE, wacom_wac->pen_input->absbit);
3792:			__clear_bit(ABS_TILT_X, wacom_wac->pen_input->absbit);
3793:			__clear_bit(ABS_TILT_Y, wacom_wac->pen_input->absbit);
3794:			__clear_bit(ABS_WHEEL, wacom_wac->pen_input->absbit);
3795:			__clear_bit(ABS_MISC, wacom_wac->pen_input->absbit);
3796:			__clear_bit(MSC_SERIAL, wacom_wac->pen_input->mscbit);
3797:			__clear_bit(EV_MSC, wacom_wac->pen_input->evbit);
3798:		}
3799:	}
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3797 SourceSnippet:3792:			__clear_bit(ABS_TILT_X, wacom_wac->pen_input->absbit);
3793:			__clear_bit(ABS_TILT_Y, wacom_wac->pen_input->absbit);
3794:			__clear_bit(ABS_WHEEL, wacom_wac->pen_input->absbit);
3795:			__clear_bit(ABS_MISC, wacom_wac->pen_input->absbit);
3796:			__clear_bit(MSC_SERIAL, wacom_wac->pen_input->mscbit);
3797:			__clear_bit(EV_MSC, wacom_wac->pen_input->evbit);
3798:		}
3799:	}
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3797 SourceSnippet:3792:			__clear_bit(ABS_TILT_X, wacom_wac->pen_input->absbit);
3793:			__clear_bit(ABS_TILT_Y, wacom_wac->pen_input->absbit);
3794:			__clear_bit(ABS_WHEEL, wacom_wac->pen_input->absbit);
3795:			__clear_bit(ABS_MISC, wacom_wac->pen_input->absbit);
3796:			__clear_bit(MSC_SERIAL, wacom_wac->pen_input->mscbit);
3797:			__clear_bit(EV_MSC, wacom_wac->pen_input->evbit);
3798:		}
3799:	}
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3797 SourceSnippet:3792:			__clear_bit(ABS_TILT_X, wacom_wac->pen_input->absbit);
3793:			__clear_bit(ABS_TILT_Y, wacom_wac->pen_input->absbit);
3794:			__clear_bit(ABS_WHEEL, wacom_wac->pen_input->absbit);
3795:			__clear_bit(ABS_MISC, wacom_wac->pen_input->absbit);
3796:			__clear_bit(MSC_SERIAL, wacom_wac->pen_input->mscbit);
3797:			__clear_bit(EV_MSC, wacom_wac->pen_input->evbit);
3798:		}
3799:	}
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3797 SourceSnippet:3792:			__clear_bit(ABS_TILT_X, wacom_wac->pen_input->absbit);
3793:			__clear_bit(ABS_TILT_Y, wacom_wac->pen_input->absbit);
3794:			__clear_bit(ABS_WHEEL, wacom_wac->pen_input->absbit);
3795:			__clear_bit(ABS_MISC, wacom_wac->pen_input->absbit);
3796:			__clear_bit(MSC_SERIAL, wacom_wac->pen_input->mscbit);
3797:			__clear_bit(EV_MSC, wacom_wac->pen_input->evbit);
3798:		}
3799:	}
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_device_quirks SourceFile:drivers/hid/wacom_wac.c SourceLine:3797 SourceSnippet:3792:			__clear_bit(ABS_TILT_X, wacom_wac->pen_input->absbit);
3793:			__clear_bit(ABS_TILT_Y, wacom_wac->pen_input->absbit);
3794:			__clear_bit(ABS_WHEEL, wacom_wac->pen_input->absbit);
3795:			__clear_bit(ABS_MISC, wacom_wac->pen_input->absbit);
3796:			__clear_bit(MSC_SERIAL, wacom_wac->pen_input->mscbit);
3797:			__clear_bit(EV_MSC, wacom_wac->pen_input->evbit);
3798:		}
3799:	}
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_inputs SourceFile:drivers/hid/wacom_sys.c SourceLine:2133 SourceSnippet:2128:	{
2129:		struct input_dev *pen_input_dev, *touch_input_dev, *pad_input_dev;
2130:		struct wacom_wac *wacom_wac = &(wacom->wacom_wac);
2131:		int error = 0;
2132:	
2133:		pen_input_dev = wacom_wac->pen_input;
2134:		touch_input_dev = wacom_wac->touch_input;
2135:		pad_input_dev = wacom_wac->pad_input;
2136:	
2137:		if (!pen_input_dev || !touch_input_dev || !pad_input_dev)
2138:			return -EINVAL;
] map[ReferenceKind:writes ReferencingEntityKind:function ReferencingEntityName:wacom_setup_inputs SourceFile:drivers/hid/wacom_sys.c SourceLine:2144 SourceSnippet:2139:	
2140:		error = wacom_setup_pen_input_capabilities(pen_input_dev, wacom_wac);
2141:		if (error) {
2142:			/* no pen in use on this interface */
2143:			input_free_device(pen_input_dev);
2144:			wacom_wac->pen_input = NULL;
2145:			pen_input_dev = NULL;
2146:		}
2147:	
2148:		error = wacom_setup_touch_input_capabilities(touch_input_dev, wacom_wac);
2149:		if (error) {
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_setup_intuos SourceFile:drivers/hid/wacom_wac.c SourceLine:3629 SourceSnippet:3627:	static void wacom_setup_intuos(struct wacom_wac *wacom_wac)
3628:	{
3629:		struct input_dev *input_dev = wacom_wac->pen_input;
3630:	
3631:		input_set_capability(input_dev, EV_REL, REL_WHEEL);
3632:	
3633:		wacom_setup_cintiq(wacom_wac);
3634:	
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_tpc_irq SourceFile:drivers/hid/wacom_wac.c SourceLine:1799 SourceSnippet:1795:	static int wacom_tpc_irq(struct wacom_wac *wacom, size_t len)
1796:	{
1797:		unsigned char *data = wacom->data;
1798:	
1799:		if (wacom->pen_input) {
1800:			dev_dbg(wacom->pen_input->dev.parent,
1801:				"%s: received report #%d\n", __func__, data[0]);
1802:	
1803:			if (len == WACOM_PKGLEN_PENABLED ||
1804:			    data[0] == WACOM_REPORT_PENABLED)
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_tpc_irq SourceFile:drivers/hid/wacom_wac.c SourceLine:1800 SourceSnippet:1795:	static int wacom_tpc_irq(struct wacom_wac *wacom, size_t len)
1796:	{
1797:		unsigned char *data = wacom->data;
1798:	
1799:		if (wacom->pen_input) {
1800:			dev_dbg(wacom->pen_input->dev.parent,
1801:				"%s: received report #%d\n", __func__, data[0]);
1802:	
1803:			if (len == WACOM_PKGLEN_PENABLED ||
1804:			    data[0] == WACOM_REPORT_PENABLED)
1805:				return wacom_tpc_pen(wacom);
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_tpc_pen SourceFile:drivers/hid/wacom_wac.c SourceLine:1768 SourceSnippet:1765:	static int wacom_tpc_pen(struct wacom_wac *wacom)
1766:	{
1767:		unsigned char *data = wacom->data;
1768:		struct input_dev *input = wacom->pen_input;
1769:		bool prox = data[1] & 0x20;
1770:	
1771:		if (!wacom->shared->stylus_in_proximity) /* first in prox */
1772:			/* Going into proximity select tool */
1773:			wacom->tool[0] = (data[1] & 0x0c) ? BTN_TOOL_RUBBER : BTN_TOOL_PEN;
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_wac_collection SourceFile:drivers/hid/wacom_wac.c SourceLine:3018 SourceSnippet:3013:		if (report->type != HID_INPUT_REPORT)
3014:			return -1;
3015:	
3016:		if (WACOM_PAD_FIELD(field))
3017:			return 0;
3018:		else if (WACOM_PEN_FIELD(field) && wacom->wacom_wac.pen_input)
3019:			wacom_wac_pen_report(hdev, report);
3020:		else if (WACOM_FINGER_FIELD(field) && wacom->wacom_wac.touch_input)
3021:			wacom_wac_finger_report(hdev, report);
3022:	
3023:		return 0;
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_wac_event SourceFile:drivers/hid/wacom_wac.c SourceLine:2966 SourceSnippet:2961:		/* usage tests must precede field tests */
2962:		if (WACOM_BATTERY_USAGE(usage))
2963:			wacom_wac_battery_event(hdev, field, usage, value);
2964:		else if (WACOM_PAD_FIELD(field))
2965:			wacom_wac_pad_event(hdev, field, usage, value);
2966:		else if (WACOM_PEN_FIELD(field) && wacom->wacom_wac.pen_input)
2967:			wacom_wac_pen_event(hdev, field, usage, value);
2968:		else if (WACOM_FINGER_FIELD(field) && wacom->wacom_wac.touch_input)
2969:			wacom_wac_finger_event(hdev, field, usage, value);
2970:	}
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_wac_irq SourceFile:drivers/hid/wacom_wac.c SourceLine:3585 SourceSnippet:3580:			sync = false;
3581:			break;
3582:		}
3583:	
3584:		if (sync) {
3585:			if (wacom_wac->pen_input)
3586:				input_sync(wacom_wac->pen_input);
3587:			if (wacom_wac->touch_input)
3588:				input_sync(wacom_wac->touch_input);
3589:			if (wacom_wac->pad_input)
3590:				input_sync(wacom_wac->pad_input);
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_wac_irq SourceFile:drivers/hid/wacom_wac.c SourceLine:3586 SourceSnippet:3581:			break;
3582:		}
3583:	
3584:		if (sync) {
3585:			if (wacom_wac->pen_input)
3586:				input_sync(wacom_wac->pen_input);
3587:			if (wacom_wac->touch_input)
3588:				input_sync(wacom_wac->touch_input);
3589:			if (wacom_wac->pad_input)
3590:				input_sync(wacom_wac->pad_input);
3591:		}
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_wac_pen_event SourceFile:drivers/hid/wacom_wac.c SourceLine:2429 SourceSnippet:2424:			struct hid_usage *usage, __s32 value)
2425:	{
2426:		struct wacom *wacom = hid_get_drvdata(hdev);
2427:		struct wacom_wac *wacom_wac = &wacom->wacom_wac;
2428:		struct wacom_features *features = &wacom_wac->features;
2429:		struct input_dev *input = wacom_wac->pen_input;
2430:		unsigned equivalent_usage = wacom_equivalent_usage(usage->hid);
2431:	
2432:		if (wacom_wac->is_invalid_bt_frame)
2433:			return;
2434:	
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_wac_pen_report SourceFile:drivers/hid/wacom_wac.c SourceLine:2586 SourceSnippet:2581:	static void wacom_wac_pen_report(struct hid_device *hdev,
2582:			struct hid_report *report)
2583:	{
2584:		struct wacom *wacom = hid_get_drvdata(hdev);
2585:		struct wacom_wac *wacom_wac = &wacom->wacom_wac;
2586:		struct input_dev *input = wacom_wac->pen_input;
2587:		bool range = wacom_wac->hid_data.inrange_state;
2588:		bool sense = wacom_wac->hid_data.sense_state;
2589:		bool entering_range = !wacom_wac->tool[0] && range;
2590:	
2591:		if (wacom_wac->is_invalid_bt_frame)
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_wac_pen_usage_mapping SourceFile:drivers/hid/wacom_wac.c SourceLine:2341 SourceSnippet:2336:			struct hid_field *field, struct hid_usage *usage)
2337:	{
2338:		struct wacom *wacom = hid_get_drvdata(hdev);
2339:		struct wacom_wac *wacom_wac = &wacom->wacom_wac;
2340:		struct wacom_features *features = &wacom_wac->features;
2341:		struct input_dev *input = wacom_wac->pen_input;
2342:		unsigned equivalent_usage = wacom_equivalent_usage(usage->hid);
2343:	
2344:		switch (equivalent_usage) {
2345:		case HID_GD_X:
2346:			wacom_map_usage(input, usage, field, EV_ABS, ABS_X, 4);
] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:wacom_wac_report SourceFile:drivers/hid/wacom_wac.c SourceLine:3056 SourceSnippet:3051:	
3052:		wacom_wac_battery_pre_report(hdev, report);
3053:	
3054:		if (pad_in_hid_field && wacom_wac->pad_input)
3055:			wacom_wac_pad_pre_report(hdev, report);
3056:		if (pen_in_hid_field && wacom_wac->pen_input)
3057:			wacom_wac_pen_pre_report(hdev, report);
3058:		if (finger_in_hid_field && wacom_wac->touch_input)
3059:			wacom_wac_finger_pre_report(hdev, report);
3060:	
3061:		for (r = 0; r < report->maxfield; r++) {
]] TruncatedOutput:false]

121/4 2026/09/21 01:07 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 44399
							output: 40
							thoughts: 741
						

Thoughts:
**Analyzing Potential Null Pointer Dereference in Wacom Driver**

Okay, so the user is concerned about a possible null pointer dereference in the Wacom driver, specifically within `wacom_intuos_irq()`. I see that `wacom->pen_input` is being dereferenced there. The question boils down to *when* and *why* could this pointer be unexpectedly NULL. I've noted down all the places in the code where `wacom_wac->pen_input` is written to.

First, `wacom_allocate_inputs()` sets the initial allocation. Then, `wacom_setup_inputs()` is responsible for setting up the pen input's capabilities. It's in this function that a potential problem *could* arise. If `wacom_setup_pen_input_capabilities()` fails, `pen_input_dev` is freed and `wacom_wac->pen_input` is set to NULL. However, the user points out that the calling function, `wacom_bpt_irq()`, checks if the device is of pen type, so a failure due to a missing pen shouldn't happen, right? The user is suggesting that there might be another reason for the failure of `wacom_setup_pen_input_capabilities()`.

Further, `wacom_register_inputs()` explicitly NULLs out this pointer upon failure (in `fail:`). Finally, `wacom_release_resources()` also does a cleanup setting all input pointers to NULL, which could be relevant if it's called prematurely.

The user has presented a very well-thought-out set of questions. They're correctly identifying the potential race conditions and other scenarios where `wacom->pen_input` could be unexpectedly NULL. I need to investigate the other possible error conditions for `wacom_setup_pen_input_capabilities()` and identify other paths through the code where `wacom->pen_input` could be nullified after it's been initialized in `wacom_setup_inputs()`. I'll need to scrutinize the calling context of `wacom_bpt_irq()` and `wacom_intuos_irq()` to be sure that the pre-conditions are met and that these functions don't run out of order. Let's start by digging into `wacom_bpt_irq()`, `wacom_intuos_irq()` and checking driver flow. I'm going to look at lines 3280-3320 in `drivers/hid/wacom_wac.c` to see if I can find the answer.



122/4 2026/09/21 01:07 tool read-file
0m Args:
map[File:drivers/hid/wacom_wac.c FirstLine:3280 LineCount:40]

Results:
map[Contents:3280:	
3281:		return 1;
3282:	}
3283:	
3284:	static int wacom_bpt_irq(struct wacom_wac *wacom, size_t len)
3285:	{
3286:		struct wacom_features *features = &wacom->features;
3287:	
3288:		if ((features->type == INTUOSHT2) &&
3289:		    (features->device_type & WACOM_DEVICETYPE_PEN))
3290:			return wacom_intuos_irq(wacom);
3291:		else if (len == WACOM_PKGLEN_BBTOUCH)
3292:			return wacom_bpt_touch(wacom);
3293:		else if (len == WACOM_PKGLEN_BBTOUCH3)
3294:			return wacom_bpt3_touch(wacom);
3295:		else if (len == WACOM_PKGLEN_BBFUN || len == WACOM_PKGLEN_BBPEN)
3296:			return wacom_bpt_pen(wacom);
3297:	
3298:		return 0;
3299:	}
3300:	
3301:	static void wacom_bamboo_pad_pen_event(struct wacom_wac *wacom,
3302:			unsigned char *data)
3303:	{
3304:		unsigned char prefix;
3305:	
3306:		/*
3307:		 * We need to reroute the event from the debug interface to the
3308:		 * pen interface.
3309:		 * We need to add the report ID to the actual pen report, so we
3310:		 * temporary overwrite the first byte to prevent having to kzalloc/kfree
3311:		 * and memcpy the report.
3312:		 */
3313:		prefix = data[0];
3314:		data[0] = WACOM_REPORT_BPAD_PEN;
3315:	
3316:		/*
3317:		 * actually reroute the event.
3318:		 * No need to check if wacom->shared->pen is valid, hid_input_report()
3319:		 * will check for us.
]

123/4 2026/09/21 01:07 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 46374
							output: 40
							thoughts: 28
						

Thoughts:
Here's a summary of my thought process, as requested:

**Diving Deeper into the Wacom Driver**

Okay, so we've been examining the Wacom driver code, and now I need to shift my focus to a specific area to understand a potential interaction point or issue. My brain is telling me to dig into the `wacom_intuos_irq()` function, specifically between lines 1020 and 1060. That section likely handles interrupt processing for the Intuos line, which is a key area for input responsiveness and, potentially, where latency or data corruption problems could manifest. I need to understand what's happening within that code block: data parsing, buffer handling, possibly interrupt acknowledge routines – all of it. I want to see if any obvious bottlenecks or incorrect assumptions are present. Time to get down into the weeds of the interrupt handler and see what the Wacom dev team cooked up. Let's see if we can find some interesting tidbits.



124/4 2026/09/21 01:07 tool read-file
0m Args:
map[File:drivers/hid/wacom_wac.c FirstLine:1020 LineCount:40]

Results:
map[Contents:1020:	}
1021:	
1022:	static int wacom_intuos_irq(struct wacom_wac *wacom)
1023:	{
1024:		unsigned char *data = wacom->data;
1025:		struct input_dev *input = wacom->pen_input;
1026:		int result;
1027:	
1028:		if (data[0] != WACOM_REPORT_PENABLED &&
1029:		    data[0] != WACOM_REPORT_INTUOS_ID1 &&
1030:		    data[0] != WACOM_REPORT_INTUOS_ID2 &&
1031:		    data[0] != WACOM_REPORT_INTUOSPAD &&
1032:		    data[0] != WACOM_REPORT_INTUOS_PEN &&
1033:		    data[0] != WACOM_REPORT_CINTIQ &&
1034:		    data[0] != WACOM_REPORT_CINTIQPAD &&
1035:		    data[0] != WACOM_REPORT_INTUOS5PAD) {
1036:			dev_dbg(input->dev.parent,
1037:				"%s: received unknown report #%d\n", __func__, data[0]);
1038:	                return 0;
1039:		}
1040:	
1041:		/* process pad events */
1042:		result = wacom_intuos_pad(wacom);
1043:		if (result)
1044:			return result;
1045:	
1046:		/* process in/out prox events */
1047:		result = wacom_intuos_inout(wacom);
1048:		if (result)
1049:			return result - 1;
1050:	
1051:		/* process general packets */
1052:		result = wacom_intuos_general(wacom);
1053:		if (result)
1054:			return result - 1;
1055:	
1056:		return 0;
1057:	}
1058:	
1059:	static int wacom_remote_irq(struct wacom_wac *wacom_wac, size_t len)
]

125/4 2026/09/21 01:07 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 47280
							output: 42
							thoughts: 140
						

Thoughts:
**My Initial Thoughts on the Wacom Driver Code**

Okay, let's dissect this. I'm looking at `wacom_intuos_irq()` and immediately see: `struct input_dev *input = wacom->pen_input;`. Good, standard pointer assignment to an input device. Then, the conditional check for an unknown report: `if data[0] != WACOM_REPORT_...`, and the debug message: `dev_dbg(input->dev.parent, "%s: received unknown report #%d\n", __func__, data[0]);`. Wait a second... `input->dev.parent`... that's a direct dereference of `input`. No null check! That could be a problem if `pen_input` *isn't* properly initialized or goes awry. Gotta make a note to check that.

Now, I'm shifting focus to `wacom_intuos_pad()`. Is it using `pad_input` or `pen_input`? It's important to understand this because this is where the pad input processing is handled. The potential for the same null dereference vulnerability exists, depending on the implementation. Let's dig deeper and see what's actually happening in `wacom_intuos_pad()`. I need to understand its relationship to `pen_input`. This could be a critical area to examine for possible vulnerabilities if this code isn't implemented correctly.



126/4 2026/09/21 01:07 tool codesearch-definition-source
0m Args:
map[ContextFile:drivers/hid/wacom_wac.c Name:wacom_intuos_pad]

Results:
map[SourceCode: 513:	static int wacom_intuos_pad(struct wacom_wac *wacom)
 514:	{
 515:		struct wacom_features *features = &wacom->features;
 516:		unsigned char *data = wacom->data;
 517:		struct input_dev *input = wacom->pad_input;
 518:		int i;
 519:		int buttons = 0, nbuttons = features->numbered_buttons;
 520:		int keys = 0, nkeys = 0;
 521:		int ring1 = 0, ring2 = 0;
 522:		int strip1 = 0, strip2 = 0;
 523:		bool prox = false;
 524:		bool wrench = false, keyboard = false, mute_touch = false, menu = false,
 525:		     info = false;
 526:	
 527:		/* pad packets. Works as a second tool and is always in prox */
 528:		if (!(data[0] == WACOM_REPORT_INTUOSPAD || data[0] == WACOM_REPORT_INTUOS5PAD ||
 529:		      data[0] == WACOM_REPORT_CINTIQPAD))
 530:			return 0;
 531:	
 532:		if (features->type >= INTUOS4S && features->type <= INTUOS4L) {
 533:			buttons = (data[3] << 1) | (data[2] & 0x01);
 534:			ring1 = data[1];
 535:		} else if (features->type == DTK) {
 536:			buttons = data[6];
 537:		} else if (features->type == WACOM_13HD) {
 538:			buttons = (data[4] << 1) | (data[3] & 0x01);
 539:		} else if (features->type == WACOM_24HD) {
 540:			buttons = (data[8] << 8) | data[6];
 541:			ring1 = data[1];
 542:			ring2 = data[2];
 543:	
 544:			/*
 545:			 * Three "buttons" are available on the 24HD which are
 546:			 * physically implemented as a touchstrip. Each button
 547:			 * is approximately 3 bits wide with a 2 bit spacing.
 548:			 * The raw touchstrip bits are stored at:
 549:			 *    ((data[3] & 0x1f) << 8) | data[4])
 550:			 */
 551:			nkeys = 3;
 552:			keys = ((data[3] & 0x1C) ? 1<<2 : 0) |
 553:			       ((data[4] & 0xE0) ? 1<<1 : 0) |
 554:			       ((data[4] & 0x07) ? 1<<0 : 0);
 555:			keyboard = !!(data[4] & 0xE0);
 556:			info = !!(data[3] & 0x1C);
 557:	
 558:			if (features->oPid) {
 559:				mute_touch = !!(data[4] & 0x07);
 560:				if (mute_touch)
 561:					wacom->shared->is_touch_on =
 562:						!wacom->shared->is_touch_on;
 563:			} else {
 564:				wrench = !!(data[4] & 0x07);
 565:			}
 566:		} else if (features->type == WACOM_27QHD) {
 567:			nkeys = 3;
 568:			keys = data[2] & 0x07;
 569:	
 570:			wrench = !!(data[2] & 0x01);
 571:			keyboard = !!(data[2] & 0x02);
 572:	
 573:			if (features->oPid) {
 574:				mute_touch = !!(data[2] & 0x04);
 575:				if (mute_touch)
 576:					wacom->shared->is_touch_on =
 577:						!wacom->shared->is_touch_on;
 578:			} else {
 579:				menu = !!(data[2] & 0x04);
 580:			}
 581:			input_report_abs(input, ABS_X, be16_to_cpup((__be16 *)&data[4]));
 582:			input_report_abs(input, ABS_Y, be16_to_cpup((__be16 *)&data[6]));
 583:			input_report_abs(input, ABS_Z, be16_to_cpup((__be16 *)&data[8]));
 584:		} else if (features->type == CINTIQ_HYBRID) {
 585:			/*
 586:			 * Do not send hardware buttons under Android. They
 587:			 * are already sent to the system through GPIO (and
 588:			 * have different meaning).
 589:			 *
 590:			 * d-pad right  -> data[4] & 0x10
 591:			 * d-pad up     -> data[4] & 0x20
 592:			 * d-pad left   -> data[4] & 0x40
 593:			 * d-pad down   -> data[4] & 0x80
 594:			 * d-pad center -> data[3] & 0x01
 595:			 */
 596:			buttons = (data[4] << 1) | (data[3] & 0x01);
 597:		} else if (features->type == CINTIQ_COMPANION_2) {
 598:			/* d-pad right  -> data[2] & 0x10
 599:			 * d-pad up     -> data[2] & 0x20
 600:			 * d-pad left   -> data[2] & 0x40
 601:			 * d-pad down   -> data[2] & 0x80
 602:			 * d-pad center -> data[1] & 0x01
 603:			 */
 604:			buttons = ((data[2] >> 4) << 7) |
 605:			          ((data[1] & 0x04) << 4) |
 606:			          ((data[2] & 0x0F) << 2) |
 607:			          (data[1] & 0x03);
 608:		} else if (features->type >= INTUOS5S && features->type <= INTUOSPL) {
 609:			/*
 610:			 * ExpressKeys on Intuos5/Intuos Pro have a capacitive sensor in
 611:			 * addition to the mechanical switch. Switch data is
 612:			 * stored in data[4], capacitive data in data[5].
 613:			 *
 614:			 * Touch ring mode switch (data[3]) has no capacitive sensor
 615:			 */
 616:			buttons = (data[4] << 1) | (data[3] & 0x01);
 617:			ring1 = data[2];
 618:		} else {
 619:			if (features->type == WACOM_21UX2 || features->type == WACOM_22HD) {
 620:				buttons = (data[8] << 10) | ((data[7] & 0x01) << 9) |
 621:				          (data[6] << 1) | (data[5] & 0x01);
 622:	
 623:				if (features->type == WACOM_22HD) {
 624:					nkeys = 3;
 625:					keys = data[9] & 0x07;
 626:	
 627:					info = !!(data[9] & 0x01);
 628:					wrench = !!(data[9] & 0x02);
 629:				}
 630:			} else {
 631:				buttons = ((data[6] & 0x10) << 5)  |
 632:				          ((data[5] & 0x10) << 4)  |
 633:				          ((data[6] & 0x0F) << 4)  |
 634:				          (data[5] & 0x0F);
 635:			}
 636:			strip1 = ((data[1] & 0x1f) << 8) | data[2];
 637:			strip2 = ((data[3] & 0x1f) << 8) | data[4];
 638:		}
 639:	
 640:		prox = (buttons & ~(~0U << nbuttons)) | (keys & ~(~0U << nkeys)) |
 641:		       (ring1 & 0x80) | (ring2 & 0x80) | strip1 | strip2;
 642:	
 643:		wacom_report_numbered_buttons(input, nbuttons, buttons);
 644:	
 645:		for (i = 0; i < nkeys; i++)
 646:			input_report_key(input, KEY_PROG1 + i, keys & (1 << i));
 647:	
 648:		input_report_key(input, KEY_BUTTONCONFIG, wrench);
 649:		input_report_key(input, KEY_ONSCREEN_KEYBOARD, keyboard);
 650:		input_report_key(input, KEY_CONTROLPANEL, menu);
 651:		input_report_key(input, KEY_INFO, info);
 652:	
 653:		if (wacom->shared && wacom->shared->touch_input) {
 654:			input_report_switch(wacom->shared->touch_input,
 655:					    SW_MUTE_DEVICE,
 656:					    !wacom->shared->is_touch_on);
 657:			input_sync(wacom->shared->touch_input);
 658:		}
 659:	
 660:		input_report_abs(input, ABS_RX, strip1);
 661:		input_report_abs(input, ABS_RY, strip2);
 662:	
 663:		input_report_abs(input, ABS_WHEEL,    (ring1 & 0x80) ? (ring1 & 0x7f) : 0);
 664:		input_report_abs(input, ABS_THROTTLE, (ring2 & 0x80) ? (ring2 & 0x7f) : 0);
 665:	
 666:		input_report_key(input, wacom->tool[1], prox ? 1 : 0);
 667:		input_report_abs(input, ABS_MISC, prox ? PAD_DEVICE_ID : 0);
 668:	
 669:		input_event(input, EV_MSC, MSC_SERIAL, 0xffffffff);
 670:	
 671:		return 1;
 672:	}
 SourceFile:drivers/hid/wacom_wac.c]

127/4 2026/09/21 01:07 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 50896
							output: 29
							thoughts: 1397
						

Thoughts:
**Deep Dive into Wacom Driver Logic**

Okay, here's the breakdown of my thinking as I delve into this Wacom driver issue. First, I'm zeroing in on the problematic scenario: a NULL `wacom->pen_input` within `wacom_intuos_irq()`.  The code snippet highlights that if the received report's first byte is unknown, it logs a debug message and returns.  My immediate questions are: Why is `wacom->pen_input` possibly NULL at this point? And is there a bigger problem?

My initial instinct is to consider the data flow and potential race conditions. I see that `wacom_intuos_irq()`, `wacom_intuos_inout()`, and `wacom_intuos_general()` all access the `data` buffer and the `pen_input` device, along with the `features` struct. These are all passed as arguments to each respective function. Therefore, there can't be a race condition, or memory corruption.

I am now thinking about how the `features->device_type` is determined, and when it is set. The questions are:

*   Where does `features->device_type` come from? Where and when is it set?
*   Could `features->device_type` be modified *after* `wacom_setup_inputs()`?
*   Could `wacom_bpt_irq()` be called *before* `wacom_setup_inputs()` completes?
*   Could `wacom_setup_pen_input_capabilities()` return an error for another reason?
*   Could `wacom->pen_input` be freed/set to NULL somewhere else after `wacom_setup_inputs()`?
*   Are there ANY other ways `wacom->pen_input` can be NULL when `wacom_intuos_irq()` is called?

Let's start by methodically addressing these concerns.

First, the user asks about the function `wacom_setup_pen_input_capabilities()`:

"Could `wacom_setup_pen_input_capabilities()` return an error for another reason?"

I'm going to exhaustively examine that function. I'm focusing on potential error paths. Let's look at the implementation:

I read through the code in `wacom_setup_pen_input_capabilities()` to see if there is any other error that can cause a non-zero return value:

```c
int wacom_setup_pen_input_capabilities(struct input_dev *input_dev,
				   struct wacom_wac *wacom_wac)
{
	struct wacom_features *features = &wacom_wac->features;

	if (!(features->device_type & WACOM_DEVICETYPE_PEN))
		return -ENODEV;

	if (features->device_type & WACOM_DEVICETYPE_DIRECT)
		__set_bit(INPUT_PROP_DIRECT, input_dev->propbit);
	else
		__set_bit(INPUT_PROP_POINTER, input_dev->propbit);

	if (features->type == HID_GENERIC)
		/* setup has already been done */
		return 0;

	input_dev->evbit[0] |= BIT_MASK(EV_KEY) | BIT_MASK(EV_ABS);
	__set_bit(BTN_TOUCH, input_dev->keybit);
	__set_bit(ABS_MISC, input_dev->absbit);

	input_set_abs_params(input_dev, ABS_X, 0 + features->offset_left,
			     features->x_max - features->offset_right,
			     features->x_fuzz, 0);
	input_set_abs_params(input_dev, ABS_Y, 0 + features->offset_top,
			     features->y_max - features->offset_bottom,
			     features->y_fuzz, 0);
	input_set_abs_params(input_dev, ABS_PRESSURE, 0,
		features->pressure_max, features->pressure_fuzz, 0);

	/* penabled devices have fixed resolution for each model */
	input_abs_set_res(input_dev, ABS_X, features->x_resolution);
	input_abs_set_res(input_dev, ABS_Y, features->y_resolution);

	switch (features->type) {
```

I see that it checks `if (!(features->device_type & WACOM_DEVICETYPE_PEN


128/4 2026/09/21 01:07 tool grepper
0m Args:
map[Expression:wacom_setup_inputs PathPrefix:drivers/hid]

Results:
map[Output:drivers/hid/wacom_sys.c=2108=static int wacom_allocate_inputs(struct wacom *wacom)
--
drivers/hid/wacom_sys.c-2126-
drivers/hid/wacom_sys.c:2127:static int wacom_setup_inputs(struct wacom *wacom)
drivers/hid/wacom_sys.c-2128-{
--
drivers/hid/wacom_sys.c=2370=static int wacom_parse_and_register(struct wacom *wacom, bool wireless)
--
drivers/hid/wacom_sys.c-2446-
drivers/hid/wacom_sys.c:2447:	error = wacom_setup_inputs(wacom);
drivers/hid/wacom_sys.c-2448-	if (error)
]

129/4 2026/09/21 01:07 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 53572
							output: 39
							thoughts: 29
						

Thoughts:
Okay, let's dive into this Wacom driver initialization. I need to get a handle on how this thing gets off the ground.

**Diving into the Wacom Driver Initialization**

Right, so I'm going to start by tracing the initialization of this Wacom driver, specifically focusing on `wacom_parse_and_register()` and `wacom_probe()`. The goal is to get a solid understanding of the entire initialization sequence from the driver's perspective. I need to identify exactly *how* the driver is being bound to the device, the data it's pulling from the device, and the key steps involved in registering itself with the input subsystem. I'm looking for the critical points: what's the driver looking for in the hardware, how it's configuring itself, and what it's telling the kernel about its capabilities. Knowing this, I should be able to identify any points for optimization or potential areas that might be causing specific issues down the line with the tablet. I need to be able to map this against my understanding of the relevant protocols and kernel subsystems. I want to see if they are doing anything clever, or potentially inefficient.



130/4 2026/09/21 01:07 tool read-file
0m Args:
map[File:drivers/hid/wacom_sys.c FirstLine:2440 LineCount:80]

Results:
map[Contents:2440:			goto fail;
2441:		}
2442:	
2443:		error = wacom_add_shared_data(hdev);
2444:		if (error)
2445:			goto fail;
2446:	
2447:		error = wacom_setup_inputs(wacom);
2448:		if (error)
2449:			goto fail;
2450:	
2451:		if (features->type == HID_GENERIC)
2452:			connect_mask |= HID_CONNECT_DRIVER;
2453:	
2454:		/* Regular HID work starts now */
2455:		error = hid_hw_start(hdev, connect_mask);
2456:		if (error) {
2457:			hid_err(hdev, "hw start failed\n");
2458:			goto fail;
2459:		}
2460:	
2461:		error = wacom_register_inputs(wacom);
2462:		if (error)
2463:			goto fail_hw_stop;
2464:	
2465:		if (wacom->wacom_wac.features.device_type & WACOM_DEVICETYPE_PAD) {
2466:			error = wacom_initialize_leds(wacom);
2467:			if (error)
2468:				goto fail_hw_stop;
2469:	
2470:			error = wacom_initialize_remotes(wacom);
2471:			if (error)
2472:				goto fail_hw_stop;
2473:		}
2474:	
2475:		if (!wireless) {
2476:			/* Note that if query fails it is not a hard failure */
2477:			wacom_query_tablet_data(wacom);
2478:		}
2479:	
2480:		/* touch only Bamboo doesn't support pen */
2481:		if ((features->type == BAMBOO_TOUCH) &&
2482:		    (features->device_type & WACOM_DEVICETYPE_PEN)) {
2483:			cancel_delayed_work_sync(&wacom->init_work);
2484:			_wacom_query_tablet_data(wacom);
2485:			error = -ENODEV;
2486:			goto fail_hw_stop;
2487:		}
2488:	
2489:		if (features->device_type & WACOM_DEVICETYPE_WL_MONITOR) {
2490:			error = hid_hw_open(hdev);
2491:			if (error) {
2492:				hid_err(hdev, "hw open failed\n");
2493:				goto fail_hw_stop;
2494:			}
2495:		}
2496:	
2497:		wacom_set_shared_values(wacom_wac);
2498:		devres_close_group(&hdev->dev, wacom);
2499:	
2500:		return 0;
2501:	
2502:	fail_hw_stop:
2503:		hid_hw_stop(hdev);
2504:	fail:
2505:		wacom_release_resources(wacom);
2506:		return error;
2507:	}
2508:	
2509:	static void wacom_wireless_work(struct work_struct *work)
2510:	{
2511:		struct wacom *wacom = container_of(work, struct wacom, wireless_work);
2512:		struct usb_device *usbdev = wacom->usbdev;
2513:		struct wacom_wac *wacom_wac = &wacom->wacom_wac;
2514:		struct hid_device *hdev1, *hdev2;
2515:		struct wacom *wacom1, *wacom2;
2516:		struct wacom_wac *wacom_wac1, *wacom_wac2;
2517:		int error;
2518:	
2519:		/*
]

131/4 2026/09/21 01:07 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 55036
							output: 31
							thoughts: 727
						

Thoughts:
**Analyzing the Wacom Input Registration Flow**

Okay, let's dive into this `wacom_parse_and_register()` function. I need to understand the device registration sequence, especially how it handles failures. My first thought is to zero in on how errors are managed after a failed `wacom_register_inputs(wacom)` call. It looks like a failure there goes to `fail_hw_stop`, which calls `hid_hw_stop(hdev)` and then to `fail:`, which calls `wacom_release_resources(wacom)` and returns the error code. Good, that's clean.

Now, let's zoom in on `wacom_register_inputs(wacom)`. I see that it tries to register input devices: pen, touch, and pad. Each one has its own `input_dev` and a failure during the `input_register_device()` call for any of them triggers a `goto fail`.  On `fail`, the input devices are set to NULL before returning the error. Okay, seems standard.

Now, back to the larger context. In `wacom_parse_and_register`, the order matters:  first `hid_hw_start(hdev, connect_mask)` then `wacom_register_inputs(wacom)`.  `hid_hw_start` is called before the input devices are registered. That's a key point. This raises a question. Does `hid_hw_start` *start* receiving reports or could an IRQ / raw_event come in? Also, does it open the device? My concern here is what happens if `wacom_register_inputs` fails after `hid_hw_start` has done something. What actually opens the HID device?  I need to understand what functions might be called from an interrupt or raw event context. I should check how and when `wacom_raw_event` and `hid_hw_open` are called! I will search for callers of `wacom_bpt_irq` and `wacom_wac_irq` to see what is running.



132/4 2026/09/21 01:07 tool grepper
0m Args:
map[Expression:wacom_wac_irq PathPrefix:drivers/hid]

Results:
map[Output:drivers/hid/wacom.h=229=extern const struct hid_device_id wacom_ids[];
drivers/hid/wacom.h-230-
drivers/hid/wacom.h:231:void wacom_wac_irq(struct wacom_wac *wacom_wac, size_t len);
drivers/hid/wacom.h-232-void wacom_setup_device_quirks(struct wacom *wacom);
--
drivers/hid/wacom_sys.c=169=static int wacom_raw_event(struct hid_device *hdev, struct hid_report *report,
--
drivers/hid/wacom_sys.c-181-
drivers/hid/wacom_sys.c:182:	wacom_wac_irq(&wacom->wacom_wac, size);
drivers/hid/wacom_sys.c-183-
--
drivers/hid/wacom_wac.c=3427=static int wacom_status_irq(struct wacom_wac *wacom_wac, size_t len)
--
drivers/hid/wacom_wac.c-3460-
drivers/hid/wacom_wac.c:3461:void wacom_wac_irq(struct wacom_wac *wacom_wac, size_t len)
drivers/hid/wacom_wac.c-3462-{
]

133/4 2026/09/21 01:07 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 56619
							output: 38
							thoughts: 26
						

Thoughts:
Okay, here we go...

**Diving into the Wacom Driver**

Alright, time to crack open `drivers/hid/wacom_sys.c` and have a look at the `wacom_raw_event` function. I'm keen to see how they're handling the raw input data coming from the Wacom devices. I'm especially interested in how they process the different event types - pressure, tilt, proximity, button presses, the works. I want to see how they're doing the initial decoding and formatting of the data before passing it up the input event chain. I'll be looking for any potential optimizations, error handling, and perhaps some interesting techniques they use to account for the nuances of different Wacom models. This is where the rubber meets the road, where the raw sensor data gets translated into something usable by the rest of the system, and that's always interesting to dissect. Let's get to it!



134/4 2026/09/21 01:08 tool read-file
0m Args:
map[File:drivers/hid/wacom_sys.c FirstLine:165 LineCount:40]

Results:
map[Contents: 165:	
 166:		return insert && !flush;
 167:	}
 168:	
 169:	static int wacom_raw_event(struct hid_device *hdev, struct hid_report *report,
 170:			u8 *raw_data, int size)
 171:	{
 172:		struct wacom *wacom = hid_get_drvdata(hdev);
 173:	
 174:		if (wacom->wacom_wac.features.type == BOOTLOADER)
 175:			return 0;
 176:	
 177:		if (wacom_wac_pen_serial_enforce(hdev, report, raw_data, size))
 178:			return -1;
 179:	
 180:		wacom->wacom_wac.data = raw_data;
 181:	
 182:		wacom_wac_irq(&wacom->wacom_wac, size);
 183:	
 184:		return 0;
 185:	}
 186:	
 187:	static int wacom_open(struct input_dev *dev)
 188:	{
 189:		struct wacom *wacom = input_get_drvdata(dev);
 190:	
 191:		return hid_hw_open(wacom->hdev);
 192:	}
 193:	
 194:	static void wacom_close(struct input_dev *dev)
 195:	{
 196:		struct wacom *wacom = input_get_drvdata(dev);
 197:	
 198:		/*
 199:		 * wacom->hdev should never be null, but surprisingly, I had the case
 200:		 * once while unplugging the Wacom Wireless Receiver.
 201:		 */
 202:		if (wacom->hdev)
 203:			hid_hw_close(wacom->hdev);
 204:	}
]

135/4 2026/09/21 01:08 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 57456
							output: 41
							thoughts: 90
						

Thoughts:
Here's my thought process, as I delve into this code:

**Analyzing the Wacom Interrupt Handling**

Okay, so I'm looking into how Wacom tablets handle interrupt events. First, the `wacom_raw_event` function seems to be the entry point. It appears to call `wacom_wac_irq` with the `wacom->wacom_wac` data structure and a size parameter. Got it, that's the starting point.

Now, I need to understand what `wacom_wac_irq` *actually* does. So, I need to head over to `drivers/hid/wacom_wac.c` and hunt for that function. It looks like the relevant code will be around line 3461. Let's see what's happening in there. Time to dig in!



136/4 2026/09/21 01:08 tool read-file
0m Args:
map[File:drivers/hid/wacom_wac.c FirstLine:3460 LineCount:100]

Results:
map[Contents:3460:	
3461:	void wacom_wac_irq(struct wacom_wac *wacom_wac, size_t len)
3462:	{
3463:		bool sync;
3464:	
3465:		switch (wacom_wac->features.type) {
3466:		case PENPARTNER:
3467:			sync = wacom_penpartner_irq(wacom_wac);
3468:			break;
3469:	
3470:		case PL:
3471:			sync = wacom_pl_irq(wacom_wac);
3472:			break;
3473:	
3474:		case WACOM_G4:
3475:		case GRAPHIRE:
3476:		case GRAPHIRE_BT:
3477:		case WACOM_MO:
3478:			sync = wacom_graphire_irq(wacom_wac);
3479:			break;
3480:	
3481:		case PTU:
3482:			sync = wacom_ptu_irq(wacom_wac);
3483:			break;
3484:	
3485:		case DTU:
3486:			sync = wacom_dtu_irq(wacom_wac);
3487:			break;
3488:	
3489:		case DTUS:
3490:		case DTUSX:
3491:			sync = wacom_dtus_irq(wacom_wac);
3492:			break;
3493:	
3494:		case INTUOS:
3495:		case INTUOS3S:
3496:		case INTUOS3:
3497:		case INTUOS3L:
3498:		case INTUOS4S:
3499:		case INTUOS4:
3500:		case INTUOS4L:
3501:		case CINTIQ:
3502:		case WACOM_BEE:
3503:		case WACOM_13HD:
3504:		case WACOM_21UX2:
3505:		case WACOM_22HD:
3506:		case WACOM_24HD:
3507:		case WACOM_27QHD:
3508:		case DTK:
3509:		case CINTIQ_HYBRID:
3510:		case CINTIQ_COMPANION_2:
3511:			sync = wacom_intuos_irq(wacom_wac);
3512:			break;
3513:	
3514:		case INTUOS4WL:
3515:			sync = wacom_intuos_bt_irq(wacom_wac, len);
3516:			break;
3517:	
3518:		case WACOM_24HDT:
3519:		case WACOM_27QHDT:
3520:			sync = wacom_24hdt_irq(wacom_wac);
3521:			break;
3522:	
3523:		case INTUOS5S:
3524:		case INTUOS5:
3525:		case INTUOS5L:
3526:		case INTUOSPS:
3527:		case INTUOSPM:
3528:		case INTUOSPL:
3529:			if (len == WACOM_PKGLEN_BBTOUCH3)
3530:				sync = wacom_bpt3_touch(wacom_wac);
3531:			else if (wacom_wac->data[0] == WACOM_REPORT_USB)
3532:				sync = wacom_status_irq(wacom_wac, len);
3533:			else
3534:				sync = wacom_intuos_irq(wacom_wac);
3535:			break;
3536:	
3537:		case INTUOSP2_BT:
3538:		case INTUOSP2S_BT:
3539:		case INTUOSHT3_BT:
3540:			sync = wacom_intuos_pro2_bt_irq(wacom_wac, len);
3541:			break;
3542:	
3543:		case TABLETPC:
3544:		case TABLETPCE:
3545:		case TABLETPC2FG:
3546:		case MTSCREEN:
3547:		case MTTPC:
3548:		case MTTPC_B:
3549:			sync = wacom_tpc_irq(wacom_wac, len);
3550:			break;
3551:	
3552:		case BAMBOO_PT:
3553:		case BAMBOO_PEN:
3554:		case BAMBOO_TOUCH:
3555:		case INTUOSHT:
3556:		case INTUOSHT2:
3557:			if (wacom_wac->data[0] == WACOM_REPORT_USB)
3558:				sync = wacom_status_irq(wacom_wac, len);
3559:			else
]

137/4 2026/09/21 01:08 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 59213
							output: 39
							thoughts: 1435
						

Thoughts:
**Deep Dive into Potential Wacom Driver Issues**

Okay, let's break this down. My initial thought process is centered around troubleshooting a potential issue, likely a NULL pointer dereference, within the Wacom driver.  I'm presented with a scenario where I need to understand why the `pen_input` might be NULL in a raw event handler.

First, I examine the interrupt handling logic (specifically the cases for various Wacom device types like `BAMBOO_PT`, `INTUOSHT`). I see the `wacom_bpt_irq()` function, and within it, the conditional check for `INTUOSHT2` devices with pen capabilities that leads to `wacom_intuos_irq()`. This suggests the path of the execution, from the interrupt handler.

Then, I'm going through the questions about the `pen_input` pointer being NULL. The first hypothesis is, "could `wacom_setup_pen_input_capabilities()` return an error for another reason?" I methodically check the code, specifically line 3806, where the function returns `-ENODEV` if `!(features->device_type & WACOM_DEVICETYPE_PEN)`. This clarifies that this function *only* returns an error if a pen isn't present, which is expected.

Next, I delve into the more complex question: "Or could `wacom->pen_input` be freed/set to NULL somewhere else after `wacom_setup_inputs()`?" This is where the detective work begins.  I track down *all* write operations to `wacom_wac->pen_input`, noting that it's initialized in `wacom_allocate_inputs()`, potentially set in `wacom_setup_inputs()` with `wacom_setup_pen_input_capabilities()`, and possibly modified in `wacom_register_inputs()`.

The key here is `wacom_register_inputs()`. I see that if the registration of either touch or pad input devices fails, the driver sets `wacom_wac->pen_input = NULL` *and* returns an error.  My expert intuition kicks in:  a registration failure of one input device could lead to a NULL `pen_input`. This prompts the crucial question: Does the probe continue to receive events after failure? I need to know the control flow to identify where the events come in, to understand the failure conditions.

I then check where `wacom_register_inputs()` is called: in `wacom_parse_and_register()`. The implication is if `wacom_register_inputs()` fails, the probe fails. This is good to know, but doesn't solve the problem, yet. I also see that `wacom_release_resources()` *also* sets the pen input to NULL.

Now, my mind shifts to timing: can an interrupt (or a raw event) be received after `wacom_release_resources()` is called? Could there be a race condition where the probe fails after an input device has sent data? Or even an allocation failure *before* the setup phase?

I then re-examine the `wacom_setup_inputs()` function. This function returns an error if any input device is NULL. The check suggests a NULL input before it's set. This prompts me to consider scenarios related to `hid_hw_start` since events are tied to hardware initialisation. I realize I need to check the exact order of calls, especially regarding `hid_hw_start` calls, to correlate initialisation, events, and potential failures. This requires going back to the beginning of the `wacom_parse_and_register()` function.



138/4 2026/09/21 01:08 tool read-file
0m Args:
map[File:drivers/hid/wacom_sys.c FirstLine:2370 LineCount:80]

Results:
map[Contents:2370:	static int wacom_parse_and_register(struct wacom *wacom, bool wireless)
2371:	{
2372:		struct wacom_wac *wacom_wac = &wacom->wacom_wac;
2373:		struct wacom_features *features = &wacom_wac->features;
2374:		struct hid_device *hdev = wacom->hdev;
2375:		int error;
2376:		unsigned int connect_mask = HID_CONNECT_HIDRAW;
2377:	
2378:		features->pktlen = wacom_compute_pktlen(hdev);
2379:		if (!features->pktlen)
2380:			return -ENODEV;
2381:	
2382:		if (!devres_open_group(&hdev->dev, wacom, GFP_KERNEL))
2383:			return -ENOMEM;
2384:	
2385:		error = wacom_devm_kfifo_alloc(wacom);
2386:		if (error)
2387:			goto fail;
2388:	
2389:		wacom->resources = true;
2390:	
2391:		error = wacom_allocate_inputs(wacom);
2392:		if (error)
2393:			goto fail;
2394:	
2395:		/*
2396:		 * Bamboo Pad has a generic hid handling for the Pen, and we switch it
2397:		 * into debug mode for the touch part.
2398:		 * We ignore the other interfaces.
2399:		 */
2400:		if (features->type == BAMBOO_PAD) {
2401:			if (features->pktlen == WACOM_PKGLEN_PENABLED) {
2402:				features->type = HID_GENERIC;
2403:			} else if ((features->pktlen != WACOM_PKGLEN_BPAD_TOUCH) &&
2404:				   (features->pktlen != WACOM_PKGLEN_BPAD_TOUCH_USB)) {
2405:				error = -ENODEV;
2406:				goto fail;
2407:			}
2408:		}
2409:	
2410:		/* set the default size in case we do not get them from hid */
2411:		wacom_set_default_phy(features);
2412:	
2413:		/* Retrieve the physical and logical size for touch devices */
2414:		wacom_retrieve_hid_descriptor(hdev, features);
2415:		wacom_setup_device_quirks(wacom);
2416:	
2417:		if (features->device_type == WACOM_DEVICETYPE_NONE &&
2418:		    features->type != WIRELESS) {
2419:			error = features->type == HID_GENERIC ? -ENODEV : 0;
2420:	
2421:			dev_warn(&hdev->dev, "Unknown device_type for '%s'. %s.",
2422:				 hdev->name,
2423:				 error ? "Ignoring" : "Assuming pen");
2424:	
2425:			if (error)
2426:				goto fail;
2427:	
2428:			features->device_type |= WACOM_DEVICETYPE_PEN;
2429:		}
2430:	
2431:		wacom_calculate_res(features);
2432:	
2433:		wacom_update_name(wacom, wireless ? " (WL)" : "");
2434:	
2435:		/* pen only Bamboo neither support touch nor pad */
2436:		if ((features->type == BAMBOO_PEN) &&
2437:		    ((features->device_type & WACOM_DEVICETYPE_TOUCH) ||
2438:		    (features->device_type & WACOM_DEVICETYPE_PAD))) {
2439:			error = -ENODEV;
2440:			goto fail;
2441:		}
2442:	
2443:		error = wacom_add_shared_data(hdev);
2444:		if (error)
2445:			goto fail;
2446:	
2447:		error = wacom_setup_inputs(wacom);
2448:		if (error)
2449:			goto fail;
]

139/4 2026/09/21 01:08 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 62683
							output: 32
							thoughts: 35
						

Thoughts:
**Tracing the Execution Path**

Okay, hold on a second. I need to understand the control flow here. Specifically, I'm trying to pinpoint where the function `wacom_parse_and_register` is being invoked. That's the key to understanding how this particular subsystem is initialized and integrated. My immediate next step is to perform a thorough check. I'll need to meticulously examine all instances in the codebase where `wacom_parse_and_register` is called. That should give me the complete picture I'm looking for.



140/4 2026/09/21 01:08 tool codesearch-find-references
0m Args:
map[IncludeSnippetLines:5 Name:wacom_parse_and_register]

Results:
map[References:[map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:wacom_mode_change_work SourceFile:drivers/hid/wacom_sys.c SourceLine:2808 SourceSnippet:2803:			wacom2->wacom_wac.has_mode_change = true;
2804:			wacom2->wacom_wac.is_direct_mode = is_direct;
2805:		}
2806:	
2807:		if (wacom1) {
2808:			error = wacom_parse_and_register(wacom1, false);
2809:			if (error)
2810:				return;
2811:		}
2812:	
2813:		if (wacom2) {
] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:wacom_mode_change_work SourceFile:drivers/hid/wacom_sys.c SourceLine:2814 SourceSnippet:2809:			if (error)
2810:				return;
2811:		}
2812:	
2813:		if (wacom2) {
2814:			error = wacom_parse_and_register(wacom2, false);
2815:			if (error)
2816:				return;
2817:		}
2818:	
2819:		return;
] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:wacom_probe SourceFile:drivers/hid/wacom_sys.c SourceLine:2885 SourceSnippet:2880:		if (features->type == BOOTLOADER) {
2881:			hid_warn(hdev, "Using device in hidraw-only mode");
2882:			return hid_hw_start(hdev, HID_CONNECT_HIDRAW);
2883:		}
2884:	
2885:		error = wacom_parse_and_register(wacom, false);
2886:		if (error)
2887:			return error;
2888:	
2889:		if (hdev->bus == BUS_BLUETOOTH) {
2890:			error = device_create_file(&hdev->dev, &dev_attr_speed);
] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:wacom_wireless_work SourceFile:drivers/hid/wacom_sys.c SourceLine:2567 SourceSnippet:2562:			wacom_wac1->features =
2563:				*((struct wacom_features *)id->driver_data);
2564:	
2565:			wacom_wac1->pid = wacom_wac->pid;
2566:			hid_hw_stop(hdev1);
2567:			error = wacom_parse_and_register(wacom1, true);
2568:			if (error)
2569:				goto fail;
2570:	
2571:			/* Touch interface */
2572:			if (wacom_wac1->features.touch_max ||
] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:wacom_wireless_work SourceFile:drivers/hid/wacom_sys.c SourceLine:2579 SourceSnippet:2574:			    wacom_wac1->features.type <= BAMBOO_PT)) {
2575:				wacom_wac2->features =
2576:					*((struct wacom_features *)id->driver_data);
2577:				wacom_wac2->pid = wacom_wac->pid;
2578:				hid_hw_stop(hdev2);
2579:				error = wacom_parse_and_register(wacom2, true);
2580:				if (error)
2581:					goto fail;
2582:			}
2583:	
2584:			if (strscpy(wacom_wac->name, wacom_wac1->name,
]] TruncatedOutput:false]

141/4 2026/09/21 01:08 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 64002
							output: 26
							thoughts: 971
						

Thoughts:
**Analyzing the Call Paths to `wacom_intuos_irq()` and Potential Null Pointer Dereference**

Okay, let's break this down systematically. My objective is to understand how `wacom_intuos_irq()` is called and, crucially, to identify potential scenarios that could lead to a null pointer dereference on `wacom->pen_input`. The prompt specifically highlights a conditional call within `wacom_bpt_irq()` that seems concerning.

First, I need to map out every location where `wacom_intuos_irq()` is invoked. The initial grep revealed three instances: within `wacom_intuos_bt_process_data()` (indirectly through `wacom_intuos_bt_irq()`), directly in `wacom_bpt_irq()`, and multiple times inside `wacom_wac_irq()`.

The critical point raised is that `wacom_intuos_irq()` is called from `wacom_bpt_irq()` under these conditions: `features->type == INTUOSHT2` and `features->device_type & WACOM_DEVICETYPE_PEN`. This is immediately concerning because `wacom->pen_input` is dereferenced in `wacom_intuos_irq()`. `wacom->pen_input` *can* be set to `NULL` if `wacom_setup_pen_input_capabilities()` returns an error, which happens if `!(features->device_type & WACOM_DEVICETYPE_PEN)`. However, the conditional check within `wacom_bpt_irq()` for `WACOM_DEVICETYPE_PEN` *should* prevent this, at least in theory.

This necessitates more rigorous investigation. My next step is to methodically investigate potential causes for the null pointer. It appears I need to investigate a series of questions:

1.  **Are there other ways** `wacom_setup_pen_input_capabilities()` could return an error besides `!(features->device_type & WACOM_DEVICETYPE_PEN)`? I need to check the function's implementation thoroughly for other error conditions.
2.  **Is there a possibility that** `wacom->pen_input` is freed or set to `NULL` *after* `wacom_setup_inputs()` is completed? I will need to search the code for any instances where this happens and determine the conditions under which it could occur.
3.  **Could** `features->device_type` be modified *after* `wacom_setup_inputs()`? This seems unlikely, but I have to rule it out. If `features->device_type` were changed *after* initialization, it could lead to unexpected behavior. To check this, I will need to search the source for all writes to `device_type`.
4.  **Is it possible that** `wacom_bpt_irq()` is called *before* `wacom_setup_inputs()` has fully completed? This would be a race condition, and it's a critical point to consider. I will need to understand the device initialization sequence.

I'll start by checking all writes to `device_type` within the relevant directory.



142/4 2026/09/21 01:08 tool grepper
0m Args:
map[Expression:device_type PathPrefix:drivers/hid]

Results:
map[Output:
Full output is too long, showing 500 out of 580 lines.
Use more precise expression if possible.

drivers/hid/hid-lenovo-go.c=99=struct command_report {
--
drivers/hid/hid-lenovo-go.c-103-	u8 sub_cmd;
drivers/hid/hid-lenovo-go.c:104:	u8 device_type;
drivers/hid/hid-lenovo-go.c-105-	u8 data[59];
--
drivers/hid/hid-lenovo-go.c=230=static const char *const rumble_mode_text[] = {
--
drivers/hid/hid-lenovo-go.c-243-
drivers/hid/hid-lenovo-go.c:244:enum cal_device_type {
drivers/hid/hid-lenovo-go.c-245-	CALDEV_GYROSCOPE = 0x01,
--
drivers/hid/hid-lenovo-go.c=334=static int hid_go_version_event(struct command_report *cmd_rep)
--
drivers/hid/hid-lenovo-go.c-337-	case PRODUCT_VERSION:
drivers/hid/hid-lenovo-go.c:338:		switch (cmd_rep->device_type) {
drivers/hid/hid-lenovo-go.c-339-		case USB_MCU:
--
drivers/hid/hid-lenovo-go.c-358-	case PROTOCOL_VERSION:
drivers/hid/hid-lenovo-go.c:359:		switch (cmd_rep->device_type) {
drivers/hid/hid-lenovo-go.c-360-		case USB_MCU:
--
drivers/hid/hid-lenovo-go.c-379-	case FIRMWARE_VERSION:
drivers/hid/hid-lenovo-go.c:380:		switch (cmd_rep->device_type) {
drivers/hid/hid-lenovo-go.c-381-		case USB_MCU:
--
drivers/hid/hid-lenovo-go.c-400-	case HARDWARE_VERSION:
drivers/hid/hid-lenovo-go.c:401:		switch (cmd_rep->device_type) {
drivers/hid/hid-lenovo-go.c-402-		case USB_MCU:
--
drivers/hid/hid-lenovo-go.c-421-	case HARDWARE_GENERATION:
drivers/hid/hid-lenovo-go.c:422:		switch (cmd_rep->device_type) {
drivers/hid/hid-lenovo-go.c-423-		case USB_MCU:
--
drivers/hid/hid-lenovo-go.c=443=static int hid_go_feature_status_event(struct command_report *cmd_rep)
--
drivers/hid/hid-lenovo-go.c-448-	case FEATURE_IMU_ENABLE:
drivers/hid/hid-lenovo-go.c:449:		switch (cmd_rep->device_type) {
drivers/hid/hid-lenovo-go.c-450-		case LEFT_CONTROLLER:
--
drivers/hid/hid-lenovo-go.c-459-	case FEATURE_IMU_BYPASS:
drivers/hid/hid-lenovo-go.c:460:		switch (cmd_rep->device_type) {
drivers/hid/hid-lenovo-go.c-461-		case LEFT_CONTROLLER:
--
drivers/hid/hid-lenovo-go.c-474-	case FEATURE_AUTO_SLEEP_TIME:
drivers/hid/hid-lenovo-go.c:475:		switch (cmd_rep->device_type) {
drivers/hid/hid-lenovo-go.c-476-		case LEFT_CONTROLLER:
--
drivers/hid/hid-lenovo-go.c=500=static int hid_go_motor_event(struct command_report *cmd_rep)
--
drivers/hid/hid-lenovo-go.c-508-	case VIBRATION_NOTIFY_ENABLE:
drivers/hid/hid-lenovo-go.c:509:		switch (cmd_rep->device_type) {
drivers/hid/hid-lenovo-go.c-510-		case LEFT_CONTROLLER:
--
drivers/hid/hid-lenovo-go.c-520-	case RUMBLE_MODE:
drivers/hid/hid-lenovo-go.c:521:		switch (cmd_rep->device_type) {
drivers/hid/hid-lenovo-go.c-522-		case LEFT_CONTROLLER:
--
drivers/hid/hid-lenovo-go.c=578=static int hid_go_device_status_event(struct command_report *cmd_rep)
drivers/hid/hid-lenovo-go.c-579-{
drivers/hid/hid-lenovo-go.c:580:	switch (cmd_rep->device_type) {
drivers/hid/hid-lenovo-go.c-581-	case LEFT_CONTROLLER:
--
drivers/hid/hid-lenovo-go.c=761=static ssize_t version_show(struct device *dev, struct device_attribute *attr,
drivers/hid/hid-lenovo-go.c-762-			    char *buf, enum version_data_index index,
drivers/hid/hid-lenovo-go.c:763:			    enum dev_type device_type)
drivers/hid/hid-lenovo-go.c-764-{
--
drivers/hid/hid-lenovo-go.c-768-	ret = mcu_property_out(drvdata.hdev, MCU_CONFIG_DATA, GET_VERSION_DATA,
drivers/hid/hid-lenovo-go.c:769:			       index, device_type, NULL, 0);
drivers/hid/hid-lenovo-go.c-770-	if (ret)
--
drivers/hid/hid-lenovo-go.c-774-	case PRODUCT_VERSION:
drivers/hid/hid-lenovo-go.c:775:		switch (device_type) {
drivers/hid/hid-lenovo-go.c-776-		case USB_MCU:
--
drivers/hid/hid-lenovo-go.c-796-	case PROTOCOL_VERSION:
drivers/hid/hid-lenovo-go.c:797:		switch (device_type) {
drivers/hid/hid-lenovo-go.c-798-		case USB_MCU:
--
drivers/hid/hid-lenovo-go.c-818-	case FIRMWARE_VERSION:
drivers/hid/hid-lenovo-go.c:819:		switch (device_type) {
drivers/hid/hid-lenovo-go.c-820-		case USB_MCU:
--
drivers/hid/hid-lenovo-go.c-840-	case HARDWARE_VERSION:
drivers/hid/hid-lenovo-go.c:841:		switch (device_type) {
drivers/hid/hid-lenovo-go.c-842-		case USB_MCU:
--
drivers/hid/hid-lenovo-go.c-862-	case HARDWARE_GENERATION:
drivers/hid/hid-lenovo-go.c:863:		switch (device_type) {
drivers/hid/hid-lenovo-go.c-864-		case USB_MCU:
--
drivers/hid/hid-lenovo-go.c=889=static ssize_t feature_status_store(struct device *dev,
--
drivers/hid/hid-lenovo-go.c-892-				    enum feature_status_index index,
drivers/hid/hid-lenovo-go.c:893:				    enum dev_type device_type)
drivers/hid/hid-lenovo-go.c-894-{
--
drivers/hid/hid-lenovo-go.c-933-	ret = mcu_property_out(drvdata.hdev, MCU_CONFIG_DATA,
drivers/hid/hid-lenovo-go.c:934:			       SET_FEATURE_STATUS, index, device_type, &val,
drivers/hid/hid-lenovo-go.c-935-			       size);
--
drivers/hid/hid-lenovo-go.c=942=static ssize_t feature_status_show(struct device *dev,
--
drivers/hid/hid-lenovo-go.c-944-				   enum feature_status_index index,
drivers/hid/hid-lenovo-go.c:945:				   enum dev_type device_type)
drivers/hid/hid-lenovo-go.c-946-{
--
drivers/hid/hid-lenovo-go.c-951-	ret = mcu_property_out(drvdata.hdev, MCU_CONFIG_DATA,
drivers/hid/hid-lenovo-go.c:952:			       GET_FEATURE_STATUS, index, device_type, NULL, 0);
drivers/hid/hid-lenovo-go.c-953-	if (ret)
--
drivers/hid/hid-lenovo-go.c-957-	case FEATURE_IMU_ENABLE:
drivers/hid/hid-lenovo-go.c:958:		switch (device_type) {
drivers/hid/hid-lenovo-go.c-959-		case LEFT_CONTROLLER:
--
drivers/hid/hid-lenovo-go.c-973-	case FEATURE_IMU_BYPASS:
drivers/hid/hid-lenovo-go.c:974:		switch (device_type) {
drivers/hid/hid-lenovo-go.c-975-		case LEFT_CONTROLLER:
--
drivers/hid/hid-lenovo-go.c-1003-	case FEATURE_AUTO_SLEEP_TIME:
drivers/hid/hid-lenovo-go.c:1004:		switch (device_type) {
drivers/hid/hid-lenovo-go.c-1005-		case LEFT_CONTROLLER:
--
drivers/hid/hid-lenovo-go.c=1078=static ssize_t motor_config_store(struct device *dev,
--
drivers/hid/hid-lenovo-go.c-1081-				  enum motor_cfg_index index,
drivers/hid/hid-lenovo-go.c:1082:				  enum dev_type device_type)
drivers/hid/hid-lenovo-go.c-1083-{
--
drivers/hid/hid-lenovo-go.c-1119-	ret = mcu_property_out(drvdata.hdev, MCU_CONFIG_DATA, SET_MOTOR_CFG,
drivers/hid/hid-lenovo-go.c:1120:			       index, device_type, &val, size);
drivers/hid/hid-lenovo-go.c-1121-	if (ret < 0)
--
drivers/hid/hid-lenovo-go.c=1127=static ssize_t motor_config_show(struct device *dev,
--
drivers/hid/hid-lenovo-go.c-1129-				 enum motor_cfg_index index,
drivers/hid/hid-lenovo-go.c:1130:				 enum dev_type device_type)
drivers/hid/hid-lenovo-go.c-1131-{
--
drivers/hid/hid-lenovo-go.c-1136-	ret = mcu_property_out(drvdata.hdev, MCU_CONFIG_DATA, GET_MOTOR_CFG,
drivers/hid/hid-lenovo-go.c:1137:			       index, device_type, NULL, 0);
drivers/hid/hid-lenovo-go.c-1138-	if (ret)
--
drivers/hid/hid-lenovo-go.c-1151-	case VIBRATION_NOTIFY_ENABLE:
drivers/hid/hid-lenovo-go.c:1152:		switch (device_type) {
drivers/hid/hid-lenovo-go.c-1153-		case LEFT_CONTROLLER:
--
drivers/hid/hid-lenovo-go.c-1167-	case RUMBLE_MODE:
drivers/hid/hid-lenovo-go.c:1168:		switch (device_type) {
drivers/hid/hid-lenovo-go.c-1169-		case LEFT_CONTROLLER:
--
drivers/hid/hid-lenovo-go.c=1286=static ssize_t device_status_show(struct device *dev,
--
drivers/hid/hid-lenovo-go.c-1288-				  enum device_status_index index,
drivers/hid/hid-lenovo-go.c:1289:				  enum dev_type device_type,
drivers/hid/hid-lenovo-go.c:1290:				  enum cal_device_type cal_type)
drivers/hid/hid-lenovo-go.c-1291-{
--
drivers/hid/hid-lenovo-go.c-1295-	case GET_CAL_STATUS:
drivers/hid/hid-lenovo-go.c:1296:		switch (device_type) {
drivers/hid/hid-lenovo-go.c-1297-		case LEFT_CONTROLLER:
--
drivers/hid/hid-lenovo-go.c=1341=static ssize_t calibrate_config_store(struct device *dev,
--
drivers/hid/hid-lenovo-go.c-1343-				      const char *buf, u8 cmd, u8 sub_cmd,
drivers/hid/hid-lenovo-go.c:1344:				      size_t count, enum dev_type device_type)
drivers/hid/hid-lenovo-go.c-1345-{
--
drivers/hid/hid-lenovo-go.c-1358-	ret = mcu_property_out(drvdata.hdev, MCU_CONFIG_DATA, cmd, sub_cmd,
drivers/hid/hid-lenovo-go.c:1359:			       device_type, &val, size);
drivers/hid/hid-lenovo-go.c-1360-	if (ret < 0)
--
drivers/hid/hid-logitech-dj.c=171=struct dj_workitem {
--
drivers/hid/hid-logitech-dj.c-173-	u8 device_index;
drivers/hid/hid-logitech-dj.c:174:	u8 device_type;
drivers/hid/hid-logitech-dj.c-175-	u8 quad_id_msb;
--
drivers/hid/hid-logitech-dj.c=790=static void logi_dj_recv_add_djhid_device(struct dj_receiver_dev *djrcv_dev,
--
drivers/hid/hid-logitech-dj.c-824-			      workitem->quad_id_lsb;
drivers/hid/hid-logitech-dj.c:825:	if (workitem->device_type) {
drivers/hid/hid-logitech-dj.c-826-		const char *type_str = "Device";
drivers/hid/hid-logitech-dj.c-827-
drivers/hid/hid-logitech-dj.c:828:		switch (workitem->device_type) {
drivers/hid/hid-logitech-dj.c-829-		case 0x01: type_str = "Keyboard";	break;
--
drivers/hid/hid-logitech-dj.c=967=static void logi_dj_recv_queue_notification(struct dj_receiver_dev *djrcv_dev,
--
drivers/hid/hid-logitech-dj.c-1006- * Some quad/bluetooth keyboards have a builtin touchpad in this case we see
drivers/hid/hid-logitech-dj.c:1007: * only 1 paired device with a device_type of REPORT_TYPE_KEYBOARD. For the
drivers/hid/hid-logitech-dj.c-1008- * touchpad to work we must also forward mouse input reports to the dj_hiddev
drivers/hid/hid-logitech-dj.c-1009- * created for the keyboard (instead of forwarding them to a second paired
drivers/hid/hid-logitech-dj.c:1010: * device with a device_type of REPORT_TYPE_MOUSE as we normally would).
drivers/hid/hid-logitech-dj.c-1011- *
--
drivers/hid/hid-logitech-dj.c=1025=static void logi_hidpp_dev_conn_notif_equad(struct hid_device *hdev,
--
drivers/hid/hid-logitech-dj.c-1032-	workitem->type = WORKITEM_TYPE_PAIRED;
drivers/hid/hid-logitech-dj.c:1033:	workitem->device_type = hidpp_report->params[HIDPP_PARAM_DEVICE_INFO] &
drivers/hid/hid-logitech-dj.c-1034-				HIDPP_DEVICE_TYPE_MASK;
--
drivers/hid/hid-logitech-dj.c-1036-	workitem->quad_id_lsb = hidpp_report->params[HIDPP_PARAM_EQUAD_LSB];
drivers/hid/hid-logitech-dj.c:1037:	switch (workitem->device_type) {
drivers/hid/hid-logitech-dj.c-1038-	case REPORT_TYPE_KEYBOARD:
--
drivers/hid/hid-logitech-dj.c=1059=static void logi_hidpp_dev_conn_notif_27mhz(struct hid_device *hdev,
--
drivers/hid/hid-logitech-dj.c-1067-	case 2: /* Index 2 is always a mouse */
drivers/hid/hid-logitech-dj.c:1068:		workitem->device_type = HIDPP_DEVICE_TYPE_MOUSE;
drivers/hid/hid-logitech-dj.c-1069-		workitem->reports_supported |= STD_MOUSE | HIDPP;
--
drivers/hid/hid-logitech-dj.c-1079-	case 4: /* Index 4 is used for an optional separate numpad */
drivers/hid/hid-logitech-dj.c:1080:		workitem->device_type = HIDPP_DEVICE_TYPE_KEYBOARD;
drivers/hid/hid-logitech-dj.c-1081-		workitem->reports_supported |= STD_KEYBOARD | MULTIMEDIA |
--
drivers/hid/hid-logitech-dj.c=1090=static void logi_hidpp_recv_queue_notif(struct hid_device *hdev,
--
drivers/hid/hid-logitech-dj.c-1094-	struct dj_receiver_dev *djrcv_dev = hid_get_drvdata(hdev);
drivers/hid/hid-logitech-dj.c:1095:	const char *device_type = "UNKNOWN";
drivers/hid/hid-logitech-dj.c-1096-	struct dj_workitem workitem = {
--
drivers/hid/hid-logitech-dj.c-1102-	case 0x01:
drivers/hid/hid-logitech-dj.c:1103:		device_type = "Bluetooth";
drivers/hid/hid-logitech-dj.c-1104-		/* Bluetooth connect packet contents is the same as (e)QUAD */
--
drivers/hid/hid-logitech-dj.c-1113-	case 0x02:
drivers/hid/hid-logitech-dj.c:1114:		device_type = "27 Mhz";
drivers/hid/hid-logitech-dj.c-1115-		logi_hidpp_dev_conn_notif_27mhz(hdev, hidpp_report, &workitem);
--
drivers/hid/hid-logitech-dj.c-1117-	case 0x03:
drivers/hid/hid-logitech-dj.c:1118:		device_type = "QUAD or eQUAD";
drivers/hid/hid-logitech-dj.c-1119-		logi_hidpp_dev_conn_notif_equad(hdev, hidpp_report, &workitem);
--
drivers/hid/hid-logitech-dj.c-1121-	case 0x04:
drivers/hid/hid-logitech-dj.c:1122:		device_type = "eQUAD step 4 DJ";
drivers/hid/hid-logitech-dj.c-1123-		logi_hidpp_dev_conn_notif_equad(hdev, hidpp_report, &workitem);
--
drivers/hid/hid-logitech-dj.c-1125-	case 0x05:
drivers/hid/hid-logitech-dj.c:1126:		device_type = "DFU Lite";
drivers/hid/hid-logitech-dj.c-1127-		break;
drivers/hid/hid-logitech-dj.c-1128-	case 0x06:
drivers/hid/hid-logitech-dj.c:1129:		device_type = "eQUAD step 4 Lite";
drivers/hid/hid-logitech-dj.c-1130-		logi_hidpp_dev_conn_notif_equad(hdev, hidpp_report, &workitem);
--
drivers/hid/hid-logitech-dj.c-1132-	case 0x07:
drivers/hid/hid-logitech-dj.c:1133:		device_type = "eQUAD step 4 Gaming";
drivers/hid/hid-logitech-dj.c-1134-		logi_hidpp_dev_conn_notif_equad(hdev, hidpp_report, &workitem);
--
drivers/hid/hid-logitech-dj.c-1137-	case 0x08:
drivers/hid/hid-logitech-dj.c:1138:		device_type = "eQUAD step 4 for gamepads";
drivers/hid/hid-logitech-dj.c-1139-		break;
drivers/hid/hid-logitech-dj.c-1140-	case 0x0a:
drivers/hid/hid-logitech-dj.c:1141:		device_type = "eQUAD nano Lite";
drivers/hid/hid-logitech-dj.c-1142-		logi_hidpp_dev_conn_notif_equad(hdev, hidpp_report, &workitem);
--
drivers/hid/hid-logitech-dj.c-1144-	case 0x0c:
drivers/hid/hid-logitech-dj.c:1145:		device_type = "eQUAD Lightspeed 1";
drivers/hid/hid-logitech-dj.c-1146-		logi_hidpp_dev_conn_notif_equad(hdev, hidpp_report, &workitem);
--
drivers/hid/hid-logitech-dj.c-1149-	case 0x0d:
drivers/hid/hid-logitech-dj.c:1150:		device_type = "eQUAD Lightspeed 1.1";
drivers/hid/hid-logitech-dj.c-1151-		logi_hidpp_dev_conn_notif_equad(hdev, hidpp_report, &workitem);
--
drivers/hid/hid-logitech-dj.c-1155-	case 0x11:
drivers/hid/hid-logitech-dj.c:1156:		device_type = "eQUAD Lightspeed 1.2";
drivers/hid/hid-logitech-dj.c-1157-		logi_hidpp_dev_conn_notif_equad(hdev, hidpp_report, &workitem);
--
drivers/hid/hid-logitech-dj.c-1160-	case 0x10:
drivers/hid/hid-logitech-dj.c:1161:		device_type = "Bolt";
drivers/hid/hid-logitech-dj.c-1162-		logi_hidpp_dev_conn_notif_equad(hdev, hidpp_report, &workitem);
--
drivers/hid/hid-logitech-dj.c-1173-			 "unusable device of type %s (0x%02x) connected on slot %d",
drivers/hid/hid-logitech-dj.c:1174:			 device_type,
drivers/hid/hid-logitech-dj.c-1175-			 hidpp_report->params[HIDPP_PARAM_PROTO_TYPE],
--
drivers/hid/hid-logitech-dj.c-1180-	hid_info(hdev, "device of type %s (0x%02x) connected on slot %d",
drivers/hid/hid-logitech-dj.c:1181:		 device_type, hidpp_report->params[HIDPP_PARAM_PROTO_TYPE],
drivers/hid/hid-logitech-dj.c-1182-		 hidpp_report->device_index);
--
drivers/hid/hid-plantronics.c=40=struct plt_drv_data {
drivers/hid/hid-plantronics.c:41:	unsigned long device_type;
drivers/hid/hid-plantronics.c-42-	unsigned long last_key_ts;
--
drivers/hid/hid-plantronics.c=47=static int plantronics_input_mapping(struct hid_device *hdev,
--
drivers/hid/hid-plantronics.c-54-	struct plt_drv_data *drv_data = hid_get_drvdata(hdev);
drivers/hid/hid-plantronics.c:55:	unsigned long plt_type = drv_data->device_type;
drivers/hid/hid-plantronics.c-56-	int allow_mute = usage->hid == HID_TELEPHONY_MUTE;
--
drivers/hid/hid-plantronics.c=131=static int plantronics_event(struct hid_device *hdev, struct hid_field *field,
--
drivers/hid/hid-plantronics.c-157-
drivers/hid/hid-plantronics.c:158:static unsigned long plantronics_device_type(struct hid_device *hdev)
drivers/hid/hid-plantronics.c-159-{
--
drivers/hid/hid-plantronics.c=183=static int plantronics_probe(struct hid_device *hdev,
--
drivers/hid/hid-plantronics.c-198-
drivers/hid/hid-plantronics.c:199:	drv_data->device_type = plantronics_device_type(hdev);
drivers/hid/hid-plantronics.c-200-	drv_data->double_key_to = msecs_to_jiffies(PLT_DOUBLE_KEY_TIMEOUT);
--
drivers/hid/intel-ish-hid/ishtp/bus.c=399=static void ishtp_cl_dev_release(struct device *dev)
--
drivers/hid/intel-ish-hid/ishtp/bus.c-403-
drivers/hid/intel-ish-hid/ishtp/bus.c:404:static const struct device_type ishtp_cl_device_type = {
drivers/hid/intel-ish-hid/ishtp/bus.c-405-	.release	= ishtp_cl_dev_release,
--
drivers/hid/intel-ish-hid/ishtp/bus.c=419=static struct ishtp_cl_device *ishtp_bus_add_device(struct ishtp_device *dev,
--
drivers/hid/intel-ish-hid/ishtp/bus.c-443-	device->dev.bus = &ishtp_cl_bus_type;
drivers/hid/intel-ish-hid/ishtp/bus.c:444:	device->dev.type = &ishtp_cl_device_type;
drivers/hid/intel-ish-hid/ishtp/bus.c-445-	device->ishtp_dev = dev;
--
drivers/hid/wacom_sys.c=439=static void wacom_usage_mapping(struct hid_device *hdev,
--
drivers/hid/wacom_sys.c-453-	if (pen)
drivers/hid/wacom_sys.c:454:		features->device_type |= WACOM_DEVICETYPE_PEN;
drivers/hid/wacom_sys.c-455-	else if (finger)
drivers/hid/wacom_sys.c:456:		features->device_type |= WACOM_DEVICETYPE_TOUCH;
drivers/hid/wacom_sys.c-457-	else
--
drivers/hid/wacom_sys.c=495=static void wacom_post_parse_hid(struct hid_device *hdev,
--
drivers/hid/wacom_sys.c-504-			if (wacom_wac->is_direct_mode)
drivers/hid/wacom_sys.c:505:				features->device_type |= WACOM_DEVICETYPE_DIRECT;
drivers/hid/wacom_sys.c-506-			else
drivers/hid/wacom_sys.c:507:				features->device_type &= ~WACOM_DEVICETYPE_DIRECT;
drivers/hid/wacom_sys.c-508-		}
--
drivers/hid/wacom_sys.c-510-		if (features->touch_max > 1) {
drivers/hid/wacom_sys.c:511:			if (features->device_type & WACOM_DEVICETYPE_DIRECT)
drivers/hid/wacom_sys.c-512-				input_mt_init_slots(wacom_wac->touch_input,
--
drivers/hid/wacom_sys.c=686=static int _wacom_query_tablet_data(struct wacom *wacom)
--
drivers/hid/wacom_sys.c-695-	if (features->type != HID_GENERIC) {
drivers/hid/wacom_sys.c:696:		if (features->device_type & WACOM_DEVICETYPE_TOUCH) {
drivers/hid/wacom_sys.c-697-			if (features->type > TABLETPC) {
--
drivers/hid/wacom_sys.c-710-			}
drivers/hid/wacom_sys.c:711:		} else if (features->device_type & WACOM_DEVICETYPE_PEN) {
drivers/hid/wacom_sys.c-712-			if (features->type <= BAMBOO_PT) {
--
drivers/hid/wacom_sys.c=727=static void wacom_retrieve_hid_descriptor(struct hid_device *hdev,
--
drivers/hid/wacom_sys.c-747-		if (intf->cur_altsetting->desc.bInterfaceNumber == 0)
drivers/hid/wacom_sys.c:748:			features->device_type = WACOM_DEVICETYPE_WL_MONITOR;
drivers/hid/wacom_sys.c-749-		else
drivers/hid/wacom_sys.c:750:			features->device_type = WACOM_DEVICETYPE_NONE;
drivers/hid/wacom_sys.c-751-		return;
--
drivers/hid/wacom_sys.c=767=static bool wacom_are_sibling(struct hid_device *hdev,
--
drivers/hid/wacom_sys.c-803-	 */
drivers/hid/wacom_sys.c:804:	if ((features->device_type & WACOM_DEVICETYPE_DIRECT) &&
drivers/hid/wacom_sys.c:805:	    !(sibling_features->device_type & WACOM_DEVICETYPE_DIRECT))
drivers/hid/wacom_sys.c-806-		return false;
--
drivers/hid/wacom_sys.c-811-	 */
drivers/hid/wacom_sys.c:812:	if (!(features->device_type & WACOM_DEVICETYPE_DIRECT) &&
drivers/hid/wacom_sys.c:813:	    (sibling_features->device_type & WACOM_DEVICETYPE_DIRECT))
drivers/hid/wacom_sys.c-814-		return false;
--
drivers/hid/wacom_sys.c-816-	/* Pen devices may only be siblings of touch devices */
drivers/hid/wacom_sys.c:817:	if ((features->device_type & WACOM_DEVICETYPE_PEN) &&
drivers/hid/wacom_sys.c:818:	    !(sibling_features->device_type & WACOM_DEVICETYPE_TOUCH))
drivers/hid/wacom_sys.c-819-		return false;
--
drivers/hid/wacom_sys.c-821-	/* Touch devices may only be siblings of pen devices */
drivers/hid/wacom_sys.c:822:	if ((features->device_type & WACOM_DEVICETYPE_TOUCH) &&
drivers/hid/wacom_sys.c:823:	    !(sibling_features->device_type & WACOM_DEVICETYPE_PEN))
drivers/hid/wacom_sys.c-824-		return false;
--
drivers/hid/wacom_sys.c=888=static int wacom_add_shared_data(struct hid_device *hdev)
--
drivers/hid/wacom_sys.c-917-
drivers/hid/wacom_sys.c:918:	if (wacom_wac->features.device_type & WACOM_DEVICETYPE_TOUCH)
drivers/hid/wacom_sys.c-919-		wacom_wac->shared->touch = hdev;
drivers/hid/wacom_sys.c:920:	else if (wacom_wac->features.device_type & WACOM_DEVICETYPE_PEN)
drivers/hid/wacom_sys.c-921-		wacom_wac->shared->pen = hdev;
--
drivers/hid/wacom_sys.c=1607=int wacom_initialize_leds(struct wacom *wacom)
--
drivers/hid/wacom_sys.c-1610-
drivers/hid/wacom_sys.c:1611:	if (!(wacom->wacom_wac.features.device_type & WACOM_DEVICETYPE_PAD))
drivers/hid/wacom_sys.c-1612-		return 0;
--
drivers/hid/wacom_sys.c=2344=static void wacom_set_shared_values(struct wacom_wac *wacom_wac)
drivers/hid/wacom_sys.c-2345-{
drivers/hid/wacom_sys.c:2346:	if (wacom_wac->features.device_type & WACOM_DEVICETYPE_TOUCH) {
drivers/hid/wacom_sys.c-2347-		wacom_wac->shared->type = wacom_wac->features.type;
--
drivers/hid/wacom_sys.c=2370=static int wacom_parse_and_register(struct wacom *wacom, bool wireless)
--
drivers/hid/wacom_sys.c-2416-
drivers/hid/wacom_sys.c:2417:	if (features->device_type == WACOM_DEVICETYPE_NONE &&
drivers/hid/wacom_sys.c-2418-	    features->type != WIRELESS) {
--
drivers/hid/wacom_sys.c-2420-
drivers/hid/wacom_sys.c:2421:		dev_warn(&hdev->dev, "Unknown device_type for '%s'. %s.",
drivers/hid/wacom_sys.c-2422-			 hdev->name,
--
drivers/hid/wacom_sys.c-2427-
drivers/hid/wacom_sys.c:2428:		features->device_type |= WACOM_DEVICETYPE_PEN;
drivers/hid/wacom_sys.c-2429-	}
--
drivers/hid/wacom_sys.c-2436-	if ((features->type == BAMBOO_PEN) &&
drivers/hid/wacom_sys.c:2437:	    ((features->device_type & WACOM_DEVICETYPE_TOUCH) ||
drivers/hid/wacom_sys.c:2438:	    (features->device_type & WACOM_DEVICETYPE_PAD))) {
drivers/hid/wacom_sys.c-2439-		error = -ENODEV;
--
drivers/hid/wacom_sys.c-2464-
drivers/hid/wacom_sys.c:2465:	if (wacom->wacom_wac.features.device_type & WACOM_DEVICETYPE_PAD) {
drivers/hid/wacom_sys.c-2466-		error = wacom_initialize_leds(wacom);
--
drivers/hid/wacom_sys.c-2481-	if ((features->type == BAMBOO_TOUCH) &&
drivers/hid/wacom_sys.c:2482:	    (features->device_type & WACOM_DEVICETYPE_PEN)) {
drivers/hid/wacom_sys.c-2483-		cancel_delayed_work_sync(&wacom->init_work);
--
drivers/hid/wacom_sys.c-2488-
drivers/hid/wacom_sys.c:2489:	if (features->device_type & WACOM_DEVICETYPE_WL_MONITOR) {
drivers/hid/wacom_sys.c-2490-		error = hid_hw_open(hdev);
--
drivers/hid/wacom_sys.c=2901=static void wacom_remove(struct hid_device *hdev)
--
drivers/hid/wacom_sys.c-2906-
drivers/hid/wacom_sys.c:2907:	if (features->device_type & WACOM_DEVICETYPE_WL_MONITOR)
drivers/hid/wacom_sys.c-2908-		hid_hw_close(hdev);
--
drivers/hid/wacom_wac.c=2014=static void wacom_wac_pad_usage_mapping(struct hid_device *hdev,
--
drivers/hid/wacom_wac.c-2026-		wacom_map_usage(input, usage, field, EV_ABS, ABS_X, 0);
drivers/hid/wacom_wac.c:2027:		features->device_type |= WACOM_DEVICETYPE_PAD;
drivers/hid/wacom_wac.c-2028-		break;
--
drivers/hid/wacom_wac.c-2031-		wacom_map_usage(input, usage, field, EV_ABS, ABS_Y, 0);
drivers/hid/wacom_wac.c:2032:		features->device_type |= WACOM_DEVICETYPE_PAD;
drivers/hid/wacom_wac.c-2033-		break;
--
drivers/hid/wacom_wac.c-2036-		wacom_map_usage(input, usage, field, EV_ABS, ABS_Z, 0);
drivers/hid/wacom_wac.c:2037:		features->device_type |= WACOM_DEVICETYPE_PAD;
drivers/hid/wacom_wac.c-2038-		break;
--
drivers/hid/wacom_wac.c-2048-		features->numbered_buttons++;
drivers/hid/wacom_wac.c:2049:		features->device_type |= WACOM_DEVICETYPE_PAD;
drivers/hid/wacom_wac.c-2050-		break;
--
drivers/hid/wacom_wac.c-2069-		wacom_map_usage(input, usage, field, EV_ABS, ABS_RX, 0);
drivers/hid/wacom_wac.c:2070:		features->device_type |= WACOM_DEVICETYPE_PAD;
drivers/hid/wacom_wac.c-2071-		break;
--
drivers/hid/wacom_wac.c-2073-		wacom_map_usage(input, usage, field, EV_ABS, ABS_RY, 0);
drivers/hid/wacom_wac.c:2074:		features->device_type |= WACOM_DEVICETYPE_PAD;
drivers/hid/wacom_wac.c-2075-		break;
--
drivers/hid/wacom_wac.c-2093-		}
drivers/hid/wacom_wac.c:2094:		features->device_type |= WACOM_DEVICETYPE_PAD;
drivers/hid/wacom_wac.c-2095-		break;
--
drivers/hid/wacom_wac.c-2103-		set_bit(EV_ABS, input->evbit);
drivers/hid/wacom_wac.c:2104:		features->device_type |= WACOM_DEVICETYPE_PAD;
drivers/hid/wacom_wac.c-2105-		break;
--
drivers/hid/wacom_wac.c-2107-		wacom_map_usage(input, usage, field, EV_KEY, KEY_BUTTONCONFIG, 0);
drivers/hid/wacom_wac.c:2108:		features->device_type |= WACOM_DEVICETYPE_PAD;
drivers/hid/wacom_wac.c-2109-		break;
--
drivers/hid/wacom_wac.c-2111-		wacom_map_usage(input, usage, field, EV_KEY, KEY_ONSCREEN_KEYBOARD, 0);
drivers/hid/wacom_wac.c:2112:		features->device_type |= WACOM_DEVICETYPE_PAD;
drivers/hid/wacom_wac.c-2113-		break;
--
drivers/hid/wacom_wac.c-2115-		wacom_map_usage(input, usage, field, EV_KEY, KEY_CONTROLPANEL, 0);
drivers/hid/wacom_wac.c:2116:		features->device_type |= WACOM_DEVICETYPE_PAD;
drivers/hid/wacom_wac.c-2117-		break;
--
drivers/hid/wacom_wac.c-2123-		}
drivers/hid/wacom_wac.c:2124:		features->device_type |= WACOM_DEVICETYPE_PAD;
drivers/hid/wacom_wac.c-2125-		break;
--
drivers/hid/wacom_wac.c-2133-		features->numbered_buttons++;
drivers/hid/wacom_wac.c:2134:		features->device_type |= WACOM_DEVICETYPE_PAD;
drivers/hid/wacom_wac.c-2135-		break;
--
drivers/hid/wacom_wac.c=2929=void wacom_wac_usage_mapping(struct hid_device *hdev,
--
drivers/hid/wacom_wac.c-2936-	if (WACOM_DIRECT_DEVICE(field))
drivers/hid/wacom_wac.c:2937:		features->device_type |= WACOM_DEVICETYPE_DIRECT;
drivers/hid/wacom_wac.c-2938-
--
drivers/hid/wacom_wac.c=3284=static int wacom_bpt_irq(struct wacom_wac *wacom, size_t len)
--
drivers/hid/wacom_wac.c-3288-	if ((features->type == INTUOSHT2) &&
drivers/hid/wacom_wac.c:3289:	    (features->device_type & WACOM_DEVICETYPE_PEN))
drivers/hid/wacom_wac.c-3290-		return wacom_intuos_irq(wacom);
--
drivers/hid/wacom_wac.c=3648=void wacom_setup_device_quirks(struct wacom *wacom)
--
drivers/hid/wacom_wac.c-3656-	    (features->type >= INTUOS3S && features->type <= WACOM_MO)) {

]

143/4 2026/09/21 01:08 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 77163
							output: 28
							thoughts: 269
						

Thoughts:
**My Analysis of Device Type Determination**

Okay, let's break down how this `device_type` flag gets set within `wacom_features`. From what I can see, the assignment is happening in a few key places. First, the `wacom_wac_usage_mapping` and `wacom_usage_mapping` functions are clearly responsible. Specifically, the bitwise OR operations are used to set the `WACOM_DEVICETYPE_PEN`, `WACOM_DEVICETYPE_TOUCH`, and `WACOM_DEVICETYPE_DIRECT` bits within the `device_type` field of the `features` structure. I'm assuming these functions are handling the initial parsing of usage reports to identify the device's basic input capabilities.

Then, there's `wacom_wac_pad_usage_mapping` which seems dedicated to handling pad devices, as its setting the `WACOM_DEVICETYPE_PAD` bit. Makes sense, given the function name.

Next, I see `wacom_retrieve_hid_descriptor` is involved. Now, this one's interesting, as it's specifically setting `features->device_type` to `WACOM_DEVICETYPE_WL_MONITOR` or `NONE`. So, if the device reports as a wireless monitor, it identifies it as such. Otherwise, it gets initialized to none.

The `wacom_parse_and_register` function comes into play. If, and only if, the `device_type` is currently `WACOM_DEVICETYPE_NONE`, this one defaults to setting the `WACOM_DEVICETYPE_PEN` bit. I'd assume that this functions as a default, catching any devices that haven't been explicitly categorized elsewhere. This is the fallback I would have expected to see.

Now, to get the full picture, I need to consult the `wacom_wac.h` header file. It's the definitive source for these `device_type` definitions. I also want to go searching for some device IDs, so I'm going to quickly grep through `drivers/hid/` looking for something like `INTUOSHT2` to get a feel for what the different device types actually map to. That will fill in the missing pieces here.



144/4 2026/09/21 01:08 tool grepper
0m Args:
map[Expression:INTUOSHT2 PathPrefix:drivers/hid]

Results:
map[Output:drivers/hid/wacom_wac.c=496=static void wacom_intuos_schedule_prox_event(struct wacom_wac *wacom_wac)
--
drivers/hid/wacom_wac.c-503-	re = &(wacom->hdev->report_enum[HID_FEATURE_REPORT]);
drivers/hid/wacom_wac.c:504:	if (features->type == INTUOSHT2)
drivers/hid/wacom_wac.c:505:		r = re->report_id_hash[WACOM_REPORT_INTUOSHT2_ID];
drivers/hid/wacom_wac.c-506-	else
--
drivers/hid/wacom_wac.c=773=static int wacom_intuos_inout(struct wacom_wac *wacom)
--
drivers/hid/wacom_wac.c-802-	if ((data[1] & 0xfe) == 0x20) {
drivers/hid/wacom_wac.c:803:		if (features->type != INTUOSHT2)
drivers/hid/wacom_wac.c-804-			wacom->shared->stylus_in_proximity = true;
--
drivers/hid/wacom_wac.c=849=static int wacom_intuos_general(struct wacom_wac *wacom)
--
drivers/hid/wacom_wac.c-899-	}
drivers/hid/wacom_wac.c:900:	if (features->type == INTUOSHT2)
drivers/hid/wacom_wac.c-901-		distance = features->distance_max - distance;
--
drivers/hid/wacom_wac.c-915-		input_report_abs(input, ABS_PRESSURE, t);
drivers/hid/wacom_wac.c:916:		if (features->type != INTUOSHT2) {
drivers/hid/wacom_wac.c-917-		    input_report_abs(input, ABS_TILT_X,
--
drivers/hid/wacom_wac.c=3119=static void wacom_bpt3_touch_msg(struct wacom_wac *wacom, unsigned char *data)
--
drivers/hid/wacom_wac.c-3138-
drivers/hid/wacom_wac.c:3139:		if (features->type >= INTUOSPS && features->type <= INTUOSHT2) {
drivers/hid/wacom_wac.c-3140-			width  = data[5] * 100;
--
drivers/hid/wacom_wac.c=3162=static void wacom_bpt3_button_msg(struct wacom_wac *wacom, unsigned char *data)
--
drivers/hid/wacom_wac.c-3166-
drivers/hid/wacom_wac.c:3167:	if (features->type == INTUOSHT || features->type == INTUOSHT2) {
drivers/hid/wacom_wac.c-3168-		input_report_key(input, BTN_LEFT, (data[1] & 0x02) != 0);
--
drivers/hid/wacom_wac.c=3284=static int wacom_bpt_irq(struct wacom_wac *wacom, size_t len)
--
drivers/hid/wacom_wac.c-3287-
drivers/hid/wacom_wac.c:3288:	if ((features->type == INTUOSHT2) &&
drivers/hid/wacom_wac.c-3289-	    (features->device_type & WACOM_DEVICETYPE_PEN))
--
drivers/hid/wacom_wac.c=3385=static int wacom_wireless_irq(struct wacom_wac *wacom, size_t len)
--
drivers/hid/wacom_wac.c-3397-		if ((wacom->shared->type == INTUOSHT ||
drivers/hid/wacom_wac.c:3398:		    wacom->shared->type == INTUOSHT2) &&
drivers/hid/wacom_wac.c-3399-		    wacom->shared->touch_input &&
--
drivers/hid/wacom_wac.c=3427=static int wacom_status_irq(struct wacom_wac *wacom_wac, size_t len)
--
drivers/hid/wacom_wac.c-3436-	if ((features->type == INTUOSHT ||
drivers/hid/wacom_wac.c:3437:	    features->type == INTUOSHT2) &&
drivers/hid/wacom_wac.c-3438-	    wacom_wac->shared->touch_input &&
--
drivers/hid/wacom_wac.c=3461=void wacom_wac_irq(struct wacom_wac *wacom_wac, size_t len)
--
drivers/hid/wacom_wac.c-3555-	case INTUOSHT:
drivers/hid/wacom_wac.c:3556:	case INTUOSHT2:
drivers/hid/wacom_wac.c-3557-		if (wacom_wac->data[0] == WACOM_REPORT_USB)
--
drivers/hid/wacom_wac.c=3648=void wacom_setup_device_quirks(struct wacom *wacom)
--
drivers/hid/wacom_wac.c-3680-
drivers/hid/wacom_wac.c:3681:			if (features->type == INTUOSHT2) {
drivers/hid/wacom_wac.c-3682-				features->x_max = features->x_max / 10;
--
drivers/hid/wacom_wac.c=3801=int wacom_setup_pen_input_capabilities(struct input_dev *input_dev,
--
drivers/hid/wacom_wac.c-3942-	case BAMBOO_PEN:
drivers/hid/wacom_wac.c:3943:	case INTUOSHT2:
drivers/hid/wacom_wac.c-3944-	case INTUOSHT3_BT:
drivers/hid/wacom_wac.c:3945:		if (features->type == INTUOSHT2 ||
drivers/hid/wacom_wac.c-3946-		    features->type == INTUOSHT3_BT) {
--
drivers/hid/wacom_wac.c=3966=int wacom_setup_touch_input_capabilities(struct input_dev *input_dev,
--
drivers/hid/wacom_wac.c-4075-	case INTUOSHT:
drivers/hid/wacom_wac.c:4076:	case INTUOSHT2:
drivers/hid/wacom_wac.c-4077-		input_dev->evbit[0] |= BIT_MASK(EV_SW);
--
drivers/hid/wacom_wac.c=4239=int wacom_setup_pad_input_capabilities(struct input_dev *input_dev,
--
drivers/hid/wacom_wac.c-4385-	case BAMBOO_TOUCH:
drivers/hid/wacom_wac.c:4386:	case INTUOSHT2:
drivers/hid/wacom_wac.c-4387-		__clear_bit(ABS_MISC, input_dev->absbit);
--
drivers/hid/wacom_wac.c=4903=static const struct wacom_features wacom_features_0x33B =
drivers/hid/wacom_wac.c-4904-	{ "Wacom Intuos S 2", 15200, 9500, 2047, 63,
drivers/hid/wacom_wac.c:4905:	  INTUOSHT2, WACOM_INTUOS_RES, WACOM_INTUOS_RES,
drivers/hid/wacom_wac.c-4906-	  .check_for_hid_type = true, .hid_type = HID_TYPE_USBNONE };
drivers/hid/wacom_wac.c=4907=static const struct wacom_features wacom_features_0x33C =
drivers/hid/wacom_wac.c-4908-	{ "Wacom Intuos PT S 2", 15200, 9500, 2047, 63,
drivers/hid/wacom_wac.c:4909:	  INTUOSHT2, WACOM_INTUOS_RES, WACOM_INTUOS_RES, .touch_max = 16,
drivers/hid/wacom_wac.c-4910-	  .check_for_hid_type = true, .hid_type = HID_TYPE_USBNONE };
drivers/hid/wacom_wac.c=4911=static const struct wacom_features wacom_features_0x33D =
drivers/hid/wacom_wac.c-4912-	{ "Wacom Intuos P M 2", 21600, 13500, 2047, 63,
drivers/hid/wacom_wac.c:4913:	  INTUOSHT2, WACOM_INTUOS_RES, WACOM_INTUOS_RES,
drivers/hid/wacom_wac.c-4914-	  .check_for_hid_type = true, .hid_type = HID_TYPE_USBNONE };
drivers/hid/wacom_wac.c=4915=static const struct wacom_features wacom_features_0x33E =
drivers/hid/wacom_wac.c-4916-	{ "Wacom Intuos PT M 2", 21600, 13500, 2047, 63,
drivers/hid/wacom_wac.c:4917:	  INTUOSHT2, WACOM_INTUOS_RES, WACOM_INTUOS_RES, .touch_max = 16,
drivers/hid/wacom_wac.c-4918-	  .check_for_hid_type = true, .hid_type = HID_TYPE_USBNONE };
--
drivers/hid/wacom_wac.h-66-#define WACOM_REPORT_REMOTE		17
drivers/hid/wacom_wac.h:67:#define WACOM_REPORT_INTUOSHT2_ID	8
drivers/hid/wacom_wac.h-68-
--
drivers/hid/wacom_wac.h=190=enum {
--
drivers/hid/wacom_wac.h-229-	INTUOSHT,
drivers/hid/wacom_wac.h:230:	INTUOSHT2,
drivers/hid/wacom_wac.h-231-	BAMBOO_TOUCH,
]

145/4 2026/09/21 01:08 llm codeexpert-compressor
0m Model:
gemini-3.8-flash

Reply:
### Investigation Overview and Goal

The user is investigating an apparent potential `NULL` pointer dereference in `drivers/hid/wacom_wac.c`:
- `wacom_intuos_irq()` is called from `wacom_bpt_irq()` when `features->type == INTUOSHT2` and `features->device_type & WACOM_DEVICETYPE_PEN`.
- In `wacom_intuos_irq()`, `wacom->pen_input` is dereferenced (e.g. at line 1036: `dev_dbg(input->dev.parent, ...)`).
- In `wacom_setup_inputs()`, `wacom->pen_input` is freed and set to `NULL` if `wacom_setup_pen_input_capabilities()` returns an error.
- `wacom_setup_pen_input_capabilities()` returns `-ENODEV` if `!(features->device_type & WACOM_DEVICETYPE_PEN)`.
- Core question: Are there any other ways `wacom->pen_input` can be `NULL` when `wacom_intuos_irq()` is called?
  - Sub-question 1: Could `wacom_setup_pen_input_capabilities()` return an error for another reason?
  - Sub-question 2: Could `wacom->pen_input` be freed/set to `NULL` somewhere else after `wacom_setup_inputs()`?
  - Sub-question 3: Could `features->device_type` be modified after `wacom_setup_inputs()`?
  - Sub-question 4: Could `wacom_bpt_irq()` be called before `wacom_setup_inputs()` completes?
  - General: Any other possible ways `wacom->pen_input` can be `NULL` in `wacom_intuos_irq()`?

---

### Approaches and Findings So Far

1. **`wacom_setup_pen_input_capabilities()` Analysis (`drivers/hid/wacom_wac.c:3801-3964`)**
   - Examined the entire function body:
     - Line 3806: `if (!(features->device_type & WACOM_DEVICETYPE_PEN)) return -ENODEV;`
     - If `features->type == HID_GENERIC`, returns `0`.
     - Sets input properties and capabilities.
     - Switch on `features->type`:
       - `INTUOSHT2` and `INTUOSHT3_BT` call `wacom_setup_basic_pro_pen(wacom_wac); break;`
       - `wacom_setup_basic_pro_pen()` has return type `void`.
       - All other cases either set abs/key bits or call void helper functions (`wacom_setup_intuos`, `wacom_setup_cintiq`).
     - Line 3963: Ends with `return 0;`.
   - **Conclusion on Sub-question 1:** `wacom_setup_pen_input_capabilities()` has **only one** error return path: `-ENODEV` when `!(features->device_type & WACOM_DEVICETYPE_PEN)`. There are **no other reasons** it can return an error.

2. **All Writes/Assignments to `wacom_wac->pen_input` Across `drivers/hid`**
   - Performed exact reference search (`codesearch-find-references` on `wacom_wac::pen_input`):
     - `wacom_sys.c:2112` in `wacom_allocate_inputs()`: `wacom_wac->pen_input = wacom_allocate_input(wacom);`
     - `wacom_sys.c:2144` in `wacom_setup_inputs()`: `wacom_wac->pen_input = NULL;` (when `wacom_setup_pen_input_capabilities()` returns error).
     - `wacom_sys.c:2200` in `wacom_register_inputs()` under `fail:`: `wacom_wac->pen_input = NULL;` (if `input_register_device()` fails on pen, touch, or pad).
     - `wacom_sys.c:2339` in `wacom_release_resources()`: `wacom->wacom_wac.pen_input = NULL;`.
   - No other writes to `pen_input` exist in the kernel.

3. **Call Tree & Lifecycle around `wacom_setup_inputs()` and Registration (`drivers/hid/wacom_sys.c:2440-2508`)**
   - In `wacom_parse_and_register(struct wacom *wacom, bool wireless)`:
     ```c
     error = wacom_setup_inputs(wacom);
     if (error)
         goto fail;

     if (features->type == HID_GENERIC)
         connect_mask |= HID_CONNECT_DRIVER;

     /* Regular HID work starts now */
     error = hid_hw_start(hdev, connect_mask);
     if (error)
         goto fail;

     error = wacom_register_inputs(wacom);
     if (error)
         goto fail_hw_stop;
     ...
     fail_hw_stop:
         hid_hw_stop(hdev);
     fail:
         wacom_release_resources(wacom);
         return error;
     ```
   - Notice: `hid_hw_start()` is called *before* `wacom_register_inputs(wacom)`.
   - Notice: If `wacom_register_inputs()` fails:
     - `wacom_register_inputs()` sets `wacom_wac->pen_input = NULL` in `fail:`.
     - Then jumps to `fail_hw_stop: hid_hw_stop(hdev);` and `wacom_release_resources(wacom)`.
   - Notice: Input devices are opened via `wacom_open(struct input_dev *dev)` (`wacom_sys.c:187-192`), which calls `hid_hw_open(wacom->hdev)`.
   - BUT for `features->device_type & WACOM_DEVICETYPE_WL_MONITOR`, line 2490 explicitly calls `hid_hw_open(hdev)`.
   - What happens with `wacom_raw_event()`? It dispatches to `wacom_wac_irq()`, which dispatches to `wacom_bpt_irq()`.

4. **Call Paths to `wacom_intuos_irq()`**
   From `codesearch-find-references` on `wacom_intuos_irq`:
   - `wacom_intuos_bt_process_data()` (called from `wacom_intuos_bt_irq()` for BT reports 0x03/0x04)
   - `wacom_wac_irq()` switch:
     - `case CINTIQ_COMPANION_2: sync = wacom_intuos_irq(wacom_wac); break;`
     - `case INTUOS: ... else sync = wacom_intuos_irq(wacom_wac); break;`
   - `wacom_bpt_irq()`:
     ```c
     if ((features->type == INTUOSHT2) &&
         (features->device_type & WACOM_DEVICETYPE_PEN))
         return wacom_intuos_irq(wacom);
     ```

5. **`wacom_intuos_irq()` Dereference Details (`drivers/hid/wacom_wac.c:1022-1057`)**
   ```c
   static int wacom_intuos_irq(struct wacom_wac *wacom)
   {
       unsigned char *data = wacom->data;
       struct input_dev *input = wacom->pen_input;
       int result;

       if (data[0] != WACOM_REPORT_PENABLED &&
           data[0] != WACOM_REPORT_INTUOS_ID1 &&
           data[0] != WACOM_REPORT_INTUOS_ID2 &&
           data[0] != WACOM_REPORT_INTUOSPAD &&
           data[0] != WACOM_REPORT_INTUOS_PEN &&
           data[0] != WACOM_REPORT_CINTIQ &&
           data[0] != WACOM_REPORT_CINTIQPAD &&
           data[0] != WACOM_REPORT_INTUOS5PAD) {
           dev_dbg(input->dev.parent,
               "%s: received unknown report #%d\n", __func__, data[0]);
           return 0;
       }
       ...
       result = wacom_intuos_pad(wacom);
       ...
       result = wacom_intuos_inout(wacom);
       ...
       result = wacom_intuos_general(wacom);
   ```
   If `input` is `NULL`, `input->dev.parent` immediately faults.
   Also inside `wacom_intuos_inout()` and `wacom_intuos_general()`, `wacom->pen_input` is also dereferenced without checking `if (!input)`.

---

### Key Questions and Active Lines of Investigation

To provide a complete answer to the prompt:
1. **Could `wacom_setup_pen_input_capabilities()` return an error for another reason?**
   - Answer verified: **No**. Only `!(features->device_type & WACOM_DEVICETYPE_PEN)` returns `-ENODEV`. All other branches return `0`.
2. **Could `features->device_type` be modified after `wacom_setup_inputs()`?**
   - Need to check all places where `features->device_type` is written. Is it modified dynamically anywhere? (e.g. wireless work, quirks, battery detection, probe, mode switching, etc.)
3. **Could `wacom_bpt_irq()` be called before `wacom_setup_inputs()` completes?**
   - Need to trace when interrupts/URBs/raw events can be delivered.
   - When does `hid_hw_start()` start accepting URBs / raw_events? Does `hid_hw_start()` start before `wacom_register_inputs()`? What about before `wacom_setup_inputs()`?
   - In `wacom_parse_and_register()`:
     - `wacom_setup_inputs()` is called *before* `hid_hw_start(hdev, connect_mask)`.
     - But what about shared devices / wireless / paired interfaces? Wacom multi-interface devices (e.g., touch interface vs pen interface, bamboo pad rerouting, or `wacom_wireless_work`)?
4. **Could `wacom->pen_input` be freed or set to `NULL` somewhere else after `wacom_setup_inputs()`?**
   - In `wacom_register_inputs()`, if registration fails for `touch_input` or `pad_input` after `pen_input` is registered:
     - `pen_input` is unregistered, and `wacom_wac->pen_input = NULL;`.
     - But in that case, probe fails and `hid_hw_stop` is called. Could an in-flight raw_event hit while stopping?
   - In `wacom_release_resources()`, `wacom_wac.pen_input = NULL;`.
   - What about `wacom_remove()` / disconnect / unbind? If device disconnects, `wacom_remove` calls `hid_hw_close` / `hid_hw_stop`, but does a concurrent raw event run?
5. **Are there any cases where `features->type == INTUOSHT2` and `features->device_type & WACOM_DEVICETYPE_PEN` might have `pen_input == NULL`?**
   - Check multi-interface devices: Wacom devices often have 2 USB interfaces (interface 0 = pen, interface 1 = touch).
   - Check if the touch interface could ever receive a pen report or share features/irq handler with the pen interface, or if `features` struct is shared or distinct.
   - Check Bamboo / Intuos Draw/Art/Photo (CTL-490, CTH-490, CTH-690, etc. which are INTUOSHT2).
   - Check wireless receiver (`wacom_wireless.c` / `wacom_wireless_work`): When wireless dongle is plugged in without tablet attached or when tablet connects/disconnects.

---

### Critical Code & Files

- `drivers/hid/wacom_wac.c`:
  - `wacom_bpt_irq()`: lines 3284-3300
  - `wacom_intuos_irq()`: lines 1022-1057
  - `wacom_setup_pen_input_capabilities()`: lines 3801-3964
- `drivers/hid/wacom_sys.c`:
  - `wacom_allocate_inputs()`: lines 2108-2125
  - `wacom_setup_inputs()`: lines 2127-2165
  - `wacom_register_inputs()`: lines 2167-2202
  - `wacom_parse_and_register()`: lines 2370-2507
  - `wacom_raw_event()`: lines 169-185
  - `wacom_release_resources()`: lines 2334-2342
- `drivers/hid/wacom.h`:
  - Device type flags: `WACOM_DEVICETYPE_PEN`, `WACOM_DEVICETYPE_TOUCH`, `WACOM_DEVICETYPE_PAD`, `WACOM_DEVICETYPE_WL_MONITOR`, etc.

### Next Steps to Check
- Check all writes to `features.device_type` across `drivers/hid/wacom*`.
- Check shared data between interfaces (`wacom->shared`, `wacom_wac->shared`).
- Check if `wacom_bpt_irq` can be called from another interface or during disconnect/failure.
- Remember: Must call `set-results` tool exactly once before the final reply.

Tokens:
							input: 61811
							output: 3343
							thoughts: 0
						

146/4 2026/09/21 01:09 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 28432
							output: 40
							thoughts: 0
						

147/4 2026/09/21 01:09 tool read-file
0m Args:
map[File:drivers/hid/wacom_wac.c FirstLine:3280 LineCount:40]

Results:
map[Contents:3280:	
3281:		return 1;
3282:	}
3283:	
3284:	static int wacom_bpt_irq(struct wacom_wac *wacom, size_t len)
3285:	{
3286:		struct wacom_features *features = &wacom->features;
3287:	
3288:		if ((features->type == INTUOSHT2) &&
3289:		    (features->device_type & WACOM_DEVICETYPE_PEN))
3290:			return wacom_intuos_irq(wacom);
3291:		else if (len == WACOM_PKGLEN_BBTOUCH)
3292:			return wacom_bpt_touch(wacom);
3293:		else if (len == WACOM_PKGLEN_BBTOUCH3)
3294:			return wacom_bpt3_touch(wacom);
3295:		else if (len == WACOM_PKGLEN_BBFUN || len == WACOM_PKGLEN_BBPEN)
3296:			return wacom_bpt_pen(wacom);
3297:	
3298:		return 0;
3299:	}
3300:	
3301:	static void wacom_bamboo_pad_pen_event(struct wacom_wac *wacom,
3302:			unsigned char *data)
3303:	{
3304:		unsigned char prefix;
3305:	
3306:		/*
3307:		 * We need to reroute the event from the debug interface to the
3308:		 * pen interface.
3309:		 * We need to add the report ID to the actual pen report, so we
3310:		 * temporary overwrite the first byte to prevent having to kzalloc/kfree
3311:		 * and memcpy the report.
3312:		 */
3313:		prefix = data[0];
3314:		data[0] = WACOM_REPORT_BPAD_PEN;
3315:	
3316:		/*
3317:		 * actually reroute the event.
3318:		 * No need to check if wacom->shared->pen is valid, hid_input_report()
3319:		 * will check for us.
]

148/4 2026/09/21 01:09 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 29103
							output: 39
							thoughts: 0
						

149/4 2026/09/21 01:09 tool read-file
0m Args:
map[File:drivers/hid/wacom_sys.c FirstLine:2105 LineCount:65]

Results:
map[Contents:2105:		return input_dev;
2106:	}
2107:	
2108:	static int wacom_allocate_inputs(struct wacom *wacom)
2109:	{
2110:		struct wacom_wac *wacom_wac = &(wacom->wacom_wac);
2111:	
2112:		wacom_wac->pen_input = wacom_allocate_input(wacom);
2113:		wacom_wac->touch_input = wacom_allocate_input(wacom);
2114:		wacom_wac->pad_input = wacom_allocate_input(wacom);
2115:		if (!wacom_wac->pen_input ||
2116:		    !wacom_wac->touch_input ||
2117:		    !wacom_wac->pad_input)
2118:			return -ENOMEM;
2119:	
2120:		wacom_wac->pen_input->name = wacom_wac->pen_name;
2121:		wacom_wac->touch_input->name = wacom_wac->touch_name;
2122:		wacom_wac->pad_input->name = wacom_wac->pad_name;
2123:	
2124:		return 0;
2125:	}
2126:	
2127:	static int wacom_setup_inputs(struct wacom *wacom)
2128:	{
2129:		struct input_dev *pen_input_dev, *touch_input_dev, *pad_input_dev;
2130:		struct wacom_wac *wacom_wac = &(wacom->wacom_wac);
2131:		int error = 0;
2132:	
2133:		pen_input_dev = wacom_wac->pen_input;
2134:		touch_input_dev = wacom_wac->touch_input;
2135:		pad_input_dev = wacom_wac->pad_input;
2136:	
2137:		if (!pen_input_dev || !touch_input_dev || !pad_input_dev)
2138:			return -EINVAL;
2139:	
2140:		error = wacom_setup_pen_input_capabilities(pen_input_dev, wacom_wac);
2141:		if (error) {
2142:			/* no pen in use on this interface */
2143:			input_free_device(pen_input_dev);
2144:			wacom_wac->pen_input = NULL;
2145:			pen_input_dev = NULL;
2146:		}
2147:	
2148:		error = wacom_setup_touch_input_capabilities(touch_input_dev, wacom_wac);
2149:		if (error) {
2150:			/* no touch in use on this interface */
2151:			input_free_device(touch_input_dev);
2152:			wacom_wac->touch_input = NULL;
2153:			touch_input_dev = NULL;
2154:		}
2155:	
2156:		error = wacom_setup_pad_input_capabilities(pad_input_dev, wacom_wac);
2157:		if (error) {
2158:			/* no pad events using this interface */
2159:			input_free_device(pad_input_dev);
2160:			wacom_wac->pad_input = NULL;
2161:			pad_input_dev = NULL;
2162:		}
2163:	
2164:		return 0;
2165:	}
2166:	
2167:	static int wacom_register_inputs(struct wacom *wacom)
2168:	{
2169:		struct input_dev *pen_input_dev, *touch_input_dev, *pad_input_dev;
]

150/4 2026/09/21 01:09 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 30237
							output: 39
							thoughts: 0
						

151/4 2026/09/21 01:09 tool read-file
0m Args:
map[File:drivers/hid/wacom_sys.c FirstLine:2167 LineCount:50]

Results:
map[Contents:2167:	static int wacom_register_inputs(struct wacom *wacom)
2168:	{
2169:		struct input_dev *pen_input_dev, *touch_input_dev, *pad_input_dev;
2170:		struct wacom_wac *wacom_wac = &(wacom->wacom_wac);
2171:		int error = 0;
2172:	
2173:		pen_input_dev = wacom_wac->pen_input;
2174:		touch_input_dev = wacom_wac->touch_input;
2175:		pad_input_dev = wacom_wac->pad_input;
2176:	
2177:		if (pen_input_dev) {
2178:			error = input_register_device(pen_input_dev);
2179:			if (error)
2180:				goto fail;
2181:		}
2182:	
2183:		if (touch_input_dev) {
2184:			error = input_register_device(touch_input_dev);
2185:			if (error)
2186:				goto fail;
2187:		}
2188:	
2189:		if (pad_input_dev) {
2190:			error = input_register_device(pad_input_dev);
2191:			if (error)
2192:				goto fail;
2193:		}
2194:	
2195:		return 0;
2196:	
2197:	fail:
2198:		wacom_wac->pad_input = NULL;
2199:		wacom_wac->touch_input = NULL;
2200:		wacom_wac->pen_input = NULL;
2201:		return error;
2202:	}
2203:	
2204:	/*
2205:	 * Not all devices report physical dimensions from HID.
2206:	 * Compute the default from hardcoded logical dimension
2207:	 * and resolution before driver overwrites them.
2208:	 */
2209:	static void wacom_set_default_phy(struct wacom_features *features)
2210:	{
2211:		if (features->x_resolution) {
2212:			features->x_phy = (features->x_max * 100) /
2213:						features->x_resolution;
2214:			features->y_phy = (features->y_max * 100) /
2215:						features->y_resolution;
2216:		}
]

152/4 2026/09/21 01:09 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 31007
							output: 39
							thoughts: 0
						

153/4 2026/09/21 01:09 tool read-file
0m Args:
map[File:drivers/hid/wacom_sys.c FirstLine:2445 LineCount:70]

Results:
map[Contents:2445:			goto fail;
2446:	
2447:		error = wacom_setup_inputs(wacom);
2448:		if (error)
2449:			goto fail;
2450:	
2451:		if (features->type == HID_GENERIC)
2452:			connect_mask |= HID_CONNECT_DRIVER;
2453:	
2454:		/* Regular HID work starts now */
2455:		error = hid_hw_start(hdev, connect_mask);
2456:		if (error) {
2457:			hid_err(hdev, "hw start failed\n");
2458:			goto fail;
2459:		}
2460:	
2461:		error = wacom_register_inputs(wacom);
2462:		if (error)
2463:			goto fail_hw_stop;
2464:	
2465:		if (wacom->wacom_wac.features.device_type & WACOM_DEVICETYPE_PAD) {
2466:			error = wacom_initialize_leds(wacom);
2467:			if (error)
2468:				goto fail_hw_stop;
2469:	
2470:			error = wacom_initialize_remotes(wacom);
2471:			if (error)
2472:				goto fail_hw_stop;
2473:		}
2474:	
2475:		if (!wireless) {
2476:			/* Note that if query fails it is not a hard failure */
2477:			wacom_query_tablet_data(wacom);
2478:		}
2479:	
2480:		/* touch only Bamboo doesn't support pen */
2481:		if ((features->type == BAMBOO_TOUCH) &&
2482:		    (features->device_type & WACOM_DEVICETYPE_PEN)) {
2483:			cancel_delayed_work_sync(&wacom->init_work);
2484:			_wacom_query_tablet_data(wacom);
2485:			error = -ENODEV;
2486:			goto fail_hw_stop;
2487:		}
2488:	
2489:		if (features->device_type & WACOM_DEVICETYPE_WL_MONITOR) {
2490:			error = hid_hw_open(hdev);
2491:			if (error) {
2492:				hid_err(hdev, "hw open failed\n");
2493:				goto fail_hw_stop;
2494:			}
2495:		}
2496:	
2497:		wacom_set_shared_values(wacom_wac);
2498:		devres_close_group(&hdev->dev, wacom);
2499:	
2500:		return 0;
2501:	
2502:	fail_hw_stop:
2503:		hid_hw_stop(hdev);
2504:	fail:
2505:		wacom_release_resources(wacom);
2506:		return error;
2507:	}
2508:	
2509:	static void wacom_wireless_work(struct work_struct *work)
2510:	{
2511:		struct wacom *wacom = container_of(work, struct wacom, wireless_work);
2512:		struct usb_device *usbdev = wacom->usbdev;
2513:		struct wacom_wac *wacom_wac = &wacom->wacom_wac;
2514:		struct hid_device *hdev1, *hdev2;
]

154/4 2026/09/21 01:09 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 32068
							output: 39
							thoughts: 0
						

155/4 2026/09/21 01:09 tool read-file
0m Args:
map[File:drivers/hid/wacom_sys.c FirstLine:2510 LineCount:85]

Results:
map[Contents:2510:	{
2511:		struct wacom *wacom = container_of(work, struct wacom, wireless_work);
2512:		struct usb_device *usbdev = wacom->usbdev;
2513:		struct wacom_wac *wacom_wac = &wacom->wacom_wac;
2514:		struct hid_device *hdev1, *hdev2;
2515:		struct wacom *wacom1, *wacom2;
2516:		struct wacom_wac *wacom_wac1, *wacom_wac2;
2517:		int error;
2518:	
2519:		/*
2520:		 * Regardless if this is a disconnect or a new tablet,
2521:		 * remove any existing input and battery devices.
2522:		 */
2523:	
2524:		wacom_destroy_battery(wacom);
2525:	
2526:		if (!usbdev)
2527:			return;
2528:	
2529:		/* Stylus interface */
2530:		hdev1 = usb_get_intfdata(usbdev->config->interface[1]);
2531:		wacom1 = hid_get_drvdata(hdev1);
2532:		wacom_wac1 = &(wacom1->wacom_wac);
2533:		wacom_release_resources(wacom1);
2534:	
2535:		/* Touch interface */
2536:		hdev2 = usb_get_intfdata(usbdev->config->interface[2]);
2537:		wacom2 = hid_get_drvdata(hdev2);
2538:		wacom_wac2 = &(wacom2->wacom_wac);
2539:		wacom_release_resources(wacom2);
2540:	
2541:		if (wacom_wac->pid == 0) {
2542:			hid_info(wacom->hdev, "wireless tablet disconnected\n");
2543:		} else {
2544:			const struct hid_device_id *id = wacom_ids;
2545:	
2546:			hid_info(wacom->hdev, "wireless tablet connected with PID %x\n",
2547:				 wacom_wac->pid);
2548:	
2549:			while (id->bus) {
2550:				if (id->vendor == USB_VENDOR_ID_WACOM &&
2551:				    id->product == wacom_wac->pid)
2552:					break;
2553:				id++;
2554:			}
2555:	
2556:			if (!id->bus) {
2557:				hid_info(wacom->hdev, "ignoring unknown PID.\n");
2558:				return;
2559:			}
2560:	
2561:			/* Stylus interface */
2562:			wacom_wac1->features =
2563:				*((struct wacom_features *)id->driver_data);
2564:	
2565:			wacom_wac1->pid = wacom_wac->pid;
2566:			hid_hw_stop(hdev1);
2567:			error = wacom_parse_and_register(wacom1, true);
2568:			if (error)
2569:				goto fail;
2570:	
2571:			/* Touch interface */
2572:			if (wacom_wac1->features.touch_max ||
2573:			    (wacom_wac1->features.type >= INTUOSHT &&
2574:			    wacom_wac1->features.type <= BAMBOO_PT)) {
2575:				wacom_wac2->features =
2576:					*((struct wacom_features *)id->driver_data);
2577:				wacom_wac2->pid = wacom_wac->pid;
2578:				hid_hw_stop(hdev2);
2579:				error = wacom_parse_and_register(wacom2, true);
2580:				if (error)
2581:					goto fail;
2582:			}
2583:	
2584:			if (strscpy(wacom_wac->name, wacom_wac1->name,
2585:				sizeof(wacom_wac->name)) < 0) {
2586:				hid_warn(wacom->hdev, "String overflow while assembling device name");
2587:			}
2588:		}
2589:	
2590:		return;
2591:	
2592:	fail:
2593:		wacom_release_resources(wacom1);
2594:		wacom_release_resources(wacom2);
]

156/4 2026/09/21 01:09 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 33441
							output: 39
							thoughts: 0
						

157/4 2026/09/21 01:09 tool read-file
0m Args:
map[File:drivers/hid/wacom_sys.c FirstLine:2325 LineCount:30]

Results:
map[Contents:2325:			"%s%s Pad", name, suffix);
2326:	}
2327:	
2328:	static void wacom_release_resources(struct wacom *wacom)
2329:	{
2330:		struct hid_device *hdev = wacom->hdev;
2331:	
2332:		if (!wacom->resources)
2333:			return;
2334:	
2335:		devres_release_group(&hdev->dev, wacom);
2336:	
2337:		wacom->resources = false;
2338:	
2339:		wacom->wacom_wac.pen_input = NULL;
2340:		wacom->wacom_wac.touch_input = NULL;
2341:		wacom->wacom_wac.pad_input = NULL;
2342:	}
2343:	
2344:	static void wacom_set_shared_values(struct wacom_wac *wacom_wac)
2345:	{
2346:		if (wacom_wac->features.device_type & WACOM_DEVICETYPE_TOUCH) {
2347:			wacom_wac->shared->type = wacom_wac->features.type;
2348:			wacom_wac->shared->touch_input = wacom_wac->touch_input;
2349:		}
2350:	
2351:		if (wacom_wac->has_mute_touch_switch) {
2352:			wacom_wac->shared->has_mute_touch_switch = true;
2353:			/* Hardware touch switch may be off. Wait until
2354:			 * we know the switch state to decide is_touch_on.
]

158/4 2026/09/21 01:09 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 33974
							output: 38
							thoughts: 0
						

159/4 2026/09/21 01:09 tool read-file
0m Args:
map[File:drivers/hid/wacom_sys.c FirstLine:165 LineCount:40]

Results:
map[Contents: 165:	
 166:		return insert && !flush;
 167:	}
 168:	
 169:	static int wacom_raw_event(struct hid_device *hdev, struct hid_report *report,
 170:			u8 *raw_data, int size)
 171:	{
 172:		struct wacom *wacom = hid_get_drvdata(hdev);
 173:	
 174:		if (wacom->wacom_wac.features.type == BOOTLOADER)
 175:			return 0;
 176:	
 177:		if (wacom_wac_pen_serial_enforce(hdev, report, raw_data, size))
 178:			return -1;
 179:	
 180:		wacom->wacom_wac.data = raw_data;
 181:	
 182:		wacom_wac_irq(&wacom->wacom_wac, size);
 183:	
 184:		return 0;
 185:	}
 186:	
 187:	static int wacom_open(struct input_dev *dev)
 188:	{
 189:		struct wacom *wacom = input_get_drvdata(dev);
 190:	
 191:		return hid_hw_open(wacom->hdev);
 192:	}
 193:	
 194:	static void wacom_close(struct input_dev *dev)
 195:	{
 196:		struct wacom *wacom = input_get_drvdata(dev);
 197:	
 198:		/*
 199:		 * wacom->hdev should never be null, but surprisingly, I had the case
 200:		 * once while unplugging the Wacom Wireless Receiver.
 201:		 */
 202:		if (wacom->hdev)
 203:			hid_hw_close(wacom->hdev);
 204:	}
]

160/4 2026/09/21 01:09 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 34586
							output: 38
							thoughts: 0
						

161/4 2026/09/21 01:09 tool read-file
0m Args:
map[File:drivers/hid/wacom_sys.c FirstLine:725 LineCount:40]

Results:
map[Contents: 725:	}
 726:	
 727:	static void wacom_retrieve_hid_descriptor(struct hid_device *hdev,
 728:						 struct wacom_features *features)
 729:	{
 730:		struct wacom *wacom = hid_get_drvdata(hdev);
 731:		struct usb_interface *intf = wacom->intf;
 732:	
 733:		/* default features */
 734:		features->x_fuzz = 4;
 735:		features->y_fuzz = 4;
 736:		features->pressure_fuzz = 0;
 737:		features->distance_fuzz = 1;
 738:		features->tilt_fuzz = 1;
 739:	
 740:		/*
 741:		 * The wireless device HID is basic and layout conflicts with
 742:		 * other tablets (monitor and touch interface can look like pen).
 743:		 * Skip the query for this type and modify defaults based on
 744:		 * interface number.
 745:		 */
 746:		if (features->type == WIRELESS && intf) {
 747:			if (intf->cur_altsetting->desc.bInterfaceNumber == 0)
 748:				features->device_type = WACOM_DEVICETYPE_WL_MONITOR;
 749:			else
 750:				features->device_type = WACOM_DEVICETYPE_NONE;
 751:			return;
 752:		}
 753:	
 754:		wacom_parse_hid(hdev, features);
 755:	}
 756:	
 757:	struct wacom_hdev_data {
 758:		struct list_head list;
 759:		struct kref kref;
 760:		struct hid_device *dev;
 761:		struct wacom_shared shared;
 762:	};
 763:	
 764:	static LIST_HEAD(wacom_udev_list);
]

162/4 2026/09/21 01:09 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 35205
							output: 40
							thoughts: 0
						

163/4 2026/09/21 01:09 tool codesearch-definition-source
0m Args:
map[ContextFile:drivers/hid/wacom_sys.c Name:wacom_parse_hid]

Results:
map[SourceCode: 523:	static void wacom_parse_hid(struct hid_device *hdev,
 524:				   struct wacom_features *features)
 525:	{
 526:		struct hid_report_enum *rep_enum;
 527:		struct hid_report *hreport;
 528:		int i, j;
 529:	
 530:		/* check features first */
 531:		rep_enum = &hdev->report_enum[HID_FEATURE_REPORT];
 532:		list_for_each_entry(hreport, &rep_enum->report_list, list) {
 533:			for (i = 0; i < hreport->maxfield; i++) {
 534:				/* Ignore if report count is out of bounds. */
 535:				if (hreport->field[i]->report_count < 1)
 536:					continue;
 537:	
 538:				for (j = 0; j < hreport->field[i]->maxusage; j++) {
 539:					wacom_feature_mapping(hdev, hreport->field[i],
 540:							hreport->field[i]->usage + j);
 541:				}
 542:			}
 543:		}
 544:	
 545:		/* now check the input usages */
 546:		rep_enum = &hdev->report_enum[HID_INPUT_REPORT];
 547:		list_for_each_entry(hreport, &rep_enum->report_list, list) {
 548:	
 549:			if (!hreport->maxfield)
 550:				continue;
 551:	
 552:			for (i = 0; i < hreport->maxfield; i++)
 553:				for (j = 0; j < hreport->field[i]->maxusage; j++)
 554:					wacom_usage_mapping(hdev, hreport->field[i],
 555:							hreport->field[i]->usage + j);
 556:		}
 557:	
 558:		wacom_post_parse_hid(hdev, features);
 559:	}
 SourceFile:drivers/hid/wacom_sys.c]

164/4 2026/09/21 01:09 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 35874
							output: 26
							thoughts: 1665
						

Thoughts:
**Deep Dive into Wacom Driver Initialization and Resource Management**

Okay, let's break down this `wacom_parse_and_register()` function and the surrounding code. My initial thought is to trace the execution flow and consider potential failure points. First, I see `wacom_setup_inputs()`, which seems to set up the necessary input devices. If we have a pen device (`WACOM_DEVICETYPE_PEN`), it sets up `pen_input` and keeps it valid. Then, `hid_hw_start()` is called with `connect_mask`. My immediate question is whether this call to `hid_hw_start()` actually initiates the USB interrupt URB. I need to confirm how `hid_hw_start` works, specifically if it starts the interrupt transfers in the USB HID context. I'll need to check the behavior of `usbhid_start()`.

I'm now diving deeper into how the USB interrupt transfers are started: is it `usbhid_start` or `usbhid_open`? What exactly is the difference between `hid_hw_open` and `hid_hw_start`? Also, what effect does the `connect_mask` have? If `HID_CONNECT_HIDRAW` or `HID_CONNECT_DRIVER` is set, does it change the initialization process? I know in the code, `connect_mask` starts as `HID_CONNECT_HIDRAW`, and it becomes `HID_CONNECT_DRIVER` only if the device `features->type == HID_GENERIC`. In the INTUOSHT2 case, that does not happen. So, effectively we have `connect_mask == HID_CONNECT_HIDRAW`, and I know that `hidraw_open()` calls `hid_hw_open()`.

Now let's examine `wacom_register_inputs()`. What happens if this call fails? Let's trace it; it registers the input devices for pen, touch, and pad. It appears that if registering any of them fails (e.g., touch), it jumps to the `fail` label, which calls `wacom_release_resources()` *after* setting `wacom_wac->pen_input = NULL`. So, if pen input registers successfully, but the touch input registration fails, the pen input device gets unregistered in that `wacom_register_inputs` call, before `hid_hw_stop` is called. So, in `wacom_parse_and_register`, if `wacom_register_inputs` fails, the `fail_hw_stop` is jumped to, which calls `hid_hw_stop(hdev)`, and then calls `wacom_release_resources()`.

Here is an interesting case: before `hid_hw_stop(hdev)` is called, could an event still be received? Or, will `wacom_release_resources()` run?

Now, let's consider `wacom_wireless_work()`! I see code that deals with wireless tablets and specifically calls `wacom_release_resources()` and `hid_hw_stop()`. I see that the wireless receiver's data, which is obtained via `usb_get_intfdata`, is used. Specifically, look at the code lines 2530-2540. I see that the code calls `wacom_release_resources(wacom1)`.

Now, if a wireless tablet disconnects, and `wacom_wac->pid == 0`, `wacom_release_resources(wacom1)` is called, but what does that function do? Examining `wacom_release_resources()`, it releases the device resources and also sets `wacom->wacom_wac.pen_input` to NULL. The key here is: does `wacom_release_resources()` stop the device, and does it call `hid_hw_stop()` on disconnect? I see that if `wacom_wac->pid == 0` (disconnected case), `hid_hw_stop(hdev1)` is *not* called! In fact, `hid_hw_stop(hdev1)` is only called in the `else` branch. So, in the disconnected case, the device is not stopped. So, is `hdev1` still open/started? What driver would even handle events on `hdev1`? I need to check how the wireless receiver actually works to fully understand this.



165/4 2026/09/21 01:10 tool grepper
0m Args:
map[Expression:wireless_work PathPrefix:drivers/hid]

Results:
map[Output:drivers/hid/wacom.h=157=struct wacom {
--
drivers/hid/wacom.h-162-	struct mutex lock;
drivers/hid/wacom.h:163:	struct work_struct wireless_work;
drivers/hid/wacom.h-164-	struct work_struct battery_work;
--
drivers/hid/wacom.h=185=static inline void wacom_schedule_work(struct wacom_wac *wacom_wac,
--
drivers/hid/wacom.h-191-	case WACOM_WORKER_WIRELESS:
drivers/hid/wacom.h:192:		schedule_work(&wacom->wireless_work);
drivers/hid/wacom.h-193-		break;
--
drivers/hid/wacom_sys.c=2370=static int wacom_parse_and_register(struct wacom *wacom, bool wireless)
--
drivers/hid/wacom_sys.c-2508-
drivers/hid/wacom_sys.c:2509:static void wacom_wireless_work(struct work_struct *work)
drivers/hid/wacom_sys.c-2510-{
drivers/hid/wacom_sys.c:2511:	struct wacom *wacom = container_of(work, struct wacom, wireless_work);
drivers/hid/wacom_sys.c-2512-	struct usb_device *usbdev = wacom->usbdev;
--
drivers/hid/wacom_sys.c=2822=static int wacom_probe(struct hid_device *hdev,
--
drivers/hid/wacom_sys.c-2866-	INIT_DELAYED_WORK(&wacom->aes_battery_work, wacom_aes_battery_handler);
drivers/hid/wacom_sys.c:2867:	INIT_WORK(&wacom->wireless_work, wacom_wireless_work);
drivers/hid/wacom_sys.c-2868-	INIT_WORK(&wacom->battery_work, wacom_battery_work);
--
drivers/hid/wacom_sys.c=2901=static void wacom_remove(struct hid_device *hdev)
--
drivers/hid/wacom_sys.c-2913-	cancel_delayed_work_sync(&wacom->aes_battery_work);
drivers/hid/wacom_sys.c:2914:	cancel_work_sync(&wacom->wireless_work);
drivers/hid/wacom_sys.c-2915-	cancel_work_sync(&wacom->battery_work);
]

166/4 2026/09/21 01:10 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 39184
							output: 31
							thoughts: 16
						

Thoughts:
Okay, here's my attempt at summarizing that thought process, tailored for an expert audience:

**Investigating the WACOM_WORKER_WIRELESS Process Scheduling**

Right, let's dive into this. My initial thought is to figure out where `WACOM_WORKER_WIRELESS` is currently scheduled within the system. I need to understand its position in the overall resource allocation scheme. Is it hogging a particular core? Is it being unfairly starved by higher-priority processes? Knowing the scheduler context is crucial for diagnosing any potential performance bottlenecks or behavioral oddities. I'm thinking about the different scheduling classes and priorities – is it a real-time process interfering with user-space responsiveness, or is it behaving as expected within the normal time-sharing scheme? I need to quickly identify its CPU affinity, and current runtime and its history, to establish a performance baseline, then dive deeper if I find anomalies. This investigation will set the stage for further analysis.



167/4 2026/09/21 01:10 tool grepper
0m Args:
map[Expression:WACOM_WORKER_WIRELESS PathPrefix:drivers/hid]

Results:
map[Output:drivers/hid/wacom.h=104=enum wacom_worker {
drivers/hid/wacom.h:105:	WACOM_WORKER_WIRELESS,
drivers/hid/wacom.h-106-	WACOM_WORKER_BATTERY,
--
drivers/hid/wacom.h=185=static inline void wacom_schedule_work(struct wacom_wac *wacom_wac,
--
drivers/hid/wacom.h-190-	switch (which) {
drivers/hid/wacom.h:191:	case WACOM_WORKER_WIRELESS:
drivers/hid/wacom.h-192-		schedule_work(&wacom->wireless_work);
--
drivers/hid/wacom_wac.c=3385=static int wacom_wireless_irq(struct wacom_wac *wacom, size_t len)
--
drivers/hid/wacom_wac.c-3410-			wacom->pid = pid;
drivers/hid/wacom_wac.c:3411:			wacom_schedule_work(wacom, WACOM_WORKER_WIRELESS);
drivers/hid/wacom_wac.c-3412-		}
--
drivers/hid/wacom_wac.c-3419-		wacom->pid = 0;
drivers/hid/wacom_wac.c:3420:		wacom_schedule_work(wacom, WACOM_WORKER_WIRELESS);
drivers/hid/wacom_wac.c-3421-		wacom_notify_battery(wacom, POWER_SUPPLY_STATUS_UNKNOWN, 0, 0, 0, 0);
]

168/4 2026/09/21 01:10 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 39984
							output: 1079
							thoughts: 1688
						

Thoughts:
**Analysis of Wacom Tablet Driver: Identifying Potential NULL Pointer Dereference**

Okay, let's break this down. My goal here is to pinpoint every possible scenario where `wacom->pen_input` might be `NULL` when `wacom_intuos_irq()` is called, especially considering the conditional check in `wacom_bpt_irq()` that *should* prevent this.

First, I examined the only error return in `wacom_setup_pen_input_capabilities()`, which is `-ENODEV` if the device isn't a pen device. However, `wacom_bpt_irq()` *itself* checks for the presence of the `WACOM_DEVICETYPE_PEN` flag, so this shouldn't be the issue. So, that avenue is closed.

Next, I looked for other places where `wacom->pen_input` is modified. I found that the `pen_input` pointer is allocated in `wacom_allocate_inputs()`. It's set to `NULL` in the `fail:` label of `wacom_register_inputs()` if input registration fails after it is already registered, and it's also cleared in `wacom_release_resources()`. Critically, `wacom_release_resources()` is called in several places: driver cleanup, during disconnect/unbind, and, notably, within `wacom_wireless_work()`. This wireless work queue is the first key area to focus on.

Then, I investigated if `features->device_type` could be altered after `wacom_setup_inputs()` completes. The code suggests that `features->device_type` is determined early on.  After `wacom_setup_inputs()` completes, `features->device_type` is read in most places. However, it *is* modified, or overwritten, within `wacom_mode_change_work()` and, importantly, when a wireless tablet disconnects/reconnects in `wacom_wireless_work()`, including when `wacom_release_resources()` is called. That makes the wireless disconnect case particularly relevant.

Finally, I considered the timing between `wacom_bpt_irq()` and `wacom_setup_inputs()`. The standard initial probe flow ensures interrupts don't arrive before setup. However, this is where it gets interesting:
*   I realized the code assumes initial setup and registration are complete.
*   Because raw event delivery starts *after* `hid_hw_start()`, and before `wacom_register_inputs()` completes, a race *could* occur.
*   Furthermore, even if the initial device type check in `wacom_bpt_irq()` passes, other interfaces, or other *parts* of the interface, may not include the pen, and thus the check won't happen. Calls to `wacom_intuos_irq()` made from the `CINTIQ_COMPANION_2` or `INTUOS` family code paths *directly* call the handler, bypassing the device type check. If a non-pen event is received on those interfaces, `pen_input` could be `NULL`.

Therefore, my conclusion is that: `wacom->pen_input` can be NULL in these cases:
*   During initial device setup, if input registration fails for some reason (e.g. from a race or failure of `input_register_device()`) between `hid_hw_start()` and `wacom_register_inputs()` within `wacom_parse_and_register()`.
*   During a wireless device disconnect via `wacom_wireless_work()` where `wacom_release_resources()` clears `pen_input`.
*   Interrupts received on multi-interface devices or touch/pad-only interfaces of those types, *after* setup but before `wacom_release_resources()` happens, or when the initial check does not occur (e.g. `CINTIQ_COMPANION_2` or `INTUOS` family).



169/4 2026/09/21 01:10 tool set-results
0m Args:
map[Answer:Based on kernel source code analysis of `drivers/hid/wacom_sys.c` and `drivers/hid/wacom_wac.c`, here are the findings regarding the questions:

1. **Could `wacom_setup_pen_input_capabilities()` return an error for another reason?**
   - **No.** An inspection of `wacom_setup_pen_input_capabilities()` (lines 3801–3964) shows that it has only a single error exit point at line 3806:
     ```c
     if (!(features->device_type & WACOM_DEVICETYPE_PEN))
         return -ENODEV;
     ```
     All subsequent paths (including the `INTUOSHT2` case, which calls `wacom_setup_basic_pro_pen()` returning `void`) only set capability bits on the input device and conclude with `return 0;`. There are no memory allocations or other fallible operations.

2. **Where else can `wacom->pen_input` be freed or set to NULL?**
   Every write to `pen_input` across `drivers/hid/` was examined:
   - **Input registration failure (`wacom_register_inputs()` in `wacom_sys.c:2200`):**
     `wacom_register_inputs()` registers `pen_input`, `touch_input`, and `pad_input` sequentially. If `pen_input` is registered successfully but registering `touch_input` or `pad_input` fails with an error, the code jumps to `fail:`, setting:
     ```c
     wacom_wac->pad_input = NULL;
     wacom_wac->touch_input = NULL;
     wacom_wac->pen_input = NULL;
     ```
     Because `hid_hw_start()` was already called earlier in `wacom_parse_and_register()`, this occurs while the hardware interface is started, before `hid_hw_stop()` is called in the unwind path.
   - **Resource release / Wireless disconnect (`wacom_release_resources()` in `wacom_sys.c:2339`):**
     `wacom_release_resources()` sets `pen_input = NULL` (and releases the devres group). This function is called:
     - On failure cleanup paths in `wacom_parse_and_register()`.
     - In `wacom_wireless_work()` (`wacom_sys.c:2533`): when a wireless receiver reports that a tablet disconnected (`wacom_wac->pid == 0`), `wacom_release_resources(wacom1)` is called for the stylus interface, setting `wacom1->wacom_wac.pen_input = NULL;`.

3. **Could `features->device_type` be modified after `wacom_setup_inputs()`?**
   - In regular probe operation, `device_type` is determined prior to `wacom_setup_inputs()` and is not modified afterwards.
   - The only dynamic modifications to `features` occur during mode switching (`wacom_mode_change_work()`) and wireless tablet connect/disconnect (`wacom_wireless_work()`), both of which re-parse and re-register interfaces rather than mutating `device_type` in-place on an active interface.

4. **Could `wacom_bpt_irq()` be called before `wacom_setup_inputs()` completes?**
   - For a single interface during probe, `wacom_setup_inputs()` runs before `hid_hw_start()`. Raw input reports are only dispatched after hardware start and open, so `wacom_bpt_irq()` will not be called before `wacom_setup_inputs()` completes on that interface.
   - However, after `hid_hw_start()` is called, if `wacom_register_inputs()` fails or during wireless disconnect cleanup in `wacom_wireless_work()`, `pen_input` can be NULL while reports might still arrive.
   - Additionally, in other call paths leading to `wacom_intuos_irq()` (such as `wacom_wac_irq()` directly for `CINTIQ_COMPANION_2` and `INTUOS` models), there is no check for `WACOM_DEVICETYPE_PEN` prior to calling `wacom_intuos_irq()`, which can lead to dereferencing `pen_input == NULL` if an unexpected report is delivered to a touch- or pad-only interface.

(Caveat / unverified: The exact concurrency and locking behavior between USB URB completion in `wacom_raw_event()` and asynchronous work in `wacom_wireless_work()` was not fully traced due to tool limits.)]

Results:
map[Answer:Based on kernel source code analysis of `drivers/hid/wacom_sys.c` and `drivers/hid/wacom_wac.c`, here are the findings regarding the questions:

1. **Could `wacom_setup_pen_input_capabilities()` return an error for another reason?**
   - **No.** An inspection of `wacom_setup_pen_input_capabilities()` (lines 3801–3964) shows that it has only a single error exit point at line 3806:
     ```c
     if (!(features->device_type & WACOM_DEVICETYPE_PEN))
         return -ENODEV;
     ```
     All subsequent paths (including the `INTUOSHT2` case, which calls `wacom_setup_basic_pro_pen()` returning `void`) only set capability bits on the input device and conclude with `return 0;`. There are no memory allocations or other fallible operations.

2. **Where else can `wacom->pen_input` be freed or set to NULL?**
   Every write to `pen_input` across `drivers/hid/` was examined:
   - **Input registration failure (`wacom_register_inputs()` in `wacom_sys.c:2200`):**
     `wacom_register_inputs()` registers `pen_input`, `touch_input`, and `pad_input` sequentially. If `pen_input` is registered successfully but registering `touch_input` or `pad_input` fails with an error, the code jumps to `fail:`, setting:
     ```c
     wacom_wac->pad_input = NULL;
     wacom_wac->touch_input = NULL;
     wacom_wac->pen_input = NULL;
     ```
     Because `hid_hw_start()` was already called earlier in `wacom_parse_and_register()`, this occurs while the hardware interface is started, before `hid_hw_stop()` is called in the unwind path.
   - **Resource release / Wireless disconnect (`wacom_release_resources()` in `wacom_sys.c:2339`):**
     `wacom_release_resources()` sets `pen_input = NULL` (and releases the devres group). This function is called:
     - On failure cleanup paths in `wacom_parse_and_register()`.
     - In `wacom_wireless_work()` (`wacom_sys.c:2533`): when a wireless receiver reports that a tablet disconnected (`wacom_wac->pid == 0`), `wacom_release_resources(wacom1)` is called for the stylus interface, setting `wacom1->wacom_wac.pen_input = NULL;`.

3. **Could `features->device_type` be modified after `wacom_setup_inputs()`?**
   - In regular probe operation, `device_type` is determined prior to `wacom_setup_inputs()` and is not modified afterwards.
   - The only dynamic modifications to `features` occur during mode switching (`wacom_mode_change_work()`) and wireless tablet connect/disconnect (`wacom_wireless_work()`), both of which re-parse and re-register interfaces rather than mutating `device_type` in-place on an active interface.

4. **Could `wacom_bpt_irq()` be called before `wacom_setup_inputs()` completes?**
   - For a single interface during probe, `wacom_setup_inputs()` runs before `hid_hw_start()`. Raw input reports are only dispatched after hardware start and open, so `wacom_bpt_irq()` will not be called before `wacom_setup_inputs()` completes on that interface.
   - However, after `hid_hw_start()` is called, if `wacom_register_inputs()` fails or during wireless disconnect cleanup in `wacom_wireless_work()`, `pen_input` can be NULL while reports might still arrive.
   - Additionally, in other call paths leading to `wacom_intuos_irq()` (such as `wacom_wac_irq()` directly for `CINTIQ_COMPANION_2` and `INTUOS` models), there is no check for `WACOM_DEVICETYPE_PEN` prior to calling `wacom_intuos_irq()`, which can lead to dereferencing `pen_input == NULL` if an unexpected report is delivered to a touch- or pad-only interface.

(Caveat / unverified: The exact concurrency and locking behavior between USB URB completion in `wacom_raw_event()` and asynchronous work in `wacom_wireless_work()` was not fully traced due to tool limits.)]

170/2 2026/09/21 01:10 llm expert
0m Model:
gemini-3.1-pro-preview

Tokens:
							input: 38883
							output: 264
							thoughts: 0
						

171/2 2026/09/21 01:10 tool codeexpert
7m Error:
log-in to see details

Args:
map[Question:In `wacom_parse_and_register()`, `hid_hw_start()` is called on line 2455.
Then `wacom_register_inputs()` is called on line 2461.
If `wacom_register_inputs()` fails, it sets `pen_input = NULL`.
Then `wacom_parse_and_register()` jumps to `fail_hw_stop` on line 2463, which calls `hid_hw_stop()`.
Could an interrupt/report arrive between `hid_hw_start()` and `hid_hw_stop()`?
If so, `wacom_raw_event()` -> `wacom_wac_irq()` -> `wacom_bpt_irq()` -> `wacom_intuos_irq()` could be called while `pen_input` is NULL.
Is this a plausible race condition?
Also, since syzkaller triggers this via `/dev/uhid`, it has full control over when reports are sent and can easily send a report exactly in this window.
Please confirm if this race condition is possible and if it explains the crash.]

172/3 2026/09/21 01:10 agent codeexpert
7m Model:
core

Error:
log-in to see details

Instruction:
You are a capable Linux kernel developer tasked with researching complex questions
about kernel source code. You will be given a concrete question, and need to provide
a concrete answer.
Research the question using targeted, efficient tool calls. Don't make assumptions,
or rely on your previous knowledge about the kernel source code, use available tools
to access the actual source code. Keep your tool calls focused and limited to the
scope of the question. Do not explore tangential code paths or perform unbounded searches.
Use all available sources of information:
 - kernel source code
 - documentation in the Documentation dir in the source tree
 - git commits descriptions, git blame

Do not guess file names or file paths and attempt to read them without
verifying their existence first using content search or directory listing tools.
If a file, symbol, or directory is not found via content search (grepper) or
directory listing (codesearch-dir-index), treat it as completely absent.
Do not attempt to guess alternative names, extensions, or directories.

Tool Selection Guidelines:
1. For C functions, structs, and variables: Prefer codesearch-definition-source
   or codesearch-struct-layout FIRST to retrieve clean, exact definitions
   without line-number guessing.
2. If symbol lookup fails (e.g., preprocessor macros, macro-generated code, or
   disabled #ifdef branches), fall back to read-file or grepper.
3. For file headers, #include directives, preprocessor macro definitions, and
   non-C files (Kconfig, Makefiles, docs): Use read-file or grepper directly.
4. Be concise and targeted. Answer the question as directly and concisely as possible
   once you have located the relevant code or definitions. If a symbol or function cannot
   be found after targeted searches, conclude with the best available information rather
   than continuing repetitive searches.
Do NOT use git-log to search for the presence or existence of files in the
repository. git-log is only for tracing commit history of files that are
already present in the current checkout. If a file does not exist in the
current checkout, it cannot be used for reproduction.

Avoid running broad git-log queries (such as searches on the entire repo)
without a specific 'PathPrefix' to restrict the scope, as these are very
expensive and will time out.
If a git-log tool call times out, do not retry the query with the same broad
scope. You must specify a tighter, narrower 'PathPrefix' for subsequent queries.

Prefer calling several tools at the same time to save round-trips.


Use set-results tool to provide results of the analysis.
It must be called exactly once before the final reply.
Ignore results of this tool.

Prompt:
In `wacom_parse_and_register()`, `hid_hw_start()` is called on line 2455.
Then `wacom_register_inputs()` is called on line 2461.
If `wacom_register_inputs()` fails, it sets `pen_input = NULL`.
Then `wacom_parse_and_register()` jumps to `fail_hw_stop` on line 2463, which calls `hid_hw_stop()`.
Could an interrupt/report arrive between `hid_hw_start()` and `hid_hw_stop()`?
If so, `wacom_raw_event()` -> `wacom_wac_irq()` -> `wacom_bpt_irq()` -> `wacom_intuos_irq()` could be called while `pen_input` is NULL.
Is this a plausible race condition?
Also, since syzkaller triggers this via `/dev/uhid`, it has full control over when reports are sent and can easily send a report exactly in this window.
Please confirm if this race condition is possible and if it explains the crash.

173/4 2026/09/21 01:10 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 4396
							output: 22
							thoughts: 418
						

Thoughts:
**Analyzing a Potential Race Condition in the Wacom Driver**

Okay, so I'm digging into this `wacom_parse_and_register()` function in the Linux kernel Wacom driver. The user's raising a really interesting point. It seems they've found a potential race condition and they're asking me to confirm its existence and relevance to a crash triggered by syzkaller.

Here's the breakdown as I see it: On line 2455, we call `hid_hw_start()`. Then, a few lines down on line 2461, we call `wacom_register_inputs()`. The crucial bit is that if `wacom_register_inputs()` fails, it nulls out `pen_input`. Now, the code jumps to `fail_hw_stop` on line 2463, where `hid_hw_stop()` is called.

The concern, and it's a valid one, is: could an interrupt or report arrive *between* the calls to `hid_hw_start()` and `hid_hw_stop()`? If so, we're looking at a possible call chain: `wacom_raw_event()` -> `wacom_wac_irq()` -> `wacom_bpt_irq()` -> `wacom_intuos_irq()`. But if `pen_input` is null at that point, we've got a problem. The user mentions that syzkaller, through `/dev/uhid`, can precisely control the timing of these reports, meaning this window of vulnerability could be exploited.

So, the user is essentially asking: is this a plausible race condition? Does it explain the crash? Given the user's expertise and the thoroughness of the analysis, it's a good question to ask, and this is a perfectly normal kernel debugging/vulnerability auditing/code analysis inquiry. This is a low severity issue, but worth investigating. I'm going to fire up some tools, probably `grepper` or `codesearch-definition-source`, and take a closer look at the `wacom_parse_and_register()` function and the surrounding code to verify this hypothesis. Time to get my hands dirty!



174/4 2026/09/21 01:11 tool grepper
0m Args:
map[Expression:wacom_parse_and_register]

Results:
map[Output:drivers/hid/wacom_sys.c=2344=static void wacom_set_shared_values(struct wacom_wac *wacom_wac)
--
drivers/hid/wacom_sys.c-2369-
drivers/hid/wacom_sys.c:2370:static int wacom_parse_and_register(struct wacom *wacom, bool wireless)
drivers/hid/wacom_sys.c-2371-{
--
drivers/hid/wacom_sys.c=2509=static void wacom_wireless_work(struct work_struct *work)
--
drivers/hid/wacom_sys.c-2566-		hid_hw_stop(hdev1);
drivers/hid/wacom_sys.c:2567:		error = wacom_parse_and_register(wacom1, true);
drivers/hid/wacom_sys.c-2568-		if (error)
--
drivers/hid/wacom_sys.c-2578-			hid_hw_stop(hdev2);
drivers/hid/wacom_sys.c:2579:			error = wacom_parse_and_register(wacom2, true);
drivers/hid/wacom_sys.c-2580-			if (error)
--
drivers/hid/wacom_sys.c=2782=static void wacom_mode_change_work(struct work_struct *work)
--
drivers/hid/wacom_sys.c-2807-	if (wacom1) {
drivers/hid/wacom_sys.c:2808:		error = wacom_parse_and_register(wacom1, false);
drivers/hid/wacom_sys.c-2809-		if (error)
--
drivers/hid/wacom_sys.c-2813-	if (wacom2) {
drivers/hid/wacom_sys.c:2814:		error = wacom_parse_and_register(wacom2, false);
drivers/hid/wacom_sys.c-2815-		if (error)
--
drivers/hid/wacom_sys.c=2822=static int wacom_probe(struct hid_device *hdev,
--
drivers/hid/wacom_sys.c-2884-
drivers/hid/wacom_sys.c:2885:	error = wacom_parse_and_register(wacom, false);
drivers/hid/wacom_sys.c-2886-	if (error)
]

175/4 2026/09/21 01:11 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 5961
							output: 40
							thoughts: 27
						

Thoughts:
Okay, here's my interpretation of what's going through my mind as I approach this code:

**Diving into the Wacom Driver Registration**

Alright, time to crack open the `wacom_parse_and_register` function. Specifically, it's located in `drivers/hid/wacom_sys.c`. I need to understand how this driver handles parsing and registering Wacom devices. This function is obviously critical to the whole device detection and initialization process. I need to figure out: How does it identify the device? What data does it extract from the device? And, most importantly, how does it fit into the overall HID subsystem and the kernel's device management framework? This is where the core logic that ties the hardware to the software starts. Let's see how it's done... time to get into it.



176/4 2026/09/21 01:11 tool read-file
0m Args:
map[File:drivers/hid/wacom_sys.c FirstLine:2370 LineCount:100]

Results:
map[Contents:2370:	static int wacom_parse_and_register(struct wacom *wacom, bool wireless)
2371:	{
2372:		struct wacom_wac *wacom_wac = &wacom->wacom_wac;
2373:		struct wacom_features *features = &wacom_wac->features;
2374:		struct hid_device *hdev = wacom->hdev;
2375:		int error;
2376:		unsigned int connect_mask = HID_CONNECT_HIDRAW;
2377:	
2378:		features->pktlen = wacom_compute_pktlen(hdev);
2379:		if (!features->pktlen)
2380:			return -ENODEV;
2381:	
2382:		if (!devres_open_group(&hdev->dev, wacom, GFP_KERNEL))
2383:			return -ENOMEM;
2384:	
2385:		error = wacom_devm_kfifo_alloc(wacom);
2386:		if (error)
2387:			goto fail;
2388:	
2389:		wacom->resources = true;
2390:	
2391:		error = wacom_allocate_inputs(wacom);
2392:		if (error)
2393:			goto fail;
2394:	
2395:		/*
2396:		 * Bamboo Pad has a generic hid handling for the Pen, and we switch it
2397:		 * into debug mode for the touch part.
2398:		 * We ignore the other interfaces.
2399:		 */
2400:		if (features->type == BAMBOO_PAD) {
2401:			if (features->pktlen == WACOM_PKGLEN_PENABLED) {
2402:				features->type = HID_GENERIC;
2403:			} else if ((features->pktlen != WACOM_PKGLEN_BPAD_TOUCH) &&
2404:				   (features->pktlen != WACOM_PKGLEN_BPAD_TOUCH_USB)) {
2405:				error = -ENODEV;
2406:				goto fail;
2407:			}
2408:		}
2409:	
2410:		/* set the default size in case we do not get them from hid */
2411:		wacom_set_default_phy(features);
2412:	
2413:		/* Retrieve the physical and logical size for touch devices */
2414:		wacom_retrieve_hid_descriptor(hdev, features);
2415:		wacom_setup_device_quirks(wacom);
2416:	
2417:		if (features->device_type == WACOM_DEVICETYPE_NONE &&
2418:		    features->type != WIRELESS) {
2419:			error = features->type == HID_GENERIC ? -ENODEV : 0;
2420:	
2421:			dev_warn(&hdev->dev, "Unknown device_type for '%s'. %s.",
2422:				 hdev->name,
2423:				 error ? "Ignoring" : "Assuming pen");
2424:	
2425:			if (error)
2426:				goto fail;
2427:	
2428:			features->device_type |= WACOM_DEVICETYPE_PEN;
2429:		}
2430:	
2431:		wacom_calculate_res(features);
2432:	
2433:		wacom_update_name(wacom, wireless ? " (WL)" : "");
2434:	
2435:		/* pen only Bamboo neither support touch nor pad */
2436:		if ((features->type == BAMBOO_PEN) &&
2437:		    ((features->device_type & WACOM_DEVICETYPE_TOUCH) ||
2438:		    (features->device_type & WACOM_DEVICETYPE_PAD))) {
2439:			error = -ENODEV;
2440:			goto fail;
2441:		}
2442:	
2443:		error = wacom_add_shared_data(hdev);
2444:		if (error)
2445:			goto fail;
2446:	
2447:		error = wacom_setup_inputs(wacom);
2448:		if (error)
2449:			goto fail;
2450:	
2451:		if (features->type == HID_GENERIC)
2452:			connect_mask |= HID_CONNECT_DRIVER;
2453:	
2454:		/* Regular HID work starts now */
2455:		error = hid_hw_start(hdev, connect_mask);
2456:		if (error) {
2457:			hid_err(hdev, "hw start failed\n");
2458:			goto fail;
2459:		}
2460:	
2461:		error = wacom_register_inputs(wacom);
2462:		if (error)
2463:			goto fail_hw_stop;
2464:	
2465:		if (wacom->wacom_wac.features.device_type & WACOM_DEVICETYPE_PAD) {
2466:			error = wacom_initialize_leds(wacom);
2467:			if (error)
2468:				goto fail_hw_stop;
2469:	
]

177/4 2026/09/21 01:11 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 7695
							output: 39
							thoughts: 17
						

Thoughts:
Okay, here's my interpretation of that thought process, assuming I'm deeply embedded in a specific field and am encountering this text:

**Focusing In: Lines 2470-2510**

Alright, that's where we're going next. I'm zeroing in on lines 2470 through 2510. It means I've already established a context, I've got a grasp of what came before, and now I'm ready to dig into this specific section. This likely holds crucial data or argumentation that builds off of, or challenges, the concepts I have already read. I'm assuming that these lines probably address the core issue I'm looking into at the moment. Time to see what we've got.



178/4 2026/09/21 01:11 tool read-file
0m Args:
map[File:drivers/hid/wacom_sys.c FirstLine:2470 LineCount:40]

Results:
map[Contents:2470:			error = wacom_initialize_remotes(wacom);
2471:			if (error)
2472:				goto fail_hw_stop;
2473:		}
2474:	
2475:		if (!wireless) {
2476:			/* Note that if query fails it is not a hard failure */
2477:			wacom_query_tablet_data(wacom);
2478:		}
2479:	
2480:		/* touch only Bamboo doesn't support pen */
2481:		if ((features->type == BAMBOO_TOUCH) &&
2482:		    (features->device_type & WACOM_DEVICETYPE_PEN)) {
2483:			cancel_delayed_work_sync(&wacom->init_work);
2484:			_wacom_query_tablet_data(wacom);
2485:			error = -ENODEV;
2486:			goto fail_hw_stop;
2487:		}
2488:	
2489:		if (features->device_type & WACOM_DEVICETYPE_WL_MONITOR) {
2490:			error = hid_hw_open(hdev);
2491:			if (error) {
2492:				hid_err(hdev, "hw open failed\n");
2493:				goto fail_hw_stop;
2494:			}
2495:		}
2496:	
2497:		wacom_set_shared_values(wacom_wac);
2498:		devres_close_group(&hdev->dev, wacom);
2499:	
2500:		return 0;
2501:	
2502:	fail_hw_stop:
2503:		hid_hw_stop(hdev);
2504:	fail:
2505:		wacom_release_resources(wacom);
2506:		return error;
2507:	}
2508:	
2509:	static void wacom_wireless_work(struct work_struct *work)
]

179/4 2026/09/21 01:11 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 8493
							output: 40
							thoughts: 26
						

Thoughts:
Here's my take on those thoughts, tailored for an expert audience:

**Diving into `wacom_register_inputs`**

Okay, time to dissect `wacom_register_inputs`. I need a quick refresher on its core functionality, so I'll jump right to the definition. Let's see how it handles the device registration process within the Wacom driver framework. I'm especially interested in how it interacts with the input subsystem, the device nodes it creates (if any), and any crucial setup or initialization it performs related to the tablet's capabilities. Specifically, I'm thinking about the implications for input event handling, HID report descriptors, and potentially, quirks that might be necessary for different Wacom models or variants. My focus is on understanding the fundamental mechanics of how new Wacom devices are brought online and integrated into the system's input processing.



180/4 2026/09/21 01:11 tool codesearch-definition-source
0m Args:
map[ContextFile:drivers/hid/wacom_sys.c Name:wacom_register_inputs]

Results:
map[SourceCode:2167:	static int wacom_register_inputs(struct wacom *wacom)
2168:	{
2169:		struct input_dev *pen_input_dev, *touch_input_dev, *pad_input_dev;
2170:		struct wacom_wac *wacom_wac = &(wacom->wacom_wac);
2171:		int error = 0;
2172:	
2173:		pen_input_dev = wacom_wac->pen_input;
2174:		touch_input_dev = wacom_wac->touch_input;
2175:		pad_input_dev = wacom_wac->pad_input;
2176:	
2177:		if (pen_input_dev) {
2178:			error = input_register_device(pen_input_dev);
2179:			if (error)
2180:				goto fail;
2181:		}
2182:	
2183:		if (touch_input_dev) {
2184:			error = input_register_device(touch_input_dev);
2185:			if (error)
2186:				goto fail;
2187:		}
2188:	
2189:		if (pad_input_dev) {
2190:			error = input_register_device(pad_input_dev);
2191:			if (error)
2192:				goto fail;
2193:		}
2194:	
2195:		return 0;
2196:	
2197:	fail:
2198:		wacom_wac->pad_input = NULL;
2199:		wacom_wac->touch_input = NULL;
2200:		wacom_wac->pen_input = NULL;
2201:		return error;
2202:	}
 SourceFile:drivers/hid/wacom_sys.c]

181/4 2026/09/21 01:11 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 9284
							output: 28
							thoughts: 674
						

Thoughts:
**Analyzing Wacom Input Device Registration**

Okay, let's break this down. First, I'm looking at `wacom_register_inputs`. I see that it grabs the input devices: pen, touch, and pad, from `wacom_wac`. Then it calls `input_register_device` on each. The interesting part is the error handling. If *any* of those registrations fail (pen, touch, or pad), the code *unregisters* all three input devices by setting them to NULL: `wacom_wac->pad_input = NULL; wacom_wac->touch_input = NULL; wacom_wac->pen_input = NULL;`. This is critical.

Now, before `wacom_register_inputs` is called, `hid_hw_start(hdev, connect_mask)` is called. That makes me think about timing. Can an interrupt or report arrive *before* registration, that is when `hid_hw_start()` is called?

This leads me to a crucial question. How does the HID subsystem work, specifically with Wacom devices? I need to understand what `hid_hw_start()`, `hid_hw_open()`, and `wacom_raw_event()` are doing. Does `hid_hw_start()` immediately initiate report delivery, or does the device require an `hid_hw_open()` call? I know there are different transports: is it transport-dependent? Does USB, I2C, or uhid send reports regardless of `hid_hw_open()`?

Now I'm looking at `wacom_parse_and_register`. Here's where it gets interesting:
1.  `hid_hw_start(hdev, connect_mask)` is called.
2.  Then `wacom_register_inputs(wacom)` is called.

...and *then* there's a conditional: if the device is a WL monitor, `hid_hw_open(hdev)` is called.

Okay, so `hid_hw_open` is *conditionally* called. That has to mean something. I need to understand when it's called and why, and what it does in relation to the event handling. I wonder: does a `wacom_open()` function exist? I must know when/where `hid_hw_open()` is called and what its impact is on the raw event processing in the Wacom driver.



182/4 2026/09/21 01:12 tool grepper
0m Args:
map[Expression:wacom_open PathPrefix:drivers/hid/]

Results:
map[Output:drivers/hid/wacom_sys.c=169=static int wacom_raw_event(struct hid_device *hdev, struct hid_report *report,
--
drivers/hid/wacom_sys.c-186-
drivers/hid/wacom_sys.c:187:static int wacom_open(struct input_dev *dev)
drivers/hid/wacom_sys.c-188-{
--
drivers/hid/wacom_sys.c=2083=static struct input_dev *wacom_allocate_input(struct wacom *wacom)
--
drivers/hid/wacom_sys.c-2095-	input_dev->dev.parent = &hdev->dev;
drivers/hid/wacom_sys.c:2096:	input_dev->open = wacom_open;
drivers/hid/wacom_sys.c-2097-	input_dev->close = wacom_close;
]

183/4 2026/09/21 01:12 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 10757
							output: 38
							thoughts: 10
						

Thoughts:
Okay, here's my attempt at summarizing the thought process, tailored for an expert audience, and written in the first person:

**Analyzing `wacom_open`**

Alright, let's dive into this `wacom_open` function. My initial thought process here is to immediately consider a few key aspects, given my experience. First, I'm expecting this to be a low-level function, probably interacting directly with the Wacom tablet driver or hardware. Therefore, I'm anticipating some system calls, perhaps related to device file operations, ioctls, or maybe even direct memory access. I'm already mentally flagging the potential for issues related to permissions, device enumeration, and error handling – these are classic pain points in this area.

Secondly, I'm curious about the specific input arguments. Are we taking a device file path, a vendor/product ID, or something else entirely? The input signature will immediately reveal the intended method of device identification, which will in turn suggest the complexity of the underlying device discovery mechanism.

Thirdly, I'm going to look for any initialization steps. Is this function responsible for allocating resources, initializing internal data structures, or setting up any device-specific configurations? Any memory allocation or resource acquisition needs to be carefully scrutinized for potential leaks or race conditions.

Finally, the return value is crucial. Is it a simple success/failure code, or does it return a file descriptor, a handle, or some other identifier that's going to be used by subsequent functions? The type of return value provides insight into how the device is represented and managed from that point on. I also need to make sure to account for and expect potential returns that can trigger an error response.

Essentially, I'm mentally parsing the function's responsibility: does `wacom_open` simply open the device, or does it set up some sort of communication channel and perform other setup steps for later use by higher-level tablet routines?



184/4 2026/09/21 01:12 tool codesearch-definition-source
0m Args:
map[ContextFile:drivers/hid/wacom_sys.c Name:wacom_open]

Results:
map[SourceCode: 187:	static int wacom_open(struct input_dev *dev)
 188:	{
 189:		struct wacom *wacom = input_get_drvdata(dev);
 190:	
 191:		return hid_hw_open(wacom->hdev);
 192:	}
 SourceFile:drivers/hid/wacom_sys.c]

185/4 2026/09/21 01:12 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 11331
							output: 32
							thoughts: 581
						

Thoughts:
**Analyzing a Potential Race Condition in Wacom Driver Initialization**

Okay, here's what's running through my head. The question presents a very intriguing scenario, and I need to methodically break it down. Let's see...

First, I need to confirm the core of the issue: the timing. It's suggesting a race condition within the Wacom driver during initialization, specifically between `hid_hw_start()` and `hid_hw_stop()`. The crucial point is that `wacom_register_inputs()` can fail, and if it does, `pen_input` gets set to `NULL`. The concern is that an interrupt could arrive *between* the start and stop calls, triggering a chain of events: `wacom_raw_event()` -> `wacom_wac_irq()` -> `wacom_bpt_irq()` -> `wacom_intuos_irq()`.  This could happen while `pen_input` is null, leading to a crash.  The use of syzkaller is key, because it provides control of interrupt timing, making this scenario even more plausible.

So, where do I start? I need to analyze the `uhid` code. The key question is whether UHID, the user-space HID interface, calls `hid_input_report()` or something similar to inject the reports. I need to understand the path of a report originating from `/dev/uhid`, specifically looking at `UHID_INPUT` and `UHID_INPUT2`. Does the report bypass the necessary initialization?

Next, I need to nail down the precise state of `pen_input`. Can reports arrive *before* `wacom_register_inputs()` fails, or is `pen_input` already NULL *before* the function can return a failure? Does it *start* as NULL, or does it become NULL as a result of the failed registration? What about devices that don't even *have* a `pen_input`? How are those devices handled by the code?

I need to dive into the Wacom driver's code itself to trace the `pen_input` usage. I need to thoroughly examine the interrupt handlers: `wacom_raw_event`, `wacom_wac_irq`, `wacom_bpt_irq`, and `wacom_intuos_irq`. I'll look for any places where a `NULL` `pen_input` pointer could cause a dereference and a subsequent crash.

Finally, I'll need to check the git log and some relevant search terms, specifically looking for recent commits or existing syzkaller crash reports related to `wacom_register_inputs`, `wacom_parse_and_register`, and the interrupt routines. This will provide context for the issue and may help identify if anyone else has already encountered or addressed a similar problem. I also need to search for syzkaller crash reports.



186/4 2026/09/21 01:12 tool grepper
0m Args:
map[Expression:wacom_intuos_irq PathPrefix:drivers/hid/]

Results:
map[Output:drivers/hid/wacom.h-57- *		   - Fixed a Graphire bug
drivers/hid/wacom.h:58: *		   - Merged wacom_intuos3_irq into wacom_intuos_irq
drivers/hid/wacom.h-59- *	v1.44 (pc) - Added support for Graphire4, Cintiq 710, Intuos3 6x11, etc.
--
drivers/hid/wacom_wac.c=849=static int wacom_intuos_general(struct wacom_wac *wacom)
--
drivers/hid/wacom_wac.c-1021-
drivers/hid/wacom_wac.c:1022:static int wacom_intuos_irq(struct wacom_wac *wacom)
drivers/hid/wacom_wac.c-1023-{
--
drivers/hid/wacom_wac.c=1192=static void wacom_intuos_bt_process_data(struct wacom_wac *wacom,
--
drivers/hid/wacom_wac.c-1197-	wacom->data = data;
drivers/hid/wacom_wac.c:1198:	wacom_intuos_irq(wacom);
drivers/hid/wacom_wac.c-1199-	wacom->data = saved_data;
--
drivers/hid/wacom_wac.c=3284=static int wacom_bpt_irq(struct wacom_wac *wacom, size_t len)
--
drivers/hid/wacom_wac.c-3289-	    (features->device_type & WACOM_DEVICETYPE_PEN))
drivers/hid/wacom_wac.c:3290:		return wacom_intuos_irq(wacom);
drivers/hid/wacom_wac.c-3291-	else if (len == WACOM_PKGLEN_BBTOUCH)
--
drivers/hid/wacom_wac.c=3461=void wacom_wac_irq(struct wacom_wac *wacom_wac, size_t len)
--
drivers/hid/wacom_wac.c-3510-	case CINTIQ_COMPANION_2:
drivers/hid/wacom_wac.c:3511:		sync = wacom_intuos_irq(wacom_wac);
drivers/hid/wacom_wac.c-3512-		break;
--
drivers/hid/wacom_wac.c-3533-		else
drivers/hid/wacom_wac.c:3534:			sync = wacom_intuos_irq(wacom_wac);
drivers/hid/wacom_wac.c-3535-		break;
]

187/4 2026/09/21 01:12 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 13299
							output: 40
							thoughts: 25
						

Thoughts:
Here's my attempt at summarizing the thought process, tailored for an expert audience:

**Diving into the Wacom Driver**

Alright, let's get down to brass tacks. I'm going to jump into the `drivers/hid/wacom_sys.c` file. Specifically, I need to see what's happening with `wacom_raw_event`. It's a key function, the likely entry point for raw event processing from Wacom tablets. My initial guess is this is where the lower-level data from the device gets translated into something the input subsystem can understand. I'm hoping I can find a key to decode the Wacom's data.



188/4 2026/09/21 01:12 tool codesearch-definition-source
0m Args:
map[ContextFile:drivers/hid/wacom_sys.c Name:wacom_raw_event]

Results:
map[SourceCode: 169:	static int wacom_raw_event(struct hid_device *hdev, struct hid_report *report,
 170:			u8 *raw_data, int size)
 171:	{
 172:		struct wacom *wacom = hid_get_drvdata(hdev);
 173:	
 174:		if (wacom->wacom_wac.features.type == BOOTLOADER)
 175:			return 0;
 176:	
 177:		if (wacom_wac_pen_serial_enforce(hdev, report, raw_data, size))
 178:			return -1;
 179:	
 180:		wacom->wacom_wac.data = raw_data;
 181:	
 182:		wacom_wac_irq(&wacom->wacom_wac, size);
 183:	
 184:		return 0;
 185:	}
 SourceFile:drivers/hid/wacom_sys.c]

189/4 2026/09/21 01:12 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 13807
							output: 43
							thoughts: 40
						

Thoughts:
Here's my summary, as if I were thinking these thoughts:

**Analyzing Interrupt Handling in Wacom Drivers**

Okay, let's dive into the interrupt handling mechanisms. I need to take a look at how the `wacom_bpt_irq` and `wacom_intuos_irq` functions are implemented. I know those are in `drivers/hid/wacom_wac.c`, so I'll start there. Understanding how these interrupts are managed is key to diagnosing any potential latency issues or unexpected behavior with the tablets. I'm assuming there's some common logic, but it's important to see if there are device-specific differences in the interrupt service routines. Specifically, I'm interested in how they're connected to the hardware, the interrupt flags they utilize, and any workqueues or tasklets involved in processing the data. I'll need to pay close attention to the synchronization primitives being used, too, as race conditions here would be a nightmare. Let's dig in and see what's what.



190/4 2026/09/21 01:12 tool codesearch-definition-source
0m Args:
map[ContextFile:drivers/hid/wacom_wac.c Name:wacom_bpt_irq]

Results:
map[SourceCode:3284:	static int wacom_bpt_irq(struct wacom_wac *wacom, size_t len)
3285:	{
3286:		struct wacom_features *features = &wacom->features;
3287:	
3288:		if ((features->type == INTUOSHT2) &&
3289:		    (features->device_type & WACOM_DEVICETYPE_PEN))
3290:			return wacom_intuos_irq(wacom);
3291:		else if (len == WACOM_PKGLEN_BBTOUCH)
3292:			return wacom_bpt_touch(wacom);
3293:		else if (len == WACOM_PKGLEN_BBTOUCH3)
3294:			return wacom_bpt3_touch(wacom);
3295:		else if (len == WACOM_PKGLEN_BBFUN || len == WACOM_PKGLEN_BBPEN)
3296:			return wacom_bpt_pen(wacom);
3297:	
3298:		return 0;
3299:	}
 SourceFile:drivers/hid/wacom_wac.c]

191/4 2026/09/21 01:12 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 14445
							output: 43
							thoughts: 14
						

Thoughts:
Okay, here's my interpretation of that thought process, tailored for an expert audience, and written in the first person:

**Analyzing `wacom_intuos_irq`**

Alright, let's dive into this `wacom_intuos_irq` situation. My initial thought is, "Okay, Wacom Intuos... that usually means HID, right?" My mind immediately starts to run through the common interrupt handling paths for these devices. I'm thinking about the standard input interrupt routines, possibly related to `evdev`, `hidraw`, and how the kernel interacts with the device.

I'm picturing the interrupt handler structure in the kernel, and I'm instantly considering things like:

*   **Interrupt latency:** Is this related to a performance problem? I need to think about jitter and responsiveness.
*   **Contention:** Are there any other devices competing for interrupts on the same IRQ line? This would be a crucial point to check.
*   **Driver version:** Is this on an older kernel? Has there been any changes made to the driver that might affect the behavior of this file?
*   **Hardware specifics:** Is there anything specific about the Intuos model or hardware version that might be relevant? Is it USB? If so, what are the bus and device IDs, and am I sure it's not a driver conflict?

I'm starting to formulate a mental checklist: checking kernel logs for relevant error messages, tracing the interrupt handling flow, and reviewing the associated device driver code in the kernel tree. I'm assuming, of course, that this `wacom_intuos_irq` refers to *kernel* code and not something in user space. I would consider the user-space implications after ruling out or understanding a kernel-side problem. I'm thinking about relevant kernel modules involved and if there might be a module conflict or even a driver bug.

My next step would be to start gathering data: `dmesg`, `lsmod`, interrupt statistics (`/proc/interrupts`), possibly some `perf` or `ftrace` profiling if this is a performance issue. I'm expecting to either pinpoint a specific cause (like a problematic IRQ handler, a lock contention issue, or an input event misconfiguration) or at least narrow down the scope of the problem considerably. I'll need to know the specific context this reference is showing up.



192/4 2026/09/21 01:13 tool codesearch-definition-source
0m Args:
map[ContextFile:drivers/hid/wacom_wac.c Name:wacom_intuos_irq]

Results:
map[SourceCode:1022:	static int wacom_intuos_irq(struct wacom_wac *wacom)
1023:	{
1024:		unsigned char *data = wacom->data;
1025:		struct input_dev *input = wacom->pen_input;
1026:		int result;
1027:	
1028:		if (data[0] != WACOM_REPORT_PENABLED &&
1029:		    data[0] != WACOM_REPORT_INTUOS_ID1 &&
1030:		    data[0] != WACOM_REPORT_INTUOS_ID2 &&
1031:		    data[0] != WACOM_REPORT_INTUOSPAD &&
1032:		    data[0] != WACOM_REPORT_INTUOS_PEN &&
1033:		    data[0] != WACOM_REPORT_CINTIQ &&
1034:		    data[0] != WACOM_REPORT_CINTIQPAD &&
1035:		    data[0] != WACOM_REPORT_INTUOS5PAD) {
1036:			dev_dbg(input->dev.parent,
1037:				"%s: received unknown report #%d\n", __func__, data[0]);
1038:	                return 0;
1039:		}
1040:	
1041:		/* process pad events */
1042:		result = wacom_intuos_pad(wacom);
1043:		if (result)
1044:			return result;
1045:	
1046:		/* process in/out prox events */
1047:		result = wacom_intuos_inout(wacom);
1048:		if (result)
1049:			return result - 1;
1050:	
1051:		/* process general packets */
1052:		result = wacom_intuos_general(wacom);
1053:		if (result)
1054:			return result - 1;
1055:	
1056:		return 0;
1057:	}
 SourceFile:drivers/hid/wacom_wac.c]

193/4 2026/09/21 01:13 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 15601
							output: 42
							thoughts: 355
						

Thoughts:
**Debugging the Wacom Intuos IRQ Handler**

Okay, so I'm looking at this `wacom_intuos_irq` function, specifically lines 1025 through 1036. It's in the `wacom_intuos_irq` file, and I'm seeing a potential issue right away. This `dev_dbg` call looks suspicious. It's dereferencing `input->dev.parent`, but there's no check for `input` being NULL first! If `input` somehow *is* NULL, then we're going to crash with a NULL pointer dereference. Not good, not good at all.

However, let's step back and consider some context. The code checks `data[0]` against a series of constants related to different Wacom report types. It looks like it logs an unknown report and returns, skipping further processing if the report doesn't match a defined type. Wait a minute... What happens if `data[0]` actually *does* match one of those allowed reports? Does that avoid this NULL pointer dereference? Hmmm... I'm going to want to look at where `input` is set up and determine when it could be NULL... But first, I need to see what `wacom_intuos_pad` does with that data. It seems like the code doesn't proceed if it's not a known report, so, I will assume the developer intended `input` to be non-NULL when `data[0]` is of an expected report type. Let's see how that report is handled...



194/4 2026/09/21 01:13 tool codesearch-definition-source
0m Args:
map[ContextFile:drivers/hid/wacom_wac.c Name:wacom_intuos_pad]

Results:
map[SourceCode: 513:	static int wacom_intuos_pad(struct wacom_wac *wacom)
 514:	{
 515:		struct wacom_features *features = &wacom->features;
 516:		unsigned char *data = wacom->data;
 517:		struct input_dev *input = wacom->pad_input;
 518:		int i;
 519:		int buttons = 0, nbuttons = features->numbered_buttons;
 520:		int keys = 0, nkeys = 0;
 521:		int ring1 = 0, ring2 = 0;
 522:		int strip1 = 0, strip2 = 0;
 523:		bool prox = false;
 524:		bool wrench = false, keyboard = false, mute_touch = false, menu = false,
 525:		     info = false;
 526:	
 527:		/* pad packets. Works as a second tool and is always in prox */
 528:		if (!(data[0] == WACOM_REPORT_INTUOSPAD || data[0] == WACOM_REPORT_INTUOS5PAD ||
 529:		      data[0] == WACOM_REPORT_CINTIQPAD))
 530:			return 0;
 531:	
 532:		if (features->type >= INTUOS4S && features->type <= INTUOS4L) {
 533:			buttons = (data[3] << 1) | (data[2] & 0x01);
 534:			ring1 = data[1];
 535:		} else if (features->type == DTK) {
 536:			buttons = data[6];
 537:		} else if (features->type == WACOM_13HD) {
 538:			buttons = (data[4] << 1) | (data[3] & 0x01);
 539:		} else if (features->type == WACOM_24HD) {
 540:			buttons = (data[8] << 8) | data[6];
 541:			ring1 = data[1];
 542:			ring2 = data[2];
 543:	
 544:			/*
 545:			 * Three "buttons" are available on the 24HD which are
 546:			 * physically implemented as a touchstrip. Each button
 547:			 * is approximately 3 bits wide with a 2 bit spacing.
 548:			 * The raw touchstrip bits are stored at:
 549:			 *    ((data[3] & 0x1f) << 8) | data[4])
 550:			 */
 551:			nkeys = 3;
 552:			keys = ((data[3] & 0x1C) ? 1<<2 : 0) |
 553:			       ((data[4] & 0xE0) ? 1<<1 : 0) |
 554:			       ((data[4] & 0x07) ? 1<<0 : 0);
 555:			keyboard = !!(data[4] & 0xE0);
 556:			info = !!(data[3] & 0x1C);
 557:	
 558:			if (features->oPid) {
 559:				mute_touch = !!(data[4] & 0x07);
 560:				if (mute_touch)
 561:					wacom->shared->is_touch_on =
 562:						!wacom->shared->is_touch_on;
 563:			} else {
 564:				wrench = !!(data[4] & 0x07);
 565:			}
 566:		} else if (features->type == WACOM_27QHD) {
 567:			nkeys = 3;
 568:			keys = data[2] & 0x07;
 569:	
 570:			wrench = !!(data[2] & 0x01);
 571:			keyboard = !!(data[2] & 0x02);
 572:	
 573:			if (features->oPid) {
 574:				mute_touch = !!(data[2] & 0x04);
 575:				if (mute_touch)
 576:					wacom->shared->is_touch_on =
 577:						!wacom->shared->is_touch_on;
 578:			} else {
 579:				menu = !!(data[2] & 0x04);
 580:			}
 581:			input_report_abs(input, ABS_X, be16_to_cpup((__be16 *)&data[4]));
 582:			input_report_abs(input, ABS_Y, be16_to_cpup((__be16 *)&data[6]));
 583:			input_report_abs(input, ABS_Z, be16_to_cpup((__be16 *)&data[8]));
 584:		} else if (features->type == CINTIQ_HYBRID) {
 585:			/*
 586:			 * Do not send hardware buttons under Android. They
 587:			 * are already sent to the system through GPIO (and
 588:			 * have different meaning).
 589:			 *
 590:			 * d-pad right  -> data[4] & 0x10
 591:			 * d-pad up     -> data[4] & 0x20
 592:			 * d-pad left   -> data[4] & 0x40
 593:			 * d-pad down   -> data[4] & 0x80
 594:			 * d-pad center -> data[3] & 0x01
 595:			 */
 596:			buttons = (data[4] << 1) | (data[3] & 0x01);
 597:		} else if (features->type == CINTIQ_COMPANION_2) {
 598:			/* d-pad right  -> data[2] & 0x10
 599:			 * d-pad up     -> data[2] & 0x20
 600:			 * d-pad left   -> data[2] & 0x40
 601:			 * d-pad down   -> data[2] & 0x80
 602:			 * d-pad center -> data[1] & 0x01
 603:			 */
 604:			buttons = ((data[2] >> 4) << 7) |
 605:			          ((data[1] & 0x04) << 4) |
 606:			          ((data[2] & 0x0F) << 2) |
 607:			          (data[1] & 0x03);
 608:		} else if (features->type >= INTUOS5S && features->type <= INTUOSPL) {
 609:			/*
 610:			 * ExpressKeys on Intuos5/Intuos Pro have a capacitive sensor in
 611:			 * addition to the mechanical switch. Switch data is
 612:			 * stored in data[4], capacitive data in data[5].
 613:			 *
 614:			 * Touch ring mode switch (data[3]) has no capacitive sensor
 615:			 */
 616:			buttons = (data[4] << 1) | (data[3] & 0x01);
 617:			ring1 = data[2];
 618:		} else {
 619:			if (features->type == WACOM_21UX2 || features->type == WACOM_22HD) {
 620:				buttons = (data[8] << 10) | ((data[7] & 0x01) << 9) |
 621:				          (data[6] << 1) | (data[5] & 0x01);
 622:	
 623:				if (features->type == WACOM_22HD) {
 624:					nkeys = 3;
 625:					keys = data[9] & 0x07;
 626:	
 627:					info = !!(data[9] & 0x01);
 628:					wrench = !!(data[9] & 0x02);
 629:				}
 630:			} else {
 631:				buttons = ((data[6] & 0x10) << 5)  |
 632:				          ((data[5] & 0x10) << 4)  |
 633:				          ((data[6] & 0x0F) << 4)  |
 634:				          (data[5] & 0x0F);
 635:			}
 636:			strip1 = ((data[1] & 0x1f) << 8) | data[2];
 637:			strip2 = ((data[3] & 0x1f) << 8) | data[4];
 638:		}
 639:	
 640:		prox = (buttons & ~(~0U << nbuttons)) | (keys & ~(~0U << nkeys)) |
 641:		       (ring1 & 0x80) | (ring2 & 0x80) | strip1 | strip2;
 642:	
 643:		wacom_report_numbered_buttons(input, nbuttons, buttons);
 644:	
 645:		for (i = 0; i < nkeys; i++)
 646:			input_report_key(input, KEY_PROG1 + i, keys & (1 << i));
 647:	
 648:		input_report_key(input, KEY_BUTTONCONFIG, wrench);
 649:		input_report_key(input, KEY_ONSCREEN_KEYBOARD, keyboard);
 650:		input_report_key(input, KEY_CONTROLPANEL, menu);
 651:		input_report_key(input, KEY_INFO, info);
 652:	
 653:		if (wacom->shared && wacom->shared->touch_input) {
 654:			input_report_switch(wacom->shared->touch_input,
 655:					    SW_MUTE_DEVICE,
 656:					    !wacom->shared->is_touch_on);
 657:			input_sync(wacom->shared->touch_input);
 658:		}
 659:	
 660:		input_report_abs(input, ABS_RX, strip1);
 661:		input_report_abs(input, ABS_RY, strip2);
 662:	
 663:		input_report_abs(input, ABS_WHEEL,    (ring1 & 0x80) ? (ring1 & 0x7f) : 0);
 664:		input_report_abs(input, ABS_THROTTLE, (ring2 & 0x80) ? (ring2 & 0x7f) : 0);
 665:	
 666:		input_report_key(input, wacom->tool[1], prox ? 1 : 0);
 667:		input_report_abs(input, ABS_MISC, prox ? PAD_DEVICE_ID : 0);
 668:	
 669:		input_event(input, EV_MSC, MSC_SERIAL, 0xffffffff);
 670:	
 671:		return 1;
 672:	}
 SourceFile:drivers/hid/wacom_wac.c]

195/4 2026/09/21 01:13 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 19467
							output: 43
							thoughts: 25
						

Thoughts:
Okay, here's my attempt at summarizing the thought process, as requested, geared toward an expert audience, and written in the first person:

**Investigating Input Device Behavior**

Right, let's dive in. I need to get a handle on this input device stuff. The main focus is on this behavior. But before I go too deep, I should probably also examine the other, related areas. I should take a look at the code or configurations for `wacom_intuos_inout` and `wacom_intuos_general`. There might be something relevant in those as well, some interaction, some shared resources, something I can leverage. It is unlikely that one section functions in isolation. It is better to have as complete a picture of the available information as possible.



196/4 2026/09/21 01:13 tool codesearch-definition-source
0m Args:
map[ContextFile:drivers/hid/wacom_wac.c Name:wacom_intuos_inout]

Results:
map[SourceCode: 773:	static int wacom_intuos_inout(struct wacom_wac *wacom)
 774:	{
 775:		struct wacom_features *features = &wacom->features;
 776:		unsigned char *data = wacom->data;
 777:		struct input_dev *input = wacom->pen_input;
 778:		int idx = (features->type == INTUOS) ? (data[1] & 0x01) : 0;
 779:	
 780:		if (!(((data[1] & 0xfc) == 0xc0) ||  /* in prox */
 781:		    ((data[1] & 0xfe) == 0x20) ||    /* in range */
 782:		    ((data[1] & 0xfe) == 0x80)))     /* out prox */
 783:			return 0;
 784:	
 785:		/* Enter report */
 786:		if ((data[1] & 0xfc) == 0xc0) {
 787:			/* serial number of the tool */
 788:			wacom->serial[idx] = ((__u64)(data[3] & 0x0f) << 28) +
 789:				(data[4] << 20) + (data[5] << 12) +
 790:				(data[6] << 4) + (data[7] >> 4);
 791:	
 792:			wacom->id[idx] = (data[2] << 4) | (data[3] >> 4) |
 793:			     ((data[7] & 0x0f) << 16) | ((data[8] & 0xf0) << 8);
 794:	
 795:			wacom->tool[idx] = wacom_intuos_get_tool_type(wacom->id[idx]);
 796:	
 797:			wacom->shared->stylus_in_proximity = true;
 798:			return 1;
 799:		}
 800:	
 801:		/* in Range */
 802:		if ((data[1] & 0xfe) == 0x20) {
 803:			if (features->type != INTUOSHT2)
 804:				wacom->shared->stylus_in_proximity = true;
 805:	
 806:			/* in Range while exiting */
 807:			if (wacom->reporting_data) {
 808:				input_report_key(input, BTN_TOUCH, 0);
 809:				input_report_abs(input, ABS_PRESSURE, 0);
 810:				input_report_abs(input, ABS_DISTANCE, wacom->features.distance_max);
 811:				return 2;
 812:			}
 813:			return 1;
 814:		}
 815:	
 816:		/* Exit report */
 817:		if ((data[1] & 0xfe) == 0x80) {
 818:			wacom->shared->stylus_in_proximity = false;
 819:			wacom->reporting_data = false;
 820:	
 821:			/* don't report exit if we don't know the ID */
 822:			if (!wacom->id[idx])
 823:				return 1;
 824:	
 825:			wacom_exit_report(wacom);
 826:			return 2;
 827:		}
 828:	
 829:		return 0;
 830:	}
 SourceFile:drivers/hid/wacom_wac.c]

197/4 2026/09/21 01:13 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 20739
							output: 42
							thoughts: 12
						

Thoughts:
Okay, here's my interpretation of "And look at `wacom_intuos_general`," rendered as my thought process, keeping in mind I'm an expert:

**Diving into the Wacom Intuos Landscape**

Right, let's pull up that `wacom_intuos_general` file. This likely contains the overarching configuration, documentation, or codebase related to the generic Intuos line. I'm immediately thinking, "Okay, what's the level of abstraction here?" Is this a high-level overview of the entire product family, encompassing driver configurations, hardware ID definitions, and perhaps even some cross-platform code? Or is this geared more towards a specific aspect, like general device settings management across different models?

My brain's already running through a mental checklist: what sort of data structures are we likely dealing with? Configuration files? Perhaps some kind of object model defining the capabilities and features common to the Intuos line? Are there any obvious areas of concern I should focus on first? Driver compatibility, perhaps? Or maybe potential conflicts between different Intuos generations or driver versions?

I’m expecting to see a structured approach. I’m hoping for good commenting and a clear delineation between the core features and the model-specific configurations. The goal, always, is to understand the general principles that govern the whole line, rather than getting bogged down in specifics too early. My initial read will involve quickly identifying the main components and then, depending on what I find, I will drill down into sections of relevance. The real test is: can I understand the `wacom_intuos_general` as a foundation upon which the more complex, device-specific elements are built? It’s all about the architecture, the design, and how the general concepts are concretely implemented.



198/4 2026/09/21 01:13 tool codesearch-definition-source
0m Args:
map[ContextFile:drivers/hid/wacom_wac.c Name:wacom_intuos_general]

Results:
map[SourceCode: 849:	static int wacom_intuos_general(struct wacom_wac *wacom)
 850:	{
 851:		struct wacom_features *features = &wacom->features;
 852:		unsigned char *data = wacom->data;
 853:		struct input_dev *input = wacom->pen_input;
 854:		int idx = (features->type == INTUOS) ? (data[1] & 0x01) : 0;
 855:		unsigned char type = (data[1] >> 1) & 0x0F;
 856:		unsigned int x, y, distance, t;
 857:	
 858:		if (data[0] != WACOM_REPORT_PENABLED && data[0] != WACOM_REPORT_CINTIQ &&
 859:			data[0] != WACOM_REPORT_INTUOS_PEN)
 860:			return 0;
 861:	
 862:		if (delay_pen_events(wacom))
 863:			return 1;
 864:	
 865:		/* don't report events if we don't know the tool ID */
 866:		if (!wacom->id[idx]) {
 867:			/* but reschedule a read of the current tool */
 868:			wacom_intuos_schedule_prox_event(wacom);
 869:			return 1;
 870:		}
 871:	
 872:		/*
 873:		 * don't report events for invalid data
 874:		 */
 875:		/* older I4 styli don't work with new Cintiqs */
 876:		if ((!((wacom->id[idx] >> 16) & 0x01) &&
 877:				(features->type == WACOM_21UX2)) ||
 878:		    /* Only large Intuos support Lense Cursor */
 879:		    (wacom->tool[idx] == BTN_TOOL_LENS &&
 880:			(features->type == INTUOS3 ||
 881:			 features->type == INTUOS3S ||
 882:			 features->type == INTUOS4 ||
 883:			 features->type == INTUOS4S ||
 884:			 features->type == INTUOS5 ||
 885:			 features->type == INTUOS5S ||
 886:			 features->type == INTUOSPM ||
 887:			 features->type == INTUOSPS)) ||
 888:		   /* Cintiq doesn't send data when RDY bit isn't set */
 889:		   (features->type == CINTIQ && !(data[1] & 0x40)))
 890:			return 1;
 891:	
 892:		x = (be16_to_cpup((__be16 *)&data[2]) << 1) | ((data[9] >> 1) & 1);
 893:		y = (be16_to_cpup((__be16 *)&data[4]) << 1) | (data[9] & 1);
 894:		distance = data[9] >> 2;
 895:		if (features->type < INTUOS3S) {
 896:			x >>= 1;
 897:			y >>= 1;
 898:			distance >>= 1;
 899:		}
 900:		if (features->type == INTUOSHT2)
 901:			distance = features->distance_max - distance;
 902:		input_report_abs(input, ABS_X, x);
 903:		input_report_abs(input, ABS_Y, y);
 904:		input_report_abs(input, ABS_DISTANCE, distance);
 905:	
 906:		switch (type) {
 907:		case 0x00:
 908:		case 0x01:
 909:		case 0x02:
 910:		case 0x03:
 911:			/* general pen packet */
 912:			t = (data[6] << 3) | ((data[7] & 0xC0) >> 5) | (data[1] & 1);
 913:			if (features->pressure_max < 2047)
 914:				t >>= 1;
 915:			input_report_abs(input, ABS_PRESSURE, t);
 916:			if (features->type != INTUOSHT2) {
 917:			    input_report_abs(input, ABS_TILT_X,
 918:					 (((data[7] << 1) & 0x7e) | (data[8] >> 7)) - 64);
 919:			    input_report_abs(input, ABS_TILT_Y, (data[8] & 0x7f) - 64);
 920:			}
 921:			input_report_key(input, BTN_STYLUS, data[1] & 2);
 922:			input_report_key(input, BTN_STYLUS2, data[1] & 4);
 923:			input_report_key(input, BTN_TOUCH, t > 10);
 924:			break;
 925:	
 926:		case 0x0a:
 927:			/* airbrush second packet */
 928:			input_report_abs(input, ABS_WHEEL,
 929:					(data[6] << 2) | ((data[7] >> 6) & 3));
 930:			input_report_abs(input, ABS_TILT_X,
 931:					 (((data[7] << 1) & 0x7e) | (data[8] >> 7)) - 64);
 932:			input_report_abs(input, ABS_TILT_Y, (data[8] & 0x7f) - 64);
 933:			break;
 934:	
 935:		case 0x05:
 936:			/* Rotation packet */
 937:			if (features->type >= INTUOS3S) {
 938:				/* I3 marker pen rotation */
 939:				t = (data[6] << 3) | ((data[7] >> 5) & 7);
 940:				t = (data[7] & 0x20) ? ((t > 900) ? ((t-1) / 2 - 1350) :
 941:					((t-1) / 2 + 450)) : (450 - t / 2) ;
 942:				input_report_abs(input, ABS_Z, t);
 943:			} else {
 944:				/* 4D mouse 2nd packet */
 945:				t = (data[6] << 3) | ((data[7] >> 5) & 7);
 946:				input_report_abs(input, ABS_RZ, (data[7] & 0x20) ?
 947:					((t - 1) / 2) : -t / 2);
 948:			}
 949:			break;
 950:	
 951:		case 0x04:
 952:			/* 4D mouse 1st packet */
 953:			input_report_key(input, BTN_LEFT,   data[8] & 0x01);
 954:			input_report_key(input, BTN_MIDDLE, data[8] & 0x02);
 955:			input_report_key(input, BTN_RIGHT,  data[8] & 0x04);
 956:	
 957:			input_report_key(input, BTN_SIDE,   data[8] & 0x20);
 958:			input_report_key(input, BTN_EXTRA,  data[8] & 0x10);
 959:			t = (data[6] << 2) | ((data[7] >> 6) & 3);
 960:			input_report_abs(input, ABS_THROTTLE, (data[8] & 0x08) ? -t : t);
 961:			break;
 962:	
 963:		case 0x06:
 964:			/* I4 mouse */
 965:			input_report_key(input, BTN_LEFT,   data[6] & 0x01);
 966:			input_report_key(input, BTN_MIDDLE, data[6] & 0x02);
 967:			input_report_key(input, BTN_RIGHT,  data[6] & 0x04);
 968:			input_report_rel(input, REL_WHEEL, ((data[7] & 0x80) >> 7)
 969:					 - ((data[7] & 0x40) >> 6));
 970:			input_report_key(input, BTN_SIDE,   data[6] & 0x08);
 971:			input_report_key(input, BTN_EXTRA,  data[6] & 0x10);
 972:	
 973:			input_report_abs(input, ABS_TILT_X,
 974:				(((data[7] << 1) & 0x7e) | (data[8] >> 7)) - 64);
 975:			input_report_abs(input, ABS_TILT_Y, (data[8] & 0x7f) - 64);
 976:			break;
 977:	
 978:		case 0x08:
 979:			if (wacom->tool[idx] == BTN_TOOL_MOUSE) {
 980:				/* 2D mouse packet */
 981:				input_report_key(input, BTN_LEFT,   data[8] & 0x04);
 982:				input_report_key(input, BTN_MIDDLE, data[8] & 0x08);
 983:				input_report_key(input, BTN_RIGHT,  data[8] & 0x10);
 984:				input_report_rel(input, REL_WHEEL, (data[8] & 0x01)
 985:						 - ((data[8] & 0x02) >> 1));
 986:	
 987:				/* I3 2D mouse side buttons */
 988:				if (features->type >= INTUOS3S && features->type <= INTUOS3L) {
 989:					input_report_key(input, BTN_SIDE,   data[8] & 0x40);
 990:					input_report_key(input, BTN_EXTRA,  data[8] & 0x20);
 991:				}
 992:			}
 993:			else if (wacom->tool[idx] == BTN_TOOL_LENS) {
 994:				/* Lens cursor packets */
 995:				input_report_key(input, BTN_LEFT,   data[8] & 0x01);
 996:				input_report_key(input, BTN_MIDDLE, data[8] & 0x02);
 997:				input_report_key(input, BTN_RIGHT,  data[8] & 0x04);
 998:				input_report_key(input, BTN_SIDE,   data[8] & 0x10);
 999:				input_report_key(input, BTN_EXTRA,  data[8] & 0x08);
1000:			}
1001:			break;
1002:	
1003:		case 0x07:
1004:		case 0x09:
1005:		case 0x0b:
1006:		case 0x0c:
1007:		case 0x0d:
1008:		case 0x0e:
1009:		case 0x0f:
1010:			/* unhandled */
1011:			break;
1012:		}
1013:	
1014:		input_report_abs(input, ABS_MISC,
1015:				 wacom_intuos_id_mangle(wacom->id[idx])); /* report tool id */
1016:		input_report_key(input, wacom->tool[idx], 1);
1017:		input_event(input, EV_MSC, MSC_SERIAL, wacom->serial[idx]);
1018:		wacom->reporting_data = true;
1019:		return 2;
1020:	}
 SourceFile:drivers/hid/wacom_wac.c]

199/4 2026/09/21 01:13 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 24646
							output: 35
							thoughts: 90
						

Thoughts:
Okay, here's my summary, framed as my thought process:

**Diving Deep into the HID Wacom History**

Right, time to get to the heart of this. My initial thought is to dive straight into the git history. I need to understand what's been done before in the `drivers/hid/wacom*` area. I'm focusing on commits that might have addressed similar issues – specifically, fixes. I'll be targeting keywords and authors known for their work in this space. I'll search for commits by the usual suspects: Ping Cheng, Jason Gerecke, Benjamin Tissoires, Jiri Kosina, etc. They're the ones most likely to have encountered and solved related problems. Beyond that I want to see if any commits are touching key files that I know are important for these types of Wacom devices. Specifically, I'm thinking about anything dealing with `pen_input`, `wacom_intuos_irq`, or `wacom_parse_and_register`. That should be a good starting point to quickly identify relevant changes or potential solutions.



200/4 2026/09/21 01:14 tool git-log
0m Args:
map[CodeRegexp:pen_input Count:10 PathPrefix:drivers/hid/]

Results:
map[Output:518e5b794c06 Merge tag 'for-7.3-rc3-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux
]

201/4 2026/09/21 01:14 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 25064
							output: 32
							thoughts: 52
						

Thoughts:
**Investigating Git Log Behavior**

Okay, hold on a second. That's odd. I ran `git log` and specified `CodeRegexp`, but it only spat out *one* commit. That can't be right. I need to understand what's going on here, because that definitely isn't what I expected, and it's throwing off my workflow.

I suspect the `CodeRegexp` search might be too restrictive, or maybe I am misremembering something, so I need to check something related to this area. I'll test by running `git log` with a `PathPrefix` instead. Let's try it for either `drivers/hid/wacom_sys.c` or `drivers/hid/wacom_wac.c` and see what that gets me. I want to see if the problem lies with the regular expression or with my initial assumptions about the commit history in that area. This should clarify if the issue is with my search term or something else entirely.



202/4 2026/09/21 01:14 tool git-log
0m Args:
map[Count:10 PathPrefix:drivers/hid/wacom_wac.c]

Results:
map[Output:518e5b794c06 Merge tag 'for-7.3-rc3-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux
]

203/4 2026/09/21 01:14 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 25426
							output: 41
							thoughts: 31
						

Thoughts:
Here's my take on the situation:

**Investigating a Potentially Shallow Git History**

Hold on a second! Before I dive any deeper, I need to rule out some basic git history issues. This feels like a situation where the problem might be something fundamental, like a shallow clone or a misconfigured repository. The first thing I'm going to do is run a `git log --oneline -n 5` without a path prefix, just to see if the overall history is truncated. If that looks normal, I'll switch gears and give `git blame` a try on a suspect file, to see if there are any obvious clues hidden in the metadata of the blame output. Gotta eliminate the simple explanations first!



204/4 2026/09/21 01:14 tool git-blame
0m Args:
map[End:1039 File:drivers/hid/wacom_wac.c Start:1022]

Results:
map[Output:^518e5b794c06 1022) static int wacom_intuos_irq(struct wacom_wac *wacom)
^518e5b794c06 1023) {
^518e5b794c06 1024) 	unsigned char *data = wacom->data;
^518e5b794c06 1025) 	struct input_dev *input = wacom->pen_input;
^518e5b794c06 1026) 	int result;
^518e5b794c06 1027) 
^518e5b794c06 1028) 	if (data[0] != WACOM_REPORT_PENABLED &&
^518e5b794c06 1029) 	    data[0] != WACOM_REPORT_INTUOS_ID1 &&
^518e5b794c06 1030) 	    data[0] != WACOM_REPORT_INTUOS_ID2 &&
^518e5b794c06 1031) 	    data[0] != WACOM_REPORT_INTUOSPAD &&
^518e5b794c06 1032) 	    data[0] != WACOM_REPORT_INTUOS_PEN &&
^518e5b794c06 1033) 	    data[0] != WACOM_REPORT_CINTIQ &&
^518e5b794c06 1034) 	    data[0] != WACOM_REPORT_CINTIQPAD &&
^518e5b794c06 1035) 	    data[0] != WACOM_REPORT_INTUOS5PAD) {
^518e5b794c06 1036) 		dev_dbg(input->dev.parent,
^518e5b794c06 1037) 			"%s: received unknown report #%d\n", __func__, data[0]);
^518e5b794c06 1038)                 return 0;
^518e5b794c06 1039) 	}
]

205/4 2026/09/21 01:14 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 26271
							output: 27
							thoughts: 362
						

Thoughts:
**Analyzing a Potential Race Condition in Wacom Driver Code**

Okay, so I've got the code checked out at the relevant commit or a shallow clone, ready to dive in. First, let's make sure I've got the problem absolutely clear. Okay, rereading the prompt... it's about a potential race condition in the `wacom_parse_and_register()` function. Specifically, `hid_hw_start()` is called, then `wacom_register_inputs()`, and if the latter fails, it sets `pen_input` to NULL. The code then jumps to `fail_hw_stop` which calls `hid_hw_stop()`. The question is, could an interrupt or report arrive *between* `hid_hw_start()` and `hid_hw_stop()`? If so, the interrupt path, going through `wacom_raw_event()`, `wacom_wac_irq()`, `wacom_bpt_irq()`, and `wacom_intuos_irq()` could be called while `pen_input` is indeed NULL. That's a classic race condition scenario, and the syzkaller trigger via `/dev/uhid` means the fuzzer has precise control over the timing of the reports.

But, before I get too excited and start writing up an explanation of the race, I need to double-check my assumptions. Is it possible that `pen_input` *could* be NULL *without* the race condition, before these functions are called? I need to verify how `pen_input` is allocated and assigned. Let's see... `wacom_allocate_inputs` and `wacom_setup_inputs` are the obvious candidates to investigate. Gotta ensure it isn't uninitialized in some cases. Gotta be thorough.



206/4 2026/09/21 01:14 tool grepper
0m Args:
map[Expression:pen_input PathPrefix:drivers/hid/]

Results:
map[Output:drivers/hid/hid-uclogic-core.c=33=static void uclogic_inrange_timeout(struct timer_list *t)
--
drivers/hid/hid-uclogic-core.c-36-							     inrange_timer);
drivers/hid/hid-uclogic-core.c:37:	struct input_dev *input = drvdata->pen_input;
drivers/hid/hid-uclogic-core.c-38-
--
drivers/hid/hid-uclogic-core.c=125=static int uclogic_input_configured(struct hid_device *hdev,
--
drivers/hid/hid-uclogic-core.c-144-		/* Remember the input device so we can simulate events */
drivers/hid/hid-uclogic-core.c:145:		drvdata->pen_input = hi->input;
drivers/hid/hid-uclogic-core.c-146-	}
--
drivers/hid/hid-uclogic-core.c=547=static void uclogic_remove(struct hid_device *hdev)
--
drivers/hid/hid-uclogic-core.c-557-	 * timer and makes any later re-arm a no-op, so it is provably dead
drivers/hid/hid-uclogic-core.c:558:	 * before hid_hw_stop() frees the input device drvdata->pen_input
drivers/hid/hid-uclogic-core.c-559-	 * points at.
--
drivers/hid/hid-uclogic-params.h=248=struct uclogic_drvdata {
--
drivers/hid/hid-uclogic-params.h-258-	/* Pen input device */
drivers/hid/hid-uclogic-params.h:259:	struct input_dev *pen_input;
drivers/hid/hid-uclogic-params.h-260-	/* In-range timer */
--
drivers/hid/hid-udraw-ps3.c=68=struct udraw {
--
drivers/hid/hid-udraw-ps3.c-70-	struct input_dev *touch_input_dev;
drivers/hid/hid-udraw-ps3.c:71:	struct input_dev *pen_input_dev;
drivers/hid/hid-udraw-ps3.c-72-	struct input_dev *accel_input_dev;
--
drivers/hid/hid-udraw-ps3.c=101=static int udraw_raw_event(struct hid_device *hdev, struct hid_report *report,
--
drivers/hid/hid-udraw-ps3.c-235-
drivers/hid/hid-udraw-ps3.c:236:		input_report_key(udraw->pen_input_dev, BTN_TOUCH, (level != 0));
drivers/hid/hid-udraw-ps3.c:237:		input_report_key(udraw->pen_input_dev, BTN_TOOL_PEN, 1);
drivers/hid/hid-udraw-ps3.c:238:		input_report_abs(udraw->pen_input_dev, ABS_PRESSURE, level);
drivers/hid/hid-udraw-ps3.c:239:		input_report_abs(udraw->pen_input_dev, ABS_X, x);
drivers/hid/hid-udraw-ps3.c:240:		input_report_abs(udraw->pen_input_dev, ABS_Y, y);
drivers/hid/hid-udraw-ps3.c-241-	} else {
drivers/hid/hid-udraw-ps3.c:242:		input_report_key(udraw->pen_input_dev, BTN_TOUCH, 0);
drivers/hid/hid-udraw-ps3.c:243:		input_report_key(udraw->pen_input_dev, BTN_TOOL_PEN, 0);
drivers/hid/hid-udraw-ps3.c:244:		input_report_abs(udraw->pen_input_dev, ABS_PRESSURE, 0);
drivers/hid/hid-udraw-ps3.c-245-	}
drivers/hid/hid-udraw-ps3.c:246:	input_sync(udraw->pen_input_dev);
drivers/hid/hid-udraw-ps3.c-247-
--
drivers/hid/hid-udraw-ps3.c=329=static bool udraw_setup_pen(struct udraw *udraw,
--
drivers/hid/hid-udraw-ps3.c-351-
drivers/hid/hid-udraw-ps3.c:352:	udraw->pen_input_dev = input_dev;
drivers/hid/hid-udraw-ps3.c-353-
--
drivers/hid/hid-udraw-ps3.c=407=static int udraw_probe(struct hid_device *hdev, const struct hid_device_id *id)
--
drivers/hid/hid-udraw-ps3.c-437-		input_register_device(udraw->touch_input_dev) ||
drivers/hid/hid-udraw-ps3.c:438:		input_register_device(udraw->pen_input_dev) ||
drivers/hid/hid-udraw-ps3.c-439-		input_register_device(udraw->accel_input_dev);
--
drivers/hid/wacom.h=232=void wacom_setup_device_quirks(struct wacom *wacom);
drivers/hid/wacom.h:233:int wacom_setup_pen_input_capabilities(struct input_dev *input_dev,
drivers/hid/wacom.h-234-				   struct wacom_wac *wacom_wac);
--
drivers/hid/wacom_sys.c=2108=static int wacom_allocate_inputs(struct wacom *wacom)
--
drivers/hid/wacom_sys.c-2111-
drivers/hid/wacom_sys.c:2112:	wacom_wac->pen_input = wacom_allocate_input(wacom);
drivers/hid/wacom_sys.c-2113-	wacom_wac->touch_input = wacom_allocate_input(wacom);
drivers/hid/wacom_sys.c-2114-	wacom_wac->pad_input = wacom_allocate_input(wacom);
drivers/hid/wacom_sys.c:2115:	if (!wacom_wac->pen_input ||
drivers/hid/wacom_sys.c-2116-	    !wacom_wac->touch_input ||
--
drivers/hid/wacom_sys.c-2119-
drivers/hid/wacom_sys.c:2120:	wacom_wac->pen_input->name = wacom_wac->pen_name;
drivers/hid/wacom_sys.c-2121-	wacom_wac->touch_input->name = wacom_wac->touch_name;
--
drivers/hid/wacom_sys.c=2127=static int wacom_setup_inputs(struct wacom *wacom)
drivers/hid/wacom_sys.c-2128-{
drivers/hid/wacom_sys.c:2129:	struct input_dev *pen_input_dev, *touch_input_dev, *pad_input_dev;
drivers/hid/wacom_sys.c-2130-	struct wacom_wac *wacom_wac = &(wacom->wacom_wac);
--
drivers/hid/wacom_sys.c-2132-
drivers/hid/wacom_sys.c:2133:	pen_input_dev = wacom_wac->pen_input;
drivers/hid/wacom_sys.c-2134-	touch_input_dev = wacom_wac->touch_input;
--
drivers/hid/wacom_sys.c-2136-
drivers/hid/wacom_sys.c:2137:	if (!pen_input_dev || !touch_input_dev || !pad_input_dev)
drivers/hid/wacom_sys.c-2138-		return -EINVAL;
drivers/hid/wacom_sys.c-2139-
drivers/hid/wacom_sys.c:2140:	error = wacom_setup_pen_input_capabilities(pen_input_dev, wacom_wac);
drivers/hid/wacom_sys.c-2141-	if (error) {
drivers/hid/wacom_sys.c-2142-		/* no pen in use on this interface */
drivers/hid/wacom_sys.c:2143:		input_free_device(pen_input_dev);
drivers/hid/wacom_sys.c:2144:		wacom_wac->pen_input = NULL;
drivers/hid/wacom_sys.c:2145:		pen_input_dev = NULL;
drivers/hid/wacom_sys.c-2146-	}
--
drivers/hid/wacom_sys.c=2167=static int wacom_register_inputs(struct wacom *wacom)
drivers/hid/wacom_sys.c-2168-{
drivers/hid/wacom_sys.c:2169:	struct input_dev *pen_input_dev, *touch_input_dev, *pad_input_dev;
drivers/hid/wacom_sys.c-2170-	struct wacom_wac *wacom_wac = &(wacom->wacom_wac);
--
drivers/hid/wacom_sys.c-2172-
drivers/hid/wacom_sys.c:2173:	pen_input_dev = wacom_wac->pen_input;
drivers/hid/wacom_sys.c-2174-	touch_input_dev = wacom_wac->touch_input;
--
drivers/hid/wacom_sys.c-2176-
drivers/hid/wacom_sys.c:2177:	if (pen_input_dev) {
drivers/hid/wacom_sys.c:2178:		error = input_register_device(pen_input_dev);
drivers/hid/wacom_sys.c-2179-		if (error)
--
drivers/hid/wacom_sys.c-2199-	wacom_wac->touch_input = NULL;
drivers/hid/wacom_sys.c:2200:	wacom_wac->pen_input = NULL;
drivers/hid/wacom_sys.c-2201-	return error;
--
drivers/hid/wacom_sys.c=2328=static void wacom_release_resources(struct wacom *wacom)
--
drivers/hid/wacom_sys.c-2338-
drivers/hid/wacom_sys.c:2339:	wacom->wacom_wac.pen_input = NULL;
drivers/hid/wacom_sys.c-2340-	wacom->wacom_wac.touch_input = NULL;
--
drivers/hid/wacom_wac.c=41=static void wacom_force_proxout(struct wacom_wac *wacom_wac)
drivers/hid/wacom_wac.c-42-{
drivers/hid/wacom_wac.c:43:	struct input_dev *input = wacom_wac->pen_input;
drivers/hid/wacom_wac.c-44-
--
drivers/hid/wacom_wac.c=126=static int wacom_penpartner_irq(struct wacom_wac *wacom)
--
drivers/hid/wacom_wac.c-128-	unsigned char *data = wacom->data;
drivers/hid/wacom_wac.c:129:	struct input_dev *input = wacom->pen_input;
drivers/hid/wacom_wac.c-130-
--
drivers/hid/wacom_wac.c=170=static int wacom_pl_irq(struct wacom_wac *wacom)
--
drivers/hid/wacom_wac.c-173-	unsigned char *data = wacom->data;
drivers/hid/wacom_wac.c:174:	struct input_dev *input = wacom->pen_input;
drivers/hid/wacom_wac.c-175-	int prox, pressure;
--
drivers/hid/wacom_wac.c=231=static int wacom_ptu_irq(struct wacom_wac *wacom)
--
drivers/hid/wacom_wac.c-233-	unsigned char *data = wacom->data;
drivers/hid/wacom_wac.c:234:	struct input_dev *input = wacom->pen_input;
drivers/hid/wacom_wac.c-235-
--
drivers/hid/wacom_wac.c=260=static int wacom_dtu_irq(struct wacom_wac *wacom)
--
drivers/hid/wacom_wac.c-262-	unsigned char *data = wacom->data;
drivers/hid/wacom_wac.c:263:	struct input_dev *input = wacom->pen_input;
drivers/hid/wacom_wac.c-264-	int prox = data[1] & 0x20;
--
drivers/hid/wacom_wac.c=290=static int wacom_dtus_irq(struct wacom_wac *wacom)
--
drivers/hid/wacom_wac.c-292-	unsigned char *data = wacom->data;
drivers/hid/wacom_wac.c:293:	struct input_dev *input = wacom->pen_input;
drivers/hid/wacom_wac.c-294-	unsigned short prox, pressure = 0;
--
drivers/hid/wacom_wac.c=341=static int wacom_graphire_irq(struct wacom_wac *wacom)
--
drivers/hid/wacom_wac.c-344-	unsigned char *data = wacom->data;
drivers/hid/wacom_wac.c:345:	struct input_dev *input = wacom->pen_input;
drivers/hid/wacom_wac.c-346-	struct input_dev *pad_input = wacom->pad_input;
--
drivers/hid/wacom_wac.c=734=static void wacom_exit_report(struct wacom_wac *wacom)
drivers/hid/wacom_wac.c-735-{
drivers/hid/wacom_wac.c:736:	struct input_dev *input = wacom->pen_input;
drivers/hid/wacom_wac.c-737-	struct wacom_features *features = &wacom->features;
--
drivers/hid/wacom_wac.c=773=static int wacom_intuos_inout(struct wacom_wac *wacom)
--
drivers/hid/wacom_wac.c-776-	unsigned char *data = wacom->data;
drivers/hid/wacom_wac.c:777:	struct input_dev *input = wacom->pen_input;
drivers/hid/wacom_wac.c-778-	int idx = (features->type == INTUOS) ? (data[1] & 0x01) : 0;
--
drivers/hid/wacom_wac.c=849=static int wacom_intuos_general(struct wacom_wac *wacom)
--
drivers/hid/wacom_wac.c-852-	unsigned char *data = wacom->data;
drivers/hid/wacom_wac.c:853:	struct input_dev *input = wacom->pen_input;
drivers/hid/wacom_wac.c-854-	int idx = (features->type == INTUOS) ? (data[1] & 0x01) : 0;
--
drivers/hid/wacom_wac.c=1022=static int wacom_intuos_irq(struct wacom_wac *wacom)
--
drivers/hid/wacom_wac.c-1024-	unsigned char *data = wacom->data;
drivers/hid/wacom_wac.c:1025:	struct input_dev *input = wacom->pen_input;
drivers/hid/wacom_wac.c-1026-	int result;
--
drivers/hid/wacom_wac.c=1192=static void wacom_intuos_bt_process_data(struct wacom_wac *wacom,
--
drivers/hid/wacom_wac.c-1200-
drivers/hid/wacom_wac.c:1201:	input_sync(wacom->pen_input);
drivers/hid/wacom_wac.c-1202-	if (wacom->pad_input)
--
drivers/hid/wacom_wac.c=1206=static int wacom_intuos_bt_irq(struct wacom_wac *wacom, size_t len)
--
drivers/hid/wacom_wac.c-1214-		if (len < 32) {
drivers/hid/wacom_wac.c:1215:			dev_warn(wacom->pen_input->dev.parent,
drivers/hid/wacom_wac.c-1216-				 "Report 0x04 too short: %zu bytes\n", len);
--
drivers/hid/wacom_wac.c-1223-		if (i == 1 && len < 22) {
drivers/hid/wacom_wac.c:1224:			dev_warn(wacom->pen_input->dev.parent,
drivers/hid/wacom_wac.c-1225-				 "Report 0x03 too short: %zu bytes\n", len);
--
drivers/hid/wacom_wac.c-1241-	default:
drivers/hid/wacom_wac.c:1242:		dev_dbg(wacom->pen_input->dev.parent,
drivers/hid/wacom_wac.c-1243-				"Unknown report: %d,%d size:%zu\n",
--
drivers/hid/wacom_wac.c=1275=static void wacom_intuos_pro2_bt_pen(struct wacom_wac *wacom)
--
drivers/hid/wacom_wac.c-1278-
drivers/hid/wacom_wac.c:1279:	struct input_dev *pen_input = wacom->pen_input;
drivers/hid/wacom_wac.c-1280-	unsigned char *data = wacom->data;
--
drivers/hid/wacom_wac.c-1334-			wacom_exit_report(wacom);
drivers/hid/wacom_wac.c:1335:			input_sync(pen_input);
drivers/hid/wacom_wac.c-1336-
--
drivers/hid/wacom_wac.c-1354-
drivers/hid/wacom_wac.c:1355:			input_report_abs(pen_input, ABS_X, get_unaligned_le16(&frame[1]));
drivers/hid/wacom_wac.c:1356:			input_report_abs(pen_input, ABS_Y, get_unaligned_le16(&frame[3]));
drivers/hid/wacom_wac.c-1357-
--
drivers/hid/wacom_wac.c-1367-
drivers/hid/wacom_wac.c:1368:				input_report_abs(pen_input, ABS_TILT_X,
drivers/hid/wacom_wac.c-1369-						 (signed char)frame[7]);
drivers/hid/wacom_wac.c:1370:				input_report_abs(pen_input, ABS_TILT_Y,
drivers/hid/wacom_wac.c-1371-						 (signed char)frame[8]);
drivers/hid/wacom_wac.c:1372:				input_report_abs(pen_input, ABS_Z, rotation);
drivers/hid/wacom_wac.c:1373:				input_report_abs(pen_input, ABS_WHEEL,
drivers/hid/wacom_wac.c-1374-						 get_unaligned_le16(&frame[11]));
--
drivers/hid/wacom_wac.c-1378-		if (wacom->tool[0]) {
drivers/hid/wacom_wac.c:1379:			input_report_abs(pen_input, ABS_PRESSURE, get_unaligned_le16(&frame[5]));
drivers/hid/wacom_wac.c-1380-			if (wacom->features.type == INTUOSP2_BT ||
drivers/hid/wacom_wac.c-1381-			    wacom->features.type == INTUOSP2S_BT) {
drivers/hid/wacom_wac.c:1382:				input_report_abs(pen_input, ABS_DISTANCE,
drivers/hid/wacom_wac.c-1383-						 range ? frame[13] : wacom->features.distance_max);
drivers/hid/wacom_wac.c-1384-			} else {
drivers/hid/wacom_wac.c:1385:				input_report_abs(pen_input, ABS_DISTANCE,
drivers/hid/wacom_wac.c-1386-						 range ? frame[7] : wacom->features.distance_max);
--
drivers/hid/wacom_wac.c-1388-
drivers/hid/wacom_wac.c:1389:			input_report_key(pen_input, BTN_TOUCH, frame[0] & 0x09);
drivers/hid/wacom_wac.c:1390:			input_report_key(pen_input, BTN_STYLUS, frame[0] & 0x02);
drivers/hid/wacom_wac.c:1391:			input_report_key(pen_input, BTN_STYLUS2, frame[0] & 0x04);
drivers/hid/wacom_wac.c-1392-
drivers/hid/wacom_wac.c:1393:			input_report_key(pen_input, wacom->tool[0], prox);
drivers/hid/wacom_wac.c:1394:			input_event(pen_input, EV_MSC, MSC_SERIAL, wacom->serial[0]);
drivers/hid/wacom_wac.c:1395:			input_report_abs(pen_input, ABS_MISC,
drivers/hid/wacom_wac.c-1396-					 wacom_intuos_id_mangle(wacom->id[0])); /* report tool id */
--
drivers/hid/wacom_wac.c-1401-		/* add timestamp to unpack the frames */
drivers/hid/wacom_wac.c:1402:		input_set_timestamp(pen_input, event_timestamp);
drivers/hid/wacom_wac.c-1403-
drivers/hid/wacom_wac.c:1404:		input_sync(pen_input);
drivers/hid/wacom_wac.c-1405-	}
--
drivers/hid/wacom_wac.c=1543=static int wacom_intuos_pro2_bt_irq(struct wacom_wac *wacom, size_t len)
--
drivers/hid/wacom_wac.c-1547-	if (data[0] != 0x80 && data[0] != 0x81) {
drivers/hid/wacom_wac.c:1548:		dev_dbg(wacom->pen_input->dev.parent,
drivers/hid/wacom_wac.c-1549-			"%s: received unknown report #%d\n", __func__, data[0]);
--
drivers/hid/wacom_wac.c-1555-		if (len < 286) {
drivers/hid/wacom_wac.c:1556:			dev_warn(wacom->pen_input->dev.parent,
drivers/hid/wacom_wac.c-1557-				 "Pro2 BT report too short: %zu bytes\n", len);
--
drivers/hid/wacom_wac.c-1560-	} else if (len < 46) {
drivers/hid/wacom_wac.c:1561:		dev_warn(wacom->pen_input->dev.parent,
drivers/hid/wacom_wac.c-1562-			 "Pro2 BT report too short: %zu bytes\n", len);
--
drivers/hid/wacom_wac.c=1765=static int wacom_tpc_pen(struct wacom_wac *wacom)
--
drivers/hid/wacom_wac.c-1767-	unsigned char *data = wacom->data;
drivers/hid/wacom_wac.c:1768:	struct input_dev *input = wacom->pen_input;
drivers/hid/wacom_wac.c-1769-	bool prox = data[1] & 0x20;
--
drivers/hid/wacom_wac.c=1795=static int wacom_tpc_irq(struct wacom_wac *wacom, size_t len)
--
drivers/hid/wacom_wac.c-1798-
drivers/hid/wacom_wac.c:1799:	if (wacom->pen_input) {
drivers/hid/wacom_wac.c:1800:		dev_dbg(wacom->pen_input->dev.parent,
drivers/hid/wacom_wac.c-1801-			"%s: received report #%d\n", __func__, data[0]);
--
drivers/hid/wacom_wac.c=2320=static void wacom_set_barrel_switch3_usage(struct wacom_wac *wacom_wac)
drivers/hid/wacom_wac.c-2321-{
drivers/hid/wacom_wac.c:2322:	struct input_dev *input = wacom_wac->pen_input;
drivers/hid/wacom_wac.c-2323-	struct wacom_features *features = &wacom_wac->features;
--
drivers/hid/wacom_wac.c=2335=static void wacom_wac_pen_usage_mapping(struct hid_device *hdev,
--
drivers/hid/wacom_wac.c-2340-	struct wacom_features *features = &wacom_wac->features;
drivers/hid/wacom_wac.c:2341:	struct input_dev *input = wacom_wac->pen_input;
drivers/hid/wacom_wac.c-2342-	unsigned equivalent_usage = wacom_equivalent_usage(usage->hid);
--
drivers/hid/wacom_wac.c=2423=static void wacom_wac_pen_event(struct hid_device *hdev, struct hid_field *field,
--
drivers/hid/wacom_wac.c-2428-	struct wacom_features *features = &wacom_wac->features;
drivers/hid/wacom_wac.c:2429:	struct input_dev *input = wacom_wac->pen_input;
drivers/hid/wacom_wac.c-2430-	unsigned equivalent_usage = wacom_equivalent_usage(usage->hid);
--
drivers/hid/wacom_wac.c=2581=static void wacom_wac_pen_report(struct hid_device *hdev,
--
drivers/hid/wacom_wac.c-2585-	struct wacom_wac *wacom_wac = &wacom->wacom_wac;
drivers/hid/wacom_wac.c:2586:	struct input_dev *input = wacom_wac->pen_input;
drivers/hid/wacom_wac.c-2587-	bool range = wacom_wac->hid_data.inrange_state;
--
drivers/hid/wacom_wac.c=2950=void wacom_wac_event(struct hid_device *hdev, struct hid_field *field,
--
drivers/hid/wacom_wac.c-2965-		wacom_wac_pad_event(hdev, field, usage, value);
drivers/hid/wacom_wac.c:2966:	else if (WACOM_PEN_FIELD(field) && wacom->wacom_wac.pen_input)
drivers/hid/wacom_wac.c-2967-		wacom_wac_pen_event(hdev, field, usage, value);
--
drivers/hid/wacom_wac.c=2998=static int wacom_wac_collection(struct hid_device *hdev, struct hid_report *report,
--
drivers/hid/wacom_wac.c-3017-		return 0;
drivers/hid/wacom_wac.c:3018:	else if (WACOM_PEN_FIELD(field) && wacom->wacom_wac.pen_input)
drivers/hid/wacom_wac.c-3019-		wacom_wac_pen_report(hdev, report);
--
drivers/hid/wacom_wac.c=3026=void wacom_wac_report(struct hid_device *hdev, struct hid_report *report)
--
drivers/hid/wacom_wac.c-3055-		wacom_wac_pad_pre_report(hdev, report);
drivers/hid/wacom_wac.c:3056:	if (pen_in_hid_field && wacom_wac->pen_input)
drivers/hid/wacom_wac.c-3057-		wacom_wac_pen_pre_report(hdev, report);
--
drivers/hid/wacom_wac.c=3209=static int wacom_bpt_pen(struct wacom_wac *wacom)
--
drivers/hid/wacom_wac.c-3211-	struct wacom_features *features = &wacom->features;
drivers/hid/wacom_wac.c:3212:	struct input_dev *input = wacom->pen_input;
drivers/hid/wacom_wac.c-3213-	unsigned char *data = wacom->data;
--
drivers/hid/wacom_wac.c=3461=void wacom_wac_irq(struct wacom_wac *wacom_wac, size_t len)
--
drivers/hid/wacom_wac.c-3584-	if (sync) {
drivers/hid/wacom_wac.c:3585:		if (wacom_wac->pen_input)
drivers/hid/wacom_wac.c:3586:			input_sync(wacom_wac->pen_input);
drivers/hid/wacom_wac.c-3587-		if (wacom_wac->touch_input)
--
drivers/hid/wacom_wac.c=3594=static void wacom_setup_basic_pro_pen(struct wacom_wac *wacom_wac)
drivers/hid/wacom_wac.c-3595-{
drivers/hid/wacom_wac.c:3596:	struct input_dev *input_dev = wacom_wac->pen_input;
drivers/hid/wacom_wac.c-3597-
--
drivers/hid/wacom_wac.c=3608=static void wacom_setup_cintiq(struct wacom_wac *wacom_wac)
drivers/hid/wacom_wac.c-3609-{
drivers/hid/wacom_wac.c:3610:	struct input_dev *input_dev = wacom_wac->pen_input;
drivers/hid/wacom_wac.c-3611-	struct wacom_features *features = &wacom_wac->features;
--
drivers/hid/wacom_wac.c=3627=static void wacom_setup_intuos(struct wacom_wac *wacom_wac)
drivers/hid/wacom_wac.c-3628-{
drivers/hid/wacom_wac.c:3629:	struct input_dev *input_dev = wacom_wac->pen_input;
drivers/hid/wacom_wac.c-3630-
--
drivers/hid/wacom_wac.c=3648=void wacom_setup_device_quirks(struct wacom *wacom)
--
drivers/hid/wacom_wac.c-3786-		features->quirks &= ~WACOM_QUIRK_TOOLSERIAL;
drivers/hid/wacom_wac.c:3787:		__clear_bit(BTN_TOOL_BRUSH, wacom_wac->pen_input->keybit);
drivers/hid/wacom_wac.c:3788:		__clear_bit(BTN_TOOL_PENCIL, wacom_wac->pen_input->keybit);
drivers/hid/wacom_wac.c:3789:		__clear_bit(BTN_TOOL_AIRBRUSH, wacom_wac->pen_input->keybit);
drivers/hid/wacom_wac.c:3790:		__clear_bit(ABS_Z, wacom_wac->pen_input->absbit);
drivers/hid/wacom_wac.c:3791:		__clear_bit(ABS_DISTANCE, wacom_wac->pen_input->absbit);
drivers/hid/wacom_wac.c:3792:		__clear_bit(ABS_TILT_X, wacom_wac->pen_input->absbit);
drivers/hid/wacom_wac.c:3793:		__clear_bit(ABS_TILT_Y, wacom_wac->pen_input->absbit);
drivers/hid/wacom_wac.c:3794:		__clear_bit(ABS_WHEEL, wacom_wac->pen_input->absbit);
drivers/hid/wacom_wac.c:3795:		__clear_bit(ABS_MISC, wacom_wac->pen_input->absbit);
drivers/hid/wacom_wac.c:3796:		__clear_bit(MSC_SERIAL, wacom_wac->pen_input->mscbit);
drivers/hid/wacom_wac.c:3797:		__clear_bit(EV_MSC, wacom_wac->pen_input->evbit);
drivers/hid/wacom_wac.c-3798-	}
--
drivers/hid/wacom_wac.c-3800-
drivers/hid/wacom_wac.c:3801:int wacom_setup_pen_input_capabilities(struct input_dev *input_dev,
drivers/hid/wacom_wac.c-3802-				   struct wacom_wac *wacom_wac)
--
drivers/hid/wacom_wac.h=337=struct wacom_wac {
--
drivers/hid/wacom_wac.h-349-	struct wacom_shared *shared;
drivers/hid/wacom_wac.h:350:	struct input_dev *pen_input;
drivers/hid/wacom_wac.h-351-	struct input_dev *touch_input;
]

207/4 2026/09/21 01:14 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 36351
							output: 39
							thoughts: 668
						

Thoughts:
**Analyzing Wacom Input Setup**

Okay, here's what I'm seeing. This `grep` output points me directly to `drivers/hid/wacom_sys.c` and specifically to the `wacom_setup_inputs` function. It looks like this function is responsible for initializing the input devices for a Wacom tablet, managing the `pen_input_dev`, `touch_input_dev`, and `pad_input_dev` devices. I immediately see those critical lines, specifically 2140 to 2146. It seems that if `wacom_setup_pen_input_capabilities` fails, the code *frees* the `pen_input_dev`! My intuition tells me that means that the error path handles the case where a pen isn't present, or isn't enabled on this interface. This is important to note and confirms the assumption. I need to dig further into `wacom_setup_pen_input_capabilities` to understand what that function does and why it might fail. I'm going to read the entire `wacom_setup_inputs` function now to get the full context.



208/4 2026/09/21 01:14 tool read-file
0m Args:
map[File:drivers/hid/wacom_sys.c FirstLine:2127 LineCount:45]

Results:
map[Contents:2127:	static int wacom_setup_inputs(struct wacom *wacom)
2128:	{
2129:		struct input_dev *pen_input_dev, *touch_input_dev, *pad_input_dev;
2130:		struct wacom_wac *wacom_wac = &(wacom->wacom_wac);
2131:		int error = 0;
2132:	
2133:		pen_input_dev = wacom_wac->pen_input;
2134:		touch_input_dev = wacom_wac->touch_input;
2135:		pad_input_dev = wacom_wac->pad_input;
2136:	
2137:		if (!pen_input_dev || !touch_input_dev || !pad_input_dev)
2138:			return -EINVAL;
2139:	
2140:		error = wacom_setup_pen_input_capabilities(pen_input_dev, wacom_wac);
2141:		if (error) {
2142:			/* no pen in use on this interface */
2143:			input_free_device(pen_input_dev);
2144:			wacom_wac->pen_input = NULL;
2145:			pen_input_dev = NULL;
2146:		}
2147:	
2148:		error = wacom_setup_touch_input_capabilities(touch_input_dev, wacom_wac);
2149:		if (error) {
2150:			/* no touch in use on this interface */
2151:			input_free_device(touch_input_dev);
2152:			wacom_wac->touch_input = NULL;
2153:			touch_input_dev = NULL;
2154:		}
2155:	
2156:		error = wacom_setup_pad_input_capabilities(pad_input_dev, wacom_wac);
2157:		if (error) {
2158:			/* no pad events using this interface */
2159:			input_free_device(pad_input_dev);
2160:			wacom_wac->pad_input = NULL;
2161:			pad_input_dev = NULL;
2162:		}
2163:	
2164:		return 0;
2165:	}
2166:	
2167:	static int wacom_register_inputs(struct wacom *wacom)
2168:	{
2169:		struct input_dev *pen_input_dev, *touch_input_dev, *pad_input_dev;
2170:		struct wacom_wac *wacom_wac = &(wacom->wacom_wac);
2171:		int error = 0;
]

209/4 2026/09/21 01:14 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 38068
							output: 45
							thoughts: 69
						

Thoughts:
**Analyzing the Wacom Input Setup**

Okay, let's dive in. I need to understand how this Wacom driver is setting up input. First, I'm going to focus on this `wacom_setup_inputs()` function. My immediate concern is the handling of pen input. I see a critical point: if `wacom_setup_pen_input_capabilities()` returns an error – something other than zero – the driver immediately nulls out `wacom_wac->pen_input`. Hold on, that's significant. That suggests this input setup function is designed to *fail fast* if pen capability initialization goes wrong. I need to understand why and how it's failing in the first place, or if it is at all. I have to scrutinize what `wacom_setup_pen_input_capabilities()` is doing now! I must look at what specifically could cause the pen to be set to NULL here.



210/4 2026/09/21 01:14 tool codesearch-definition-source
0m Args:
map[ContextFile:drivers/hid/wacom_wac.c Name:wacom_setup_pen_input_capabilities]

Results:
map[SourceCode:3801:	int wacom_setup_pen_input_capabilities(struct input_dev *input_dev,
3802:					   struct wacom_wac *wacom_wac)
3803:	{
3804:		struct wacom_features *features = &wacom_wac->features;
3805:	
3806:		if (!(features->device_type & WACOM_DEVICETYPE_PEN))
3807:			return -ENODEV;
3808:	
3809:		if (features->device_type & WACOM_DEVICETYPE_DIRECT)
3810:			__set_bit(INPUT_PROP_DIRECT, input_dev->propbit);
3811:		else
3812:			__set_bit(INPUT_PROP_POINTER, input_dev->propbit);
3813:	
3814:		if (features->type == HID_GENERIC)
3815:			/* setup has already been done */
3816:			return 0;
3817:	
3818:		input_dev->evbit[0] |= BIT_MASK(EV_KEY) | BIT_MASK(EV_ABS);
3819:		__set_bit(BTN_TOUCH, input_dev->keybit);
3820:		__set_bit(ABS_MISC, input_dev->absbit);
3821:	
3822:		input_set_abs_params(input_dev, ABS_X, 0 + features->offset_left,
3823:				     features->x_max - features->offset_right,
3824:				     features->x_fuzz, 0);
3825:		input_set_abs_params(input_dev, ABS_Y, 0 + features->offset_top,
3826:				     features->y_max - features->offset_bottom,
3827:				     features->y_fuzz, 0);
3828:		input_set_abs_params(input_dev, ABS_PRESSURE, 0,
3829:			features->pressure_max, features->pressure_fuzz, 0);
3830:	
3831:		/* penabled devices have fixed resolution for each model */
3832:		input_abs_set_res(input_dev, ABS_X, features->x_resolution);
3833:		input_abs_set_res(input_dev, ABS_Y, features->y_resolution);
3834:	
3835:		switch (features->type) {
3836:		case GRAPHIRE_BT:
3837:			__clear_bit(ABS_MISC, input_dev->absbit);
3838:			fallthrough;
3839:	
3840:		case WACOM_MO:
3841:		case WACOM_G4:
3842:			input_set_abs_params(input_dev, ABS_DISTANCE, 0,
3843:						      features->distance_max,
3844:						      features->distance_fuzz, 0);
3845:			fallthrough;
3846:	
3847:		case GRAPHIRE:
3848:			input_set_capability(input_dev, EV_REL, REL_WHEEL);
3849:	
3850:			__set_bit(BTN_LEFT, input_dev->keybit);
3851:			__set_bit(BTN_RIGHT, input_dev->keybit);
3852:			__set_bit(BTN_MIDDLE, input_dev->keybit);
3853:	
3854:			__set_bit(BTN_TOOL_RUBBER, input_dev->keybit);
3855:			__set_bit(BTN_TOOL_PEN, input_dev->keybit);
3856:			__set_bit(BTN_TOOL_MOUSE, input_dev->keybit);
3857:			__set_bit(BTN_STYLUS, input_dev->keybit);
3858:			__set_bit(BTN_STYLUS2, input_dev->keybit);
3859:			break;
3860:	
3861:		case WACOM_27QHD:
3862:		case WACOM_24HD:
3863:		case DTK:
3864:		case WACOM_22HD:
3865:		case WACOM_21UX2:
3866:		case WACOM_BEE:
3867:		case CINTIQ:
3868:		case WACOM_13HD:
3869:		case CINTIQ_HYBRID:
3870:		case CINTIQ_COMPANION_2:
3871:			input_set_abs_params(input_dev, ABS_Z, -900, 899, 0, 0);
3872:			input_abs_set_res(input_dev, ABS_Z, 287);
3873:			wacom_setup_cintiq(wacom_wac);
3874:			break;
3875:	
3876:		case INTUOS3:
3877:		case INTUOS3L:
3878:		case INTUOS3S:
3879:		case INTUOS4:
3880:		case INTUOS4WL:
3881:		case INTUOS4L:
3882:		case INTUOS4S:
3883:			input_set_abs_params(input_dev, ABS_Z, -900, 899, 0, 0);
3884:			input_abs_set_res(input_dev, ABS_Z, 287);
3885:			fallthrough;
3886:	
3887:		case INTUOS:
3888:			wacom_setup_intuos(wacom_wac);
3889:			break;
3890:	
3891:		case INTUOS5:
3892:		case INTUOS5L:
3893:		case INTUOSPM:
3894:		case INTUOSPL:
3895:		case INTUOS5S:
3896:		case INTUOSPS:
3897:		case INTUOSP2_BT:
3898:		case INTUOSP2S_BT:
3899:			input_set_abs_params(input_dev, ABS_DISTANCE, 0,
3900:					      features->distance_max,
3901:					      features->distance_fuzz, 0);
3902:	
3903:			input_set_abs_params(input_dev, ABS_Z, -900, 899, 0, 0);
3904:			input_abs_set_res(input_dev, ABS_Z, 287);
3905:	
3906:			wacom_setup_intuos(wacom_wac);
3907:			break;
3908:	
3909:		case WACOM_24HDT:
3910:		case WACOM_27QHDT:
3911:		case MTSCREEN:
3912:		case MTTPC:
3913:		case MTTPC_B:
3914:		case TABLETPC2FG:
3915:		case TABLETPC:
3916:		case TABLETPCE:
3917:			__clear_bit(ABS_MISC, input_dev->absbit);
3918:			fallthrough;
3919:	
3920:		case DTUS:
3921:		case DTUSX:
3922:		case PL:
3923:		case DTU:
3924:			__set_bit(BTN_TOOL_PEN, input_dev->keybit);
3925:			__set_bit(BTN_TOOL_RUBBER, input_dev->keybit);
3926:			__set_bit(BTN_STYLUS, input_dev->keybit);
3927:			__set_bit(BTN_STYLUS2, input_dev->keybit);
3928:			break;
3929:	
3930:		case PTU:
3931:			__set_bit(BTN_STYLUS2, input_dev->keybit);
3932:			fallthrough;
3933:	
3934:		case PENPARTNER:
3935:			__set_bit(BTN_TOOL_PEN, input_dev->keybit);
3936:			__set_bit(BTN_TOOL_RUBBER, input_dev->keybit);
3937:			__set_bit(BTN_STYLUS, input_dev->keybit);
3938:			break;
3939:	
3940:		case INTUOSHT:
3941:		case BAMBOO_PT:
3942:		case BAMBOO_PEN:
3943:		case INTUOSHT2:
3944:		case INTUOSHT3_BT:
3945:			if (features->type == INTUOSHT2 ||
3946:			    features->type == INTUOSHT3_BT) {
3947:				wacom_setup_basic_pro_pen(wacom_wac);
3948:			} else {
3949:				__clear_bit(ABS_MISC, input_dev->absbit);
3950:				__set_bit(BTN_TOOL_PEN, input_dev->keybit);
3951:				__set_bit(BTN_TOOL_RUBBER, input_dev->keybit);
3952:				__set_bit(BTN_STYLUS, input_dev->keybit);
3953:				__set_bit(BTN_STYLUS2, input_dev->keybit);
3954:				input_set_abs_params(input_dev, ABS_DISTANCE, 0,
3955:					      features->distance_max,
3956:					      features->distance_fuzz, 0);
3957:			}
3958:			break;
3959:		case BAMBOO_PAD:
3960:			__clear_bit(ABS_MISC, input_dev->absbit);
3961:			break;
3962:		}
3963:		return 0;
3964:	}
 SourceFile:drivers/hid/wacom_wac.c]

211/4 2026/09/21 01:14 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 41150
							output: 40
							thoughts: 289
						

Thoughts:
**Investigating Pen Input Initialization**

Okay, let's dive into this. Line 3806 is the key here. If the `device_type` doesn't include the `WACOM_DEVICETYPE_PEN` flag, `wacom_setup_pen_input_capabilities()` immediately returns `-ENODEV`. That's straightforward enough.

Now, looking at `wacom_setup_inputs()`, the subsequent error handling is what's catching my eye. If `wacom_setup_pen_input_capabilities()` *does* return an error (meaning, no pen detected, presumably), the code explicitly frees `pen_input_dev`, sets `wacom_wac->pen_input` to `NULL`, and sets `pen_input_dev` to `NULL`. The whole pen input struct is nullified. That's the expected behaviour.

But here's where it gets interesting... or maybe concerning. I have to wonder: are there any devices, perhaps those designated as `INTUOSHT2` or a similar type, that *don't* have the `WACOM_DEVICETYPE_PEN` flag set, yet are expected to have some pen functionality? Is there some edge case at play? This demands a deeper look, a wider view. I need to know where `wacom_bpt_irq` is being called, and how it is behaving. This also leads me to investigate `wacom_wac_irq`.



212/4 2026/09/21 01:15 tool read-file
0m Args:
map[File:drivers/hid/wacom_wac.c FirstLine:3461 LineCount:80]

Results:
map[Contents:3461:	void wacom_wac_irq(struct wacom_wac *wacom_wac, size_t len)
3462:	{
3463:		bool sync;
3464:	
3465:		switch (wacom_wac->features.type) {
3466:		case PENPARTNER:
3467:			sync = wacom_penpartner_irq(wacom_wac);
3468:			break;
3469:	
3470:		case PL:
3471:			sync = wacom_pl_irq(wacom_wac);
3472:			break;
3473:	
3474:		case WACOM_G4:
3475:		case GRAPHIRE:
3476:		case GRAPHIRE_BT:
3477:		case WACOM_MO:
3478:			sync = wacom_graphire_irq(wacom_wac);
3479:			break;
3480:	
3481:		case PTU:
3482:			sync = wacom_ptu_irq(wacom_wac);
3483:			break;
3484:	
3485:		case DTU:
3486:			sync = wacom_dtu_irq(wacom_wac);
3487:			break;
3488:	
3489:		case DTUS:
3490:		case DTUSX:
3491:			sync = wacom_dtus_irq(wacom_wac);
3492:			break;
3493:	
3494:		case INTUOS:
3495:		case INTUOS3S:
3496:		case INTUOS3:
3497:		case INTUOS3L:
3498:		case INTUOS4S:
3499:		case INTUOS4:
3500:		case INTUOS4L:
3501:		case CINTIQ:
3502:		case WACOM_BEE:
3503:		case WACOM_13HD:
3504:		case WACOM_21UX2:
3505:		case WACOM_22HD:
3506:		case WACOM_24HD:
3507:		case WACOM_27QHD:
3508:		case DTK:
3509:		case CINTIQ_HYBRID:
3510:		case CINTIQ_COMPANION_2:
3511:			sync = wacom_intuos_irq(wacom_wac);
3512:			break;
3513:	
3514:		case INTUOS4WL:
3515:			sync = wacom_intuos_bt_irq(wacom_wac, len);
3516:			break;
3517:	
3518:		case WACOM_24HDT:
3519:		case WACOM_27QHDT:
3520:			sync = wacom_24hdt_irq(wacom_wac);
3521:			break;
3522:	
3523:		case INTUOS5S:
3524:		case INTUOS5:
3525:		case INTUOS5L:
3526:		case INTUOSPS:
3527:		case INTUOSPM:
3528:		case INTUOSPL:
3529:			if (len == WACOM_PKGLEN_BBTOUCH3)
3530:				sync = wacom_bpt3_touch(wacom_wac);
3531:			else if (wacom_wac->data[0] == WACOM_REPORT_USB)
3532:				sync = wacom_status_irq(wacom_wac, len);
3533:			else
3534:				sync = wacom_intuos_irq(wacom_wac);
3535:			break;
3536:	
3537:		case INTUOSP2_BT:
3538:		case INTUOSP2S_BT:
3539:		case INTUOSHT3_BT:
3540:			sync = wacom_intuos_pro2_bt_irq(wacom_wac, len);
]

213/4 2026/09/21 01:15 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 42970
							output: 40
							thoughts: 27
						

Thoughts:
Okay, here's my interpretation of what's going on in those lines of `wacom_wac_irq`, summarized from my perspective as someone deeply familiar with this kind of kernel code:

**Diving Deep into the `wacom_wac_irq` Interrupt Handler**

Alright, let's get back into this. I need to refresh my memory on what's happening specifically between lines 3541 and 3590 of the `wacom_wac_irq` function. This section is critical, because it's where we handle the interrupt that fires from the Wacom device. A miss here, or slow response, and that touch data or pen pressure gets lost.

I remember this area. We're probably dealing with the core of the data processing – the raw data from the hardware needs to be translated into something usable by the input subsystem. I'll bet we are pulling in the raw data buffer from the device register, checking for errors, and validating the data based on device specific parameters. Hopefully this part is well-commented because I know I wrote some of this, and the details get a bit dense in the interrupt handling routines.

It's likely we're checking for things like the status of the device, if there are any errors like buffer overflows or communication failures, or the type of input received, maybe even the specific device mode like stylus, touch, or eraser. I bet there are checks for validity of the pressure values, coordinates, and proximity data, and then filtering out noise. If something is bad, it will probably call some error handling routine or just drop the packet.

After error checking and validation, the good data will then be fed to the input core, perhaps by calling `input_report_abs` with the appropriate event codes for X, Y, pressure, proximity, etc. I'm guessing there's a good amount of conditional logic in here. Depending on the device, its mode, and the type of data received, we'll need to dispatch to the appropriate input events.

This is a critical part of the interrupt routine, and if I'm remembering right, this section probably touches the hardware directly. So, I need to make sure I understand the memory barriers and any potential race conditions that might be in play. I can't afford any data corruption or missed interrupts at this stage! Time to get to it.



214/4 2026/09/21 01:15 tool read-file
0m Args:
map[File:drivers/hid/wacom_wac.c FirstLine:3541 LineCount:50]

Results:
map[Contents:3541:			break;
3542:	
3543:		case TABLETPC:
3544:		case TABLETPCE:
3545:		case TABLETPC2FG:
3546:		case MTSCREEN:
3547:		case MTTPC:
3548:		case MTTPC_B:
3549:			sync = wacom_tpc_irq(wacom_wac, len);
3550:			break;
3551:	
3552:		case BAMBOO_PT:
3553:		case BAMBOO_PEN:
3554:		case BAMBOO_TOUCH:
3555:		case INTUOSHT:
3556:		case INTUOSHT2:
3557:			if (wacom_wac->data[0] == WACOM_REPORT_USB)
3558:				sync = wacom_status_irq(wacom_wac, len);
3559:			else
3560:				sync = wacom_bpt_irq(wacom_wac, len);
3561:			break;
3562:	
3563:		case BAMBOO_PAD:
3564:			sync = wacom_bamboo_pad_irq(wacom_wac, len);
3565:			break;
3566:	
3567:		case WIRELESS:
3568:			sync = wacom_wireless_irq(wacom_wac, len);
3569:			break;
3570:	
3571:		case REMOTE:
3572:			sync = false;
3573:			if (wacom_wac->data[0] == WACOM_REPORT_DEVICE_LIST)
3574:				wacom_remote_status_irq(wacom_wac, len);
3575:			else
3576:				sync = wacom_remote_irq(wacom_wac, len);
3577:			break;
3578:	
3579:		default:
3580:			sync = false;
3581:			break;
3582:		}
3583:	
3584:		if (sync) {
3585:			if (wacom_wac->pen_input)
3586:				input_sync(wacom_wac->pen_input);
3587:			if (wacom_wac->touch_input)
3588:				input_sync(wacom_wac->touch_input);
3589:			if (wacom_wac->pad_input)
3590:				input_sync(wacom_wac->pad_input);
]

215/4 2026/09/21 01:15 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 44268
							output: 31
							thoughts: 1005
						

Thoughts:
**Analyzing a Potential Race Condition in Wacom Driver Initialization**

Okay, let's break this down. The user is presenting a potential race condition in the Wacom driver, specifically focusing on the initialization sequence and interrupt handling. My immediate thought is, "Yes, this is *exactly* the kind of timing issue that can be tricky to debug and is likely a good explanation for the crash the user is seeing."

First, the core of the concern revolves around the sequence: `hid_hw_start()`, `wacom_register_inputs()`, potential failure in input registration, and then `hid_hw_stop()`. The crucial point is whether an interrupt (and therefore a report) can arrive *between* `hid_hw_start()` and `hid_hw_stop()`. If this happens, it's possible for `wacom_raw_event()` to be called when `pen_input` is potentially `NULL`.

I'm zeroing in on this path: `wacom_raw_event()` -> `wacom_wac_irq()` -> `wacom_bpt_irq()` -> `wacom_intuos_irq()`.  Specifically, the important part being, if `pen_input` is `NULL`, then any calls to `input` in `wacom_intuos_irq` will be faulty.

My mind immediately flags `wacom_bpt_irq()`, because it calls `wacom_intuos_irq()` conditionally. Now, the condition: `(features->type == INTUOSHT2) && (features->device_type & WACOM_DEVICETYPE_PEN)`. This indicates that a certain device type (like an Intuos tablet with pen support) triggers a specific interrupt handling path. And this `wacom_intuos_irq` path is where the potential for null pointer dereference exists.

The user rightly points out that `syzkaller` can easily trigger this scenario by controlling the timing of reports via `/dev/uhid`. That's a huge red flag because it means the problem is reproducible and more than likely exists.

Now, the question is: can a report actually arrive between the `start` and `stop` calls? I need to check the `uhid` code itself. I'm going to look at `drivers/hid/uhid.c` to see precisely what `hid_hw_start()` and `hid_hw_stop()` do in the context of the `uhid` driver. That will tell me if the window is indeed open for a report to come in. This is the crucial step - confirm if the interrupt is actually enabled during this critical initialization phase.



216/4 2026/09/21 01:15 tool grepper
0m Args:
map[Expression:uhid_ PathPrefix:drivers/hid/uhid.c]

Results:
map[Output:drivers/hid/uhid.c-28-
drivers/hid/uhid.c:29:struct uhid_device {
drivers/hid/uhid.c-30-	struct mutex devlock;
--
drivers/hid/uhid.c-47-	struct hid_device *hid;
drivers/hid/uhid.c:48:	struct uhid_event input_buf;
drivers/hid/uhid.c-49-
--
drivers/hid/uhid.c-53-	__u8 tail;
drivers/hid/uhid.c:54:	struct uhid_event *outq[UHID_BUFSIZE];
drivers/hid/uhid.c-55-
--
drivers/hid/uhid.c-61-	u32 report_type;
drivers/hid/uhid.c:62:	struct uhid_event report_buf;
drivers/hid/uhid.c-63-	struct work_struct worker;
--
drivers/hid/uhid.c-65-
drivers/hid/uhid.c:66:static struct miscdevice uhid_misc;
drivers/hid/uhid.c-67-
drivers/hid/uhid.c:68:static void uhid_device_add_worker(struct work_struct *work)
drivers/hid/uhid.c-69-{
drivers/hid/uhid.c:70:	struct uhid_device *uhid = container_of(work, struct uhid_device, worker);
drivers/hid/uhid.c-71-	int ret;
--
drivers/hid/uhid.c-91-
drivers/hid/uhid.c:92:static void uhid_queue(struct uhid_device *uhid, struct uhid_event *ev)
drivers/hid/uhid.c-93-{
--
drivers/hid/uhid.c-107-
drivers/hid/uhid.c:108:static int uhid_queue_event(struct uhid_device *uhid, __u32 event)
drivers/hid/uhid.c-109-{
drivers/hid/uhid.c-110-	unsigned long flags;
drivers/hid/uhid.c:111:	struct uhid_event *ev;
drivers/hid/uhid.c-112-
--
drivers/hid/uhid.c-119-	spin_lock_irqsave(&uhid->qlock, flags);
drivers/hid/uhid.c:120:	uhid_queue(uhid, ev);
drivers/hid/uhid.c-121-	spin_unlock_irqrestore(&uhid->qlock, flags);
--
drivers/hid/uhid.c-125-
drivers/hid/uhid.c:126:static int uhid_hid_start(struct hid_device *hid)
drivers/hid/uhid.c-127-{
drivers/hid/uhid.c:128:	struct uhid_device *uhid = hid->driver_data;
drivers/hid/uhid.c:129:	struct uhid_event *ev;
drivers/hid/uhid.c-130-	unsigned long flags;
--
drivers/hid/uhid.c-145-	spin_lock_irqsave(&uhid->qlock, flags);
drivers/hid/uhid.c:146:	uhid_queue(uhid, ev);
drivers/hid/uhid.c-147-	spin_unlock_irqrestore(&uhid->qlock, flags);
--
drivers/hid/uhid.c-151-
drivers/hid/uhid.c:152:static void uhid_hid_stop(struct hid_device *hid)
drivers/hid/uhid.c-153-{
drivers/hid/uhid.c:154:	struct uhid_device *uhid = hid->driver_data;
drivers/hid/uhid.c-155-
drivers/hid/uhid.c-156-	hid->claimed = 0;
drivers/hid/uhid.c:157:	uhid_queue_event(uhid, UHID_STOP);
drivers/hid/uhid.c-158-}
drivers/hid/uhid.c-159-
drivers/hid/uhid.c:160:static int uhid_hid_open(struct hid_device *hid)
drivers/hid/uhid.c-161-{
drivers/hid/uhid.c:162:	struct uhid_device *uhid = hid->driver_data;
drivers/hid/uhid.c-163-
drivers/hid/uhid.c:164:	return uhid_queue_event(uhid, UHID_OPEN);
drivers/hid/uhid.c-165-}
drivers/hid/uhid.c-166-
drivers/hid/uhid.c:167:static void uhid_hid_close(struct hid_device *hid)
drivers/hid/uhid.c-168-{
drivers/hid/uhid.c:169:	struct uhid_device *uhid = hid->driver_data;
drivers/hid/uhid.c-170-
drivers/hid/uhid.c:171:	uhid_queue_event(uhid, UHID_CLOSE);
drivers/hid/uhid.c-172-}
drivers/hid/uhid.c-173-
drivers/hid/uhid.c:174:static int uhid_hid_parse(struct hid_device *hid)
drivers/hid/uhid.c-175-{
drivers/hid/uhid.c:176:	struct uhid_device *uhid = hid->driver_data;
drivers/hid/uhid.c-177-
--
drivers/hid/uhid.c-181-/* must be called with report_lock held */
drivers/hid/uhid.c:182:static int __uhid_report_queue_and_wait(struct uhid_device *uhid,
drivers/hid/uhid.c:183:					struct uhid_event *ev,
drivers/hid/uhid.c-184-					__u32 *report_id)
--
drivers/hid/uhid.c-192-	uhid->report_running = true;
drivers/hid/uhid.c:193:	uhid_queue(uhid, ev);
drivers/hid/uhid.c-194-	spin_unlock_irqrestore(&uhid->qlock, flags);
--
drivers/hid/uhid.c-210-
drivers/hid/uhid.c:211:static void uhid_report_wake_up(struct uhid_device *uhid, u32 id,
drivers/hid/uhid.c:212:				const struct uhid_event *ev)
drivers/hid/uhid.c-213-{
--
drivers/hid/uhid.c-231-
drivers/hid/uhid.c:232:static int uhid_hid_get_report(struct hid_device *hid, unsigned char rnum,
drivers/hid/uhid.c-233-			       u8 *buf, size_t count, u8 rtype)
drivers/hid/uhid.c-234-{
drivers/hid/uhid.c:235:	struct uhid_device *uhid = hid->driver_data;
drivers/hid/uhid.c:236:	struct uhid_get_report_reply_req *req;
drivers/hid/uhid.c:237:	struct uhid_event *ev;
drivers/hid/uhid.c-238-	int ret;
--
drivers/hid/uhid.c-257-	/* this _always_ takes ownership of @ev */
drivers/hid/uhid.c:258:	ret = __uhid_report_queue_and_wait(uhid, ev, &ev->u.get_report.id);
drivers/hid/uhid.c-259-	if (ret)
--
drivers/hid/uhid.c-274-
drivers/hid/uhid.c:275:static int uhid_hid_set_report(struct hid_device *hid, unsigned char rnum,
drivers/hid/uhid.c-276-			       const u8 *buf, size_t count, u8 rtype)
drivers/hid/uhid.c-277-{
drivers/hid/uhid.c:278:	struct uhid_device *uhid = hid->driver_data;
drivers/hid/uhid.c:279:	struct uhid_event *ev;
drivers/hid/uhid.c-280-	int ret;
--
drivers/hid/uhid.c-301-	/* this _always_ takes ownership of @ev */
drivers/hid/uhid.c:302:	ret = __uhid_report_queue_and_wait(uhid, ev, &ev->u.set_report.id);
drivers/hid/uhid.c-303-	if (ret)
--
drivers/hid/uhid.c-315-
drivers/hid/uhid.c:316:static int uhid_hid_raw_request(struct hid_device *hid, unsigned char reportnum,
drivers/hid/uhid.c-317-				__u8 *buf, size_t len, unsigned char rtype,
--
drivers/hid/uhid.c-337-	case HID_REQ_GET_REPORT:
drivers/hid/uhid.c:338:		return uhid_hid_get_report(hid, reportnum, buf, len, u_rtype);
drivers/hid/uhid.c-339-	case HID_REQ_SET_REPORT:
drivers/hid/uhid.c:340:		return uhid_hid_set_report(hid, reportnum, buf, len, u_rtype);
drivers/hid/uhid.c-341-	default:
--
drivers/hid/uhid.c-345-
drivers/hid/uhid.c:346:static int uhid_hid_output_raw(struct hid_device *hid, __u8 *buf, size_t count,
drivers/hid/uhid.c-347-			       unsigned char report_type)
drivers/hid/uhid.c-348-{
drivers/hid/uhid.c:349:	struct uhid_device *uhid = hid->driver_data;
drivers/hid/uhid.c-350-	__u8 rtype;
drivers/hid/uhid.c-351-	unsigned long flags;
drivers/hid/uhid.c:352:	struct uhid_event *ev;
drivers/hid/uhid.c-353-
--
drivers/hid/uhid.c-377-	spin_lock_irqsave(&uhid->qlock, flags);
drivers/hid/uhid.c:378:	uhid_queue(uhid, ev);
drivers/hid/uhid.c-379-	spin_unlock_irqrestore(&uhid->qlock, flags);
--
drivers/hid/uhid.c-383-
drivers/hid/uhid.c:384:static int uhid_hid_output_report(struct hid_device *hid, __u8 *buf,
drivers/hid/uhid.c-385-				  size_t count)
drivers/hid/uhid.c-386-{
drivers/hid/uhid.c:387:	return uhid_hid_output_raw(hid, buf, count, HID_OUTPUT_REPORT);
drivers/hid/uhid.c-388-}
drivers/hid/uhid.c-389-
drivers/hid/uhid.c:390:static const struct hid_ll_driver uhid_hid_driver = {
drivers/hid/uhid.c:391:	.start = uhid_hid_start,
drivers/hid/uhid.c:392:	.stop = uhid_hid_stop,
drivers/hid/uhid.c:393:	.open = uhid_hid_open,
drivers/hid/uhid.c:394:	.close = uhid_hid_close,
drivers/hid/uhid.c:395:	.parse = uhid_hid_parse,
drivers/hid/uhid.c:396:	.raw_request = uhid_hid_raw_request,
drivers/hid/uhid.c:397:	.output_report = uhid_hid_output_report,
drivers/hid/uhid.c-398-	.max_buffer_size = UHID_DATA_MAX,
--
drivers/hid/uhid.c-403-/* Apparently we haven't stepped on these rakes enough times yet. */
drivers/hid/uhid.c:404:struct uhid_create_req_compat {
drivers/hid/uhid.c-405-	__u8 name[128];
--
drivers/hid/uhid.c-418-
drivers/hid/uhid.c:419:static int uhid_event_from_user(const char __user *buffer, size_t len,
drivers/hid/uhid.c:420:				struct uhid_event *event)
drivers/hid/uhid.c-421-{
--
drivers/hid/uhid.c-433-			 */
drivers/hid/uhid.c:434:			struct uhid_create_req_compat *compat;
drivers/hid/uhid.c-435-
--
drivers/hid/uhid.c-478-#else
drivers/hid/uhid.c:479:static int uhid_event_from_user(const char __user *buffer, size_t len,
drivers/hid/uhid.c:480:				struct uhid_event *event)
drivers/hid/uhid.c-481-{
--
drivers/hid/uhid.c-488-
drivers/hid/uhid.c:489:static int uhid_dev_create2(struct uhid_device *uhid,
drivers/hid/uhid.c:490:			    const struct uhid_event *ev)
drivers/hid/uhid.c-491-{
--
drivers/hid/uhid.c-523-
drivers/hid/uhid.c:524:	hid->ll_driver = &uhid_hid_driver;
drivers/hid/uhid.c-525-	hid->bus = ev->u.create2.bus;
--
drivers/hid/uhid.c-530-	hid->driver_data = uhid;
drivers/hid/uhid.c:531:	hid->dev.parent = uhid_misc.this_device;
drivers/hid/uhid.c-532-
--
drivers/hid/uhid.c-537-	 * which use feature requests during .probe to work, without they would
drivers/hid/uhid.c:538:	 * be blocked on devlock, which is held by uhid_char_write.
drivers/hid/uhid.c-539-	 */
--
drivers/hid/uhid.c-550-
drivers/hid/uhid.c:551:static int uhid_dev_create(struct uhid_device *uhid,
drivers/hid/uhid.c:552:			   struct uhid_event *ev)
drivers/hid/uhid.c-553-{
drivers/hid/uhid.c:554:	struct uhid_create_req orig;
drivers/hid/uhid.c-555-
--
drivers/hid/uhid.c-572-
drivers/hid/uhid.c:573:	return uhid_dev_create2(uhid, ev);
drivers/hid/uhid.c-574-}
drivers/hid/uhid.c-575-
drivers/hid/uhid.c:576:static int uhid_dev_destroy(struct uhid_device *uhid)
drivers/hid/uhid.c-577-{
--
drivers/hid/uhid.c-592-
drivers/hid/uhid.c:593:static int uhid_dev_input(struct uhid_device *uhid, struct uhid_event *ev)
drivers/hid/uhid.c-594-{
--
drivers/hid/uhid.c-603-
drivers/hid/uhid.c:604:static int uhid_dev_input2(struct uhid_device *uhid, struct uhid_event *ev)
drivers/hid/uhid.c-605-{
--
drivers/hid/uhid.c-614-
drivers/hid/uhid.c:615:static int uhid_dev_get_report_reply(struct uhid_device *uhid,
drivers/hid/uhid.c:616:				     struct uhid_event *ev)
drivers/hid/uhid.c-617-{
--
drivers/hid/uhid.c-620-
drivers/hid/uhid.c:621:	uhid_report_wake_up(uhid, ev->u.get_report_reply.id, ev);
drivers/hid/uhid.c-622-	return 0;
--
drivers/hid/uhid.c-624-
drivers/hid/uhid.c:625:static int uhid_dev_set_report_reply(struct uhid_device *uhid,
drivers/hid/uhid.c:626:				     struct uhid_event *ev)
drivers/hid/uhid.c-627-{
--
drivers/hid/uhid.c-630-
drivers/hid/uhid.c:631:	uhid_report_wake_up(uhid, ev->u.set_report_reply.id, ev);
drivers/hid/uhid.c-632-	return 0;
--
drivers/hid/uhid.c-634-
drivers/hid/uhid.c:635:static int uhid_char_open(struct inode *inode, struct file *file)
drivers/hid/uhid.c-636-{
drivers/hid/uhid.c:637:	struct uhid_device *uhid;
drivers/hid/uhid.c-638-
--
drivers/hid/uhid.c-648-	uhid->running = false;
drivers/hid/uhid.c:649:	INIT_WORK(&uhid->worker, uhid_device_add_worker);
drivers/hid/uhid.c-650-
--
drivers/hid/uhid.c-656-
drivers/hid/uhid.c:657:static int uhid_char_release(struct inode *inode, struct file *file)
drivers/hid/uhid.c-658-{
drivers/hid/uhid.c:659:	struct uhid_device *uhid = file->private_data;
drivers/hid/uhid.c-660-	unsigned int i;
drivers/hid/uhid.c-661-
drivers/hid/uhid.c:662:	uhid_dev_destroy(uhid);
drivers/hid/uhid.c-663-
--
drivers/hid/uhid.c-671-
drivers/hid/uhid.c:672:static ssize_t uhid_char_read(struct file *file, char __user *buffer,
drivers/hid/uhid.c-673-				size_t count, loff_t *ppos)
drivers/hid/uhid.c-674-{
drivers/hid/uhid.c:675:	struct uhid_device *uhid = file->private_data;
drivers/hid/uhid.c-676-	int ret;
--
drivers/hid/uhid.c-679-
drivers/hid/uhid.c:680:	/* they need at least the "type" member of uhid_event */
drivers/hid/uhid.c-681-	if (count < sizeof(__u32))
--
drivers/hid/uhid.c-719-
drivers/hid/uhid.c:720:static ssize_t uhid_char_write(struct file *file, const char __user *buffer,
drivers/hid/uhid.c-721-				size_t count, loff_t *ppos)
drivers/hid/uhid.c-722-{
drivers/hid/uhid.c:723:	struct uhid_device *uhid = file->private_data;
drivers/hid/uhid.c-724-	int ret;
--
drivers/hid/uhid.c-726-
drivers/hid/uhid.c:727:	/* we need at least the "type" member of uhid_event */
drivers/hid/uhid.c-728-	if (count < sizeof(__u32))
--
drivers/hid/uhid.c-737-
drivers/hid/uhid.c:738:	ret = uhid_event_from_user(buffer, len, &uhid->input_buf);
drivers/hid/uhid.c-739-	if (ret)
--
drivers/hid/uhid.c-744-		/*
drivers/hid/uhid.c:745:		 * 'struct uhid_create_req' contains a __user pointer which is
drivers/hid/uhid.c-746-		 * copied from, so it's unsafe to allow this with elevated
--
drivers/hid/uhid.c-754-		}
drivers/hid/uhid.c:755:		ret = uhid_dev_create(uhid, &uhid->input_buf);
drivers/hid/uhid.c-756-		break;
drivers/hid/uhid.c-757-	case UHID_CREATE2:
drivers/hid/uhid.c:758:		ret = uhid_dev_create2(uhid, &uhid->input_buf);
drivers/hid/uhid.c-759-		break;
drivers/hid/uhid.c-760-	case UHID_DESTROY:
drivers/hid/uhid.c:761:		ret = uhid_dev_destroy(uhid);
drivers/hid/uhid.c-762-		break;
drivers/hid/uhid.c-763-	case UHID_INPUT:
drivers/hid/uhid.c:764:		ret = uhid_dev_input(uhid, &uhid->input_buf);
drivers/hid/uhid.c-765-		break;
drivers/hid/uhid.c-766-	case UHID_INPUT2:
drivers/hid/uhid.c:767:		ret = uhid_dev_input2(uhid, &uhid->input_buf);
drivers/hid/uhid.c-768-		break;
drivers/hid/uhid.c-769-	case UHID_GET_REPORT_REPLY:
drivers/hid/uhid.c:770:		ret = uhid_dev_get_report_reply(uhid, &uhid->input_buf);
drivers/hid/uhid.c-771-		break;
drivers/hid/uhid.c-772-	case UHID_SET_REPORT_REPLY:
drivers/hid/uhid.c:773:		ret = uhid_dev_set_report_reply(uhid, &uhid->input_buf);
drivers/hid/uhid.c-774-		break;
--
drivers/hid/uhid.c-785-
drivers/hid/uhid.c:786:static __poll_t uhid_char_poll(struct file *file, poll_table *wait)
drivers/hid/uhid.c-787-{
drivers/hid/uhid.c:788:	struct uhid_device *uhid = file->private_data;
drivers/hid/uhid.c-789-	__poll_t mask = EPOLLOUT | EPOLLWRNORM; /* uhid is always writable */
--
drivers/hid/uhid.c-798-
drivers/hid/uhid.c:799:static const struct file_operations uhid_fops = {
drivers/hid/uhid.c-800-	.owner		= THIS_MODULE,
drivers/hid/uhid.c:801:	.open		= uhid_char_open,
drivers/hid/uhid.c:802:	.release	= uhid_char_release,
drivers/hid/uhid.c:803:	.read		= uhid_char_read,
drivers/hid/uhid.c:804:	.write		= uhid_char_write,
drivers/hid/uhid.c:805:	.poll		= uhid_char_poll,
drivers/hid/uhid.c-806-};
drivers/hid/uhid.c-807-
drivers/hid/uhid.c:808:static struct miscdevice uhid_misc = {
drivers/hid/uhid.c:809:	.fops		= &uhid_fops,
drivers/hid/uhid.c-810-	.minor		= UHID_MINOR,
--
drivers/hid/uhid.c-812-};
drivers/hid/uhid.c:813:module_misc_device(uhid_misc);
drivers/hid/uhid.c-814-
]

217/4 2026/09/21 01:15 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 52368
							output: 35
							thoughts: 37
						

Thoughts:
Here's my take on those code sections in `drivers/hid/uhid.c`:

**Diving into the `uhid` Driver**

Okay, so I'm focusing in on `uhid_dev_input2` and `uhid_device_add_worker` within the `uhid.c` driver. I need to refresh my memory on how this user-space HID emulation is functioning. My first thought is to understand the event flow. `uhid_dev_input2` is probably handling input reports coming from user space, and I'm guessing `uhid_device_add_worker` is responsible for setting up or initializing devices and their associated worker threads. I want to check how the input data is processed, validated, and translated into the HID report format the kernel expects. Is there proper error handling? Does it deal with quirks and different device capabilities gracefully? It's crucial to ensure this driver is secure and doesn't introduce any vulnerabilities. Specifically, I'm thinking about race conditions, buffer overflows, and input validation exploits – those are the vulnerabilities that concern me most with user-space interaction. I need to pinpoint the critical sections that need the most rigorous scrutiny for potential security flaws. I also want to see if the worker thread handles any asynchronous tasks. Any synchronization primitives used will also be of interest.



218/4 2026/09/21 01:15 tool read-file
0m Args:
map[File:drivers/hid/uhid.c FirstLine:68 LineCount:40]

Results:
map[Contents:  68:	static void uhid_device_add_worker(struct work_struct *work)
  69:	{
  70:		struct uhid_device *uhid = container_of(work, struct uhid_device, worker);
  71:		int ret;
  72:	
  73:		ret = hid_add_device(uhid->hid);
  74:		if (ret) {
  75:			hid_err(uhid->hid, "Cannot register HID device: error %d\n", ret);
  76:	
  77:			/* We used to call hid_destroy_device() here, but that's really
  78:			 * messy to get right because we have to coordinate with
  79:			 * concurrent writes from userspace that might be in the middle
  80:			 * of using uhid->hid.
  81:			 * Just leave uhid->hid as-is for now, and clean it up when
  82:			 * userspace tries to close or reinitialize the uhid instance.
  83:			 *
  84:			 * However, we do have to clear the ->running flag and do a
  85:			 * wakeup to make sure userspace knows that the device is gone.
  86:			 */
  87:			WRITE_ONCE(uhid->running, false);
  88:			wake_up_interruptible(&uhid->report_wait);
  89:		}
  90:	}
  91:	
  92:	static void uhid_queue(struct uhid_device *uhid, struct uhid_event *ev)
  93:	{
  94:		__u8 newhead;
  95:	
  96:		newhead = (uhid->head + 1) % UHID_BUFSIZE;
  97:	
  98:		if (newhead != uhid->tail) {
  99:			uhid->outq[uhid->head] = ev;
 100:			uhid->head = newhead;
 101:			wake_up_interruptible(&uhid->waitq);
 102:		} else {
 103:			hid_warn(uhid->hid, "Output queue is full\n");
 104:			kfree(ev);
 105:		}
 106:	}
 107:	
]

219/4 2026/09/21 01:15 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 53331
							output: 36
							thoughts: 23
						

Thoughts:
Here's a summary of my initial thoughts, presented as if they were my own:

**Initial Assessment of `uhid_dev_input` and `uhid_dev_input2`**

Alright, let's dive into this. The context clearly points towards an investigation of these two input device drivers – `uhid_dev_input` and `uhid_dev_input2`. Immediately, I'm thinking about the potential differences between them. Is this a versioning situation? Are we looking at refinements or optimizations? Perhaps they handle different device classes or protocols under the HID umbrella?

Given my expertise, I'm already mentally running through the typical points of comparison: initialization routines, interrupt handling, data parsing, error management, and any specific quirks related to the USB HID standard. Are we talking about a standard keyboard/mouse, or something more specialized like a game controller or biometric device? The subtle differences could expose critical aspects of the driver's behaviour. I need to understand the architectural layout. Time to map the connections.



220/4 2026/09/21 01:15 tool read-file
0m Args:
map[File:drivers/hid/uhid.c FirstLine:590 LineCount:35]

Results:
map[Contents: 590:		return 0;
 591:	}
 592:	
 593:	static int uhid_dev_input(struct uhid_device *uhid, struct uhid_event *ev)
 594:	{
 595:		if (!READ_ONCE(uhid->running))
 596:			return -EINVAL;
 597:	
 598:		hid_safe_input_report(uhid->hid, HID_INPUT_REPORT, ev->u.input.data, UHID_DATA_MAX,
 599:				      min_t(size_t, ev->u.input.size, UHID_DATA_MAX), 0);
 600:	
 601:		return 0;
 602:	}
 603:	
 604:	static int uhid_dev_input2(struct uhid_device *uhid, struct uhid_event *ev)
 605:	{
 606:		if (!READ_ONCE(uhid->running))
 607:			return -EINVAL;
 608:	
 609:		hid_safe_input_report(uhid->hid, HID_INPUT_REPORT, ev->u.input2.data, UHID_DATA_MAX,
 610:				      min_t(size_t, ev->u.input2.size, UHID_DATA_MAX), 0);
 611:	
 612:		return 0;
 613:	}
 614:	
 615:	static int uhid_dev_get_report_reply(struct uhid_device *uhid,
 616:					     struct uhid_event *ev)
 617:	{
 618:		if (!READ_ONCE(uhid->running))
 619:			return -EINVAL;
 620:	
 621:		uhid_report_wake_up(uhid, ev->u.get_report_reply.id, ev);
 622:		return 0;
 623:	}
 624:	
]

221/4 2026/09/21 01:15 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 54173
							output: 29
							thoughts: 31
						

Thoughts:
Here's my attempt at summarizing the thought process, as if I were thinking it:

**Digging into the UHID State**

Okay, hold on a second. I need to be absolutely clear about the timing here. When does this `uhid->running` flag actually get set to true? I need to understand the control flow. Let's get right to the source code. I'm going to jump into `uhid.c` and hunt down every instance where the `running` variable, or a similar flag, is being modified or set. I need to see the conditions, the context, everything. No guesswork, straight to the evidence. Let's see how this thing *really* works.



222/4 2026/09/21 01:16 tool grepper
0m Args:
map[Expression:running PathPrefix:drivers/hid/uhid.c]

Results:
map[Output:drivers/hid/uhid.c=29=struct uhid_device {
--
drivers/hid/uhid.c-37-	 * holding devlock.
drivers/hid/uhid.c:38:	 * We guarantee that if @running changes from true to false while you're
drivers/hid/uhid.c-39-	 * holding @devlock, it's still fine to access @hid.
drivers/hid/uhid.c-40-	 */
drivers/hid/uhid.c:41:	bool running;
drivers/hid/uhid.c-42-
--
drivers/hid/uhid.c-58-	wait_queue_head_t report_wait;
drivers/hid/uhid.c:59:	bool report_running;
drivers/hid/uhid.c-60-	u32 report_id;
--
drivers/hid/uhid.c=68=static void uhid_device_add_worker(struct work_struct *work)
--
drivers/hid/uhid.c-83-		 *
drivers/hid/uhid.c:84:		 * However, we do have to clear the ->running flag and do a
drivers/hid/uhid.c-85-		 * wakeup to make sure userspace knows that the device is gone.
drivers/hid/uhid.c-86-		 */
drivers/hid/uhid.c:87:		WRITE_ONCE(uhid->running, false);
drivers/hid/uhid.c-88-		wake_up_interruptible(&uhid->report_wait);
--
drivers/hid/uhid.c=182=static int __uhid_report_queue_and_wait(struct uhid_device *uhid,
--
drivers/hid/uhid.c-191-	uhid->report_type = ev->type + 1;
drivers/hid/uhid.c:192:	uhid->report_running = true;
drivers/hid/uhid.c-193-	uhid_queue(uhid, ev);
--
drivers/hid/uhid.c-196-	ret = wait_event_interruptible_timeout(uhid->report_wait,
drivers/hid/uhid.c:197:				!uhid->report_running || !READ_ONCE(uhid->running),
drivers/hid/uhid.c-198-				5 * HZ);
drivers/hid/uhid.c:199:	if (!ret || !READ_ONCE(uhid->running) || uhid->report_running)
drivers/hid/uhid.c-200-		ret = -EIO;
--
drivers/hid/uhid.c-205-
drivers/hid/uhid.c:206:	uhid->report_running = false;
drivers/hid/uhid.c-207-
--
drivers/hid/uhid.c=211=static void uhid_report_wake_up(struct uhid_device *uhid, u32 id,
--
drivers/hid/uhid.c-220-		goto unlock;
drivers/hid/uhid.c:221:	if (!uhid->report_running)
drivers/hid/uhid.c-222-		goto unlock;
--
drivers/hid/uhid.c-224-	memcpy(&uhid->report_buf, ev, sizeof(*ev));
drivers/hid/uhid.c:225:	uhid->report_running = false;
drivers/hid/uhid.c-226-	wake_up_interruptible(&uhid->report_wait);
--
drivers/hid/uhid.c=232=static int uhid_hid_get_report(struct hid_device *hid, unsigned char rnum,
--
drivers/hid/uhid.c-239-
drivers/hid/uhid.c:240:	if (!READ_ONCE(uhid->running))
drivers/hid/uhid.c-241-		return -EIO;
--
drivers/hid/uhid.c=275=static int uhid_hid_set_report(struct hid_device *hid, unsigned char rnum,
--
drivers/hid/uhid.c-281-
drivers/hid/uhid.c:282:	if (!READ_ONCE(uhid->running) || count > UHID_DATA_MAX)
drivers/hid/uhid.c-283-		return -EIO;
--
drivers/hid/uhid.c=489=static int uhid_dev_create2(struct uhid_device *uhid,
--
drivers/hid/uhid.c-533-	uhid->hid = hid;
drivers/hid/uhid.c:534:	uhid->running = true;
drivers/hid/uhid.c-535-
--
drivers/hid/uhid.c=576=static int uhid_dev_destroy(struct uhid_device *uhid)
--
drivers/hid/uhid.c-580-
drivers/hid/uhid.c:581:	WRITE_ONCE(uhid->running, false);
drivers/hid/uhid.c-582-	wake_up_interruptible(&uhid->report_wait);
--
drivers/hid/uhid.c=593=static int uhid_dev_input(struct uhid_device *uhid, struct uhid_event *ev)
drivers/hid/uhid.c-594-{
drivers/hid/uhid.c:595:	if (!READ_ONCE(uhid->running))
drivers/hid/uhid.c-596-		return -EINVAL;
--
drivers/hid/uhid.c=604=static int uhid_dev_input2(struct uhid_device *uhid, struct uhid_event *ev)
drivers/hid/uhid.c-605-{
drivers/hid/uhid.c:606:	if (!READ_ONCE(uhid->running))
drivers/hid/uhid.c-607-		return -EINVAL;
--
drivers/hid/uhid.c=615=static int uhid_dev_get_report_reply(struct uhid_device *uhid,
--
drivers/hid/uhid.c-617-{
drivers/hid/uhid.c:618:	if (!READ_ONCE(uhid->running))
drivers/hid/uhid.c-619-		return -EINVAL;
--
drivers/hid/uhid.c=625=static int uhid_dev_set_report_reply(struct uhid_device *uhid,
--
drivers/hid/uhid.c-627-{
drivers/hid/uhid.c:628:	if (!READ_ONCE(uhid->running))
drivers/hid/uhid.c-629-		return -EINVAL;
--
drivers/hid/uhid.c=635=static int uhid_char_open(struct inode *inode, struct file *file)
--
drivers/hid/uhid.c-647-	init_waitqueue_head(&uhid->report_wait);
drivers/hid/uhid.c:648:	uhid->running = false;
drivers/hid/uhid.c-649-	INIT_WORK(&uhid->worker, uhid_device_add_worker);
]

223/4 2026/09/21 01:16 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 56237
							output: 36
							thoughts: 50
						

Thoughts:
**Analyzing the UHID Device Creation**

Okay, let's dive into this `uhid_dev_create2` function. My initial observation is key: the `uhid->running = true;` flag gets set *before* the `schedule_work(&uhid->worker);` call. This immediately piques my interest. It implies a specific sequencing and potential race condition implications. Now, let's meticulously dissect the code within `uhid_dev_create2` itself, so I can fully grasp the intent and the specific execution path. I need to be sure I understand the critical section.



224/4 2026/09/21 01:16 tool read-file
0m Args:
map[File:drivers/hid/uhid.c FirstLine:520 LineCount:35]

Results:
map[Contents: 520:		strscpy(hid->phys, ev->u.create2.phys, sizeof(hid->phys));
 521:		BUILD_BUG_ON(sizeof(hid->uniq) != sizeof(ev->u.create2.uniq));
 522:		strscpy(hid->uniq, ev->u.create2.uniq, sizeof(hid->uniq));
 523:	
 524:		hid->ll_driver = &uhid_hid_driver;
 525:		hid->bus = ev->u.create2.bus;
 526:		hid->vendor = ev->u.create2.vendor;
 527:		hid->product = ev->u.create2.product;
 528:		hid->version = ev->u.create2.version;
 529:		hid->country = ev->u.create2.country;
 530:		hid->driver_data = uhid;
 531:		hid->dev.parent = uhid_misc.this_device;
 532:	
 533:		uhid->hid = hid;
 534:		uhid->running = true;
 535:	
 536:		/* Adding of a HID device is done through a worker, to allow HID drivers
 537:		 * which use feature requests during .probe to work, without they would
 538:		 * be blocked on devlock, which is held by uhid_char_write.
 539:		 */
 540:		schedule_work(&uhid->worker);
 541:	
 542:		return 0;
 543:	
 544:	err_free:
 545:		kfree(uhid->rd_data);
 546:		uhid->rd_data = NULL;
 547:		uhid->rd_size = 0;
 548:		return ret;
 549:	}
 550:	
 551:	static int uhid_dev_create(struct uhid_device *uhid,
 552:				   struct uhid_event *ev)
 553:	{
 554:		struct uhid_create_req orig;
]

225/4 2026/09/21 01:16 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 57032
							output: 21
							thoughts: 180
						

Thoughts:
**My Initial Thoughts on the UHID Device Driver**

Okay, so I'm diving into the `uhid` driver to understand its interaction with userspace, specifically around input reports. Let's see... a userspace program, like Syzkaller, starts by opening `/dev/uhid`. Makes sense. Then, the program issues a `UHID_CREATE2` call, which I know is going to trigger the creation of a `uhid->hid` structure and set a `running` flag to `true`, and of course schedule a worker (`uhid_device_add_worker`) – typical asynchronous setup.

Now, here’s where it gets interesting. While all this is happening, the userspace program can immediately start firing off `write(fd, UHID_INPUT)` calls. I need to understand what happens on the kernel side when we receive that `UHID_INPUT` command. Ah, right, that's where `uhid_dev_input` comes into play. It appears that the key function within that function is `hid_safe_input_report`. That's where the magic probably happens. So, `hid_safe_input_report` calls `hid_input_report`. Time to look at the implementation of *both* `hid_safe_input_report` and `hid_input_report` and dissect what they're actually doing with that input data and the `uhid->hid` handle. Gotta dig into those reports and see how they are structured and handled!



226/4 2026/09/21 01:16 tool grepper
0m Args:
map[Expression:hid_safe_input_report]

Results:
map[Output:drivers/hid/hid-core.c=2123=static int __hid_input_report(struct hid_device *hid, enum hid_report_type type,
--
drivers/hid/hid-core.c-2197- * This is data entry for lower layers.
drivers/hid/hid-core.c:2198: * Legacy, please use hid_safe_input_report() instead.
drivers/hid/hid-core.c-2199- */
--
drivers/hid/hid-core.c=2207=EXPORT_SYMBOL_GPL(hid_input_report);
--
drivers/hid/hid-core.c-2209-/**
drivers/hid/hid-core.c:2210: * hid_safe_input_report - report data from lower layer (usb, bt...)
drivers/hid/hid-core.c-2211- *
--
drivers/hid/hid-core.c-2223- */
drivers/hid/hid-core.c:2224:int hid_safe_input_report(struct hid_device *hid, enum hid_report_type type, u8 *data,
drivers/hid/hid-core.c-2225-			  size_t bufsize, u32 size, int interrupt)
--
drivers/hid/hid-core.c-2230-}
drivers/hid/hid-core.c:2231:EXPORT_SYMBOL_GPL(hid_safe_input_report);
drivers/hid/hid-core.c-2232-
--
drivers/hid/i2c-hid/i2c-hid-core.c=528=static void i2c_hid_get_input(struct i2c_hid *ihid)
--
drivers/hid/i2c-hid/i2c-hid-core.c-580-
drivers/hid/i2c-hid/i2c-hid-core.c:581:		hid_safe_input_report(ihid->hid, HID_INPUT_REPORT,
drivers/hid/i2c-hid/i2c-hid-core.c-582-				      ihid->inbuf + sizeof(__le16),
--
drivers/hid/uhid.c=593=static int uhid_dev_input(struct uhid_device *uhid, struct uhid_event *ev)
--
drivers/hid/uhid.c-597-
drivers/hid/uhid.c:598:	hid_safe_input_report(uhid->hid, HID_INPUT_REPORT, ev->u.input.data, UHID_DATA_MAX,
drivers/hid/uhid.c-599-			      min_t(size_t, ev->u.input.size, UHID_DATA_MAX), 0);
--
drivers/hid/uhid.c=604=static int uhid_dev_input2(struct uhid_device *uhid, struct uhid_event *ev)
--
drivers/hid/uhid.c-608-
drivers/hid/uhid.c:609:	hid_safe_input_report(uhid->hid, HID_INPUT_REPORT, ev->u.input2.data, UHID_DATA_MAX,
drivers/hid/uhid.c-610-			      min_t(size_t, ev->u.input2.size, UHID_DATA_MAX), 0);
--
drivers/hid/usbhid/hid-core.c=274=static void hid_irq_in(struct urb *urb)
--
drivers/hid/usbhid/hid-core.c-286-		if (!test_bit(HID_RESUME_RUNNING, &usbhid->iofl)) {
drivers/hid/usbhid/hid-core.c:287:			hid_safe_input_report(urb->context, HID_INPUT_REPORT,
drivers/hid/usbhid/hid-core.c-288-					      urb->transfer_buffer, urb->transfer_buffer_length,
--
drivers/hid/usbhid/hid-core.c=476=static void hid_ctrl(struct urb *urb)
--
drivers/hid/usbhid/hid-core.c-485-		if (usbhid->ctrl[usbhid->ctrltail].dir == USB_DIR_IN)
drivers/hid/usbhid/hid-core.c:486:			hid_safe_input_report(urb->context,
drivers/hid/usbhid/hid-core.c-487-				usbhid->ctrl[usbhid->ctrltail].report->type,
--
include/linux/hid.h=1033=int hid_input_report(struct hid_device *hid, enum hid_report_type type, u8 *data, u32 size,
include/linux/hid.h-1034-		     int interrupt);
include/linux/hid.h:1035:int hid_safe_input_report(struct hid_device *hid, enum hid_report_type type, u8 *data,
include/linux/hid.h-1036-			  size_t bufsize, u32 size, int interrupt);
]

227/4 2026/09/21 01:16 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 58834
							output: 38
							thoughts: 34
						

Thoughts:
Okay, let's dive into this. Here's how I'd approach this task, as if these were my internal thoughts:

**Analyzing HID Input Report Handling in hid-core.c**

Alright, time to get my hands dirty. I need to understand the input report handling within the HID subsystem, specifically focusing on how the kernel manages potentially unsafe input reports. The core of this logic, as I recall, lives within `drivers/hid/hid-core.c`. My primary interest lies in the functions that sanitize or validate these reports before they propagate further up the stack.

First up, I'll need to meticulously examine `hid_safe_input_report`. This function is likely the linchpin of safe handling, probably performing the checks that ensure the input data aligns with the expected HID descriptor structure and doesn't introduce any vulnerabilities. I'll need to understand what constitutes a "safe" report in this context – is it based on size, content, or both? Are there any whitelists, blacklists, or other validation mechanisms in place? I will try to see if it makes use of any of the descriptor parsing and handling functions, like `hid_parse_report`, which are very important in this context.

Then, I'll move on to `__hid_input_report`. This function is probably the lower-level function that actually takes the validated data and delivers it to the appropriate event handlers, perhaps after some final processing or transformation. The key here will be understanding how `hid_safe_input_report` protects it. Does it just trust the output of the "safe" function, or does it do additional checks? Are there any race conditions it might be susceptible to? I need to look closely at its interactions with the event layer and think about potential attack vectors. I need to be sure that it is handling errors and reporting invalid reports in an effective and safe manner.

Ultimately, I want to form a complete mental picture of the security posture of the HID input report handling system, and how the interaction between these two functions contributes to it. I want to see if this is a good practice or if there are any risks.



228/4 2026/09/21 01:16 tool read-file
0m Args:
map[File:drivers/hid/hid-core.c FirstLine:2120 LineCount:80]

Results:
map[Contents:2120:	EXPORT_SYMBOL_GPL(hid_report_raw_event);
2121:	
2122:	
2123:	static int __hid_input_report(struct hid_device *hid, enum hid_report_type type,
2124:				      u8 *data, size_t bufsize, u32 size, int interrupt, u64 source,
2125:				      bool from_bpf, bool lock_already_taken)
2126:	{
2127:		struct hid_report_enum *report_enum;
2128:		struct hid_driver *hdrv;
2129:		struct hid_report *report;
2130:		int ret = 0;
2131:	
2132:		if (!hid)
2133:			return -ENODEV;
2134:	
2135:		ret = down_trylock(&hid->driver_input_lock);
2136:		if (lock_already_taken && !ret) {
2137:			up(&hid->driver_input_lock);
2138:			return -EINVAL;
2139:		} else if (!lock_already_taken && ret) {
2140:			return -EBUSY;
2141:		}
2142:	
2143:		if (!hid->driver) {
2144:			ret = -ENODEV;
2145:			goto unlock;
2146:		}
2147:		report_enum = hid->report_enum + type;
2148:		hdrv = hid->driver;
2149:	
2150:		data = dispatch_hid_bpf_device_event(hid, type, data, &bufsize, &size, interrupt,
2151:						     source, from_bpf);
2152:		if (IS_ERR(data)) {
2153:			ret = PTR_ERR(data);
2154:			goto unlock;
2155:		}
2156:	
2157:		if (!size) {
2158:			dbg_hid("empty report\n");
2159:			ret = -1;
2160:			goto unlock;
2161:		}
2162:	
2163:		/* Avoid unnecessary overhead if debugfs is disabled */
2164:		if (!list_empty(&hid->debug_list))
2165:			hid_dump_report(hid, type, data, size);
2166:	
2167:		report = hid_get_report(report_enum, data);
2168:	
2169:		if (!report) {
2170:			ret = -1;
2171:			goto unlock;
2172:		}
2173:	
2174:		if (hdrv && hdrv->raw_event && hid_match_report(hid, report)) {
2175:			ret = hdrv->raw_event(hid, report, data, size);
2176:			if (ret < 0)
2177:				goto unlock;
2178:		}
2179:	
2180:		ret = hid_report_raw_event(hid, type, data, bufsize, size, interrupt);
2181:	
2182:	unlock:
2183:		if (!lock_already_taken)
2184:			up(&hid->driver_input_lock);
2185:		return ret;
2186:	}
2187:	
2188:	/**
2189:	 * hid_input_report - report data from lower layer (usb, bt...)
2190:	 *
2191:	 * @hid: hid device
2192:	 * @type: HID report type (HID_*_REPORT)
2193:	 * @data: report contents
2194:	 * @size: size of data parameter
2195:	 * @interrupt: distinguish between interrupt and control transfers
2196:	 *
2197:	 * This is data entry for lower layers.
2198:	 * Legacy, please use hid_safe_input_report() instead.
2199:	 */
]

229/4 2026/09/21 01:16 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 60478
							output: 19
							thoughts: 269
						

Thoughts:
**Analyzing `__hid_input_report()`**

Okay, so I'm looking at this `__hid_input_report()` function. Seems pretty standard for handling input reports in the HID subsystem. First thing that jumps out is the device check.  Makes sense, ensuring a valid HID device is present before proceeding with any of these operations. Then, it dives into a lock, `driver_input_lock`.  A quick `down_trylock` call with some error handling there. This looks like a basic attempt at preventing race conditions. There are a few different cases here, covering the lock being taken and not, and retrying if the try_lock fails. It's a standard pattern, but I'm trying to see if there's anything unusual. Next, a similar check to make sure there's actually a driver attached; that's good practice. Then it gets the report enumeration, and retrieves the report itself with `hid_get_report()`. If the driver has a `raw_event` handler, and the report matches, the data gets passed through that function.

Wait, hold on a second... where *exactly* is `driver_input_lock` taken? I see the attempt to grab it here, but I need to understand the full context.  I'm going to need to track down all the calls to this lock in order to understand how this is used, the intended critical section, and to make sure this is actually correct from a concurrency perspective. Let's start searching for usage of that lock.



230/4 2026/09/21 01:17 tool grepper
0m Args:
map[Expression:driver_input_lock]

Results:
map[Output:drivers/hid/bpf/hid_bpf_dispatch.c=554=hid_bpf_input_report(struct hid_bpf_ctx *ctx, enum hid_report_type type, u8 *buf,
--
drivers/hid/bpf/hid_bpf_dispatch.c-558-
drivers/hid/bpf/hid_bpf_dispatch.c:559:	ret = down_interruptible(&ctx->hid->driver_input_lock);
drivers/hid/bpf/hid_bpf_dispatch.c-560-	if (ret)
--
drivers/hid/bpf/hid_bpf_dispatch.c-565-
drivers/hid/bpf/hid_bpf_dispatch.c:566:	up(&ctx->hid->driver_input_lock);
drivers/hid/bpf/hid_bpf_dispatch.c-567-
--
drivers/hid/hid-asus.c=705=static void asus_kbd_wmi_fan(struct hid_device *hdev, struct hid_raw_event_data *data)
--
drivers/hid/hid-asus.c-732-	 */
drivers/hid/hid-asus.c:733:	down(&hdev->driver_input_lock);
drivers/hid/hid-asus.c-734-	hid_report_raw_event(hdev, HID_INPUT_REPORT,
--
drivers/hid/hid-asus.c-736-			     data->report_size, 1);
drivers/hid/hid-asus.c:737:	up(&hdev->driver_input_lock);
drivers/hid/hid-asus.c-738-}
--
drivers/hid/hid-core.c=2123=static int __hid_input_report(struct hid_device *hid, enum hid_report_type type,
--
drivers/hid/hid-core.c-2134-
drivers/hid/hid-core.c:2135:	ret = down_trylock(&hid->driver_input_lock);
drivers/hid/hid-core.c-2136-	if (lock_already_taken && !ret) {
drivers/hid/hid-core.c:2137:		up(&hid->driver_input_lock);
drivers/hid/hid-core.c-2138-		return -EINVAL;
--
drivers/hid/hid-core.c-2183-	if (!lock_already_taken)
drivers/hid/hid-core.c:2184:		up(&hid->driver_input_lock);
drivers/hid/hid-core.c-2185-	return ret;
--
drivers/hid/hid-core.c=2865=static int hid_device_probe(struct device *dev)
--
drivers/hid/hid-core.c-2870-
drivers/hid/hid-core.c:2871:	if (down_interruptible(&hdev->driver_input_lock))
drivers/hid/hid-core.c-2872-		return -EINTR;
--
drivers/hid/hid-core.c-2880-	if (!hdev->io_started)
drivers/hid/hid-core.c:2881:		up(&hdev->driver_input_lock);
drivers/hid/hid-core.c-2882-
--
drivers/hid/hid-core.c=2886=static void hid_device_remove(struct device *dev)
--
drivers/hid/hid-core.c-2890-
drivers/hid/hid-core.c:2891:	down(&hdev->driver_input_lock);
drivers/hid/hid-core.c-2892-	hdev->io_started = false;
--
drivers/hid/hid-core.c-2908-	if (!hdev->io_started)
drivers/hid/hid-core.c:2909:		up(&hdev->driver_input_lock);
drivers/hid/hid-core.c-2910-}
--
drivers/hid/hid-core.c=3084=struct hid_device *hid_allocate_device(void)
--
drivers/hid/hid-core.c-3102-	spin_lock_init(&hdev->debug_list_lock);
drivers/hid/hid-core.c:3103:	sema_init(&hdev->driver_input_lock, 1);
drivers/hid/hid-core.c-3104-	mutex_init(&hdev->ll_open_lock);
--
drivers/hid/hid-debug.c=3654=static int hid_debug_rdesc_show(struct seq_file *f, void *p)
--
drivers/hid/hid-debug.c-3671-	/* dump parsed data and input mappings */
drivers/hid/hid-debug.c:3672:	if (down_interruptible(&hdev->driver_input_lock))
drivers/hid/hid-debug.c-3673-		return 0;
--
drivers/hid/hid-debug.c-3678-
drivers/hid/hid-debug.c:3679:	up(&hdev->driver_input_lock);
drivers/hid/hid-debug.c-3680-
--
drivers/hid/hid-magicmouse.c=893=static int magicmouse_probe(struct hid_device *hdev,
--
drivers/hid/hid-magicmouse.c-1007-	 * Query the Bluetooth Magic Trackpad USB-C battery as done for USB.
drivers/hid/hid-magicmouse.c:1008:	 * Start io first: probe holds driver_input_lock and the synchronous
drivers/hid/hid-magicmouse.c-1009-	 * GET_REPORT reply would otherwise be dropped.
--
include/linux/hid.h=674=struct hid_device {
--
include/linux/hid.h-694-
include/linux/hid.h:695:	struct semaphore driver_input_lock;				/* protects the current driver */
include/linux/hid.h-696-	struct device dev;						/* device */
--
include/linux/hid.h=1088=static inline void hid_device_io_start(struct hid_device *hid) {
--
include/linux/hid.h-1093-	hid->io_started = true;
include/linux/hid.h:1094:	up(&hid->driver_input_lock);
include/linux/hid.h-1095-}
--
include/linux/hid.h=1108=static inline void hid_device_io_stop(struct hid_device *hid) {
--
include/linux/hid.h-1113-	hid->io_started = false;
include/linux/hid.h:1114:	down(&hid->driver_input_lock);
include/linux/hid.h-1115-}
]

231/4 2026/09/21 01:17 llm codeexpert
0m Model:
gemini-3.8-flash

Tokens:
							input: 62838
							output: 38
							thoughts: 56
						

Thoughts:
Okay, here's my interpretation of those thoughts, tailored for an expert audience, presented in the first person:

**Initial Assessment: A Familiar Territory**

Well, well, well... *look at that*! My eyes immediately gravitated towards `hid_device_probe` within the HID core – specifically, the `hid-core.c` file under the drivers directory. Honestly, this is a familiar area, a vital piece of the puzzle for understanding how HID devices get initialized within the kernel. Time to dig in... I need to refresh myself, there is probably something there worth investigating.

Let's cut right to the heart of the matter and jump straight into lines 2860-2915. I'm already anticipating some of the usual suspects: the device ID matching, resource allocation, and, of course, the ever-so-critical device initialization flow. This section of the probe function likely handles the core device setup. I wonder if there are any recent changes to this code. I should also check the associated debug messages. My expertise allows me to navigate this area efficiently. I'm ready.



232/4 2026/09/21 01:17 tool read-file
0m Args:
map[File:drivers/hid/hid-core.c FirstLine:2860 LineCount:60]

Results:
map[Contents:2860:		}
2861:	
2862:		return ret;
2863:	}
2864:	
2865:	static int hid_device_probe(struct device *dev)
2866:	{
2867:		struct hid_device *hdev = to_hid_device(dev);
2868:		struct hid_driver *hdrv = to_hid_driver(dev->driver);
2869:		int ret = 0;
2870:	
2871:		if (down_interruptible(&hdev->driver_input_lock))
2872:			return -EINTR;
2873:	
2874:		hdev->io_started = false;
2875:		clear_bit(ffs(HID_STAT_REPROBED), &hdev->status);
2876:	
2877:		if (!hdev->driver)
2878:			ret = __hid_device_probe(hdev, hdrv);
2879:	
2880:		if (!hdev->io_started)
2881:			up(&hdev->driver_input_lock);
2882:	
2883:		return ret;
2884:	}
2885:	
2886:	static void hid_device_remove(struct device *dev)
2887:	{
2888:		struct hid_device *hdev = to_hid_device(dev);
2889:		struct hid_driver *hdrv;
2890:	
2891:		down(&hdev->driver_input_lock);
2892:		hdev->io_started = false;
2893:	
2894:		hdrv = hdev->driver;
2895:		if (hdrv) {
2896:			if (hdrv->remove)
2897:				hdrv->remove(hdev);
2898:			else /* default remove */
2899:				hid_hw_stop(hdev);
2900:	
2901:			/* Release all devres resources allocated by the driver */
2902:			devres_release_group(&hdev->dev, hdev->devres_group_id);
2903:	
2904:			hid_close_report(hdev);
2905:			hdev->driver = NULL;
2906:		}
2907:	
2908:		if (!hdev->io_started)
2909:			up(&hdev->driver_input_lock);
2910:	}
2911:	
2912:	static ssize_t modalias_show(struct device *dev, struct device_attribute *a,
2913:				     char *buf)
2914:	{
2915:		struct hid_device *hdev = container_of(dev, struct hid_device, dev);
2916:	
2917:		return sysfs_emit(buf, "hid:b%04Xg%04Xv%08Xp%08X\n",
2918:				 hdev->bus, hdev->group, hdev->vendor, hdev->product);
2919:	}
]

233/4 2026/09/21 01:17 llm codeexpert
1m Model:
gemini-3.8-flash

Error:
log-in to see details

LLM Calls Summary:
Total Calls Total Tokens Avg Tokens Total Duration (Seconds) Avg Duration (Seconds)
Tool Calls Summary:
Total Calls Total Duration (Seconds) Avg Duration (Seconds)