* Re: linux-next: Tree for Oct 11 (ata/pata_of_platform.c) [not found] <20111011201127.455df266dcbffb1d621f8576@canb.auug.org.au> @ 2011-10-11 20:37 ` Randy Dunlap 2011-10-14 17:58 ` Randy Dunlap 0 siblings, 1 reply; 63+ messages in thread From: Randy Dunlap @ 2011-10-11 20:37 UTC (permalink / raw) To: Stephen Rothwell; +Cc: linux-next, LKML, linux-ide@vger.kernel.org [-- Attachment #1: Type: text/plain, Size: 635 bytes --] On 10/11/11 02:11, Stephen Rothwell wrote: > Hi all, > > The linux-next tree is now available from > git://github.com/sfrothwell/linux-next.git as a temporary measure while > the kernel.org servers are unavailable. > > It may also turn up on git.kernel.org (depending on the mirroring). The > patch set is still absent, however. > > Changes since 20111007: > > Removed tree: ide (at the maintainer's request) drivers/ata/pata_of_platform.c:55:13: error: 'NO_IRQ' undeclared (first use in this function) Full randconfig file is attached. -- ~Randy *** Remember to use Documentation/SubmitChecklist when testing your code *** [-- Attachment #2: config-r2167 --] [-- Type: text/plain, Size: 51414 bytes --] # # Automatically generated file; DO NOT EDIT. # Linux/i386 3.1.0-rc9 Kernel Configuration # # CONFIG_64BIT is not set CONFIG_X86_32=y # CONFIG_X86_64 is not set CONFIG_X86=y CONFIG_INSTRUCTION_DECODER=y CONFIG_OUTPUT_FORMAT="elf32-i386" CONFIG_ARCH_DEFCONFIG="arch/x86/configs/i386_defconfig" CONFIG_GENERIC_CMOS_UPDATE=y CONFIG_CLOCKSOURCE_WATCHDOG=y CONFIG_GENERIC_CLOCKEVENTS=y CONFIG_GENERIC_CLOCKEVENTS_BROADCAST=y CONFIG_LOCKDEP_SUPPORT=y CONFIG_STACKTRACE_SUPPORT=y CONFIG_HAVE_LATENCYTOP_SUPPORT=y CONFIG_MMU=y CONFIG_ZONE_DMA=y CONFIG_NEED_DMA_MAP_STATE=y CONFIG_NEED_SG_DMA_LENGTH=y CONFIG_GENERIC_ISA_DMA=y CONFIG_GENERIC_IOMAP=y CONFIG_GENERIC_HWEIGHT=y CONFIG_GENERIC_GPIO=y CONFIG_ARCH_MAY_HAVE_PC_FDC=y # CONFIG_RWSEM_GENERIC_SPINLOCK is not set CONFIG_RWSEM_XCHGADD_ALGORITHM=y CONFIG_ARCH_HAS_CPU_IDLE_WAIT=y CONFIG_GENERIC_CALIBRATE_DELAY=y # CONFIG_GENERIC_TIME_VSYSCALL is not set CONFIG_ARCH_HAS_CPU_RELAX=y CONFIG_ARCH_HAS_DEFAULT_IDLE=y CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y CONFIG_HAVE_SETUP_PER_CPU_AREA=y CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=y CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=y # CONFIG_HAVE_CPUMASK_OF_CPU_MAP is not set CONFIG_ARCH_HIBERNATION_POSSIBLE=y CONFIG_ARCH_SUSPEND_POSSIBLE=y # CONFIG_ZONE_DMA32 is not set CONFIG_ARCH_POPULATES_NODE_MAP=y # CONFIG_AUDIT_ARCH is not set CONFIG_ARCH_SUPPORTS_OPTIMIZED_INLINING=y CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y CONFIG_X86_32_SMP=y CONFIG_X86_HT=y CONFIG_ARCH_HWEIGHT_CFLAGS="-fcall-saved-ecx -fcall-saved-edx" CONFIG_KTIME_SCALAR=y CONFIG_ARCH_CPU_PROBE_RELEASE=y CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" CONFIG_CONSTRUCTORS=y CONFIG_HAVE_IRQ_WORK=y CONFIG_IRQ_WORK=y # # General setup # # CONFIG_EXPERIMENTAL is not set CONFIG_INIT_ENV_ARG_LIMIT=32 CONFIG_CROSS_COMPILE="" CONFIG_LOCALVERSION="" CONFIG_LOCALVERSION_AUTO=y 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_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_DEFAULT_HOSTNAME="(none)" CONFIG_SWAP=y # CONFIG_SYSVIPC is not set CONFIG_BSD_PROCESS_ACCT=y CONFIG_BSD_PROCESS_ACCT_V3=y CONFIG_FHANDLE=y # CONFIG_TASKSTATS is not set # CONFIG_AUDIT is not set CONFIG_HAVE_GENERIC_HARDIRQS=y # # IRQ subsystem # CONFIG_GENERIC_HARDIRQS=y CONFIG_HAVE_SPARSE_IRQ=y CONFIG_GENERIC_IRQ_PROBE=y CONFIG_GENERIC_IRQ_SHOW=y CONFIG_GENERIC_PENDING_IRQ=y CONFIG_IRQ_FORCED_THREADING=y # CONFIG_SPARSE_IRQ is not set # # RCU Subsystem # CONFIG_TREE_RCU=y # CONFIG_PREEMPT_RCU is not set # CONFIG_RCU_TRACE is not set CONFIG_RCU_FANOUT=32 # CONFIG_RCU_FANOUT_EXACT is not set # CONFIG_RCU_FAST_NO_HZ is not set # CONFIG_TREE_RCU_TRACE is not set # CONFIG_IKCONFIG is not set CONFIG_LOG_BUF_SHIFT=17 CONFIG_HAVE_UNSTABLE_SCHED_CLOCK=y CONFIG_CGROUPS=y # CONFIG_CGROUP_DEBUG is not set # CONFIG_CGROUP_FREEZER is not set CONFIG_CGROUP_DEVICE=y CONFIG_CPUSETS=y # CONFIG_PROC_PID_CPUSET is not set # CONFIG_CGROUP_CPUACCT is not set # CONFIG_RESOURCE_COUNTERS is not set CONFIG_CGROUP_PERF=y CONFIG_CGROUP_SCHED=y CONFIG_FAIR_GROUP_SCHED=y # CONFIG_BLK_CGROUP is not set CONFIG_NAMESPACES=y CONFIG_UTS_NS=y CONFIG_PID_NS=y CONFIG_NET_NS=y CONFIG_SCHED_AUTOGROUP=y CONFIG_SYSFS_DEPRECATED=y CONFIG_SYSFS_DEPRECATED_V2=y # CONFIG_RELAY is not set # CONFIG_BLK_DEV_INITRD is not set CONFIG_CC_OPTIMIZE_FOR_SIZE=y CONFIG_ANON_INODES=y CONFIG_EXPERT=y # CONFIG_UID16 is not set CONFIG_KALLSYMS=y # CONFIG_KALLSYMS_ALL is not set CONFIG_HOTPLUG=y CONFIG_PRINTK=y # CONFIG_BUG is not set # CONFIG_ELF_CORE is not set CONFIG_PCSPKR_PLATFORM=y CONFIG_HAVE_PCSPKR_PLATFORM=y # CONFIG_BASE_FULL is not set CONFIG_FUTEX=y CONFIG_EPOLL=y CONFIG_SIGNALFD=y CONFIG_TIMERFD=y CONFIG_EVENTFD=y CONFIG_SHMEM=y # CONFIG_AIO is not set CONFIG_EMBEDDED=y CONFIG_HAVE_PERF_EVENTS=y CONFIG_PERF_USE_VMALLOC=y # # Kernel Performance Events And Counters # CONFIG_PERF_EVENTS=y CONFIG_PERF_COUNTERS=y CONFIG_DEBUG_PERF_USE_VMALLOC=y CONFIG_VM_EVENT_COUNTERS=y CONFIG_COMPAT_BRK=y # CONFIG_SLAB is not set # CONFIG_SLUB is not set CONFIG_SLOB=y CONFIG_PROFILING=y CONFIG_OPROFILE=m CONFIG_OPROFILE_EVENT_MULTIPLEX=y CONFIG_HAVE_OPROFILE=y # CONFIG_KPROBES is not set CONFIG_JUMP_LABEL=y CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS=y CONFIG_HAVE_IOREMAP_PROT=y CONFIG_HAVE_KPROBES=y CONFIG_HAVE_KRETPROBES=y CONFIG_HAVE_OPTPROBES=y CONFIG_HAVE_ARCH_TRACEHOOK=y CONFIG_HAVE_DMA_ATTRS=y CONFIG_USE_GENERIC_SMP_HELPERS=y CONFIG_HAVE_REGS_AND_STACK_ACCESS_API=y CONFIG_HAVE_DMA_API_DEBUG=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_ARCH_JUMP_LABEL=y CONFIG_ARCH_HAVE_NMI_SAFE_CMPXCHG=y # # GCOV-based kernel profiling # CONFIG_GCOV_KERNEL=y CONFIG_GCOV_PROFILE_ALL=y CONFIG_HAVE_GENERIC_DMA_COHERENT=y CONFIG_RT_MUTEXES=y CONFIG_BASE_SMALL=1 CONFIG_MODULES=y CONFIG_MODULE_FORCE_LOAD=y # CONFIG_MODULE_UNLOAD is not set CONFIG_MODVERSIONS=y CONFIG_MODULE_SRCVERSION_ALL=y CONFIG_STOP_MACHINE=y CONFIG_BLOCK=y # CONFIG_LBDAF is not set CONFIG_BLK_DEV_BSG=y # CONFIG_BLK_DEV_BSGLIB is not set # CONFIG_BLK_DEV_INTEGRITY is not set # # IO Schedulers # CONFIG_IOSCHED_NOOP=y CONFIG_IOSCHED_DEADLINE=m # CONFIG_IOSCHED_CFQ is not set CONFIG_DEFAULT_NOOP=y CONFIG_DEFAULT_IOSCHED="noop" # CONFIG_INLINE_SPIN_TRYLOCK is not set # CONFIG_INLINE_SPIN_TRYLOCK_BH is not set # CONFIG_INLINE_SPIN_LOCK is not set # CONFIG_INLINE_SPIN_LOCK_BH is not set # CONFIG_INLINE_SPIN_LOCK_IRQ is not set # CONFIG_INLINE_SPIN_LOCK_IRQSAVE is not set CONFIG_INLINE_SPIN_UNLOCK=y # CONFIG_INLINE_SPIN_UNLOCK_BH is not set CONFIG_INLINE_SPIN_UNLOCK_IRQ=y # CONFIG_INLINE_SPIN_UNLOCK_IRQRESTORE is not set # CONFIG_INLINE_READ_TRYLOCK is not set # CONFIG_INLINE_READ_LOCK is not set # CONFIG_INLINE_READ_LOCK_BH is not set # CONFIG_INLINE_READ_LOCK_IRQ is not set # CONFIG_INLINE_READ_LOCK_IRQSAVE is not set CONFIG_INLINE_READ_UNLOCK=y # CONFIG_INLINE_READ_UNLOCK_BH is not set CONFIG_INLINE_READ_UNLOCK_IRQ=y # CONFIG_INLINE_READ_UNLOCK_IRQRESTORE is not set # CONFIG_INLINE_WRITE_TRYLOCK is not set # CONFIG_INLINE_WRITE_LOCK is not set # CONFIG_INLINE_WRITE_LOCK_BH is not set # CONFIG_INLINE_WRITE_LOCK_IRQ is not set # CONFIG_INLINE_WRITE_LOCK_IRQSAVE is not set CONFIG_INLINE_WRITE_UNLOCK=y # CONFIG_INLINE_WRITE_UNLOCK_BH is not set CONFIG_INLINE_WRITE_UNLOCK_IRQ=y # CONFIG_INLINE_WRITE_UNLOCK_IRQRESTORE is not set # CONFIG_MUTEX_SPIN_ON_OWNER is not set CONFIG_FREEZER=y # # Processor type and features # CONFIG_TICK_ONESHOT=y CONFIG_NO_HZ=y # CONFIG_HIGH_RES_TIMERS is not set CONFIG_GENERIC_CLOCKEVENTS_BUILD=y CONFIG_GENERIC_CLOCKEVENTS_MIN_ADJUST=y CONFIG_SMP=y CONFIG_X86_MPPARSE=y CONFIG_X86_BIGSMP=y # CONFIG_X86_EXTENDED_PLATFORM is not set CONFIG_X86_SUPPORTS_MEMORY_FAILURE=y # CONFIG_X86_32_IRIS is not set # CONFIG_SCHED_OMIT_FRAME_POINTER is not set CONFIG_PARAVIRT_GUEST=y CONFIG_PARAVIRT_TIME_ACCOUNTING=y # CONFIG_XEN_PRIVILEGED_GUEST is not set # CONFIG_KVM_CLOCK is not set CONFIG_KVM_GUEST=y CONFIG_LGUEST_GUEST=y CONFIG_PARAVIRT=y # CONFIG_PARAVIRT_DEBUG is not set CONFIG_NO_BOOTMEM=y CONFIG_MEMTEST=y # CONFIG_M386 is not set # CONFIG_M486 is not set # CONFIG_M586 is not set # CONFIG_M586TSC is not set # CONFIG_M586MMX is not set CONFIG_M686=y # CONFIG_MPENTIUMII is not set # CONFIG_MPENTIUMIII is not set # CONFIG_MPENTIUMM is not set # CONFIG_MPENTIUM4 is not set # CONFIG_MK6 is not set # CONFIG_MK7 is not set # CONFIG_MK8 is not set # CONFIG_MCRUSOE is not set # CONFIG_MEFFICEON is not set # CONFIG_MWINCHIPC6 is not set # CONFIG_MWINCHIP3D is not set # CONFIG_MELAN is not set # CONFIG_MGEODEGX1 is not set # CONFIG_MGEODE_LX is not set # CONFIG_MCYRIXIII is not set # CONFIG_MVIAC3_2 is not set # CONFIG_MVIAC7 is not set # CONFIG_MCORE2 is not set # CONFIG_MATOM is not set CONFIG_X86_GENERIC=y CONFIG_X86_INTERNODE_CACHE_SHIFT=6 CONFIG_X86_CMPXCHG=y CONFIG_CMPXCHG_LOCAL=y CONFIG_CMPXCHG_DOUBLE=y CONFIG_X86_L1_CACHE_SHIFT=6 CONFIG_X86_XADD=y # CONFIG_X86_PPRO_FENCE is not set CONFIG_X86_WP_WORKS_OK=y CONFIG_X86_INVLPG=y CONFIG_X86_BSWAP=y CONFIG_X86_POPAD_OK=y CONFIG_X86_INTEL_USERCOPY=y CONFIG_X86_USE_PPRO_CHECKSUM=y CONFIG_X86_TSC=y CONFIG_X86_CMPXCHG64=y CONFIG_X86_CMOV=y CONFIG_X86_MINIMUM_CPU_FAMILY=5 CONFIG_X86_DEBUGCTLMSR=y CONFIG_PROCESSOR_SELECT=y CONFIG_CPU_SUP_INTEL=y # CONFIG_CPU_SUP_CYRIX_32 is not set # CONFIG_CPU_SUP_AMD is not set CONFIG_CPU_SUP_CENTAUR=y # CONFIG_CPU_SUP_TRANSMETA_32 is not set # CONFIG_CPU_SUP_UMC_32 is not set CONFIG_HPET_TIMER=y CONFIG_DMI=y # CONFIG_IOMMU_HELPER is not set CONFIG_NR_CPUS=32 # CONFIG_SCHED_SMT is not set CONFIG_SCHED_MC=y # CONFIG_IRQ_TIME_ACCOUNTING is not set # CONFIG_PREEMPT_NONE is not set CONFIG_PREEMPT_VOLUNTARY=y # CONFIG_PREEMPT is not set CONFIG_X86_LOCAL_APIC=y CONFIG_X86_IO_APIC=y CONFIG_X86_REROUTE_FOR_BROKEN_BOOT_IRQS=y CONFIG_X86_MCE=y # CONFIG_X86_MCE_INTEL is not set CONFIG_X86_MCE_AMD=y # CONFIG_X86_ANCIENT_MCE is not set CONFIG_X86_MCE_THRESHOLD=y CONFIG_X86_MCE_INJECT=m # CONFIG_VM86 is not set CONFIG_TOSHIBA=m CONFIG_I8K=m # CONFIG_X86_REBOOTFIXUPS is not set CONFIG_MICROCODE=m CONFIG_MICROCODE_INTEL=y # CONFIG_MICROCODE_AMD is not set CONFIG_MICROCODE_OLD_INTERFACE=y # CONFIG_X86_MSR is not set CONFIG_X86_CPUID=m # CONFIG_NOHIGHMEM is not set CONFIG_HIGHMEM4G=y # CONFIG_HIGHMEM64G is not set CONFIG_PAGE_OFFSET=0xC0000000 CONFIG_HIGHMEM=y # CONFIG_ARCH_PHYS_ADDR_T_64BIT is not set # CONFIG_ARCH_DMA_ADDR_T_64BIT is not set CONFIG_ARCH_FLATMEM_ENABLE=y CONFIG_ILLEGAL_POINTER_VALUE=0 CONFIG_FLATMEM=y CONFIG_FLAT_NODE_MEM_MAP=y CONFIG_HAVE_MEMBLOCK=y CONFIG_PAGEFLAGS_EXTENDED=y CONFIG_SPLIT_PTLOCK_CPUS=4 # CONFIG_COMPACTION is not set # CONFIG_PHYS_ADDR_T_64BIT is not set CONFIG_ZONE_DMA_FLAG=1 CONFIG_BOUNCE=y CONFIG_VIRT_TO_BUS=y # CONFIG_KSM is not set CONFIG_DEFAULT_MMAP_MIN_ADDR=4096 CONFIG_ARCH_SUPPORTS_MEMORY_FAILURE=y # CONFIG_MEMORY_FAILURE is not set # CONFIG_TRANSPARENT_HUGEPAGE is not set # CONFIG_CLEANCACHE is not set # CONFIG_FRONTSWAP is not set CONFIG_HIGHPTE=y CONFIG_X86_CHECK_BIOS_CORRUPTION=y # CONFIG_X86_BOOTPARAM_MEMORY_CORRUPTION_CHECK is not set CONFIG_X86_RESERVE_LOW=64 CONFIG_MATH_EMULATION=y # CONFIG_MTRR is not set # CONFIG_ARCH_RANDOM is not set # CONFIG_SECCOMP is not set CONFIG_CC_STACKPROTECTOR=y 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 is not set CONFIG_KEXEC=y CONFIG_CRASH_DUMP=y CONFIG_PHYSICAL_START=0x1000000 # CONFIG_RELOCATABLE is not set CONFIG_PHYSICAL_ALIGN=0x1000000 CONFIG_HOTPLUG_CPU=y # CONFIG_COMPAT_VDSO is not set CONFIG_CMDLINE_BOOL=y CONFIG_CMDLINE="" CONFIG_CMDLINE_OVERRIDE=y CONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=y # # Power management and ACPI options # CONFIG_SUSPEND=y CONFIG_SUSPEND_FREEZER=y # CONFIG_HIBERNATION is not set CONFIG_PM_SLEEP=y CONFIG_PM_SLEEP_SMP=y # CONFIG_PM_RUNTIME is not set CONFIG_PM=y # CONFIG_PM_DEBUG is not set CONFIG_SFI=y CONFIG_X86_APM_BOOT=y CONFIG_APM=m # CONFIG_APM_IGNORE_USER_SUSPEND is not set # CONFIG_APM_DO_ENABLE is not set # CONFIG_APM_CPU_IDLE is not set # CONFIG_APM_DISPLAY_BLANK is not set # CONFIG_APM_ALLOW_INTS is not set # # CPU Frequency scaling # CONFIG_CPU_FREQ=y CONFIG_CPU_FREQ_TABLE=m CONFIG_CPU_FREQ_STAT=m CONFIG_CPU_FREQ_STAT_DETAILS=y # CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE=y # CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set # CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND is not set # CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set CONFIG_CPU_FREQ_GOV_PERFORMANCE=m CONFIG_CPU_FREQ_GOV_POWERSAVE=y # CONFIG_CPU_FREQ_GOV_USERSPACE is not set # CONFIG_CPU_FREQ_GOV_ONDEMAND is not set CONFIG_CPU_FREQ_GOV_CONSERVATIVE=m # # x86 CPU frequency scaling drivers # # CONFIG_X86_POWERNOW_K6 is not set # CONFIG_X86_POWERNOW_K7 is not set CONFIG_X86_SPEEDSTEP_CENTRINO=m CONFIG_X86_SPEEDSTEP_CENTRINO_TABLE=y CONFIG_X86_SPEEDSTEP_ICH=m # CONFIG_X86_P4_CLOCKMOD is not set # CONFIG_X86_LONGRUN is not set # # shared options # CONFIG_X86_SPEEDSTEP_LIB=m # CONFIG_X86_SPEEDSTEP_RELAXED_CAP_CHECK is not set CONFIG_CPU_IDLE=y CONFIG_CPU_IDLE_GOV_LADDER=y CONFIG_CPU_IDLE_GOV_MENU=y # CONFIG_INTEL_IDLE is not set # # Bus options (PCI etc.) # # CONFIG_PCI is not set # CONFIG_ARCH_SUPPORTS_MSI is not set CONFIG_PCI_LABEL=y CONFIG_ISA_DMA_API=y # CONFIG_ISA is not set CONFIG_MCA=y # CONFIG_MCA_LEGACY is not set # CONFIG_SCx200 is not set CONFIG_OLPC=y # CONFIG_ALIX is not set # CONFIG_PCCARD is not set # # Executable file formats / Emulations # # CONFIG_BINFMT_ELF is not set CONFIG_HAVE_AOUT=y # CONFIG_BINFMT_AOUT is not set # CONFIG_BINFMT_MISC is not set CONFIG_HAVE_ATOMIC_IOMAP=y CONFIG_HAVE_TEXT_POKE_SMP=y CONFIG_NET=y # # Networking options # # CONFIG_PACKET is not set # CONFIG_UNIX is not set # CONFIG_NET_KEY is not set # CONFIG_INET is not set CONFIG_NETWORK_SECMARK=y # CONFIG_NETFILTER is not set # CONFIG_ATM is not set CONFIG_STP=m CONFIG_GARP=m CONFIG_BRIDGE=m CONFIG_VLAN_8021Q=m CONFIG_VLAN_8021Q_GVRP=y CONFIG_DECNET=m CONFIG_LLC=m CONFIG_LLC2=m CONFIG_IPX=m CONFIG_IPX_INTERN=y # CONFIG_ATALK is not set # CONFIG_PHONET is not set CONFIG_NET_SCHED=y # # Queueing/Scheduling # CONFIG_NET_SCH_CBQ=m CONFIG_NET_SCH_HTB=m CONFIG_NET_SCH_HFSC=m CONFIG_NET_SCH_PRIO=m CONFIG_NET_SCH_MULTIQ=m # CONFIG_NET_SCH_RED is not set # CONFIG_NET_SCH_SFB is not set CONFIG_NET_SCH_SFQ=m # CONFIG_NET_SCH_TEQL is not set # CONFIG_NET_SCH_TBF is not set CONFIG_NET_SCH_GRED=m CONFIG_NET_SCH_DSMARK=m # CONFIG_NET_SCH_NETEM is not set # CONFIG_NET_SCH_DRR is not set CONFIG_NET_SCH_MQPRIO=m CONFIG_NET_SCH_CHOKE=m CONFIG_NET_SCH_QFQ=m # # Classification # CONFIG_NET_CLS=y # CONFIG_NET_CLS_BASIC is not set CONFIG_NET_CLS_TCINDEX=m CONFIG_NET_CLS_FW=m # CONFIG_NET_CLS_U32 is not set CONFIG_NET_CLS_RSVP=m CONFIG_NET_CLS_RSVP6=m # CONFIG_NET_CLS_FLOW is not set # CONFIG_NET_CLS_CGROUP is not set # CONFIG_NET_EMATCH is not set # CONFIG_NET_CLS_ACT is not set # CONFIG_NET_CLS_IND is not set CONFIG_NET_SCH_FIFO=y # CONFIG_DCB is not set # CONFIG_BATMAN_ADV is not set CONFIG_RPS=y CONFIG_RFS_ACCEL=y CONFIG_XPS=y # # Network testing # # CONFIG_HAMRADIO is not set CONFIG_CAN=m # CONFIG_CAN_RAW is not set # CONFIG_CAN_BCM is not set CONFIG_CAN_GW=m # # CAN Device Drivers # CONFIG_CAN_VCAN=m CONFIG_CAN_SLCAN=m CONFIG_CAN_DEV=m # CONFIG_CAN_CALC_BITTIMING is not set CONFIG_CAN_MCP251X=m # CONFIG_CAN_SJA1000 is not set CONFIG_CAN_C_CAN=m CONFIG_CAN_C_CAN_PLATFORM=m CONFIG_CAN_SOFTING=m # CONFIG_CAN_DEBUG_DEVICES is not set # CONFIG_IRDA is not set CONFIG_BT=m CONFIG_BT_L2CAP=y CONFIG_BT_SCO=y CONFIG_BT_RFCOMM=m # CONFIG_BT_RFCOMM_TTY is not set # CONFIG_BT_BNEP is not set # CONFIG_BT_CMTP is not set # # Bluetooth device drivers # CONFIG_BT_HCIBTSDIO=m CONFIG_BT_HCIUART=m CONFIG_BT_HCIUART_H4=y # CONFIG_BT_HCIUART_BCSP is not set CONFIG_BT_HCIUART_ATH3K=y CONFIG_BT_HCIUART_LL=y CONFIG_BT_HCIVHCI=m CONFIG_BT_MRVL=m # CONFIG_BT_MRVL_SDIO is not set CONFIG_WIRELESS=y # CONFIG_CFG80211 is not set CONFIG_LIB80211=m CONFIG_LIB80211_DEBUG=y # # CFG80211 needs to be enabled for MAC80211 # CONFIG_WIMAX=m CONFIG_WIMAX_DEBUG_LEVEL=8 # CONFIG_RFKILL is not set # CONFIG_RFKILL_REGULATOR is not set # CONFIG_NET_9P is not set CONFIG_CAIF=m # CONFIG_CAIF_DEBUG is not set CONFIG_CAIF_NETDEV=m # # Device Drivers # # # Generic Driver Options # CONFIG_UEVENT_HELPER_PATH="" CONFIG_DEVTMPFS=y # CONFIG_DEVTMPFS_MOUNT is not set CONFIG_STANDALONE=y CONFIG_PREVENT_FIRMWARE_BUILD=y CONFIG_FW_LOADER=m # CONFIG_FIRMWARE_IN_KERNEL is not set CONFIG_EXTRA_FIRMWARE="" # CONFIG_DEBUG_DRIVER is not set CONFIG_DEBUG_DEVRES=y # CONFIG_SYS_HYPERVISOR is not set CONFIG_REGMAP=y CONFIG_REGMAP_I2C=m CONFIG_REGMAP_SPI=y # CONFIG_CONNECTOR is not set # CONFIG_MTD is not set CONFIG_OF=y # # Device Tree and Open Firmware support # CONFIG_OF_PROMTREE=y CONFIG_OF_ADDRESS=y CONFIG_OF_IRQ=y CONFIG_OF_DEVICE=y CONFIG_OF_GPIO=y CONFIG_OF_I2C=m CONFIG_OF_NET=y CONFIG_OF_SPI=y CONFIG_OF_MDIO=y CONFIG_PARPORT=m CONFIG_PARPORT_PC=m # CONFIG_PARPORT_GSC is not set # CONFIG_PARPORT_AX88796 is not set # CONFIG_PARPORT_1284 is not set CONFIG_BLK_DEV=y # CONFIG_BLK_DEV_FD is not set CONFIG_PARIDE=m # # Parallel IDE high-level drivers # # CONFIG_PARIDE_PD is not set CONFIG_PARIDE_PCD=m # CONFIG_PARIDE_PF is not set CONFIG_PARIDE_PT=m # CONFIG_PARIDE_PG is not set # # Parallel IDE protocol modules # # CONFIG_PARIDE_ATEN is not set CONFIG_PARIDE_BPCK=m CONFIG_PARIDE_BPCK6=m # CONFIG_PARIDE_COMM is not set # CONFIG_PARIDE_DSTR is not set # CONFIG_PARIDE_FIT2 is not set CONFIG_PARIDE_FIT3=m CONFIG_PARIDE_EPAT=m # CONFIG_PARIDE_EPIA is not set # CONFIG_PARIDE_FRIQ is not set # CONFIG_PARIDE_FRPW is not set # CONFIG_PARIDE_KBIC is not set # CONFIG_PARIDE_KTTI is not set CONFIG_PARIDE_ON20=m CONFIG_PARIDE_ON26=m # CONFIG_BLK_DEV_COW_COMMON is not set CONFIG_BLK_DEV_LOOP=m CONFIG_BLK_DEV_LOOP_MIN_COUNT=8 # CONFIG_BLK_DEV_CRYPTOLOOP is not set # # DRBD disabled because PROC_FS, INET or CONNECTOR not selected # CONFIG_BLK_DEV_NBD=m CONFIG_BLK_DEV_RAM=m CONFIG_BLK_DEV_RAM_COUNT=16 CONFIG_BLK_DEV_RAM_SIZE=4096 CONFIG_BLK_DEV_XIP=y # CONFIG_CDROM_PKTCDVD is not set CONFIG_ATA_OVER_ETH=m # CONFIG_BLK_DEV_HD is not set # CONFIG_SENSORS_LIS3LV02D is not set CONFIG_MISC_DEVICES=y # CONFIG_AD525X_DPOT is not set # CONFIG_ENCLOSURE_SERVICES is not set CONFIG_APDS9802ALS=m # CONFIG_ISL29003 is not set CONFIG_ISL29020=m # CONFIG_SENSORS_TSL2550 is not set # CONFIG_SENSORS_BH1780 is not set CONFIG_SENSORS_BH1770=m # CONFIG_SENSORS_APDS990X is not set # CONFIG_HMC6352 is not set CONFIG_TI_DAC7512=m # CONFIG_VMWARE_BALLOON is not set CONFIG_BMP085=m # CONFIG_USB_SWITCH_FSA9480 is not set # # EEPROM support # # CONFIG_EEPROM_AT24 is not set CONFIG_EEPROM_AT25=m # CONFIG_EEPROM_LEGACY is not set CONFIG_EEPROM_93CX6=m CONFIG_EEPROM_93XX46=m # # Texas Instruments shared transport line discipline # # CONFIG_TI_ST is not set # CONFIG_SENSORS_LIS3_SPI is not set # CONFIG_SENSORS_LIS3_I2C is not set # # Altera FPGA firmware download module # # CONFIG_ALTERA_STAPL is not set CONFIG_HAVE_IDE=y CONFIG_IDE=m # # Please see Documentation/ide/ide.txt for help/info on IDE drives # CONFIG_IDE_ATAPI=y # CONFIG_BLK_DEV_IDE_SATA is not set # CONFIG_IDE_GD is not set CONFIG_BLK_DEV_IDECD=m CONFIG_BLK_DEV_IDECD_VERBOSE_ERRORS=y # CONFIG_BLK_DEV_IDETAPE is not set # CONFIG_IDE_TASK_IOCTL is not set # # IDE chipset support/bugfixes # CONFIG_IDE_GENERIC=m CONFIG_BLK_DEV_PLATFORM=m # CONFIG_BLK_DEV_CMD640 is not set # CONFIG_BLK_DEV_IDEDMA is not set # # SCSI device support # CONFIG_SCSI_MOD=m # CONFIG_RAID_ATTRS is not set CONFIG_SCSI=m CONFIG_SCSI_DMA=y CONFIG_SCSI_NETLINK=y # # SCSI support type (disk, tape, CD-ROM) # # CONFIG_BLK_DEV_SD is not set # CONFIG_CHR_DEV_ST is not set CONFIG_CHR_DEV_OSST=m CONFIG_BLK_DEV_SR=m # CONFIG_BLK_DEV_SR_VENDOR is not set # CONFIG_CHR_DEV_SG is not set CONFIG_CHR_DEV_SCH=m CONFIG_SCSI_MULTI_LUN=y # CONFIG_SCSI_CONSTANTS is not set # CONFIG_SCSI_LOGGING is not set CONFIG_SCSI_SCAN_ASYNC=y CONFIG_SCSI_WAIT_SCAN=m # # SCSI Transports # CONFIG_SCSI_SPI_ATTRS=m CONFIG_SCSI_FC_ATTRS=m # CONFIG_SCSI_ISCSI_ATTRS is not set CONFIG_SCSI_SAS_ATTRS=m CONFIG_SCSI_SAS_LIBSAS=m # CONFIG_SCSI_SAS_ATA is not set # CONFIG_SCSI_SAS_HOST_SMP is not set # CONFIG_SCSI_SRP_ATTRS is not set CONFIG_SCSI_LOWLEVEL=y CONFIG_ISCSI_BOOT_SYSFS=m # CONFIG_SCSI_BUSLOGIC is not set # CONFIG_LIBFC is not set # CONFIG_LIBFCOE is not set # CONFIG_SCSI_IBMMCA is not set CONFIG_SCSI_PPA=m CONFIG_SCSI_IMM=m # CONFIG_SCSI_IZIP_EPP16 is not set CONFIG_SCSI_IZIP_SLOW_CTR=y # CONFIG_SCSI_NCR_D700 is not set CONFIG_SCSI_NCR_Q720=m CONFIG_SCSI_NCR53C8XX_DEFAULT_TAGS=8 CONFIG_SCSI_NCR53C8XX_MAX_TAGS=32 CONFIG_SCSI_NCR53C8XX_SYNC=20 CONFIG_SCSI_SIM710=m CONFIG_SCSI_DEBUG=m # CONFIG_SCSI_DH is not set # CONFIG_SCSI_OSD_INITIATOR is not set CONFIG_ATA=m # CONFIG_ATA_NONSTANDARD is not set CONFIG_ATA_VERBOSE_ERROR=y CONFIG_SATA_PMP=y # # Controllers with non-SFF native interface # CONFIG_SATA_AHCI_PLATFORM=m CONFIG_ATA_SFF=y # # SFF controllers with custom DMA interface # CONFIG_ATA_BMDMA=y # # SATA SFF controllers with BMDMA # # CONFIG_SATA_MV is not set # # PATA SFF controllers with BMDMA # # CONFIG_PATA_ARASAN_CF is not set # # PIO-only SFF controllers # CONFIG_PATA_PLATFORM=m CONFIG_PATA_OF_PLATFORM=m # # Generic fallback / legacy drivers # # CONFIG_MD is not set # CONFIG_TARGET_CORE is not set # CONFIG_MACINTOSH_DRIVERS is not set CONFIG_NETDEVICES=y CONFIG_NET_CORE=y CONFIG_DUMMY=m CONFIG_EQUALIZER=m CONFIG_MII=m CONFIG_NETCONSOLE=m CONFIG_NETCONSOLE_DYNAMIC=y CONFIG_NETPOLL=y CONFIG_NETPOLL_TRAP=y CONFIG_NET_POLL_CONTROLLER=y CONFIG_TUN=m # CONFIG_VETH is not set # # CAIF transport drivers # # CONFIG_CAIF_TTY is not set # CONFIG_CAIF_SPI_SLAVE is not set CONFIG_CAIF_HSI=m CONFIG_ETHERNET=y CONFIG_NET_VENDOR_3COM=y CONFIG_EL3=m # CONFIG_NET_VENDOR_AMD is not set CONFIG_NET_VENDOR_BROADCOM=y CONFIG_B44=m # CONFIG_DNET is not set CONFIG_NET_VENDOR_DLINK=y CONFIG_DE600=m # CONFIG_DE620 is not set CONFIG_NET_VENDOR_IBM=y # CONFIG_IBM_EMAC_ZMII is not set # CONFIG_IBM_EMAC_RGMII is not set # CONFIG_IBM_EMAC_TAH is not set # CONFIG_IBM_EMAC_EMAC4 is not set # CONFIG_IBM_EMAC_NO_FLOW_CTRL is not set # CONFIG_IBM_EMAC_MAL_CLR_ICINTSTAT is not set # CONFIG_IBM_EMAC_MAL_COMMON_ERR is not set CONFIG_NET_VENDOR_MICREL=y CONFIG_KS8842=m CONFIG_KS8851=m CONFIG_KS8851_MLL=m # CONFIG_NET_VENDOR_NATSEMI is not set CONFIG_ETHOC=m CONFIG_NET_VENDOR_REALTEK=y CONFIG_ATP=m # CONFIG_NET_VENDOR_STMICRO is not set CONFIG_PHYLIB=y # # MII PHY device drivers # CONFIG_MARVELL_PHY=m # CONFIG_DAVICOM_PHY is not set CONFIG_QSEMI_PHY=m # CONFIG_LXT_PHY is not set # CONFIG_CICADA_PHY is not set CONFIG_VITESSE_PHY=m CONFIG_SMSC_PHY=m CONFIG_BROADCOM_PHY=m # CONFIG_ICPLUS_PHY is not set CONFIG_REALTEK_PHY=m CONFIG_NATIONAL_PHY=m # CONFIG_STE10XP is not set # CONFIG_LSI_ET1011C_PHY is not set CONFIG_MICREL_PHY=m # CONFIG_FIXED_PHY is not set CONFIG_MDIO_BITBANG=m # CONFIG_MDIO_GPIO is not set CONFIG_PLIP=m CONFIG_PPP=m CONFIG_PPP_BSDCOMP=m # CONFIG_PPP_DEFLATE is not set # CONFIG_PPP_FILTER is not set # CONFIG_PPP_ASYNC is not set CONFIG_PPP_SYNC_TTY=m # CONFIG_SLIP is not set CONFIG_SLHC=m # CONFIG_TR is not set CONFIG_WLAN=y # CONFIG_HOSTAP is not set # # WiMAX Wireless Broadband devices # # # Enable USB support to see WiMAX USB drivers # # CONFIG_WIMAX_I2400M_SDIO is not set CONFIG_WAN=y # CONFIG_HDLC is not set # CONFIG_DLCI is not set CONFIG_SBNI=m # CONFIG_SBNI_MULTILINE is not set CONFIG_ISDN=y CONFIG_ISDN_I4L=m # CONFIG_ISDN_AUDIO is not set # # ISDN feature submodules # # CONFIG_ISDN_DIVERSION is not set # # ISDN4Linux hardware drivers # # # Passive cards # # CONFIG_ISDN_DRV_HISAX is not set # # Active cards # CONFIG_ISDN_CAPI=m # CONFIG_ISDN_DRV_AVMB1_VERBOSE_REASON is not set CONFIG_CAPI_TRACE=y CONFIG_ISDN_CAPI_MIDDLEWARE=y # CONFIG_ISDN_CAPI_CAPI20 is not set # CONFIG_ISDN_CAPI_CAPIDRV is not set # # CAPI hardware drivers # CONFIG_CAPI_AVM=y CONFIG_CAPI_EICON=y # CONFIG_ISDN_DRV_GIGASET is not set CONFIG_MISDN=m CONFIG_MISDN_DSP=m CONFIG_MISDN_L1OIP=m # # mISDN hardware drivers # CONFIG_PHONE=m # # Input device support # CONFIG_INPUT=y CONFIG_INPUT_FF_MEMLESS=m CONFIG_INPUT_POLLDEV=m CONFIG_INPUT_SPARSEKMAP=m # # Userland interfaces # CONFIG_INPUT_MOUSEDEV=m # CONFIG_INPUT_MOUSEDEV_PSAUX is not set CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024 CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768 # CONFIG_INPUT_JOYDEV is not set # CONFIG_INPUT_EVDEV is not set CONFIG_INPUT_EVBUG=m # # Input Device Drivers # CONFIG_INPUT_KEYBOARD=y CONFIG_KEYBOARD_ADP5588=m CONFIG_KEYBOARD_ADP5589=m # CONFIG_KEYBOARD_ATKBD is not set # CONFIG_KEYBOARD_QT1070 is not set # CONFIG_KEYBOARD_LKKBD is not set CONFIG_KEYBOARD_GPIO=m CONFIG_KEYBOARD_GPIO_POLLED=m CONFIG_KEYBOARD_TCA6416=m CONFIG_KEYBOARD_MATRIX=m # CONFIG_KEYBOARD_LM8323 is not set CONFIG_KEYBOARD_MAX7359=m CONFIG_KEYBOARD_MCS=m CONFIG_KEYBOARD_MPR121=m # CONFIG_KEYBOARD_NEWTON is not set # CONFIG_KEYBOARD_OPENCORES is not set CONFIG_KEYBOARD_STOWAWAY=m # CONFIG_KEYBOARD_SUNKBD is not set CONFIG_KEYBOARD_XTKBD=m CONFIG_INPUT_MOUSE=y # CONFIG_MOUSE_PS2 is not set CONFIG_MOUSE_SERIAL=m CONFIG_MOUSE_VSXXXAA=m # CONFIG_MOUSE_GPIO is not set CONFIG_MOUSE_SYNAPTICS_I2C=m CONFIG_INPUT_JOYSTICK=y CONFIG_JOYSTICK_ANALOG=m CONFIG_JOYSTICK_A3D=m CONFIG_JOYSTICK_ADI=m CONFIG_JOYSTICK_COBRA=m CONFIG_JOYSTICK_GF2K=m CONFIG_JOYSTICK_GRIP=m CONFIG_JOYSTICK_GRIP_MP=m # CONFIG_JOYSTICK_GUILLEMOT is not set CONFIG_JOYSTICK_INTERACT=m CONFIG_JOYSTICK_SIDEWINDER=m # CONFIG_JOYSTICK_TMDC is not set # CONFIG_JOYSTICK_IFORCE is not set # CONFIG_JOYSTICK_WARRIOR is not set CONFIG_JOYSTICK_MAGELLAN=m CONFIG_JOYSTICK_SPACEORB=m CONFIG_JOYSTICK_SPACEBALL=m CONFIG_JOYSTICK_STINGER=m # CONFIG_JOYSTICK_TWIDJOY is not set # CONFIG_JOYSTICK_ZHENHUA is not set # CONFIG_JOYSTICK_DB9 is not set CONFIG_JOYSTICK_GAMECON=m CONFIG_JOYSTICK_TURBOGRAFX=m CONFIG_JOYSTICK_AS5011=m # CONFIG_JOYSTICK_JOYDUMP is not set CONFIG_INPUT_TABLET=y # CONFIG_INPUT_TOUCHSCREEN is not set CONFIG_INPUT_MISC=y CONFIG_INPUT_AB8500_PONKEY=m # CONFIG_INPUT_AD714X is not set # CONFIG_INPUT_BMA150 is not set # CONFIG_INPUT_PCSPKR is not set CONFIG_INPUT_MC13783_PWRBUTTON=m CONFIG_INPUT_MMA8450=m CONFIG_INPUT_MPU3050=m CONFIG_INPUT_APANEL=m CONFIG_INPUT_WISTRON_BTNS=m CONFIG_INPUT_KXTJ9=m CONFIG_INPUT_KXTJ9_POLLED_MODE=y CONFIG_INPUT_UINPUT=m CONFIG_INPUT_GPIO_ROTARY_ENCODER=m # CONFIG_INPUT_WM831X_ON is not set # CONFIG_INPUT_PCAP is not set # CONFIG_INPUT_ADXL34X is not set # CONFIG_INPUT_CMA3000 is not set # # Hardware I/O ports # CONFIG_SERIO=m # CONFIG_SERIO_I8042 is not set CONFIG_SERIO_SERPORT=m CONFIG_SERIO_CT82C710=m # CONFIG_SERIO_PARKBD is not set CONFIG_SERIO_LIBPS2=m CONFIG_SERIO_RAW=m CONFIG_SERIO_ALTERA_PS2=m CONFIG_SERIO_PS2MULT=m CONFIG_GAMEPORT=m CONFIG_GAMEPORT_NS558=m # CONFIG_GAMEPORT_L4 is not set # # Character devices # CONFIG_VT=y CONFIG_CONSOLE_TRANSLATIONS=y # CONFIG_VT_CONSOLE is not set CONFIG_HW_CONSOLE=y # CONFIG_VT_HW_CONSOLE_BINDING is not set # CONFIG_UNIX98_PTYS is not set # CONFIG_LEGACY_PTYS is not set CONFIG_SERIAL_NONSTANDARD=y # CONFIG_N_HDLC is not set CONFIG_TRACE_ROUTER=m CONFIG_TRACE_SINK=m CONFIG_DEVKMEM=y # CONFIG_STALDRV is not set # # Serial drivers # CONFIG_SERIAL_8250=m CONFIG_FIX_EARLYCON_MEM=y CONFIG_SERIAL_8250_NR_UARTS=4 CONFIG_SERIAL_8250_RUNTIME_UARTS=4 CONFIG_SERIAL_8250_EXTENDED=y # CONFIG_SERIAL_8250_MANY_PORTS is not set # CONFIG_SERIAL_8250_SHARE_IRQ is not set # CONFIG_SERIAL_8250_DETECT_IRQ is not set CONFIG_SERIAL_8250_RSA=y # CONFIG_SERIAL_8250_MCA is not set CONFIG_SERIAL_8250_DW=m # # Non-8250 serial port support # CONFIG_SERIAL_MAX3100=m CONFIG_SERIAL_MAX3107=m CONFIG_SERIAL_CORE=m CONFIG_SERIAL_OF_PLATFORM=m # CONFIG_SERIAL_TIMBERDALE is not set # CONFIG_SERIAL_ALTERA_JTAGUART is not set # CONFIG_SERIAL_ALTERA_UART is not set CONFIG_SERIAL_XILINX_PS_UART=m # CONFIG_TTY_PRINTK is not set CONFIG_PRINTER=m # CONFIG_LP_CONSOLE is not set CONFIG_PPDEV=m CONFIG_HVC_DRIVER=y CONFIG_VIRTIO_CONSOLE=y # CONFIG_IPMI_HANDLER is not set # CONFIG_HW_RANDOM is not set # CONFIG_NVRAM is not set # CONFIG_R3964 is not set CONFIG_MWAVE=m CONFIG_PC8736x_GPIO=m CONFIG_NSC_GPIO=m CONFIG_RAW_DRIVER=m CONFIG_MAX_RAW_DEVS=256 # CONFIG_HANGCHECK_TIMER is not set # CONFIG_RAMOOPS is not set CONFIG_I2C=m CONFIG_I2C_BOARDINFO=y CONFIG_I2C_COMPAT=y CONFIG_I2C_CHARDEV=m # CONFIG_I2C_HELPER_AUTO is not set CONFIG_I2C_SMBUS=m # # I2C Algorithms # CONFIG_I2C_ALGOBIT=m CONFIG_I2C_ALGOPCF=m CONFIG_I2C_ALGOPCA=m # # I2C Hardware Bus support # # # I2C system bus drivers (mostly embedded / system-on-chip) # # CONFIG_I2C_GPIO is not set CONFIG_I2C_PCA_PLATFORM=m # CONFIG_I2C_PXA_PCI is not set # CONFIG_I2C_SIMTEC is not set # # External I2C/SMBus adapter drivers # CONFIG_I2C_PARPORT=m # CONFIG_I2C_PARPORT_LIGHT is not set # # Other I2C/SMBus bus drivers # # CONFIG_I2C_DEBUG_CORE is not set CONFIG_I2C_DEBUG_ALGO=y CONFIG_I2C_DEBUG_BUS=y CONFIG_SPI=y # CONFIG_SPI_DEBUG is not set CONFIG_SPI_MASTER=y # # SPI Master Controller Drivers # # CONFIG_SPI_ALTERA is not set CONFIG_SPI_BITBANG=m # CONFIG_SPI_BUTTERFLY is not set CONFIG_SPI_GPIO=m # CONFIG_SPI_OC_TINY is not set # CONFIG_SPI_PXA2XX_PCI is not set # CONFIG_SPI_DESIGNWARE is not set # # SPI Protocol Masters # CONFIG_SPI_TLE62X0=m # # PPS support # # # PPS generators support # # # PTP clock support # # # Enable Device Drivers -> PPS to see the PTP clock options. # CONFIG_ARCH_WANT_OPTIONAL_GPIOLIB=y CONFIG_GPIOLIB=y # CONFIG_DEBUG_GPIO is not set CONFIG_GPIO_MAX730X=m # # Memory mapped GPIO drivers: # # CONFIG_GPIO_GENERIC_PLATFORM is not set # CONFIG_GPIO_IT8761E is not set # # I2C GPIO expanders: # CONFIG_GPIO_MAX7300=m CONFIG_GPIO_MAX732X=m # CONFIG_GPIO_PCA953X is not set # CONFIG_GPIO_PCF857X is not set # CONFIG_GPIO_WM831X is not set # CONFIG_GPIO_ADP5588 is not set # # PCI GPIO expanders: # # # SPI GPIO expanders: # # CONFIG_GPIO_MAX7301 is not set CONFIG_GPIO_MCP23S08=m # CONFIG_GPIO_MC33880 is not set CONFIG_GPIO_74X164=m # # AC97 GPIO expanders: # # # MODULbus GPIO expanders: # CONFIG_W1=m # # 1-wire Bus Masters # CONFIG_W1_MASTER_DS1WM=m CONFIG_W1_MASTER_GPIO=m # # 1-wire Slaves # # CONFIG_W1_SLAVE_THERM is not set # CONFIG_W1_SLAVE_SMEM is not set # CONFIG_W1_SLAVE_DS2408 is not set # CONFIG_W1_SLAVE_DS2423 is not set CONFIG_W1_SLAVE_DS2431=m # CONFIG_W1_SLAVE_DS2433 is not set CONFIG_W1_SLAVE_DS2760=m CONFIG_W1_SLAVE_DS2780=m # CONFIG_W1_SLAVE_BQ27000 is not set CONFIG_POWER_SUPPLY=m # CONFIG_POWER_SUPPLY_DEBUG is not set CONFIG_PDA_POWER=m CONFIG_WM831X_BACKUP=m # CONFIG_WM831X_POWER is not set CONFIG_TEST_POWER=m CONFIG_BATTERY_DS2760=m CONFIG_BATTERY_DS2780=m CONFIG_BATTERY_DS2782=m # CONFIG_BATTERY_OLPC is not set CONFIG_BATTERY_BQ20Z75=m # CONFIG_BATTERY_BQ27x00 is not set # CONFIG_BATTERY_MAX17040 is not set CONFIG_BATTERY_MAX17042=m # CONFIG_CHARGER_MAX8903 is not set # CONFIG_CHARGER_GPIO is not set CONFIG_HWMON=m CONFIG_HWMON_VID=m CONFIG_HWMON_DEBUG_CHIP=y # # Native drivers # CONFIG_SENSORS_ADM1021=m CONFIG_SENSORS_ADM1025=m # CONFIG_SENSORS_ADM1026 is not set # CONFIG_SENSORS_ADM1029 is not set # CONFIG_SENSORS_ADM1031 is not set # CONFIG_SENSORS_ADM9240 is not set CONFIG_SENSORS_ADT7475=m CONFIG_SENSORS_ASC7621=m CONFIG_SENSORS_DS620=m CONFIG_SENSORS_DS1621=m # CONFIG_SENSORS_F71805F is not set CONFIG_SENSORS_F71882FG=m # CONFIG_SENSORS_F75375S is not set CONFIG_SENSORS_FSCHMD=m # CONFIG_SENSORS_G760A is not set # CONFIG_SENSORS_GL518SM is not set CONFIG_SENSORS_GL520SM=m # CONFIG_SENSORS_GPIO_FAN is not set # CONFIG_SENSORS_IT87 is not set # CONFIG_SENSORS_JC42 is not set # CONFIG_SENSORS_LM63 is not set CONFIG_SENSORS_LM70=m CONFIG_SENSORS_LM73=m CONFIG_SENSORS_LM75=m CONFIG_SENSORS_LM77=m CONFIG_SENSORS_LM78=m CONFIG_SENSORS_LM80=m CONFIG_SENSORS_LM83=m CONFIG_SENSORS_LM85=m CONFIG_SENSORS_LM87=m CONFIG_SENSORS_LM90=m # CONFIG_SENSORS_LM92 is not set # CONFIG_SENSORS_LM93 is not set # CONFIG_SENSORS_LTC4151 is not set CONFIG_SENSORS_LM95241=m CONFIG_SENSORS_MAX1111=m # CONFIG_SENSORS_MAX16065 is not set # CONFIG_SENSORS_MAX1619 is not set CONFIG_SENSORS_PC87360=m # CONFIG_SENSORS_PC87427 is not set CONFIG_SENSORS_PCF8591=m # CONFIG_SENSORS_SHT15 is not set CONFIG_SENSORS_SHT21=m # CONFIG_SENSORS_EMC1403 is not set # CONFIG_SENSORS_EMC2103 is not set CONFIG_SENSORS_EMC6W201=m # CONFIG_SENSORS_SMSC47M1 is not set # CONFIG_SENSORS_SMSC47M192 is not set CONFIG_SENSORS_SCH56XX_COMMON=m CONFIG_SENSORS_SCH5627=m # CONFIG_SENSORS_SCH5636 is not set # CONFIG_SENSORS_ADS1015 is not set # CONFIG_SENSORS_ADS7828 is not set # CONFIG_SENSORS_ADS7871 is not set # CONFIG_SENSORS_THMC50 is not set # CONFIG_SENSORS_VIA_CPUTEMP is not set CONFIG_SENSORS_VT1211=m CONFIG_SENSORS_W83781D=m # CONFIG_SENSORS_W83791D is not set CONFIG_SENSORS_W83792D=m # CONFIG_SENSORS_W83627HF is not set CONFIG_SENSORS_W83627EHF=m # CONFIG_SENSORS_WM831X is not set # CONFIG_SENSORS_APPLESMC is not set CONFIG_SENSORS_MC13783_ADC=m CONFIG_THERMAL=m CONFIG_THERMAL_HWMON=y CONFIG_WATCHDOG=y CONFIG_WATCHDOG_CORE=y CONFIG_WATCHDOG_NOWAYOUT=y # # Watchdog Device Drivers # # CONFIG_SOFT_WATCHDOG is not set CONFIG_WM831X_WATCHDOG=m CONFIG_ACQUIRE_WDT=m CONFIG_ADVANTECH_WDT=m # CONFIG_SC520_WDT 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=m # CONFIG_IT8712F_WDT is not set CONFIG_SC1200_WDT=m # CONFIG_PC87413_WDT is not set # CONFIG_60XX_WDT is not set CONFIG_SBC8360_WDT=m # CONFIG_SBC7240_WDT is not set CONFIG_CPU5_WDT=m # CONFIG_SMSC_SCH311X_WDT is not set CONFIG_SMSC37B787_WDT=m # CONFIG_W83627HF_WDT is not set # CONFIG_W83697HF_WDT is not set # CONFIG_W83697UG_WDT is not set # CONFIG_W83877F_WDT is not set # CONFIG_W83977F_WDT is not set CONFIG_MACHZ_WDT=m # CONFIG_SBC_EPX_C3_WATCHDOG is not set CONFIG_SSB_POSSIBLE=y # # Sonics Silicon Backplane # CONFIG_SSB=m CONFIG_SSB_SDIOHOST_POSSIBLE=y # CONFIG_SSB_SDIOHOST is not set # CONFIG_SSB_SILENT is not set # CONFIG_SSB_DEBUG is not set CONFIG_BCMA_POSSIBLE=y # # Broadcom specific AMBA # # CONFIG_BCMA is not set # # Multifunction device drivers # CONFIG_MFD_CORE=y # CONFIG_MFD_SM501 is not set # CONFIG_HTC_PASIC3 is not set # CONFIG_TPS6105X is not set # CONFIG_TPS65010 is not set CONFIG_TPS6507X=m # CONFIG_MFD_TPS65912_SPI is not set # CONFIG_MFD_TMIO is not set # CONFIG_MFD_WM8400 is not set CONFIG_MFD_WM831X=y CONFIG_MFD_WM831X_SPI=y # CONFIG_MFD_PCF50633 is not set CONFIG_MFD_MC13783=m CONFIG_MFD_MC13XXX=m CONFIG_ABX500_CORE=y CONFIG_EZX_PCAP=y CONFIG_AB8500_CORE=y # CONFIG_AB8500_DEBUG is not set CONFIG_AB8500_GPADC=y # CONFIG_MFD_WL1273_CORE is not set CONFIG_REGULATOR=y # CONFIG_REGULATOR_DEBUG is not set CONFIG_REGULATOR_DUMMY=y # CONFIG_REGULATOR_FIXED_VOLTAGE is not set CONFIG_REGULATOR_VIRTUAL_CONSUMER=m # CONFIG_REGULATOR_USERSPACE_CONSUMER is not set CONFIG_REGULATOR_GPIO=m # CONFIG_REGULATOR_BQ24022 is not set # CONFIG_REGULATOR_MAX1586 is not set # CONFIG_REGULATOR_MAX8649 is not set CONFIG_REGULATOR_MAX8660=m CONFIG_REGULATOR_MAX8952=m CONFIG_REGULATOR_WM831X=m # CONFIG_REGULATOR_LP3971 is not set CONFIG_REGULATOR_LP3972=m CONFIG_REGULATOR_PCAP=m CONFIG_REGULATOR_MC13XXX_CORE=m CONFIG_REGULATOR_MC13783=m # CONFIG_REGULATOR_MC13892 is not set CONFIG_REGULATOR_TPS65023=m # CONFIG_REGULATOR_TPS6507X is not set CONFIG_REGULATOR_ISL6271A=m CONFIG_REGULATOR_AD5398=m CONFIG_REGULATOR_AB8500=y # CONFIG_REGULATOR_TPS6524X is not set # CONFIG_MEDIA_SUPPORT is not set # # Graphics support # # CONFIG_DRM is not set # CONFIG_VGASTATE is not set CONFIG_VIDEO_OUTPUT_CONTROL=m # CONFIG_FB is not set # CONFIG_BACKLIGHT_LCD_SUPPORT is not set # # Display device support # # CONFIG_DISPLAY_SUPPORT is not set # # Console display driver support # CONFIG_VGA_CONSOLE=y CONFIG_VGACON_SOFT_SCROLLBACK=y CONFIG_VGACON_SOFT_SCROLLBACK_SIZE=64 CONFIG_DUMMY_CONSOLE=y # CONFIG_SOUND is not set # CONFIG_HID_SUPPORT is not set # CONFIG_USB_SUPPORT is not set CONFIG_MMC=m # CONFIG_MMC_DEBUG is not set CONFIG_MMC_UNSAFE_RESUME=y # # MMC/SD/SDIO Card Drivers # # CONFIG_MMC_BLOCK is not set # CONFIG_SDIO_UART is not set CONFIG_MMC_TEST=m # # MMC/SD/SDIO Host Controller Drivers # # CONFIG_MMC_SDHCI is not set # CONFIG_MMC_WBSD is not set # CONFIG_MEMSTICK is not set CONFIG_NEW_LEDS=y CONFIG_LEDS_CLASS=y # # LED drivers # # CONFIG_LEDS_LM3530 is not set CONFIG_LEDS_GPIO=m # CONFIG_LEDS_LP3944 is not set CONFIG_LEDS_LP5521=m CONFIG_LEDS_LP5523=m CONFIG_LEDS_PCA955X=m # CONFIG_LEDS_WM831X_STATUS is not set # CONFIG_LEDS_DAC124S085 is not set # CONFIG_LEDS_REGULATOR is not set # CONFIG_LEDS_BD2802 is not set CONFIG_LEDS_LT3593=m # CONFIG_LEDS_MC13783 is not set # CONFIG_LEDS_TRIGGERS is not set # # LED Triggers # # CONFIG_ACCESSIBILITY is not set CONFIG_EDAC=y # # Reporting subsystems # CONFIG_EDAC_DEBUG=y CONFIG_EDAC_MM_EDAC=m CONFIG_RTC_LIB=y CONFIG_RTC_CLASS=y # CONFIG_RTC_HCTOSYS is not set # CONFIG_RTC_DEBUG is not set # # RTC interfaces # CONFIG_RTC_INTF_SYSFS=y # CONFIG_RTC_INTF_DEV is not set CONFIG_RTC_DRV_TEST=m # # I2C RTC drivers # CONFIG_RTC_DRV_DS1307=m CONFIG_RTC_DRV_DS1374=m CONFIG_RTC_DRV_DS1672=m # CONFIG_RTC_DRV_DS3232 is not set # CONFIG_RTC_DRV_MAX6900 is not set CONFIG_RTC_DRV_RS5C372=m CONFIG_RTC_DRV_ISL1208=m # CONFIG_RTC_DRV_ISL12022 is not set # CONFIG_RTC_DRV_X1205 is not set # CONFIG_RTC_DRV_PCF8563 is not set CONFIG_RTC_DRV_PCF8583=m CONFIG_RTC_DRV_M41T80=m # CONFIG_RTC_DRV_M41T80_WDT is not set CONFIG_RTC_DRV_BQ32K=m CONFIG_RTC_DRV_S35390A=m CONFIG_RTC_DRV_FM3130=m # CONFIG_RTC_DRV_RX8581 is not set CONFIG_RTC_DRV_RX8025=m # CONFIG_RTC_DRV_EM3027 is not set # CONFIG_RTC_DRV_RV3029C2 is not set # # SPI RTC drivers # # CONFIG_RTC_DRV_M41T93 is not set CONFIG_RTC_DRV_M41T94=m # CONFIG_RTC_DRV_DS1305 is not set CONFIG_RTC_DRV_DS1390=m CONFIG_RTC_DRV_MAX6902=m CONFIG_RTC_DRV_R9701=m CONFIG_RTC_DRV_RS5C348=m CONFIG_RTC_DRV_DS3234=m # CONFIG_RTC_DRV_PCF2123 is not set # # Platform RTC drivers # # CONFIG_RTC_DRV_CMOS is not set # CONFIG_RTC_DRV_DS1286 is not set CONFIG_RTC_DRV_DS1511=m CONFIG_RTC_DRV_DS1553=m CONFIG_RTC_DRV_DS1742=m CONFIG_RTC_DRV_STK17TA8=m CONFIG_RTC_DRV_M48T86=m CONFIG_RTC_DRV_M48T35=m # CONFIG_RTC_DRV_M48T59 is not set CONFIG_RTC_DRV_MSM6242=m CONFIG_RTC_DRV_BQ4802=m CONFIG_RTC_DRV_RP5C01=m CONFIG_RTC_DRV_V3020=m CONFIG_RTC_DRV_WM831X=m # CONFIG_RTC_DRV_AB8500 is not set # # on-CPU RTC drivers # CONFIG_RTC_DRV_PCAP=m CONFIG_RTC_DRV_MC13XXX=m CONFIG_DMADEVICES=y CONFIG_DMADEVICES_DEBUG=y CONFIG_DMADEVICES_VDEBUG=y # # DMA Devices # CONFIG_TIMB_DMA=m CONFIG_DMA_ENGINE=y # # DMA Clients # CONFIG_NET_DMA=y CONFIG_ASYNC_TX_DMA=y CONFIG_DMATEST=m CONFIG_AUXDISPLAY=y CONFIG_KS0108=m CONFIG_KS0108_PORT=0x378 CONFIG_KS0108_DELAY=2 # CONFIG_UIO is not set CONFIG_VIRTIO=y CONFIG_VIRTIO_RING=y # # Virtio drivers # # CONFIG_VIRTIO_BALLOON is not set CONFIG_STAGING=y CONFIG_ECHO=m CONFIG_COMEDI=m CONFIG_COMEDI_DEBUG=y CONFIG_COMEDI_MISC_DRIVERS=m CONFIG_COMEDI_KCOMEDILIB=m # CONFIG_COMEDI_BOND is not set CONFIG_COMEDI_TEST=m CONFIG_COMEDI_PARPORT=m CONFIG_COMEDI_SERIAL2002=m # CONFIG_COMEDI_SKEL is not set CONFIG_COMEDI_NI_COMMON=m CONFIG_COMEDI_8255=m # CONFIG_COMEDI_DAS08 is not set CONFIG_COMEDI_FC=m # CONFIG_PANEL is not set # CONFIG_POHMELFS is not set CONFIG_IIO=m CONFIG_IIO_BUFFER=y CONFIG_IIO_SW_RING=m CONFIG_IIO_KFIFO_BUF=m CONFIG_IIO_TRIGGER=y CONFIG_IIO_CONSUMERS_PER_TRIGGER=2 # # Accelerometers # CONFIG_ADIS16201=m CONFIG_ADIS16203=m CONFIG_ADIS16204=m CONFIG_ADIS16209=m # CONFIG_ADIS16220 is not set # CONFIG_ADIS16240 is not set CONFIG_KXSD9=m # CONFIG_LIS3L02DQ is not set # CONFIG_SCA3000 is not set # # Analog to digital convertors # CONFIG_AD7150=m CONFIG_AD7152=m # CONFIG_AD7291 is not set CONFIG_AD7298=m # CONFIG_AD7606 is not set # CONFIG_AD799X is not set CONFIG_AD7476=m # CONFIG_AD7887 is not set CONFIG_AD7780=m # CONFIG_AD7793 is not set # CONFIG_AD7746 is not set # CONFIG_AD7816 is not set CONFIG_AD7192=m # CONFIG_ADT75 is not set # CONFIG_ADT7310 is not set # CONFIG_ADT7410 is not set # CONFIG_AD7280 is not set CONFIG_MAX1363=m CONFIG_MAX1363_RING_BUFFER=y # # Analog digital bi-direction convertors # # CONFIG_ADT7316 is not set # # Digital to analog convertors # CONFIG_AD5624R_SPI=m # CONFIG_AD5446 is not set CONFIG_AD5504=m # CONFIG_AD5791 is not set # CONFIG_AD5686 is not set # # Direct Digital Synthesis # CONFIG_AD5930=m # CONFIG_AD9832 is not set # CONFIG_AD9834 is not set # CONFIG_AD9850 is not set CONFIG_AD9852=m CONFIG_AD9910=m # CONFIG_AD9951 is not set # # Digital gyroscope sensors # # CONFIG_ADIS16060 is not set CONFIG_ADIS16080=m CONFIG_ADIS16130=m # CONFIG_ADIS16260 is not set CONFIG_ADXRS450=m # # Network Analyzer, Impedance Converters # # CONFIG_AD5933 is not set # # Inertial measurement units # # CONFIG_ADIS16400 is not set # # Light sensors # # CONFIG_SENSORS_ISL29018 is not set CONFIG_SENSORS_TSL2563=m # CONFIG_TSL2583 is not set # # Magnetometer sensors # CONFIG_SENSORS_AK8975=m CONFIG_SENSORS_HMC5843=m # # Active energy metering IC # CONFIG_ADE7753=m CONFIG_ADE7754=m CONFIG_ADE7758=m # CONFIG_ADE7759 is not set # CONFIG_ADE7854 is not set # # Resolver to digital converters # # CONFIG_AD2S90 is not set CONFIG_AD2S1200=m CONFIG_AD2S1210=m # # Triggers - standalone # # CONFIG_IIO_PERIODIC_RTC_TRIGGER is not set # CONFIG_IIO_GPIO_TRIGGER is not set CONFIG_IIO_SYSFS_TRIGGER=m # CONFIG_XVMALLOC is not set # CONFIG_ZRAM is not set CONFIG_FT1000=m # # Speakup console speech # CONFIG_SPEAKUP=m CONFIG_SPEAKUP_SYNTH_ACNTSA=m CONFIG_SPEAKUP_SYNTH_ACNTPC=m CONFIG_SPEAKUP_SYNTH_APOLLO=m # CONFIG_SPEAKUP_SYNTH_AUDPTR is not set CONFIG_SPEAKUP_SYNTH_BNS=m CONFIG_SPEAKUP_SYNTH_DECTLK=m # CONFIG_SPEAKUP_SYNTH_DECEXT is not set CONFIG_SPEAKUP_SYNTH_DECPC=m # CONFIG_SPEAKUP_SYNTH_DTLK is not set # CONFIG_SPEAKUP_SYNTH_KEYPC is not set # CONFIG_SPEAKUP_SYNTH_LTLK is not set # CONFIG_SPEAKUP_SYNTH_SOFT is not set CONFIG_SPEAKUP_SYNTH_SPKOUT=m CONFIG_SPEAKUP_SYNTH_TXPRT=m CONFIG_SPEAKUP_SYNTH_DUMMY=m CONFIG_TOUCHSCREEN_CLEARPAD_TM1217=m CONFIG_TOUCHSCREEN_SYNAPTICS_I2C_RMI4=m # CONFIG_X86_PLATFORM_DEVICES is not set # # Hardware Spinlock drivers # CONFIG_CLKSRC_I8253=y CONFIG_CLKEVT_I8253=y CONFIG_I8253_LOCK=y CONFIG_CLKBLD_I8253=y # CONFIG_IOMMU_SUPPORT is not set # CONFIG_VIRT_DRIVERS is not set # # Firmware Drivers # # CONFIG_EDD is not set CONFIG_FIRMWARE_MEMMAP=y CONFIG_DELL_RBU=m # CONFIG_DCDBAS is not set CONFIG_DMIID=y CONFIG_DMI_SYSFS=m CONFIG_ISCSI_IBFT_FIND=y # CONFIG_ISCSI_IBFT is not set CONFIG_SIGMA=m # CONFIG_GOOGLE_FIRMWARE is not set # # File systems # # CONFIG_EXT2_FS is not set CONFIG_EXT3_FS=m # CONFIG_EXT3_DEFAULTS_TO_ORDERED is not set CONFIG_EXT3_FS_XATTR=y # CONFIG_EXT3_FS_POSIX_ACL is not set # CONFIG_EXT3_FS_SECURITY is not set CONFIG_EXT4_FS=m CONFIG_EXT4_USE_FOR_EXT23=y CONFIG_EXT4_FS_XATTR=y CONFIG_EXT4_FS_POSIX_ACL=y # CONFIG_EXT4_FS_SECURITY is not set CONFIG_EXT4_DEBUG=y CONFIG_JBD=m CONFIG_JBD_DEBUG=y CONFIG_JBD2=m # CONFIG_JBD2_DEBUG is not set CONFIG_FS_MBCACHE=m CONFIG_REISERFS_FS=m # CONFIG_REISERFS_CHECK is not set CONFIG_REISERFS_FS_XATTR=y CONFIG_REISERFS_FS_POSIX_ACL=y # CONFIG_REISERFS_FS_SECURITY is not set # CONFIG_JFS_FS is not set # CONFIG_XFS_FS is not set # CONFIG_OCFS2_FS is not set CONFIG_FS_POSIX_ACL=y CONFIG_EXPORTFS=y CONFIG_FILE_LOCKING=y CONFIG_FSNOTIFY=y CONFIG_DNOTIFY=y CONFIG_INOTIFY_USER=y CONFIG_FANOTIFY=y CONFIG_QUOTA=y # CONFIG_QUOTA_NETLINK_INTERFACE is not set # CONFIG_PRINT_QUOTA_WARNING is not set # CONFIG_QUOTA_DEBUG is not set CONFIG_QUOTA_TREE=m # CONFIG_QFMT_V1 is not set CONFIG_QFMT_V2=m CONFIG_QUOTACTL=y # CONFIG_AUTOFS4_FS is not set # CONFIG_FUSE_FS is not set # # Caches # CONFIG_FSCACHE=m # CONFIG_FSCACHE_DEBUG is not set CONFIG_CACHEFILES=m CONFIG_CACHEFILES_DEBUG=y # # CD-ROM/DVD Filesystems # CONFIG_ISO9660_FS=m # CONFIG_JOLIET is not set CONFIG_ZISOFS=y # CONFIG_UDF_FS is not set # # DOS/FAT/NT Filesystems # CONFIG_FAT_FS=m CONFIG_MSDOS_FS=m CONFIG_VFAT_FS=m CONFIG_FAT_DEFAULT_CODEPAGE=437 CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1" CONFIG_NTFS_FS=m CONFIG_NTFS_DEBUG=y # CONFIG_NTFS_RW is not set # # Pseudo filesystems # # CONFIG_PROC_FS is not set CONFIG_SYSFS=y # CONFIG_TMPFS is not set # CONFIG_HUGETLBFS is not set # CONFIG_HUGETLB_PAGE is not set CONFIG_CONFIGFS_FS=m # CONFIG_MISC_FILESYSTEMS is not set # CONFIG_NETWORK_FILESYSTEMS is not set # # Partition Types # # CONFIG_PARTITION_ADVANCED is not set CONFIG_MSDOS_PARTITION=y CONFIG_NLS=y CONFIG_NLS_DEFAULT="iso8859-1" CONFIG_NLS_CODEPAGE_437=m # CONFIG_NLS_CODEPAGE_737 is not set # CONFIG_NLS_CODEPAGE_775 is not set CONFIG_NLS_CODEPAGE_850=m CONFIG_NLS_CODEPAGE_852=m CONFIG_NLS_CODEPAGE_855=m CONFIG_NLS_CODEPAGE_857=m # CONFIG_NLS_CODEPAGE_860 is not set CONFIG_NLS_CODEPAGE_861=m # CONFIG_NLS_CODEPAGE_862 is not set # CONFIG_NLS_CODEPAGE_863 is not set # CONFIG_NLS_CODEPAGE_864 is not set CONFIG_NLS_CODEPAGE_865=m # CONFIG_NLS_CODEPAGE_866 is not set CONFIG_NLS_CODEPAGE_869=m # CONFIG_NLS_CODEPAGE_936 is not set CONFIG_NLS_CODEPAGE_950=m CONFIG_NLS_CODEPAGE_932=m CONFIG_NLS_CODEPAGE_949=m CONFIG_NLS_CODEPAGE_874=m CONFIG_NLS_ISO8859_8=m CONFIG_NLS_CODEPAGE_1250=m # CONFIG_NLS_CODEPAGE_1251 is not set CONFIG_NLS_ASCII=m CONFIG_NLS_ISO8859_1=m # CONFIG_NLS_ISO8859_2 is not set CONFIG_NLS_ISO8859_3=m CONFIG_NLS_ISO8859_4=m # CONFIG_NLS_ISO8859_5 is not set # CONFIG_NLS_ISO8859_6 is not set # CONFIG_NLS_ISO8859_7 is not set # CONFIG_NLS_ISO8859_9 is not set # CONFIG_NLS_ISO8859_13 is not set # CONFIG_NLS_ISO8859_14 is not set CONFIG_NLS_ISO8859_15=m # CONFIG_NLS_KOI8_R is not set # CONFIG_NLS_KOI8_U is not set CONFIG_NLS_UTF8=m # # Kernel hacking # CONFIG_TRACE_IRQFLAGS_SUPPORT=y CONFIG_PRINTK_TIME=y CONFIG_DEFAULT_MESSAGE_LOGLEVEL=4 CONFIG_ENABLE_WARN_DEPRECATED=y # CONFIG_ENABLE_MUST_CHECK is not set CONFIG_FRAME_WARN=1024 # CONFIG_MAGIC_SYSRQ is not set CONFIG_STRIP_ASM_SYMS=y # CONFIG_UNUSED_SYMBOLS is not set CONFIG_DEBUG_FS=y CONFIG_HEADERS_CHECK=y # CONFIG_DEBUG_SECTION_MISMATCH is not set CONFIG_DEBUG_KERNEL=y CONFIG_DEBUG_SHIRQ=y CONFIG_LOCKUP_DETECTOR=y CONFIG_HARDLOCKUP_DETECTOR=y # CONFIG_BOOTPARAM_HARDLOCKUP_PANIC is not set CONFIG_BOOTPARAM_HARDLOCKUP_PANIC_VALUE=0 # CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC is not set CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC_VALUE=0 # CONFIG_DETECT_HUNG_TASK is not set CONFIG_DEBUG_OBJECTS=y # CONFIG_DEBUG_OBJECTS_SELFTEST is not set CONFIG_DEBUG_OBJECTS_FREE=y # CONFIG_DEBUG_OBJECTS_TIMERS is not set # CONFIG_DEBUG_OBJECTS_WORK is not set CONFIG_DEBUG_OBJECTS_RCU_HEAD=y CONFIG_DEBUG_OBJECTS_PERCPU_COUNTER=y CONFIG_DEBUG_OBJECTS_ENABLE_DEFAULT=1 CONFIG_DEBUG_RT_MUTEXES=y CONFIG_DEBUG_PI_LIST=y CONFIG_RT_MUTEX_TESTER=y # CONFIG_DEBUG_SPINLOCK is not set CONFIG_DEBUG_MUTEXES=y # CONFIG_DEBUG_LOCK_ALLOC is not set # CONFIG_PROVE_LOCKING is not set CONFIG_SPARSE_RCU_POINTER=y # CONFIG_LOCK_STAT is not set # CONFIG_DEBUG_ATOMIC_SLEEP is not set # CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set # CONFIG_DEBUG_STACK_USAGE is not set CONFIG_DEBUG_KOBJECT=y CONFIG_DEBUG_HIGHMEM=y # CONFIG_DEBUG_INFO is not set # CONFIG_DEBUG_VM is not set # CONFIG_DEBUG_VIRTUAL is not set # CONFIG_DEBUG_WRITECOUNT is not set # CONFIG_DEBUG_MEMORY_INIT is not set CONFIG_DEBUG_LIST=y CONFIG_TEST_LIST_SORT=y CONFIG_DEBUG_SG=y CONFIG_DEBUG_NOTIFIERS=y CONFIG_DEBUG_CREDENTIALS=y CONFIG_ARCH_WANT_FRAME_POINTERS=y CONFIG_FRAME_POINTER=y CONFIG_BOOT_PRINTK_DELAY=y CONFIG_RCU_TORTURE_TEST=m CONFIG_RCU_CPU_STALL_TIMEOUT=60 # CONFIG_BACKTRACE_SELF_TEST is not set CONFIG_DEBUG_BLOCK_EXT_DEVT=y CONFIG_DEBUG_FORCE_WEAK_PER_CPU=y # CONFIG_DEBUG_PER_CPU_MAPS is not set # CONFIG_LKDTM is not set CONFIG_CPU_NOTIFIER_ERROR_INJECT=m # CONFIG_FAULT_INJECTION is not set # CONFIG_DEBUG_PAGEALLOC is not set CONFIG_USER_STACKTRACE_SUPPORT=y CONFIG_HAVE_FUNCTION_TRACER=y CONFIG_HAVE_FUNCTION_GRAPH_TRACER=y CONFIG_HAVE_FUNCTION_GRAPH_FP_TEST=y CONFIG_HAVE_FUNCTION_TRACE_MCOUNT_TEST=y CONFIG_HAVE_DYNAMIC_FTRACE=y CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y CONFIG_HAVE_SYSCALL_TRACEPOINTS=y CONFIG_HAVE_C_RECORDMCOUNT=y CONFIG_RING_BUFFER=y CONFIG_RING_BUFFER_ALLOW_SWAP=y CONFIG_TRACING_SUPPORT=y # CONFIG_FTRACE is not set # CONFIG_BUILD_DOCSRC is not set CONFIG_DYNAMIC_DEBUG=y CONFIG_DMA_API_DEBUG=y CONFIG_ATOMIC64_SELFTEST=y # CONFIG_SAMPLES is not set CONFIG_HAVE_ARCH_KGDB=y CONFIG_HAVE_ARCH_KMEMCHECK=y # CONFIG_TEST_KSTRTOX is not set # CONFIG_STRICT_DEVMEM is not set CONFIG_X86_VERBOSE_BOOTUP=y CONFIG_EARLY_PRINTK=y # CONFIG_DEBUG_STACKOVERFLOW is not set # CONFIG_X86_PTDUMP is not set CONFIG_DEBUG_RODATA=y CONFIG_DEBUG_RODATA_TEST=y # CONFIG_DEBUG_SET_MODULE_RONX is not set # CONFIG_DEBUG_NX_TEST is not set CONFIG_DOUBLEFAULT=y CONFIG_IOMMU_STRESS=y CONFIG_HAVE_MMIOTRACE_SUPPORT=y CONFIG_IO_DELAY_TYPE_0X80=0 CONFIG_IO_DELAY_TYPE_0XED=1 CONFIG_IO_DELAY_TYPE_UDELAY=2 CONFIG_IO_DELAY_TYPE_NONE=3 # CONFIG_IO_DELAY_0X80 is not set # CONFIG_IO_DELAY_0XED is not set # CONFIG_IO_DELAY_UDELAY is not set CONFIG_IO_DELAY_NONE=y CONFIG_DEFAULT_IO_DELAY_TYPE=3 CONFIG_DEBUG_BOOT_PARAMS=y # CONFIG_CPA_DEBUG is not set # CONFIG_OPTIMIZE_INLINING is not set # CONFIG_DEBUG_STRICT_USER_COPY_CHECKS is not set # # Security options # # CONFIG_KEYS is not set # CONFIG_SECURITY_DMESG_RESTRICT is not set # CONFIG_SECURITY is not set # CONFIG_SECURITYFS is not set CONFIG_DEFAULT_SECURITY_DAC=y CONFIG_DEFAULT_SECURITY="" CONFIG_CRYPTO=m # # Crypto core or helper # # CONFIG_CRYPTO_FIPS is not set CONFIG_CRYPTO_ALGAPI=m CONFIG_CRYPTO_ALGAPI2=m CONFIG_CRYPTO_AEAD=m CONFIG_CRYPTO_AEAD2=m CONFIG_CRYPTO_BLKCIPHER=m CONFIG_CRYPTO_BLKCIPHER2=m CONFIG_CRYPTO_HASH=m CONFIG_CRYPTO_HASH2=m CONFIG_CRYPTO_RNG=m CONFIG_CRYPTO_RNG2=m CONFIG_CRYPTO_PCOMP2=m CONFIG_CRYPTO_MANAGER=m CONFIG_CRYPTO_MANAGER2=m # CONFIG_CRYPTO_MANAGER_DISABLE_TESTS is not set CONFIG_CRYPTO_GF128MUL=m # CONFIG_CRYPTO_NULL is not set CONFIG_CRYPTO_WORKQUEUE=m CONFIG_CRYPTO_CRYPTD=m # CONFIG_CRYPTO_AUTHENC is not set # CONFIG_CRYPTO_TEST is not set # # Authenticated Encryption with Associated Data # CONFIG_CRYPTO_CCM=m CONFIG_CRYPTO_GCM=m CONFIG_CRYPTO_SEQIV=m # # Block modes # # CONFIG_CRYPTO_CBC is not set CONFIG_CRYPTO_CTR=m CONFIG_CRYPTO_CTS=m CONFIG_CRYPTO_ECB=m CONFIG_CRYPTO_PCBC=m # # Hash modes # CONFIG_CRYPTO_HMAC=m # # Digest # CONFIG_CRYPTO_CRC32C=m # CONFIG_CRYPTO_CRC32C_INTEL is not set CONFIG_CRYPTO_GHASH=m CONFIG_CRYPTO_MD4=m # CONFIG_CRYPTO_MD5 is not set # CONFIG_CRYPTO_MICHAEL_MIC is not set # CONFIG_CRYPTO_RMD128 is not set # CONFIG_CRYPTO_RMD160 is not set CONFIG_CRYPTO_RMD256=m # CONFIG_CRYPTO_RMD320 is not set # CONFIG_CRYPTO_SHA1 is not set CONFIG_CRYPTO_SHA256=m # CONFIG_CRYPTO_SHA512 is not set CONFIG_CRYPTO_TGR192=m CONFIG_CRYPTO_WP512=m # # Ciphers # CONFIG_CRYPTO_AES=m CONFIG_CRYPTO_AES_586=m # CONFIG_CRYPTO_AES_NI_INTEL is not set # CONFIG_CRYPTO_ANUBIS is not set CONFIG_CRYPTO_ARC4=m CONFIG_CRYPTO_BLOWFISH=m CONFIG_CRYPTO_BLOWFISH_COMMON=m # CONFIG_CRYPTO_CAMELLIA is not set CONFIG_CRYPTO_CAST5=m # CONFIG_CRYPTO_CAST6 is not set # CONFIG_CRYPTO_DES is not set CONFIG_CRYPTO_FCRYPT=m # CONFIG_CRYPTO_KHAZAD is not set # CONFIG_CRYPTO_SEED is not set CONFIG_CRYPTO_SERPENT=m # CONFIG_CRYPTO_TEA is not set CONFIG_CRYPTO_TWOFISH=m CONFIG_CRYPTO_TWOFISH_COMMON=m CONFIG_CRYPTO_TWOFISH_586=m # # Compression # CONFIG_CRYPTO_DEFLATE=m # CONFIG_CRYPTO_ZLIB is not set CONFIG_CRYPTO_LZO=m # # Random Number Generation # CONFIG_CRYPTO_ANSI_CPRNG=m # CONFIG_CRYPTO_USER_API_HASH is not set # CONFIG_CRYPTO_USER_API_SKCIPHER is not set # CONFIG_CRYPTO_HW is not set CONFIG_HAVE_KVM=y CONFIG_VIRTUALIZATION=y # CONFIG_BINARY_PRINTF is not set # # Library routines # CONFIG_BITREVERSE=m CONFIG_GENERIC_FIND_FIRST_BIT=y CONFIG_CRC_CCITT=m CONFIG_CRC16=m CONFIG_CRC_T10DIF=m CONFIG_CRC_ITU_T=m CONFIG_CRC32=m CONFIG_CRC7=m CONFIG_LIBCRC32C=m CONFIG_CRC8=m CONFIG_ZLIB_INFLATE=m CONFIG_ZLIB_DEFLATE=m CONFIG_LZO_COMPRESS=y CONFIG_LZO_DECOMPRESS=y CONFIG_XZ_DEC=m CONFIG_XZ_DEC_X86=y # CONFIG_XZ_DEC_POWERPC is not set CONFIG_XZ_DEC_IA64=y CONFIG_XZ_DEC_ARM=y CONFIG_XZ_DEC_ARMTHUMB=y CONFIG_XZ_DEC_SPARC=y CONFIG_XZ_DEC_BCJ=y # CONFIG_XZ_DEC_TEST is not set CONFIG_HAS_IOMEM=y CONFIG_HAS_IOPORT=y CONFIG_HAS_DMA=y CONFIG_CHECK_SIGNATURE=y CONFIG_CPU_RMAP=y CONFIG_NLATTR=y CONFIG_AVERAGE=y # CONFIG_CORDIC is not set ^ permalink raw reply [flat|nested] 63+ messages in thread
* Re: linux-next: Tree for Oct 11 (ata/pata_of_platform.c) 2011-10-11 20:37 ` linux-next: Tree for Oct 11 (ata/pata_of_platform.c) Randy Dunlap @ 2011-10-14 17:58 ` Randy Dunlap 2011-11-10 13:57 ` Ingo Molnar 0 siblings, 1 reply; 63+ messages in thread From: Randy Dunlap @ 2011-10-14 17:58 UTC (permalink / raw) To: Stephen Rothwell Cc: linux-next, LKML, linux-ide@vger.kernel.org, Anton Vorontsov On 10/11/2011 01:37 PM, Randy Dunlap wrote: > On 10/11/11 02:11, Stephen Rothwell wrote: >> Hi all, >> >> The linux-next tree is now available from >> git://github.com/sfrothwell/linux-next.git as a temporary measure while >> the kernel.org servers are unavailable. >> >> It may also turn up on git.kernel.org (depending on the mirroring). The >> patch set is still absent, however. >> >> Changes since 20111007: >> >> Removed tree: ide (at the maintainer's request) > > > drivers/ata/pata_of_platform.c:55:13: error: 'NO_IRQ' undeclared (first use in this function) [adding Author: Anton] Build error still present in linux-next of 20111014. -- ~Randy *** Remember to use Documentation/SubmitChecklist when testing your code *** ^ permalink raw reply [flat|nested] 63+ messages in thread
* Re: linux-next: Tree for Oct 11 (ata/pata_of_platform.c) 2011-10-14 17:58 ` Randy Dunlap @ 2011-11-10 13:57 ` Ingo Molnar 2011-11-10 14:25 ` Alan Cox ` (2 more replies) 0 siblings, 3 replies; 63+ messages in thread From: Ingo Molnar @ 2011-11-10 13:57 UTC (permalink / raw) To: Randy Dunlap Cc: Stephen Rothwell, linux-next, LKML, linux-ide@vger.kernel.org, Anton Vorontsov, Linus Torvalds, Andrew Morton, Jeff Garzik * Randy Dunlap <rdunlap@xenotime.net> wrote: > On 10/11/2011 01:37 PM, Randy Dunlap wrote: > > On 10/11/11 02:11, Stephen Rothwell wrote: > >> Hi all, > >> > >> The linux-next tree is now available from > >> git://github.com/sfrothwell/linux-next.git as a temporary measure while > >> the kernel.org servers are unavailable. > >> > >> It may also turn up on git.kernel.org (depending on the mirroring). The > >> patch set is still absent, however. > >> > >> Changes since 20111007: > >> > >> Removed tree: ide (at the maintainer's request) > > > > > > drivers/ata/pata_of_platform.c:55:13: error: 'NO_IRQ' undeclared (first use in this function) > > > [adding Author: Anton] > > Build error still present in linux-next of 20111014. This build failure regression report was ignored twice and then pushed upstream and is still unfixed a month after the initial report. Upstream now fails to build on like 25% of x86 configs. What's going on with this bug guys? Thanks, Ingo ^ permalink raw reply [flat|nested] 63+ messages in thread
* Re: linux-next: Tree for Oct 11 (ata/pata_of_platform.c) 2011-11-10 13:57 ` Ingo Molnar @ 2011-11-10 14:25 ` Alan Cox 2011-11-10 15:18 ` [PATCH] ata: Fix build error in pata_of_platform (NO_IRQ usage) Anton Vorontsov 2011-11-10 18:18 ` linux-next: Tree for Oct 11 (ata/pata_of_platform.c) Jeff Garzik 2 siblings, 0 replies; 63+ messages in thread From: Alan Cox @ 2011-11-10 14:25 UTC (permalink / raw) To: Ingo Molnar Cc: Randy Dunlap, Stephen Rothwell, linux-next, LKML, linux-ide@vger.kernel.org, Anton Vorontsov, Linus Torvalds, Andrew Morton, Jeff Garzik O> > > drivers/ata/pata_of_platform.c:55:13: error: 'NO_IRQ' undeclared (first use in this function) > > > > > > [adding Author: Anton] > > > > Build error still present in linux-next of 20111014. > > This build failure regression report was ignored twice and then > pushed upstream and is still unfixed a month after the initial > report. Upstream now fails to build on like 25% of x86 configs. > > What's going on with this bug guys? As I've said before the driver shouldn't be trying to use "NO_IRQ", Not having an irq is 0 as in if (!dev->irq) ^ permalink raw reply [flat|nested] 63+ messages in thread
* [PATCH] ata: Fix build error in pata_of_platform (NO_IRQ usage) 2011-11-10 13:57 ` Ingo Molnar 2011-11-10 14:25 ` Alan Cox @ 2011-11-10 15:18 ` Anton Vorontsov 2011-11-10 15:25 ` [PATCH 1/2] of/irq: Get rid of NO_IRQ usage Anton Vorontsov ` (2 more replies) 2011-11-10 18:18 ` linux-next: Tree for Oct 11 (ata/pata_of_platform.c) Jeff Garzik 2 siblings, 3 replies; 63+ messages in thread From: Anton Vorontsov @ 2011-11-10 15:18 UTC (permalink / raw) To: Ingo Molnar, Jeff Garzik, Grant Likely Cc: Randy Dunlap, Stephen Rothwell, linux-next, LKML, linux-ide@vger.kernel.org, Linus Torvalds, Andrew Morton, devicetree-discuss This patch makes a band-aid fix the following build failure: CC drivers/ata/pata_of_platform.o drivers/ata/pata_of_platform.c: In function 'pata_of_platform_probe': drivers/ata/pata_of_platform.c:55:13: error: 'NO_IRQ' undeclared (first use in this function) drivers/ata/pata_of_platform.c:55:13: note: each undeclared identifier is reported only once for each function it appears in The proper fix (stop OF code from returning NO_IRQ values) is pending. Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com> --- On Thu, Nov 10, 2011 at 02:57:03PM +0100, Ingo Molnar wrote: [...] > > > drivers/ata/pata_of_platform.c:55:13: error: 'NO_IRQ' undeclared (first use in this function) > > > > [adding Author: Anton] > > > > Build error still present in linux-next of 20111014. > > This build failure regression report was ignored twice and then > pushed upstream and is still unfixed a month after the initial > report. Upstream now fails to build on like 25% of x86 configs. > > What's going on with this bug guys? Here is the story: - NO_IRQ is evil[1], AFAIR the trend is to remove its usage completely; - Sane arches (x86) don't use it at all, or have it defined to 0 (PPC32/64). - On another arches it is either -1 or whatever random value; - The NO_IRQ disease spreads despite our willingness, even within the new OF code. The new irq domain stuff (that is used on ARM) always returns 0 in 'no irq' case, so we may easily remove it. So the proper fix would be two-fold: for OF and for that driver. But this is for 3.3 kernels. I'll send the two patches as follow-ups. In the meantime, the band-aid (for 3.2) is down below. [1] http://lkml.org/lkml/2005/11/22/159 http://lkml.org/lkml/2005/11/22/227 drivers/ata/pata_of_platform.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/drivers/ata/pata_of_platform.c b/drivers/ata/pata_of_platform.c index a72ab0d..f99e17b 100644 --- a/drivers/ata/pata_of_platform.c +++ b/drivers/ata/pata_of_platform.c @@ -16,6 +16,11 @@ #include <linux/of_platform.h> #include <linux/ata_platform.h> +/* For archs that don't support NO_IRQ (such as x86), provide a dummy value */ +#ifndef NO_IRQ +#define NO_IRQ 0 +#endif + static int __devinit pata_of_platform_probe(struct platform_device *ofdev) { int ret; -- 1.7.5.3 ^ permalink raw reply related [flat|nested] 63+ messages in thread
* [PATCH 1/2] of/irq: Get rid of NO_IRQ usage 2011-11-10 15:18 ` [PATCH] ata: Fix build error in pata_of_platform (NO_IRQ usage) Anton Vorontsov @ 2011-11-10 15:25 ` Anton Vorontsov 2011-12-06 21:22 ` Rob Herring 2011-11-10 15:26 ` [PATCH 2/2] ata: Don't use NO_IRQ in pata_of_platform driver Anton Vorontsov 2011-11-10 15:35 ` [PATCH] ata: Fix build error in pata_of_platform (NO_IRQ usage) Alan Cox 2 siblings, 1 reply; 63+ messages in thread From: Anton Vorontsov @ 2011-11-10 15:25 UTC (permalink / raw) To: Ingo Molnar, Jeff Garzik, Grant Likely Cc: Randy Dunlap, Stephen Rothwell, linux-next, LKML, linux-ide, Linus Torvalds, Andrew Morton, devicetree-discuss, Alan Cox PPC32/64 defines NO_IRQ to zero, so no problems expected. ARM defines NO_IRQ to -1, but OF code relies on IRQ domains support, which returns correct ('0') value in 'no irq' case. So everything should be fine. Other arches might break if some of their OF drivers rely on NO_IRQ being not 0. If so, the drivers must be fixed, finally. Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com> --- drivers/of/irq.c | 30 ++++++++++++++++++------------ 1 files changed, 18 insertions(+), 12 deletions(-) diff --git a/drivers/of/irq.c b/drivers/of/irq.c index 6d3dd39..2dd4937 100644 --- a/drivers/of/irq.c +++ b/drivers/of/irq.c @@ -26,11 +26,6 @@ #include <linux/string.h> #include <linux/slab.h> -/* For archs that don't support NO_IRQ (such as x86), provide a dummy value */ -#ifndef NO_IRQ -#define NO_IRQ 0 -#endif - /** * irq_of_parse_and_map - Parse and map an interrupt into linux virq space * @device: Device node of the device whose interrupt is to be mapped @@ -42,12 +37,23 @@ unsigned int irq_of_parse_and_map(struct device_node *dev, int index) { struct of_irq oirq; + int ret = 0; if (of_irq_map_one(dev, index, &oirq)) - return NO_IRQ; - - return irq_create_of_mapping(oirq.controller, oirq.specifier, - oirq.size); + goto no_irq; + + ret = irq_create_of_mapping(oirq.controller, oirq.specifier, + oirq.size); +no_irq: +#ifdef NO_IRQ +#if NO_IRQ != 0 + if (ret == NO_IRQ) + pr_warn("Hit NO_IRQ case for your arch. Drivers might expect " + "NO_IRQ, but we return 0. If anything breaks, driver " + "have to be fixed.\n"); +#endif +#endif + return ret; } EXPORT_SYMBOL_GPL(irq_of_parse_and_map); @@ -345,7 +351,7 @@ int of_irq_to_resource(struct device_node *dev, int index, struct resource *r) /* Only dereference the resource if both the * resource and the irq are valid. */ - if (r && irq != NO_IRQ) { + if (r && irq) { r->start = r->end = irq; r->flags = IORESOURCE_IRQ; r->name = dev->full_name; @@ -363,7 +369,7 @@ int of_irq_count(struct device_node *dev) { int nr = 0; - while (of_irq_to_resource(dev, nr, NULL) != NO_IRQ) + while (of_irq_to_resource(dev, nr, NULL)) nr++; return nr; @@ -383,7 +389,7 @@ int of_irq_to_resource_table(struct device_node *dev, struct resource *res, int i; for (i = 0; i < nr_irqs; i++, res++) - if (of_irq_to_resource(dev, i, res) == NO_IRQ) + if (!of_irq_to_resource(dev, i, res)) break; return i; -- 1.7.5.3 ^ permalink raw reply related [flat|nested] 63+ messages in thread
* Re: [PATCH 1/2] of/irq: Get rid of NO_IRQ usage 2011-11-10 15:25 ` [PATCH 1/2] of/irq: Get rid of NO_IRQ usage Anton Vorontsov @ 2011-12-06 21:22 ` Rob Herring 2011-12-06 21:25 ` Linus Torvalds 0 siblings, 1 reply; 63+ messages in thread From: Rob Herring @ 2011-12-06 21:22 UTC (permalink / raw) To: Anton Vorontsov Cc: Ingo Molnar, Jeff Garzik, Grant Likely, Stephen Rothwell, devicetree-discuss, LKML, linux-ide, Randy Dunlap, linux-next, Andrew Morton, Linus Torvalds, Alan Cox On 11/10/2011 09:25 AM, Anton Vorontsov wrote: > PPC32/64 defines NO_IRQ to zero, so no problems expected. > ARM defines NO_IRQ to -1, but OF code relies on IRQ domains support, > which returns correct ('0') value in 'no irq' case. So everything > should be fine. > > Other arches might break if some of their OF drivers rely on NO_IRQ > being not 0. If so, the drivers must be fixed, finally. > > Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com> > --- > drivers/of/irq.c | 30 ++++++++++++++++++------------ > 1 files changed, 18 insertions(+), 12 deletions(-) > > diff --git a/drivers/of/irq.c b/drivers/of/irq.c > index 6d3dd39..2dd4937 100644 > --- a/drivers/of/irq.c > +++ b/drivers/of/irq.c > @@ -26,11 +26,6 @@ > #include <linux/string.h> > #include <linux/slab.h> > > -/* For archs that don't support NO_IRQ (such as x86), provide a dummy value */ > -#ifndef NO_IRQ > -#define NO_IRQ 0 > -#endif > - > /** > * irq_of_parse_and_map - Parse and map an interrupt into linux virq space > * @device: Device node of the device whose interrupt is to be mapped > @@ -42,12 +37,23 @@ > unsigned int irq_of_parse_and_map(struct device_node *dev, int index) > { > struct of_irq oirq; > + int ret = 0; > > if (of_irq_map_one(dev, index, &oirq)) > - return NO_IRQ; > - > - return irq_create_of_mapping(oirq.controller, oirq.specifier, > - oirq.size); > + goto no_irq; > + > + ret = irq_create_of_mapping(oirq.controller, oirq.specifier, > + oirq.size); > +no_irq: > +#ifdef NO_IRQ > +#if NO_IRQ != 0 > + if (ret == NO_IRQ) > + pr_warn("Hit NO_IRQ case for your arch. Drivers might expect " > + "NO_IRQ, but we return 0. If anything breaks, driver " > + "have to be fixed.\n"); > +#endif > +#endif This warning code is really ugly. Can we just drop it? In my searching of in kernel dts files, there's only 1 instance I have found (Versatile AB watchdog) that would hit this. If not, you don't need to handle irq_create_of_mapping return as that is already always 0 for no irq or error. Otherwise, looks fine. Rob > + return ret; > } > EXPORT_SYMBOL_GPL(irq_of_parse_and_map); > > @@ -345,7 +351,7 @@ int of_irq_to_resource(struct device_node *dev, int index, struct resource *r) > > /* Only dereference the resource if both the > * resource and the irq are valid. */ > - if (r && irq != NO_IRQ) { > + if (r && irq) { > r->start = r->end = irq; > r->flags = IORESOURCE_IRQ; > r->name = dev->full_name; > @@ -363,7 +369,7 @@ int of_irq_count(struct device_node *dev) > { > int nr = 0; > > - while (of_irq_to_resource(dev, nr, NULL) != NO_IRQ) > + while (of_irq_to_resource(dev, nr, NULL)) > nr++; > > return nr; > @@ -383,7 +389,7 @@ int of_irq_to_resource_table(struct device_node *dev, struct resource *res, > int i; > > for (i = 0; i < nr_irqs; i++, res++) > - if (of_irq_to_resource(dev, i, res) == NO_IRQ) > + if (!of_irq_to_resource(dev, i, res)) > break; > > return i; ^ permalink raw reply [flat|nested] 63+ messages in thread
* Re: [PATCH 1/2] of/irq: Get rid of NO_IRQ usage 2011-12-06 21:22 ` Rob Herring @ 2011-12-06 21:25 ` Linus Torvalds 2011-12-06 23:16 ` [PATCH v3] " Anton Vorontsov 0 siblings, 1 reply; 63+ messages in thread From: Linus Torvalds @ 2011-12-06 21:25 UTC (permalink / raw) To: Rob Herring Cc: Anton Vorontsov, Ingo Molnar, Jeff Garzik, Grant Likely, Stephen Rothwell, devicetree-discuss, LKML, linux-ide, Randy Dunlap, linux-next, Andrew Morton, Alan Cox On Tue, Dec 6, 2011 at 1:22 PM, Rob Herring <robherring2@gmail.com> wrote: > > This warning code is really ugly. Can we just drop it? In my searching > of in kernel dts files, there's only 1 instance I have found (Versatile > AB watchdog) that would hit this. I do agree. Especially since we never got any input on whether it works or not. > If not, you don't need to handle irq_create_of_mapping return as that is > already always 0 for no irq or error. Yeah, I'd like to just remove NO_IRQ from the OF paths. Afaik, it hasn't worked as NO_IRQ before anyway, so even if the rest of the drivers end up continuing using NO_IRQ, the OF-enabled ones on ARM should just stop. There can't be many of those yet. Linus ^ permalink raw reply [flat|nested] 63+ messages in thread
* [PATCH v3] of/irq: Get rid of NO_IRQ usage 2011-12-06 21:25 ` Linus Torvalds @ 2011-12-06 23:16 ` Anton Vorontsov 2011-12-07 3:51 ` Rob Herring [not found] ` <20111206231626.GA31683-wnGakbxT3iijyJ0x5qLZdcN33GVbZNy3@public.gmane.org> 0 siblings, 2 replies; 63+ messages in thread From: Anton Vorontsov @ 2011-12-06 23:16 UTC (permalink / raw) To: Linus Torvalds Cc: Rob Herring, Ingo Molnar, Jeff Garzik, Grant Likely, Stephen Rothwell, devicetree-discuss, LKML, linux-ide, Randy Dunlap, linux-next, Andrew Morton, Alan Cox PPC32/64 defines NO_IRQ to zero, so no problems expected. ARM defines NO_IRQ to -1, but OF code relies on IRQ domains support, which returns correct ('0') value in 'no irq' case. So everything should be fine. Other arches might break if some of their OF drivers rely on NO_IRQ being not 0. If so, the drivers must be fixed, finally. Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org> --- On Tue, Dec 06, 2011 at 01:25:07PM -0800, Linus Torvalds wrote: > On Tue, Dec 6, 2011 at 1:22 PM, Rob Herring <robherring2@gmail.com> wrote: > > > > This warning code is really ugly. Can we just drop it? In my searching > > of in kernel dts files, there's only 1 instance I have found (Versatile > > AB watchdog) that would hit this. > > I do agree. Especially since we never got any input on whether it works or not. > > > If not, you don't need to handle irq_create_of_mapping return as that is > > already always 0 for no irq or error. > > Yeah, I'd like to just remove NO_IRQ from the OF paths. Afaik, it > hasn't worked as NO_IRQ before anyway, so even if the rest of the > drivers end up continuing using NO_IRQ, the OF-enabled ones on ARM > should just stop. There can't be many of those yet. Okay, here it goes. drivers/of/irq.c | 13 ++++--------- 1 files changed, 4 insertions(+), 9 deletions(-) diff --git a/drivers/of/irq.c b/drivers/of/irq.c index 791270b..ac6da0d 100644 --- a/drivers/of/irq.c +++ b/drivers/of/irq.c @@ -26,11 +26,6 @@ #include <linux/string.h> #include <linux/slab.h> -/* For archs that don't support NO_IRQ (such as x86), provide a dummy value */ -#ifndef NO_IRQ -#define NO_IRQ 0 -#endif - /** * irq_of_parse_and_map - Parse and map an interrupt into linux virq space * @device: Device node of the device whose interrupt is to be mapped @@ -44,7 +39,7 @@ unsigned int irq_of_parse_and_map(struct device_node *dev, int index) struct of_irq oirq; if (of_irq_map_one(dev, index, &oirq)) - return NO_IRQ; + return 0; return irq_create_of_mapping(oirq.controller, oirq.specifier, oirq.size); @@ -345,7 +340,7 @@ int of_irq_to_resource(struct device_node *dev, int index, struct resource *r) /* Only dereference the resource if both the * resource and the irq are valid. */ - if (r && irq != NO_IRQ) { + if (r && irq) { r->start = r->end = irq; r->flags = IORESOURCE_IRQ; r->name = dev->full_name; @@ -363,7 +358,7 @@ int of_irq_count(struct device_node *dev) { int nr = 0; - while (of_irq_to_resource(dev, nr, NULL) != NO_IRQ) + while (of_irq_to_resource(dev, nr, NULL)) nr++; return nr; @@ -383,7 +378,7 @@ int of_irq_to_resource_table(struct device_node *dev, struct resource *res, int i; for (i = 0; i < nr_irqs; i++, res++) - if (of_irq_to_resource(dev, i, res) == NO_IRQ) + if (!of_irq_to_resource(dev, i, res)) break; return i; -- 1.7.5.3 ^ permalink raw reply related [flat|nested] 63+ messages in thread
* Re: [PATCH v3] of/irq: Get rid of NO_IRQ usage 2011-12-06 23:16 ` [PATCH v3] " Anton Vorontsov @ 2011-12-07 3:51 ` Rob Herring [not found] ` <20111206231626.GA31683-wnGakbxT3iijyJ0x5qLZdcN33GVbZNy3@public.gmane.org> 1 sibling, 0 replies; 63+ messages in thread From: Rob Herring @ 2011-12-07 3:51 UTC (permalink / raw) To: Anton Vorontsov, Linus Torvalds Cc: Ingo Molnar, Jeff Garzik, Grant Likely, Stephen Rothwell, devicetree-discuss, LKML, linux-ide, Randy Dunlap, linux-next, Andrew Morton, Alan Cox, Michal Simek, John Linn On 12/06/2011 05:16 PM, Anton Vorontsov wrote: > PPC32/64 defines NO_IRQ to zero, so no problems expected. > ARM defines NO_IRQ to -1, but OF code relies on IRQ domains support, > which returns correct ('0') value in 'no irq' case. So everything > should be fine. > > Other arches might break if some of their OF drivers rely on NO_IRQ > being not 0. If so, the drivers must be fixed, finally. > > Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org> > --- Looks fine, but I think we have to wait for microblaze to be fixed or some confirmation from microblaze folks that no driver would use IRQ0. There was a patch posted by Grant in back in Feb, but nothing has happened since: http://article.gmane.org/gmane.linux.uclinux.microblaze/10121/ Rob > > On Tue, Dec 06, 2011 at 01:25:07PM -0800, Linus Torvalds wrote: >> On Tue, Dec 6, 2011 at 1:22 PM, Rob Herring <robherring2@gmail.com> wrote: >>> >>> This warning code is really ugly. Can we just drop it? In my searching >>> of in kernel dts files, there's only 1 instance I have found (Versatile >>> AB watchdog) that would hit this. >> >> I do agree. Especially since we never got any input on whether it works or not. >> >>> If not, you don't need to handle irq_create_of_mapping return as that is >>> already always 0 for no irq or error. >> >> Yeah, I'd like to just remove NO_IRQ from the OF paths. Afaik, it >> hasn't worked as NO_IRQ before anyway, so even if the rest of the >> drivers end up continuing using NO_IRQ, the OF-enabled ones on ARM >> should just stop. There can't be many of those yet. > > Okay, here it goes. > > drivers/of/irq.c | 13 ++++--------- > 1 files changed, 4 insertions(+), 9 deletions(-) > > diff --git a/drivers/of/irq.c b/drivers/of/irq.c > index 791270b..ac6da0d 100644 > --- a/drivers/of/irq.c > +++ b/drivers/of/irq.c > @@ -26,11 +26,6 @@ > #include <linux/string.h> > #include <linux/slab.h> > > -/* For archs that don't support NO_IRQ (such as x86), provide a dummy value */ > -#ifndef NO_IRQ > -#define NO_IRQ 0 > -#endif > - > /** > * irq_of_parse_and_map - Parse and map an interrupt into linux virq space > * @device: Device node of the device whose interrupt is to be mapped > @@ -44,7 +39,7 @@ unsigned int irq_of_parse_and_map(struct device_node *dev, int index) > struct of_irq oirq; > > if (of_irq_map_one(dev, index, &oirq)) > - return NO_IRQ; > + return 0; > > return irq_create_of_mapping(oirq.controller, oirq.specifier, > oirq.size); > @@ -345,7 +340,7 @@ int of_irq_to_resource(struct device_node *dev, int index, struct resource *r) > > /* Only dereference the resource if both the > * resource and the irq are valid. */ > - if (r && irq != NO_IRQ) { > + if (r && irq) { > r->start = r->end = irq; > r->flags = IORESOURCE_IRQ; > r->name = dev->full_name; > @@ -363,7 +358,7 @@ int of_irq_count(struct device_node *dev) > { > int nr = 0; > > - while (of_irq_to_resource(dev, nr, NULL) != NO_IRQ) > + while (of_irq_to_resource(dev, nr, NULL)) > nr++; > > return nr; > @@ -383,7 +378,7 @@ int of_irq_to_resource_table(struct device_node *dev, struct resource *res, > int i; > > for (i = 0; i < nr_irqs; i++, res++) > - if (of_irq_to_resource(dev, i, res) == NO_IRQ) > + if (!of_irq_to_resource(dev, i, res)) > break; > > return i; ^ permalink raw reply [flat|nested] 63+ messages in thread
[parent not found: <20111206231626.GA31683-wnGakbxT3iijyJ0x5qLZdcN33GVbZNy3@public.gmane.org>]
* Re: [PATCH v3] of/irq: Get rid of NO_IRQ usage [not found] ` <20111206231626.GA31683-wnGakbxT3iijyJ0x5qLZdcN33GVbZNy3@public.gmane.org> @ 2011-12-07 9:52 ` Wolfram Sang 0 siblings, 0 replies; 63+ messages in thread From: Wolfram Sang @ 2011-12-07 9:52 UTC (permalink / raw) To: Anton Vorontsov Cc: Stephen Rothwell, Andrew Morton, devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ, LKML, linux-ide-u79uwXL29TY76Z2rM5mHXA, Randy Dunlap, linux-next-u79uwXL29TY76Z2rM5mHXA, Ingo Molnar, Linus Torvalds, Jeff Garzik, Alan Cox [-- Attachment #1.1: Type: text/plain, Size: 796 bytes --] On Wed, Dec 07, 2011 at 03:16:26AM +0400, Anton Vorontsov wrote: > PPC32/64 defines NO_IRQ to zero, so no problems expected. > ARM defines NO_IRQ to -1, but OF code relies on IRQ domains support, > which returns correct ('0') value in 'no irq' case. So everything > should be fine. > > Other arches might break if some of their OF drivers rely on NO_IRQ > being not 0. If so, the drivers must be fixed, finally. > > Signed-off-by: Anton Vorontsov <anton.vorontsov-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> > --- /me likes NO_IRQ removal very much Acked-by: Wolfram Sang <w.sang-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> -- Pengutronix e.K. | Wolfram Sang | Industrial Linux Solutions | http://www.pengutronix.de/ | [-- Attachment #1.2: Digital signature --] [-- Type: application/pgp-signature, Size: 198 bytes --] [-- Attachment #2: Type: text/plain, Size: 192 bytes --] _______________________________________________ devicetree-discuss mailing list devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org https://lists.ozlabs.org/listinfo/devicetree-discuss ^ permalink raw reply [flat|nested] 63+ messages in thread
* [PATCH 2/2] ata: Don't use NO_IRQ in pata_of_platform driver 2011-11-10 15:18 ` [PATCH] ata: Fix build error in pata_of_platform (NO_IRQ usage) Anton Vorontsov 2011-11-10 15:25 ` [PATCH 1/2] of/irq: Get rid of NO_IRQ usage Anton Vorontsov @ 2011-11-10 15:26 ` Anton Vorontsov 2011-11-10 15:38 ` Alan Cox 2011-11-10 15:35 ` [PATCH] ata: Fix build error in pata_of_platform (NO_IRQ usage) Alan Cox 2 siblings, 1 reply; 63+ messages in thread From: Anton Vorontsov @ 2011-11-10 15:26 UTC (permalink / raw) To: Ingo Molnar, Jeff Garzik, Grant Likely Cc: Randy Dunlap, Stephen Rothwell, linux-next, LKML, linux-ide, Linus Torvalds, Andrew Morton, devicetree-discuss, Alan Cox Drivers should not use NO_IRQ; moreover, some architectures don't have it nowadays. '0' is the 'no irq' case. Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com> --- drivers/ata/pata_of_platform.c | 7 +------ 1 files changed, 1 insertions(+), 6 deletions(-) diff --git a/drivers/ata/pata_of_platform.c b/drivers/ata/pata_of_platform.c index f99e17b..2a472c5 100644 --- a/drivers/ata/pata_of_platform.c +++ b/drivers/ata/pata_of_platform.c @@ -16,11 +16,6 @@ #include <linux/of_platform.h> #include <linux/ata_platform.h> -/* For archs that don't support NO_IRQ (such as x86), provide a dummy value */ -#ifndef NO_IRQ -#define NO_IRQ 0 -#endif - static int __devinit pata_of_platform_probe(struct platform_device *ofdev) { int ret; @@ -57,7 +52,7 @@ static int __devinit pata_of_platform_probe(struct platform_device *ofdev) } ret = of_irq_to_resource(dn, 0, &irq_res); - if (ret == NO_IRQ) + if (!ret) irq_res.start = irq_res.end = 0; else irq_res.flags = 0; -- 1.7.5.3 ^ permalink raw reply related [flat|nested] 63+ messages in thread
* Re: [PATCH 2/2] ata: Don't use NO_IRQ in pata_of_platform driver 2011-11-10 15:26 ` [PATCH 2/2] ata: Don't use NO_IRQ in pata_of_platform driver Anton Vorontsov @ 2011-11-10 15:38 ` Alan Cox 2011-11-10 16:28 ` [PATCH] " Anton Vorontsov 0 siblings, 1 reply; 63+ messages in thread From: Alan Cox @ 2011-11-10 15:38 UTC (permalink / raw) To: Anton Vorontsov Cc: Ingo Molnar, Jeff Garzik, Grant Likely, Randy Dunlap, Stephen Rothwell, linux-next, LKML, linux-ide, Linus Torvalds, Andrew Morton, devicetree-discuss On Thu, 10 Nov 2011 19:26:06 +0400 Anton Vorontsov <cbouatmailru@gmail.com> wrote: > Drivers should not use NO_IRQ; moreover, some architectures don't > have it nowadays. '0' is the 'no irq' case. > > Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com> Acked-by: Alan Cox <alan@linux.intel.com> Alan ^ permalink raw reply [flat|nested] 63+ messages in thread
* [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver 2011-11-10 15:38 ` Alan Cox @ 2011-11-10 16:28 ` Anton Vorontsov 2011-11-10 20:34 ` Jeff Garzik ` (2 more replies) 0 siblings, 3 replies; 63+ messages in thread From: Anton Vorontsov @ 2011-11-10 16:28 UTC (permalink / raw) To: Alan Cox Cc: Ingo Molnar, Jeff Garzik, Grant Likely, Randy Dunlap, Stephen Rothwell, linux-next, LKML, linux-ide, Linus Torvalds, Andrew Morton, devicetree-discuss Drivers should not use NO_IRQ; moreover, some architectures don't have it nowadays. '0' is the 'no irq' case. Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com> Acked-by: Alan Cox <alan@linux.intel.com> --- On Thu, Nov 10, 2011 at 03:38:16PM +0000, Alan Cox wrote: > On Thu, 10 Nov 2011 19:26:06 +0400 > Anton Vorontsov <cbouatmailru@gmail.com> wrote: > > > Drivers should not use NO_IRQ; moreover, some architectures don't > > have it nowadays. '0' is the 'no irq' case. > > > > Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com> > > Acked-by: Alan Cox <alan@linux.intel.com> In case if we don't want a "band-aid fix" for 3.2, here is the patch that just does the proper fix (w/ a risk to break minor architectures). drivers/ata/pata_of_platform.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/ata/pata_of_platform.c b/drivers/ata/pata_of_platform.c index a72ab0d..2a472c5 100644 --- a/drivers/ata/pata_of_platform.c +++ b/drivers/ata/pata_of_platform.c @@ -52,7 +52,7 @@ static int __devinit pata_of_platform_probe(struct platform_device *ofdev) } ret = of_irq_to_resource(dn, 0, &irq_res); - if (ret == NO_IRQ) + if (!ret) irq_res.start = irq_res.end = 0; else irq_res.flags = 0; -- 1.7.5.3 ^ permalink raw reply related [flat|nested] 63+ messages in thread
* Re: [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver 2011-11-10 16:28 ` [PATCH] " Anton Vorontsov @ 2011-11-10 20:34 ` Jeff Garzik 2011-12-02 19:19 ` Dave Martin 2011-12-02 19:26 ` Dave Martin 2 siblings, 0 replies; 63+ messages in thread From: Jeff Garzik @ 2011-11-10 20:34 UTC (permalink / raw) To: Anton Vorontsov Cc: Alan Cox, Ingo Molnar, Jeff Garzik, Grant Likely, Randy Dunlap, Stephen Rothwell, linux-next, LKML, linux-ide, Linus Torvalds, Andrew Morton, devicetree-discuss On 11/10/2011 11:28 AM, Anton Vorontsov wrote: > Drivers should not use NO_IRQ; moreover, some architectures don't > have it nowadays. '0' is the 'no irq' case. > > Signed-off-by: Anton Vorontsov<cbouatmailru@gmail.com> > Acked-by: Alan Cox<alan@linux.intel.com> > --- > > On Thu, Nov 10, 2011 at 03:38:16PM +0000, Alan Cox wrote: >> On Thu, 10 Nov 2011 19:26:06 +0400 >> Anton Vorontsov<cbouatmailru@gmail.com> wrote: >> >>> Drivers should not use NO_IRQ; moreover, some architectures don't >>> have it nowadays. '0' is the 'no irq' case. >>> >>> Signed-off-by: Anton Vorontsov<cbouatmailru@gmail.com> >> >> Acked-by: Alan Cox<alan@linux.intel.com> > > In case if we don't want a "band-aid fix" for 3.2, here is the patch > that just does the proper fix (w/ a risk to break minor architectures). > > drivers/ata/pata_of_platform.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/drivers/ata/pata_of_platform.c b/drivers/ata/pata_of_platform.c > index a72ab0d..2a472c5 100644 > --- a/drivers/ata/pata_of_platform.c > +++ b/drivers/ata/pata_of_platform.c > @@ -52,7 +52,7 @@ static int __devinit pata_of_platform_probe(struct platform_device *ofdev) > } > > ret = of_irq_to_resource(dn, 0,&irq_res); > - if (ret == NO_IRQ) > + if (!ret) > irq_res.start = irq_res.end = 0; > else > irq_res.flags = 0; Unless someone screams, that is what I'll push upstream. Jeff ^ permalink raw reply [flat|nested] 63+ messages in thread
* Re: [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver 2011-11-10 16:28 ` [PATCH] " Anton Vorontsov 2011-11-10 20:34 ` Jeff Garzik @ 2011-12-02 19:19 ` Dave Martin 2011-12-02 22:34 ` Anton Vorontsov 2011-12-02 23:22 ` [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver Alan Cox 2011-12-02 19:26 ` Dave Martin 2 siblings, 2 replies; 63+ messages in thread From: Dave Martin @ 2011-12-02 19:19 UTC (permalink / raw) To: Anton Vorontsov Cc: Alan Cox, Stephen Rothwell, Andrew Morton, devicetree-discuss, LKML, linux-ide, Randy Dunlap, linux-next, Ingo Molnar, Linus Torvalds, Jeff Garzik On Thu, Nov 10, 2011 at 08:28:59PM +0400, Anton Vorontsov wrote: > Drivers should not use NO_IRQ; moreover, some architectures don't > have it nowadays. '0' is the 'no irq' case. > > Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com> > Acked-by: Alan Cox <alan@linux.intel.com> > --- > > On Thu, Nov 10, 2011 at 03:38:16PM +0000, Alan Cox wrote: > > On Thu, 10 Nov 2011 19:26:06 +0400 > > Anton Vorontsov <cbouatmailru@gmail.com> wrote: > > > > > Drivers should not use NO_IRQ; moreover, some architectures don't > > > have it nowadays. '0' is the 'no irq' case. > > > > > > Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com> > > > > Acked-by: Alan Cox <alan@linux.intel.com> > > In case if we don't want a "band-aid fix" for 3.2, here is the patch > that just does the proper fix (w/ a risk to break minor architectures). This is now broken on ARM where, for good or bad, NO_IRQ currently is used and is -1. How do we resolve it? If we are ready to eliminate NO_IRQ from drivers/of/irq.c (or indeed, all code that uses it) and just use 0 for that case, we should surely just do it... but I'm not confident I can judge on that. Half-removing NO_IRQ is going to be problematic, though... I really don't care whether the "no irq" value is 0 or -1, but it is abundantly clear that choosing different values to mean the same thing on opposite sides of an interface does not work. Cheers ---Dave > > drivers/ata/pata_of_platform.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/drivers/ata/pata_of_platform.c b/drivers/ata/pata_of_platform.c > index a72ab0d..2a472c5 100644 > --- a/drivers/ata/pata_of_platform.c > +++ b/drivers/ata/pata_of_platform.c > @@ -52,7 +52,7 @@ static int __devinit pata_of_platform_probe(struct platform_device *ofdev) > } > > ret = of_irq_to_resource(dn, 0, &irq_res); > - if (ret == NO_IRQ) > + if (!ret) > irq_res.start = irq_res.end = 0; > else > irq_res.flags = 0; > -- > 1.7.5.3 > > _______________________________________________ > devicetree-discuss mailing list > devicetree-discuss@lists.ozlabs.org > https://lists.ozlabs.org/listinfo/devicetree-discuss ^ permalink raw reply [flat|nested] 63+ messages in thread
* Re: [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver 2011-12-02 19:19 ` Dave Martin @ 2011-12-02 22:34 ` Anton Vorontsov 2011-12-02 22:40 ` Anton Vorontsov 2011-12-02 22:40 ` Linus Torvalds 2011-12-02 23:22 ` [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver Alan Cox 1 sibling, 2 replies; 63+ messages in thread From: Anton Vorontsov @ 2011-12-02 22:34 UTC (permalink / raw) To: Dave Martin Cc: Alan Cox, Stephen Rothwell, Andrew Morton, devicetree-discuss, LKML, linux-ide, Randy Dunlap, linux-next, Ingo Molnar, Linus Torvalds, Jeff Garzik On Fri, Dec 02, 2011 at 07:19:17PM +0000, Dave Martin wrote: [...] > > > > Drivers should not use NO_IRQ; moreover, some architectures don't > > > > have it nowadays. '0' is the 'no irq' case. > > > > > > > > Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com> > > > > > > Acked-by: Alan Cox <alan@linux.intel.com> > > > > In case if we don't want a "band-aid fix" for 3.2, here is the patch > > that just does the proper fix (w/ a risk to break minor architectures). > > This is now broken on ARM where, for good or bad, NO_IRQ currently is > used and is -1. > > How do we resolve it? One option is to test this patch on a board that is now broken: http://lkml.org/lkml/2011/11/10/290 So that someone provide Tested-by tag. With the tag we probably can push the patch for 3.2, and thus fix the issue once and forever. The other option is to revert the correct fix, and push the bogus one, i.e. this: http://lkml.org/lkml/2011/11/10/287 But that last option is less likely, as this was NAKed by Alan Cox. Thanks, -- Anton Vorontsov Email: cbouatmailru@gmail.com ^ permalink raw reply [flat|nested] 63+ messages in thread
* Re: [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver 2011-12-02 22:34 ` Anton Vorontsov @ 2011-12-02 22:40 ` Anton Vorontsov 2011-12-02 22:46 ` Anton Vorontsov 2011-12-02 22:40 ` Linus Torvalds 1 sibling, 1 reply; 63+ messages in thread From: Anton Vorontsov @ 2011-12-02 22:40 UTC (permalink / raw) To: Dave Martin Cc: Alan Cox, Stephen Rothwell, Andrew Morton, devicetree-discuss, LKML, linux-ide, Randy Dunlap, linux-next, Ingo Molnar, Linus Torvalds, Jeff Garzik, Pawel Moll On Sat, Dec 03, 2011 at 02:34:02AM +0400, Anton Vorontsov wrote: > On Fri, Dec 02, 2011 at 07:19:17PM +0000, Dave Martin wrote: > [...] > > > > > Drivers should not use NO_IRQ; moreover, some architectures don't > > > > > have it nowadays. '0' is the 'no irq' case. > > > > > > > > > > Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com> > > > > > > > > Acked-by: Alan Cox <alan@linux.intel.com> > > > > > > In case if we don't want a "band-aid fix" for 3.2, here is the patch > > > that just does the proper fix (w/ a risk to break minor architectures). > > > > This is now broken on ARM where, for good or bad, NO_IRQ currently is > > used and is -1. > > > > How do we resolve it? > > One option is to test this patch on a board that is now broken: > > http://lkml.org/lkml/2011/11/10/290 Oh, actually, reading my own patch: "ARM defines NO_IRQ to -1, but OF code relies on IRQ domains support, which returns correct ('0') value in 'no irq' case. So everything should be fine." I forgot that on ARM we use IRQ domains, so ARM should be OK. Do you really see any breakage, and if so, what board? Thanks, -- Anton Vorontsov Email: cbouatmailru@gmail.com ^ permalink raw reply [flat|nested] 63+ messages in thread
* Re: [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver 2011-12-02 22:40 ` Anton Vorontsov @ 2011-12-02 22:46 ` Anton Vorontsov 0 siblings, 0 replies; 63+ messages in thread From: Anton Vorontsov @ 2011-12-02 22:46 UTC (permalink / raw) To: Dave Martin Cc: Alan Cox, Stephen Rothwell, Andrew Morton, devicetree-discuss, LKML, linux-ide, Randy Dunlap, linux-next, Ingo Molnar, Linus Torvalds, Jeff Garzik, Pawel Moll On Sat, Dec 03, 2011 at 02:40:18AM +0400, Anton Vorontsov wrote: > On Sat, Dec 03, 2011 at 02:34:02AM +0400, Anton Vorontsov wrote: > > On Fri, Dec 02, 2011 at 07:19:17PM +0000, Dave Martin wrote: > > [...] > > > > > > Drivers should not use NO_IRQ; moreover, some architectures don't > > > > > > have it nowadays. '0' is the 'no irq' case. > > > > > > > > > > > > Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com> > > > > > > > > > > Acked-by: Alan Cox <alan@linux.intel.com> > > > > > > > > In case if we don't want a "band-aid fix" for 3.2, here is the patch > > > > that just does the proper fix (w/ a risk to break minor architectures). > > > > > > This is now broken on ARM where, for good or bad, NO_IRQ currently is > > > used and is -1. > > > > > > How do we resolve it? > > > > One option is to test this patch on a board that is now broken: > > > > http://lkml.org/lkml/2011/11/10/290 > > Oh, actually, reading my own patch: > > "ARM defines NO_IRQ to -1, but OF code relies on IRQ domains support, > which returns correct ('0') value in 'no irq' case. So everything > should be fine." Ahh. Forget it, the remark was for the of/irq.c fix itself. So, we need the http://lkml.org/lkml/2011/11/10/290 fix. Otherwise the driver is indeed broken for ARM. Would be great if somebody could test it. Thanks, -- Anton Vorontsov Email: cbouatmailru@gmail.com ^ permalink raw reply [flat|nested] 63+ messages in thread
* Re: [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver 2011-12-02 22:34 ` Anton Vorontsov 2011-12-02 22:40 ` Anton Vorontsov @ 2011-12-02 22:40 ` Linus Torvalds 2011-12-02 23:18 ` [PATCH v2] of/irq: Get rid of NO_IRQ usage Anton Vorontsov 1 sibling, 1 reply; 63+ messages in thread From: Linus Torvalds @ 2011-12-02 22:40 UTC (permalink / raw) To: Anton Vorontsov Cc: Dave Martin, Alan Cox, Stephen Rothwell, Andrew Morton, devicetree-discuss, LKML, linux-ide, Randy Dunlap, linux-next, Ingo Molnar, Jeff Garzik On Fri, Dec 2, 2011 at 2:34 PM, Anton Vorontsov <anton.vorontsov@linaro.org> wrote: > > One option is to test this patch on a board that is now broken: > > http://lkml.org/lkml/2011/11/10/290 That seems broken. Spot the trouble: + ret = irq_create_of_mapping(oirq.controller, oirq.specifier, + oirq.size); +no_irq: +#ifdef NO_IRQ +#if NO_IRQ != 0 + if (ret == NO_IRQ) + pr_warn("Hit NO_IRQ case for your arch. Drivers might expect " + "NO_IRQ, but we return 0. If anything breaks, driver " + "have to be fixed.\n"); +#endif +#endif + return ret; It claims "we return 0", but then doesn't return zero.. Hmm? Linus ^ permalink raw reply [flat|nested] 63+ messages in thread
* [PATCH v2] of/irq: Get rid of NO_IRQ usage 2011-12-02 22:40 ` Linus Torvalds @ 2011-12-02 23:18 ` Anton Vorontsov 0 siblings, 0 replies; 63+ messages in thread From: Anton Vorontsov @ 2011-12-02 23:18 UTC (permalink / raw) To: Linus Torvalds Cc: Dave Martin, Alan Cox, Stephen Rothwell, Andrew Morton, devicetree-discuss, LKML, linux-ide, Randy Dunlap, linux-next, Ingo Molnar, Jeff Garzik, Benjamin Herrenschmidt PPC32/64 defines NO_IRQ to zero, so no problems expected. ARM defines NO_IRQ to -1, but OF code relies on IRQ domains support, which returns correct ('0') value in 'no irq' case. So everything should be fine. Other arches might break if some of their OF drivers rely on NO_IRQ being not 0. If so, the drivers must be fixed, finally. Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org> --- On Fri, Dec 02, 2011 at 02:40:37PM -0800, Linus Torvalds wrote: > On Fri, Dec 2, 2011 at 2:34 PM, Anton Vorontsov > <anton.vorontsov@linaro.org> wrote: > > > > One option is to test this patch on a board that is now broken: > > > > http://lkml.org/lkml/2011/11/10/290 > > That seems broken. > > Spot the trouble: > > + ret = irq_create_of_mapping(oirq.controller, oirq.specifier, > + oirq.size); > +no_irq: > +#ifdef NO_IRQ > +#if NO_IRQ != 0 > + if (ret == NO_IRQ) > + pr_warn("Hit NO_IRQ case for your arch. Drivers might expect " > + "NO_IRQ, but we return 0. If anything breaks, driver " > + "have to be fixed.\n"); > +#endif > +#endif > + return ret; > > It claims "we return 0", but then doesn't return zero.. Hmm? > > Linus Hehe, I never claimed that I tested the patch on any OF platform. :-D But, the patch would work for ARM anyway. irq_create_of_mapping() always return 0 in case of 'no irq'. So, in ARM case the problem was in the hunk that you snipped: if (of_irq_map_one(dev, index, &oirq)) - return NO_IRQ; - For the arches that don't use IRQ domains and have NO_IRQ != 0 (e.g. microblaze), you spot the real trouble indeed. Thanks. Here is the amended fix. I hope it works, and somebody could test it. p.s. Initially I proposed a very simple band-aid fix for 3.2, and wanted the real fix postponed for 3.3 (since nowadays I don't have any OF machines to test, but this will change soon). I hope it's a good excuse. ;-) drivers/of/irq.c | 32 ++++++++++++++++++++------------ 1 files changed, 20 insertions(+), 12 deletions(-) diff --git a/drivers/of/irq.c b/drivers/of/irq.c index 791270b..97ee3bd 100644 --- a/drivers/of/irq.c +++ b/drivers/of/irq.c @@ -26,11 +26,6 @@ #include <linux/string.h> #include <linux/slab.h> -/* For archs that don't support NO_IRQ (such as x86), provide a dummy value */ -#ifndef NO_IRQ -#define NO_IRQ 0 -#endif - /** * irq_of_parse_and_map - Parse and map an interrupt into linux virq space * @device: Device node of the device whose interrupt is to be mapped @@ -42,12 +37,25 @@ unsigned int irq_of_parse_and_map(struct device_node *dev, int index) { struct of_irq oirq; + int ret = 0; if (of_irq_map_one(dev, index, &oirq)) - return NO_IRQ; - - return irq_create_of_mapping(oirq.controller, oirq.specifier, - oirq.size); + goto no_irq; + + ret = irq_create_of_mapping(oirq.controller, oirq.specifier, + oirq.size); +no_irq: +#ifdef NO_IRQ +#if NO_IRQ != 0 + if (ret == NO_IRQ) { + pr_warn("Hit NO_IRQ case for your arch. Drivers might expect " + "NO_IRQ, but we return 0. If anything breaks, driver " + "have to be fixed.\n"); + ret = 0; + } +#endif +#endif + return ret; } EXPORT_SYMBOL_GPL(irq_of_parse_and_map); @@ -345,7 +353,7 @@ int of_irq_to_resource(struct device_node *dev, int index, struct resource *r) /* Only dereference the resource if both the * resource and the irq are valid. */ - if (r && irq != NO_IRQ) { + if (r && irq) { r->start = r->end = irq; r->flags = IORESOURCE_IRQ; r->name = dev->full_name; @@ -363,7 +371,7 @@ int of_irq_count(struct device_node *dev) { int nr = 0; - while (of_irq_to_resource(dev, nr, NULL) != NO_IRQ) + while (of_irq_to_resource(dev, nr, NULL)) nr++; return nr; @@ -383,7 +391,7 @@ int of_irq_to_resource_table(struct device_node *dev, struct resource *res, int i; for (i = 0; i < nr_irqs; i++, res++) - if (of_irq_to_resource(dev, i, res) == NO_IRQ) + if (!of_irq_to_resource(dev, i, res)) break; return i; -- 1.7.5.3 ^ permalink raw reply related [flat|nested] 63+ messages in thread
* Re: [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver 2011-12-02 19:19 ` Dave Martin 2011-12-02 22:34 ` Anton Vorontsov @ 2011-12-02 23:22 ` Alan Cox 2011-12-03 18:56 ` Geert Uytterhoeven 1 sibling, 1 reply; 63+ messages in thread From: Alan Cox @ 2011-12-02 23:22 UTC (permalink / raw) To: Dave Martin Cc: Anton Vorontsov, Stephen Rothwell, Andrew Morton, devicetree-discuss, LKML, linux-ide, Randy Dunlap, linux-next, Ingo Molnar, Linus Torvalds, Jeff Garzik > This is now broken on ARM where, for good or bad, NO_IRQ currently is > used and is -1. Good. ARM developers have been told to change this for several years. The nice approach hasn't worked, the patient approach hasn't worked so now finally ARM is going to be dragged kicking and screaming into doing the work everyone else did several years ago. I have so little sympathy over this that you'll need a quantum physicist to measure it. > Half-removing NO_IRQ is going to be problematic, though... > I really don't care whether the "no irq" value is 0 or -1, but it is > abundantly clear that choosing different values to mean the same thing > on opposite sides of an interface does not work. You've had years to fix it. If I were you I'd delete NO_IRQ from your tree, type make and get it done. It's not even a big job to clean it out. At that point various other drivers will also start working properly on ARM because they use 0 for polled mode. Alan ^ permalink raw reply [flat|nested] 63+ messages in thread
* Re: [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver 2011-12-02 23:22 ` [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver Alan Cox @ 2011-12-03 18:56 ` Geert Uytterhoeven 0 siblings, 0 replies; 63+ messages in thread From: Geert Uytterhoeven @ 2011-12-03 18:56 UTC (permalink / raw) To: Alan Cox Cc: Dave Martin, Anton Vorontsov, Stephen Rothwell, Andrew Morton, devicetree-discuss, LKML, linux-ide, Randy Dunlap, linux-next, Ingo Molnar, Linus Torvalds, Jeff Garzik, linux-arch On Sat, Dec 3, 2011 at 00:22, Alan Cox <alan@lxorguk.ukuu.org.uk> wrote: >> This is now broken on ARM where, for good or bad, NO_IRQ currently is >> used and is -1. > > Good. > > ARM developers have been told to change this for several years. The nice > approach hasn't worked, the patient approach hasn't worked so now finally > ARM is going to be dragged kicking and screaming into doing the work > everyone else did several years ago. > > I have so little sympathy over this that you'll need a quantum physicist > to measure it. > >> Half-removing NO_IRQ is going to be problematic, though... >> I really don't care whether the "no irq" value is 0 or -1, but it is >> abundantly clear that choosing different values to mean the same thing >> on opposite sides of an interface does not work. > > You've had years to fix it. If I were you I'd delete NO_IRQ from your > tree, type make and get it done. It's not even a big job to clean it out. > > At that point various other drivers will also start working properly on > ARM because they use 0 for polled mode. Not just ARM: arch/arm/include/asm/irq.h:#ifndef NO_IRQarch/arm/include/asm/irq.h:#define NO_IRQ ((unsigned int)(-1))arch/microblaze/include/asm/irq.h:#define NO_IRQ (-1)arch/mn10300/include/asm/irq.h:#define NO_IRQ INT_MAXarch/openrisc/include/asm/irq.h:#define NO_IRQ (-1)arch/parisc/include/asm/irq.h:#define NO_IRQ (-1)arch/powerpc/include/asm/irq.h:#define NO_IRQ (0)arch/powerpc/include/asm/machdep.h: /* Return an irq, or NO_IRQ to indicate arch/powerpc/include/asm/parport.h: if (virq == NO_IRQ)arch/powerpc/include/asm/qe_ic.h: if (cascade_irq != NO_IRQ)arch/powerpc/include/asm/qe_ic.h: if (cascade_irq != NO_IRQ)arch/powerpc/include/asm/qe_ic.h: if (cascade_irq != NO_IRQ)arch/powerpc/include/asm/qe_ic.h: if (cascade_irq != NO_IRQ)arch/powerpc/include/asm/qe_ic.h: if (cascade_irq == NO_IRQ)arch/powerpc/include/asm/qe_ic.h: if (cascade_irq != NO_IRQ)arch/sparc/include/asm/irq_32.h:#define NO_IRQ 0xffffffffarch/sparc/include/asm/irq_64.h:#define NO_IRQ 0xffffffff And it's not just definitions of NO_IRQ. These are easy to find. On some archs (notably ARM) zero still seems to be a valid IRQ number, e.g. IRQ_LOCOMO_KEY and IRQ_DMA0C0. Also, UML has TIMER_IRQ being zero. A quick grep found many more IRQ definitions being zero, but surprisingly the few I looked into were definitions without users (e.g. SE7343_FPGA_IRQ_MRSHPC0, ROUTE_VIA_IRQ0 aka IRQ_MB93493_VDC_ROUTE). Perhaps request_irq() should just reject zero to find all of them? Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds ^ permalink raw reply [flat|nested] 63+ messages in thread
* Re: [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver 2011-11-10 16:28 ` [PATCH] " Anton Vorontsov 2011-11-10 20:34 ` Jeff Garzik 2011-12-02 19:19 ` Dave Martin @ 2011-12-02 19:26 ` Dave Martin 2011-12-02 19:28 ` Linus Torvalds 2 siblings, 1 reply; 63+ messages in thread From: Dave Martin @ 2011-12-02 19:26 UTC (permalink / raw) To: Anton Vorontsov Cc: Alan Cox, Stephen Rothwell, Andrew Morton, devicetree-discuss, LKML, linux-ide, Randy Dunlap, linux-next, Ingo Molnar, Linus Torvalds, Jeff Garzik, Pawel Moll, linux-arm-kernel [expanding CC -- apologies to anyone who gets this mail twice] On Thu, Nov 10, 2011 at 08:28:59PM +0400, Anton Vorontsov wrote: > Drivers should not use NO_IRQ; moreover, some architectures don't > have it nowadays. '0' is the 'no irq' case. > > Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com> > Acked-by: Alan Cox <alan@linux.intel.com> > --- > > On Thu, Nov 10, 2011 at 03:38:16PM +0000, Alan Cox wrote: > > On Thu, 10 Nov 2011 19:26:06 +0400 > > Anton Vorontsov <cbouatmailru@gmail.com> wrote: > > > > > Drivers should not use NO_IRQ; moreover, some architectures don't > > > have it nowadays. '0' is the 'no irq' case. > > > > > > Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com> > > > > Acked-by: Alan Cox <alan@linux.intel.com> > > In case if we don't want a "band-aid fix" for 3.2, here is the patch > that just does the proper fix (w/ a risk to break minor architectures). This is now broken on ARM where, for good or bad, NO_IRQ currently is used and is -1. How do we resolve it? If we are ready to eliminate NO_IRQ from drivers/of/irq.c (or indeed, all code that uses it) and just use 0 for that case, we should surely just do it... but I'm not confident I can judge on that. Half-removing NO_IRQ is going to be problematic, though... I really don't care whether the "no irq" value is 0 or -1, but it is abundantly clear that choosing different values to mean the same thing on opposite sides of an interface does not work. Cheers ---Dave > > drivers/ata/pata_of_platform.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/drivers/ata/pata_of_platform.c b/drivers/ata/pata_of_platform.c > index a72ab0d..2a472c5 100644 > --- a/drivers/ata/pata_of_platform.c > +++ b/drivers/ata/pata_of_platform.c > @@ -52,7 +52,7 @@ static int __devinit pata_of_platform_probe(struct platform_device *ofdev) > } > > ret = of_irq_to_resource(dn, 0, &irq_res); > - if (ret == NO_IRQ) > + if (!ret) > irq_res.start = irq_res.end = 0; > else > irq_res.flags = 0; > -- > 1.7.5.3 > > _______________________________________________ > devicetree-discuss mailing list > devicetree-discuss@lists.ozlabs.org > https://lists.ozlabs.org/listinfo/devicetree-discuss ^ permalink raw reply [flat|nested] 63+ messages in thread
* Re: [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver 2011-12-02 19:26 ` Dave Martin @ 2011-12-02 19:28 ` Linus Torvalds 2011-12-02 23:12 ` Benjamin Herrenschmidt 0 siblings, 1 reply; 63+ messages in thread From: Linus Torvalds @ 2011-12-02 19:28 UTC (permalink / raw) To: Dave Martin Cc: Anton Vorontsov, Alan Cox, Stephen Rothwell, Andrew Morton, devicetree-discuss, LKML, linux-ide, Randy Dunlap, linux-next, Ingo Molnar, Jeff Garzik, Pawel Moll, linux-arm-kernel On Fri, Dec 2, 2011 at 11:26 AM, Dave Martin <dave.martin@linaro.org> wrote: > > This is now broken on ARM where, for good or bad, NO_IRQ currently is > used and is -1. > > How do we resolve it? If we are ready to eliminate NO_IRQ from > drivers/of/irq.c (or indeed, all code that uses it) and just use 0 for > that case, we should surely just do it... but I'm not confident I can > judge on that. Just stop using NO_IRQ. First in drivers/of/irq.c, then in any drivers as you notice breakage. Don't *change* NO_IRQ to zero (that whole #define is broken - leave it around as a marker of brokenness), just start removing it from all the ARM drivers that use the OF infrastructure. Which is presumably not all that many yet. So whenever you find breakage, the fix now is to just remove NO_IRQ tests, and replace them with "!irq". Linus ^ permalink raw reply [flat|nested] 63+ messages in thread
* Re: [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver 2011-12-02 19:28 ` Linus Torvalds @ 2011-12-02 23:12 ` Benjamin Herrenschmidt 2011-12-05 16:11 ` Dave Martin 0 siblings, 1 reply; 63+ messages in thread From: Benjamin Herrenschmidt @ 2011-12-02 23:12 UTC (permalink / raw) To: Linus Torvalds Cc: Dave Martin, Anton Vorontsov, Alan Cox, Stephen Rothwell, Andrew Morton, devicetree-discuss, LKML, linux-ide, Randy Dunlap, linux-next, Ingo Molnar, Jeff Garzik, Pawel Moll, linux-arm-kernel On Fri, 2011-12-02 at 11:28 -0800, Linus Torvalds wrote: > On Fri, Dec 2, 2011 at 11:26 AM, Dave Martin <dave.martin@linaro.org> wrote: > > > > This is now broken on ARM where, for good or bad, NO_IRQ currently is > > used and is -1. > > > > How do we resolve it? If we are ready to eliminate NO_IRQ from > > drivers/of/irq.c (or indeed, all code that uses it) and just use 0 for > > that case, we should surely just do it... but I'm not confident I can > > judge on that. > > Just stop using NO_IRQ. First in drivers/of/irq.c, then in any drivers > as you notice breakage. Agreed. In fact the whole hack in drivers/of/irq.c was to accomodate ARM which still uses -1, powerpc changed to 0 a long time ago. Now that we have a generic remapper between HW and "linux" IRQ numbers, there is no reason to stick to -1 even on ARM. > Don't *change* NO_IRQ to zero (that whole #define is broken - leave it > around as a marker of brokenness), just start removing it from all the > ARM drivers that use the OF infrastructure. Which is presumably not > all that many yet. > > So whenever you find breakage, the fix now is to just remove NO_IRQ > tests, and replace them with "!irq". Cheers, Ben. ^ permalink raw reply [flat|nested] 63+ messages in thread
* Re: [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver 2011-12-02 23:12 ` Benjamin Herrenschmidt @ 2011-12-05 16:11 ` Dave Martin 2011-12-05 17:40 ` Nicolas Pitre [not found] ` <20111205161157.GA27550-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org> 0 siblings, 2 replies; 63+ messages in thread From: Dave Martin @ 2011-12-05 16:11 UTC (permalink / raw) To: Russell King - ARM Linux Cc: Benjamin Herrenschmidt, Linus Torvalds, Anton Vorontsov, Alan Cox, Stephen Rothwell, Andrew Morton, devicetree-discuss, LKML, linux-ide, Randy Dunlap, linux-next, Ingo Molnar, Jeff Garzik, Pawel Moll, linux-arm-kernel On Sat, Dec 03, 2011 at 10:12:53AM +1100, Benjamin Herrenschmidt wrote: > On Fri, 2011-12-02 at 11:28 -0800, Linus Torvalds wrote: > > On Fri, Dec 2, 2011 at 11:26 AM, Dave Martin <dave.martin@linaro.org> wrote: > > > > > > This is now broken on ARM where, for good or bad, NO_IRQ currently is > > > used and is -1. > > > > > > How do we resolve it? If we are ready to eliminate NO_IRQ from > > > drivers/of/irq.c (or indeed, all code that uses it) and just use 0 for > > > that case, we should surely just do it... but I'm not confident I can > > > judge on that. > > > > Just stop using NO_IRQ. First in drivers/of/irq.c, then in any drivers > > as you notice breakage. > > Agreed. In fact the whole hack in drivers/of/irq.c was to accomodate ARM > which still uses -1, powerpc changed to 0 a long time ago. > > Now that we have a generic remapper between HW and "linux" IRQ numbers, > there is no reason to stick to -1 even on ARM. > > > Don't *change* NO_IRQ to zero (that whole #define is broken - leave it > > around as a marker of brokenness), just start removing it from all the > > ARM drivers that use the OF infrastructure. Which is presumably not > > all that many yet. > > > > So whenever you find breakage, the fix now is to just remove NO_IRQ > > tests, and replace them with "!irq". > Russell, do you know whether it would make sense to set a timeline for removing NO_IRQ from ARM platforms and migrating to 0 for the no-interrupt case? I'm assuming that this mainly involves migrating existing hard-wired code that deals with interrupt numbers to use irq domains. I worry that if we just change the convention for the OF case, we'll end up with OF-ised platform drivers which have to deal with a different no- irq convention depending on whether they are probed as platform drivers or through the OF framework ... and these ported or semi-ported drivers will be intermixed with unported drivers, confusing maintainers. If board code starts initialising platform data for non-OF-ised platform drivers based on IRQ numbers fetched via the OF code, things will get even more confused... Cheers ---Dave ^ permalink raw reply [flat|nested] 63+ messages in thread
* Re: [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver 2011-12-05 16:11 ` Dave Martin @ 2011-12-05 17:40 ` Nicolas Pitre 2011-12-05 18:02 ` Dave Martin [not found] ` <20111205161157.GA27550-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org> 1 sibling, 1 reply; 63+ messages in thread From: Nicolas Pitre @ 2011-12-05 17:40 UTC (permalink / raw) To: Dave Martin Cc: Russell King - ARM Linux, Benjamin Herrenschmidt, Linus Torvalds, Anton Vorontsov, Alan Cox, Stephen Rothwell, Andrew Morton, devicetree-discuss, LKML, linux-ide, Randy Dunlap, linux-next, Ingo Molnar, Jeff Garzik, Pawel Moll, linux-arm-kernel On Mon, 5 Dec 2011, Dave Martin wrote: > On Sat, Dec 03, 2011 at 10:12:53AM +1100, Benjamin Herrenschmidt wrote: > > On Fri, 2011-12-02 at 11:28 -0800, Linus Torvalds wrote: > > > Don't *change* NO_IRQ to zero (that whole #define is broken - leave it > > > around as a marker of brokenness), just start removing it from all the > > > ARM drivers that use the OF infrastructure. Which is presumably not > > > all that many yet. > > > > > > So whenever you find breakage, the fix now is to just remove NO_IRQ > > > tests, and replace them with "!irq". > > > > Russell, do you know whether it would make sense to set a timeline for > removing NO_IRQ from ARM platforms and migrating to 0 for the no-interrupt > case? I'm assuming that this mainly involves migrating existing hard-wired > code that deals with interrupt numbers to use irq domains. How many drivers do use IRQ #0 to start with? We might discover that in practice there is only a very few cases where this is an issue if 0 would mean no IRQ. Nicolas ^ permalink raw reply [flat|nested] 63+ messages in thread
* Re: [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver 2011-12-05 17:40 ` Nicolas Pitre @ 2011-12-05 18:02 ` Dave Martin 2011-12-05 18:15 ` Geert Uytterhoeven 2011-12-05 18:18 ` Nicolas Pitre 0 siblings, 2 replies; 63+ messages in thread From: Dave Martin @ 2011-12-05 18:02 UTC (permalink / raw) To: Nicolas Pitre Cc: Russell King - ARM Linux, Benjamin Herrenschmidt, Linus Torvalds, Anton Vorontsov, Alan Cox, Stephen Rothwell, Andrew Morton, devicetree-discuss, LKML, linux-ide, Randy Dunlap, linux-next, Ingo Molnar, Jeff Garzik, Pawel Moll, linux-arm-kernel On Mon, Dec 05, 2011 at 12:40:16PM -0500, Nicolas Pitre wrote: > On Mon, 5 Dec 2011, Dave Martin wrote: > > On Sat, Dec 03, 2011 at 10:12:53AM +1100, Benjamin Herrenschmidt wrote: > > > On Fri, 2011-12-02 at 11:28 -0800, Linus Torvalds wrote: > > > > Don't *change* NO_IRQ to zero (that whole #define is broken - leave it > > > > around as a marker of brokenness), just start removing it from all the > > > > ARM drivers that use the OF infrastructure. Which is presumably not > > > > all that many yet. > > > > > > > > So whenever you find breakage, the fix now is to just remove NO_IRQ > > > > tests, and replace them with "!irq". > > > > > > > Russell, do you know whether it would make sense to set a timeline for > > removing NO_IRQ from ARM platforms and migrating to 0 for the no-interrupt > > case? I'm assuming that this mainly involves migrating existing hard-wired > > code that deals with interrupt numbers to use irq domains. > > How many drivers do use IRQ #0 to start with? We might discover that in > practice there is only a very few cases where this is an issue if 0 > would mean no IRQ. The total number of files referring to NO_IRQ is not that huge: arch/arm/ 188 matches in 39 files drivers/ 174 matches in 84 files Unfortunately, NO_IRQ is often not spelled "NO_IRQ". It looks like the assumption "irq < 0 === no irq" may be quite a lot more widespread than "NO_IRQ === no irq". Since there's no specific thing we can grep for (and simply due to volume) finding all such instances may be quite a bit harder. For example, git grep 'irq.*\(>=\|<[^=]\) *0' gives drivers/ 435 matches in 314 files arch/arm/ 18 matches in 15 files A few examples: drivers/input/mouse/pxa930_trkball.c: if (irq < 0) { drivers/input/keyboard/tegra-kbc.c: if (irq < 0) { drivers/crypto/omap-sham.c: if (dd->irq >= 0) ...etc., etc., although there are probably a fair number of false positives here. whereas git grep 'irq.*\(<\|>\|<=\|>=\|==\|!=\) \+-1' gives drivers/ 68 matches in 28 files arch/arm/ 18 matches in 15 files Examples: ...and that's just the code which is C and is also kind enough to put irq numbers in variables with names containing "irq". It also doesn't catch people initialising variables or struct/array members to -1, unadorned "-1" arguments to functions and so on... though those are likely to appear in mostly the same files matching the above expressions, it won't be an exact 1:1 correspondence. Cheers ---Dave ^ permalink raw reply [flat|nested] 63+ messages in thread
* Re: [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver 2011-12-05 18:02 ` Dave Martin @ 2011-12-05 18:15 ` Geert Uytterhoeven 2011-12-05 18:18 ` Nicolas Pitre 1 sibling, 0 replies; 63+ messages in thread From: Geert Uytterhoeven @ 2011-12-05 18:15 UTC (permalink / raw) To: Dave Martin Cc: Nicolas Pitre, Russell King - ARM Linux, Benjamin Herrenschmidt, Linus Torvalds, Anton Vorontsov, Alan Cox, Stephen Rothwell, Andrew Morton, devicetree-discuss, LKML, linux-ide, Randy Dunlap, linux-next, Ingo Molnar, Jeff Garzik, Pawel Moll, linux-arm-kernel On Mon, Dec 5, 2011 at 19:02, Dave Martin <dave.martin@linaro.org> wrote: > Unfortunately, NO_IRQ is often not spelled "NO_IRQ". It looks like the assumption > "irq < 0 === no irq" may be quite a lot more widespread than "NO_IRQ === no irq". Can we make irq unsigned, and hope the compiler catches all of them (comparison always false blah blah blah)? Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds ^ permalink raw reply [flat|nested] 63+ messages in thread
* Re: [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver 2011-12-05 18:02 ` Dave Martin 2011-12-05 18:15 ` Geert Uytterhoeven @ 2011-12-05 18:18 ` Nicolas Pitre [not found] ` <alpine.LFD.2.02.1112051310150.2357-QuJgVwGFrdf/9pzu0YdTqQ@public.gmane.org> 2011-12-05 19:26 ` Dave Martin 1 sibling, 2 replies; 63+ messages in thread From: Nicolas Pitre @ 2011-12-05 18:18 UTC (permalink / raw) To: Dave Martin Cc: Russell King - ARM Linux, Benjamin Herrenschmidt, Linus Torvalds, Anton Vorontsov, Alan Cox, Stephen Rothwell, Andrew Morton, devicetree-discuss, LKML, linux-ide, Randy Dunlap, linux-next, Ingo Molnar, Jeff Garzik, Pawel Moll, linux-arm-kernel On Mon, 5 Dec 2011, Dave Martin wrote: > On Mon, Dec 05, 2011 at 12:40:16PM -0500, Nicolas Pitre wrote: > > On Mon, 5 Dec 2011, Dave Martin wrote: > > > On Sat, Dec 03, 2011 at 10:12:53AM +1100, Benjamin Herrenschmidt wrote: > > > > On Fri, 2011-12-02 at 11:28 -0800, Linus Torvalds wrote: > > > > > Don't *change* NO_IRQ to zero (that whole #define is broken - leave it > > > > > around as a marker of brokenness), just start removing it from all the > > > > > ARM drivers that use the OF infrastructure. Which is presumably not > > > > > all that many yet. > > > > > > > > > > So whenever you find breakage, the fix now is to just remove NO_IRQ > > > > > tests, and replace them with "!irq". > > > > > > > > > > Russell, do you know whether it would make sense to set a timeline for > > > removing NO_IRQ from ARM platforms and migrating to 0 for the no-interrupt > > > case? I'm assuming that this mainly involves migrating existing hard-wired > > > code that deals with interrupt numbers to use irq domains. > > > > How many drivers do use IRQ #0 to start with? We might discover that in > > practice there is only a very few cases where this is an issue if 0 > > would mean no IRQ. > > The total number of files referring to NO_IRQ is not that huge: > > arch/arm/ 188 matches in 39 files > drivers/ 174 matches in 84 files > > Unfortunately, NO_IRQ is often not spelled "NO_IRQ". It looks like the assumption > "irq < 0 === no irq" may be quite a lot more widespread than "NO_IRQ === no irq". > Since there's no specific thing we can grep for (and simply due to volume) > finding all such instances may be quite a bit harder. [...] ARgh. My point was about current actual usage of the IRQ numbered 0 which probably prompted the introduction of NO_IRQ in the first place. What I was saying is that the number of occurrences where IRQ #0 is currently used into drivers that would get confused if 0 would mean no IRQ is probably quite small. But as you illustrated, there is a large number of drivers that already assume no IRQ is < 0, even if they don't use any IRQ #0 themselves. That is a much bigger problem to fix. Nicolas ^ permalink raw reply [flat|nested] 63+ messages in thread
[parent not found: <alpine.LFD.2.02.1112051310150.2357-QuJgVwGFrdf/9pzu0YdTqQ@public.gmane.org>]
* Re: [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver [not found] ` <alpine.LFD.2.02.1112051310150.2357-QuJgVwGFrdf/9pzu0YdTqQ@public.gmane.org> @ 2011-12-05 18:45 ` Alan Cox 2011-12-05 19:19 ` James Bottomley 2011-12-06 6:13 ` Jean-Christophe PLAGNIOL-VILLARD 2011-12-05 19:16 ` Rob Herring 1 sibling, 2 replies; 63+ messages in thread From: Alan Cox @ 2011-12-05 18:45 UTC (permalink / raw) To: Nicolas Pitre Cc: Stephen Rothwell, Russell King - ARM Linux, Pawel Moll, devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ, LKML, Jeff Garzik, linux-ide-u79uwXL29TY76Z2rM5mHXA, Randy Dunlap, linux-next-u79uwXL29TY76Z2rM5mHXA, Anton Vorontsov, Andrew Morton, Linus Torvalds, Ingo Molnar, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r > But as you illustrated, there is a large number of drivers that already > assume no IRQ is < 0, even if they don't use any IRQ #0 themselves. > That is a much bigger problem to fix. And a much larger number assuming the reverse is true which are hiding potential bugs on ARM. Looking at the serial stuff the best checks appear to be looking at "irq", "-1" and NO_IRQ. For migration stuff that's doing broken things like if (irq < 0) can be changed to if (irq <= 0) and that can be done before NO_IRQ itself is nailed on ARM and PA-RISC. ^ permalink raw reply [flat|nested] 63+ messages in thread
* Re: [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver 2011-12-05 18:45 ` Alan Cox @ 2011-12-05 19:19 ` James Bottomley 2011-12-06 6:13 ` Jean-Christophe PLAGNIOL-VILLARD 1 sibling, 0 replies; 63+ messages in thread From: James Bottomley @ 2011-12-05 19:19 UTC (permalink / raw) To: Alan Cox Cc: Nicolas Pitre, Dave Martin, Russell King - ARM Linux, Benjamin Herrenschmidt, Linus Torvalds, Anton Vorontsov, Stephen Rothwell, Andrew Morton, devicetree-discuss, LKML, linux-ide, Randy Dunlap, linux-next, Ingo Molnar, Jeff Garzik, Pawel Moll, linux-arm-kernel On Mon, 2011-12-05 at 18:45 +0000, Alan Cox wrote: > > But as you illustrated, there is a large number of drivers that already > > assume no IRQ is < 0, even if they don't use any IRQ #0 themselves. > > That is a much bigger problem to fix. > > And a much larger number assuming the reverse is true which are hiding > potential bugs on ARM. > > Looking at the serial stuff the best checks appear to be looking at > "irq", "-1" and NO_IRQ. > > For migration stuff that's doing broken things like > > if (irq < 0) > > can be changed to > > if (irq <= 0) > > and that can be done before NO_IRQ itself is nailed on ARM and PA-RISC. To be honest, we don't care very much. Parisc interrupts are cascading and mostly software assigned (except our EIEM which we keep internal). We use a base offset at 16 or 64 (depending on GSC presence or not) so IRQs 0-15 aren't legal on parisc either (we frob some of the hard coded ISA interrupts on the WAX eisa bus). We use NO_IRQ as an IRQ assignment error return and that's about it (and that error shouldn't ever really occur). James ^ permalink raw reply [flat|nested] 63+ messages in thread
* Re: [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver 2011-12-05 18:45 ` Alan Cox 2011-12-05 19:19 ` James Bottomley @ 2011-12-06 6:13 ` Jean-Christophe PLAGNIOL-VILLARD [not found] ` <20111206061321.GH9192-RQcB7r2h9QmfDR2tN2SG5Ni2O/JbrIOy@public.gmane.org> 1 sibling, 1 reply; 63+ messages in thread From: Jean-Christophe PLAGNIOL-VILLARD @ 2011-12-06 6:13 UTC (permalink / raw) To: Alan Cox Cc: Nicolas Pitre, Stephen Rothwell, Russell King - ARM Linux, Pawel Moll, devicetree-discuss, LKML, Jeff Garzik, linux-ide, Randy Dunlap, linux-next, Anton Vorontsov, Andrew Morton, Linus Torvalds, Ingo Molnar, linux-arm-kernel On 18:45 Mon 05 Dec , Alan Cox wrote: > > But as you illustrated, there is a large number of drivers that already > > assume no IRQ is < 0, even if they don't use any IRQ #0 themselves. > > That is a much bigger problem to fix. > > And a much larger number assuming the reverse is true which are hiding > potential bugs on ARM. > > Looking at the serial stuff the best checks appear to be looking at > "irq", "-1" and NO_IRQ. > > For migration stuff that's doing broken things like > > if (irq < 0) > > can be changed to > > if (irq <= 0) > > and that can be done before NO_IRQ itself is nailed on ARM and PA-RISC. can we sinply introduce a macro irq_is_valid and make it chip dependant as gpio_is_valid and then move away from irq 0 valid so we do not need to brake anthing first and then easly convert them Best Regards, J. ^ permalink raw reply [flat|nested] 63+ messages in thread
[parent not found: <20111206061321.GH9192-RQcB7r2h9QmfDR2tN2SG5Ni2O/JbrIOy@public.gmane.org>]
* Re: [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver [not found] ` <20111206061321.GH9192-RQcB7r2h9QmfDR2tN2SG5Ni2O/JbrIOy@public.gmane.org> @ 2011-12-06 11:34 ` Alan Cox 0 siblings, 0 replies; 63+ messages in thread From: Alan Cox @ 2011-12-06 11:34 UTC (permalink / raw) To: Jean-Christophe PLAGNIOL-VILLARD Cc: Nicolas Pitre, Stephen Rothwell, Russell King - ARM Linux, Pawel Moll, devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ, Ingo Molnar, LKML, linux-ide-u79uwXL29TY76Z2rM5mHXA, Randy Dunlap, linux-next-u79uwXL29TY76Z2rM5mHXA, Anton Vorontsov, Andrew Morton, Linus Torvalds, Jeff Garzik, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r > can we sinply introduce a macro irq_is_valid See the 2005, 2006 and 2008 discussion. if (!dev->irq) is the proper test. The <= is just a temporary thing while ARM gets its publically visible house in order so it can be done without breakage. Alan ^ permalink raw reply [flat|nested] 63+ messages in thread
* Re: [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver [not found] ` <alpine.LFD.2.02.1112051310150.2357-QuJgVwGFrdf/9pzu0YdTqQ@public.gmane.org> 2011-12-05 18:45 ` Alan Cox @ 2011-12-05 19:16 ` Rob Herring 2011-12-05 20:21 ` Anton Vorontsov 1 sibling, 1 reply; 63+ messages in thread From: Rob Herring @ 2011-12-05 19:16 UTC (permalink / raw) To: Nicolas Pitre Cc: Stephen Rothwell, Russell King - ARM Linux, Pawel Moll, devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ, Ingo Molnar, LKML, linux-ide-u79uwXL29TY76Z2rM5mHXA, Randy Dunlap, linux-next-u79uwXL29TY76Z2rM5mHXA, Alan Cox, Anton Vorontsov, Andrew Morton, Linus Torvalds, Jeff Garzik, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r On 12/05/2011 12:18 PM, Nicolas Pitre wrote: > On Mon, 5 Dec 2011, Dave Martin wrote: > >> On Mon, Dec 05, 2011 at 12:40:16PM -0500, Nicolas Pitre wrote: >>> On Mon, 5 Dec 2011, Dave Martin wrote: >>>> On Sat, Dec 03, 2011 at 10:12:53AM +1100, Benjamin Herrenschmidt wrote: >>>>> On Fri, 2011-12-02 at 11:28 -0800, Linus Torvalds wrote: >>>>>> Don't *change* NO_IRQ to zero (that whole #define is broken - leave it >>>>>> around as a marker of brokenness), just start removing it from all the >>>>>> ARM drivers that use the OF infrastructure. Which is presumably not >>>>>> all that many yet. >>>>>> >>>>>> So whenever you find breakage, the fix now is to just remove NO_IRQ >>>>>> tests, and replace them with "!irq". >>>>> >>>> >>>> Russell, do you know whether it would make sense to set a timeline for >>>> removing NO_IRQ from ARM platforms and migrating to 0 for the no-interrupt >>>> case? I'm assuming that this mainly involves migrating existing hard-wired >>>> code that deals with interrupt numbers to use irq domains. >>> >>> How many drivers do use IRQ #0 to start with? We might discover that in >>> practice there is only a very few cases where this is an issue if 0 >>> would mean no IRQ. >> >> The total number of files referring to NO_IRQ is not that huge: >> >> arch/arm/ 188 matches in 39 files >> drivers/ 174 matches in 84 files >> >> Unfortunately, NO_IRQ is often not spelled "NO_IRQ". It looks like the assumption >> "irq < 0 === no irq" may be quite a lot more widespread than "NO_IRQ === no irq". >> Since there's no specific thing we can grep for (and simply due to volume) >> finding all such instances may be quite a bit harder. > [...] > > ARgh. > > My point was about current actual usage of the IRQ numbered 0 which > probably prompted the introduction of NO_IRQ in the first place. What I > was saying is that the number of occurrences where IRQ #0 is currently > used into drivers that would get confused if 0 would mean no IRQ is > probably quite small. > > But as you illustrated, there is a large number of drivers that already > assume no IRQ is < 0, even if they don't use any IRQ #0 themselves. > That is a much bigger problem to fix. > At least for DT enabled platforms, we could force "no irq" to be 0 in the DT irq code. Searching the dts files, I found 2 occurrences of IRQ0. Prima2 has timer on IRQ0, and VersatileAB has watchdog on IRQ0. Prima2 should be fine currently as it doesn't use the of_irq_* functions to get the timer irq, but that is an issue as it skips any translation. VersatileAB should be okay with the VIC irqdomain support. Changing it would also affect microblaze and openrisc which have NO_IRQ set to -1. From what I can tell, they would both be fine at least in terms of not using IRQ0. Also, there's roughly 50 irq_chips that need irq_domain support under arch/arm. So that's not a simple solution either. Rob ^ permalink raw reply [flat|nested] 63+ messages in thread
* Re: [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver 2011-12-05 19:16 ` Rob Herring @ 2011-12-05 20:21 ` Anton Vorontsov 2011-12-05 20:47 ` Rob Herring 0 siblings, 1 reply; 63+ messages in thread From: Anton Vorontsov @ 2011-12-05 20:21 UTC (permalink / raw) To: Rob Herring Cc: Nicolas Pitre, Dave Martin, Stephen Rothwell, Russell King - ARM Linux, Pawel Moll, devicetree-discuss, LKML, Jeff Garzik, linux-ide, Randy Dunlap, linux-next, linux-arm-kernel, Andrew Morton, Linus Torvalds, Ingo Molnar, Alan Cox, Jonas Bonn, Michal Simek, Grant Likely On Mon, Dec 05, 2011 at 01:16:39PM -0600, Rob Herring wrote: [...] > At least for DT enabled platforms, we could force "no irq" to be 0 in > the DT irq code. Searching the dts files, I found 2 occurrences of IRQ0. Please note that there are HW IRQ numbers and "Virtual" IRQ numbers. dev->irq and thus the thing that we pass into request_irq() is a virtual IRQ thing, a "cookie". While in device tree you see real HW IRQ numbers. Legal VIRQ is always > 0, while HW IRQ could be >= 0. > Prima2 has timer on IRQ0, and VersatileAB has watchdog on IRQ0. Prima2 > should be fine currently as it doesn't use the of_irq_* functions to get > the timer irq, but that is an issue as it skips any translation. > VersatileAB should be okay with the VIC irqdomain support. It shouldn't be an issue to use of_irq_*() functions for these IRQs. of_irq_*() will remap HW IRQ 0 to some other VIRQ. If it does not do this currently, then it's a bug and should be fixed. Thanks, -- Anton Vorontsov Email: cbouatmailru@gmail.com ^ permalink raw reply [flat|nested] 63+ messages in thread
* Re: [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver 2011-12-05 20:21 ` Anton Vorontsov @ 2011-12-05 20:47 ` Rob Herring [not found] ` <4EDD2DE1.1050606-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 2011-12-06 9:30 ` Dave Martin 0 siblings, 2 replies; 63+ messages in thread From: Rob Herring @ 2011-12-05 20:47 UTC (permalink / raw) To: Anton Vorontsov Cc: Nicolas Pitre, Dave Martin, Stephen Rothwell, Russell King - ARM Linux, Pawel Moll, devicetree-discuss, LKML, Jeff Garzik, linux-ide, Randy Dunlap, linux-next, linux-arm-kernel, Andrew Morton, Linus Torvalds, Ingo Molnar, Alan Cox, Jonas Bonn, Michal Simek, Grant Likely On 12/05/2011 02:21 PM, Anton Vorontsov wrote: > On Mon, Dec 05, 2011 at 01:16:39PM -0600, Rob Herring wrote: > [...] >> At least for DT enabled platforms, we could force "no irq" to be 0 in >> the DT irq code. Searching the dts files, I found 2 occurrences of IRQ0. > > Please note that there are HW IRQ numbers and "Virtual" IRQ numbers. > dev->irq and thus the thing that we pass into request_irq() is a > virtual IRQ thing, a "cookie". > > While in device tree you see real HW IRQ numbers. > > Legal VIRQ is always > 0, while HW IRQ could be >= 0. > If this was all true, then there would be no discussion. This is what we are working towards, but irq_chips all over the arm tree do not support any translation or have base fixed at compile time. Only a few have been converted. And some ARM platforms may never get converted to DT. >> Prima2 has timer on IRQ0, and VersatileAB has watchdog on IRQ0. Prima2 >> should be fine currently as it doesn't use the of_irq_* functions to get >> the timer irq, but that is an issue as it skips any translation. >> VersatileAB should be okay with the VIC irqdomain support. > > It shouldn't be an issue to use of_irq_*() functions for these IRQs. > of_irq_*() will remap HW IRQ 0 to some other VIRQ. If it does not do > this currently, then it's a bug and should be fixed. I think that's what I'm saying. It's either a bug or incomplete DT conversion for the platform. Either way, those should get fixed first. Rob ^ permalink raw reply [flat|nested] 63+ messages in thread
[parent not found: <4EDD2DE1.1050606-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>]
* Re: [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver [not found] ` <4EDD2DE1.1050606-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> @ 2011-12-05 20:53 ` Alan Cox 0 siblings, 0 replies; 63+ messages in thread From: Alan Cox @ 2011-12-05 20:53 UTC (permalink / raw) To: Rob Herring Cc: Nicolas Pitre, Stephen Rothwell, Russell King - ARM Linux, Pawel Moll, devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ, Ingo Molnar, LKML, linux-ide-u79uwXL29TY76Z2rM5mHXA, Randy Dunlap, linux-next-u79uwXL29TY76Z2rM5mHXA, Anton Vorontsov, Andrew Morton, Linus Torvalds, Jeff Garzik, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r On Mon, 05 Dec 2011 14:47:29 -0600 Rob Herring <robherring2-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > On 12/05/2011 02:21 PM, Anton Vorontsov wrote: > > On Mon, Dec 05, 2011 at 01:16:39PM -0600, Rob Herring wrote: > > [...] > >> At least for DT enabled platforms, we could force "no irq" to be 0 in > >> the DT irq code. Searching the dts files, I found 2 occurrences of IRQ0. > > > > Please note that there are HW IRQ numbers and "Virtual" IRQ numbers. > > dev->irq and thus the thing that we pass into request_irq() is a > > virtual IRQ thing, a "cookie". > > > > While in device tree you see real HW IRQ numbers. > > > > Legal VIRQ is always > 0, while HW IRQ could be >= 0. > > > > If this was all true, then there would be no discussion. Or more to the point. If the ARM people concerned had listened in 2005, 2006 or 2008 there would be no discussion. > This is what we are working towards, but irq_chips all over the arm tree > do not support any translation or have base fixed at compile time. Only > a few have been converted. And some ARM platforms may never get > converted to DT. You've had six years. Let them break, it'll motivate any users to fix them. Alan ^ permalink raw reply [flat|nested] 63+ messages in thread
* Re: [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver 2011-12-05 20:47 ` Rob Herring [not found] ` <4EDD2DE1.1050606-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> @ 2011-12-06 9:30 ` Dave Martin [not found] ` <20111206093000.GA2274-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> 1 sibling, 1 reply; 63+ messages in thread From: Dave Martin @ 2011-12-06 9:30 UTC (permalink / raw) To: Rob Herring Cc: Anton Vorontsov, Nicolas Pitre, Stephen Rothwell, Russell King - ARM Linux, Pawel Moll, devicetree-discuss, LKML, Jeff Garzik, linux-ide, Randy Dunlap, linux-next, linux-arm-kernel, Andrew Morton, Linus Torvalds, Ingo Molnar, Alan Cox, Jonas Bonn, Michal Simek, Grant Likely On Mon, Dec 05, 2011 at 02:47:29PM -0600, Rob Herring wrote: > On 12/05/2011 02:21 PM, Anton Vorontsov wrote: > > On Mon, Dec 05, 2011 at 01:16:39PM -0600, Rob Herring wrote: > > [...] > >> At least for DT enabled platforms, we could force "no irq" to be 0 in > >> the DT irq code. Searching the dts files, I found 2 occurrences of IRQ0. > > > > Please note that there are HW IRQ numbers and "Virtual" IRQ numbers. > > dev->irq and thus the thing that we pass into request_irq() is a > > virtual IRQ thing, a "cookie". > > > > While in device tree you see real HW IRQ numbers. > > > > Legal VIRQ is always > 0, while HW IRQ could be >= 0. > > > > If this was all true, then there would be no discussion. > > This is what we are working towards, but irq_chips all over the arm tree > do not support any translation or have base fixed at compile time. Only > a few have been converted. And some ARM platforms may never get > converted to DT. > > >> Prima2 has timer on IRQ0, and VersatileAB has watchdog on IRQ0. Prima2 > >> should be fine currently as it doesn't use the of_irq_* functions to get > >> the timer irq, but that is an issue as it skips any translation. > >> VersatileAB should be okay with the VIC irqdomain support. > > > > It shouldn't be an issue to use of_irq_*() functions for these IRQs. > > of_irq_*() will remap HW IRQ 0 to some other VIRQ. If it does not do > > this currently, then it's a bug and should be fixed. > > I think that's what I'm saying. It's either a bug or incomplete DT > conversion for the platform. Either way, those should get fixed first. Do we expect there to be any platform drivers which are shared between legacy platforms and newer DT-ised platforms? Those drivers would be pain points since they would need to understand both conventions. So far as I can see, only boards which are not DT-ised, which do not use DT-ised drivers and which do not use drivers which use interrupts and are either used by DT-ised boards or by arches with a non-zero NO_IRQ could safely carry on using a non-zero NO_IRQ. Tracking down exactly which boards and drivers this applies to could be hard. We could have a CONFIG_NO_IRQ and make them depend on it, but we still have to find that list of boards and drivers in the first place. Otherwise, it feels like we might need a strategy for migrating pretty much everything if we don't want to end up in a mess. Cheers ---Dave ^ permalink raw reply [flat|nested] 63+ messages in thread
[parent not found: <20111206093000.GA2274-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>]
* Re: [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver [not found] ` <20111206093000.GA2274-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> @ 2011-12-06 10:34 ` Alan Cox 2011-12-06 10:55 ` Russell King - ARM Linux 1 sibling, 0 replies; 63+ messages in thread From: Alan Cox @ 2011-12-06 10:34 UTC (permalink / raw) To: Dave Martin Cc: Nicolas Pitre, Stephen Rothwell, Russell King - ARM Linux, Pawel Moll, devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ, Ingo Molnar, LKML, linux-ide-u79uwXL29TY76Z2rM5mHXA, Randy Dunlap, linux-next-u79uwXL29TY76Z2rM5mHXA, Anton Vorontsov, Andrew Morton, Linus Torvalds, Jeff Garzik, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r > Otherwise, it feels like we might need a strategy for migrating pretty > much everything if we don't want to end up in a mess. You really do anyway - lots of generic driver code knows !dev->irq is a valid test. That covers things like 8250 based UART hardware, network phy layer code and vast amounts more. The bugs will already be there because ARM isn't using 0, they just aren't getting seen or aren't getting hit. Alan ^ permalink raw reply [flat|nested] 63+ messages in thread
* Re: [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver [not found] ` <20111206093000.GA2274-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> 2011-12-06 10:34 ` Alan Cox @ 2011-12-06 10:55 ` Russell King - ARM Linux 1 sibling, 0 replies; 63+ messages in thread From: Russell King - ARM Linux @ 2011-12-06 10:55 UTC (permalink / raw) To: Dave Martin Cc: Nicolas Pitre, Stephen Rothwell, Pawel Moll, devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ, Ingo Molnar, LKML, linux-ide-u79uwXL29TY76Z2rM5mHXA, Randy Dunlap, linux-next-u79uwXL29TY76Z2rM5mHXA, Alan Cox, Anton Vorontsov, Andrew Morton, Linus Torvalds, Jeff Garzik, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r On Tue, Dec 06, 2011 at 09:30:00AM +0000, Dave Martin wrote: > Do we expect there to be any platform drivers which are shared between > legacy platforms and newer DT-ised platforms? > > Those drivers would be pain points since they would need to understand > both conventions. > > So far as I can see, only boards which are not DT-ised, which do not use > DT-ised drivers and which do not use drivers which use interrupts and > are either used by DT-ised boards or by arches with a non-zero NO_IRQ > could safely carry on using a non-zero NO_IRQ. Tracking down exactly > which boards and drivers this applies to could be hard. We could have a > CONFIG_NO_IRQ and make them depend on it, but we still have to find that > list of boards and drivers in the first place. You're digging too deeply into this. Drivers which need to know whether an IRQ is valid need to know this if they wish to do something different for 'this device doesn't have an IRQ wired'. These are the drivers which have problems because of the -1 vs 0 thing. That is different from 'this is an invalid IRQ number', which is what you find out when you call request_irq(). So please, stop thinking 'we need to convert drivers to check for <= 0'. We don't. We just need to make sure that we're not passing a zero IRQ number to any driver. On platforms where IRQ0 is special like x86, request_irq() will fail with -EBUSY on drivers which don't care (or other kind of refusal to initialize), and will cause 'polling mode' with the 8250 driver. So, all that we need to do is to ensure that all the IRQ chip stuff is fixed up so that IRQ0 is only used for the same purpose as x86 - the PIC timer on systems with an ISA 8253 timer. Everything else should not pass IRQ0 outside core platform code. ^ permalink raw reply [flat|nested] 63+ messages in thread
* Re: [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver 2011-12-05 18:18 ` Nicolas Pitre [not found] ` <alpine.LFD.2.02.1112051310150.2357-QuJgVwGFrdf/9pzu0YdTqQ@public.gmane.org> @ 2011-12-05 19:26 ` Dave Martin 2011-12-05 19:49 ` Nicolas Pitre 1 sibling, 1 reply; 63+ messages in thread From: Dave Martin @ 2011-12-05 19:26 UTC (permalink / raw) To: Nicolas Pitre Cc: Russell King - ARM Linux, Benjamin Herrenschmidt, Linus Torvalds, Anton Vorontsov, Alan Cox, Stephen Rothwell, Andrew Morton, devicetree-discuss, LKML, linux-ide, Randy Dunlap, linux-next, Ingo Molnar, Jeff Garzik, Pawel Moll, linux-arm-kernel On Mon, Dec 05, 2011 at 01:18:30PM -0500, Nicolas Pitre wrote: > On Mon, 5 Dec 2011, Dave Martin wrote: > > > On Mon, Dec 05, 2011 at 12:40:16PM -0500, Nicolas Pitre wrote: > > > On Mon, 5 Dec 2011, Dave Martin wrote: > > > > On Sat, Dec 03, 2011 at 10:12:53AM +1100, Benjamin Herrenschmidt wrote: > > > > > On Fri, 2011-12-02 at 11:28 -0800, Linus Torvalds wrote: > > > > > > Don't *change* NO_IRQ to zero (that whole #define is broken - leave it > > > > > > around as a marker of brokenness), just start removing it from all the > > > > > > ARM drivers that use the OF infrastructure. Which is presumably not > > > > > > all that many yet. > > > > > > > > > > > > So whenever you find breakage, the fix now is to just remove NO_IRQ > > > > > > tests, and replace them with "!irq". > > > > > > > > > > > > > Russell, do you know whether it would make sense to set a timeline for > > > > removing NO_IRQ from ARM platforms and migrating to 0 for the no-interrupt > > > > case? I'm assuming that this mainly involves migrating existing hard-wired > > > > code that deals with interrupt numbers to use irq domains. > > > > > > How many drivers do use IRQ #0 to start with? We might discover that in > > > practice there is only a very few cases where this is an issue if 0 > > > would mean no IRQ. > > > > The total number of files referring to NO_IRQ is not that huge: > > > > arch/arm/ 188 matches in 39 files > > drivers/ 174 matches in 84 files > > > > Unfortunately, NO_IRQ is often not spelled "NO_IRQ". It looks like the assumption > > "irq < 0 === no irq" may be quite a lot more widespread than "NO_IRQ === no irq". > > Since there's no specific thing we can grep for (and simply due to volume) > > finding all such instances may be quite a bit harder. > [...] > > ARgh. > > My point was about current actual usage of the IRQ numbered 0 which > probably prompted the introduction of NO_IRQ in the first place. What I > was saying is that the number of occurrences where IRQ #0 is currently > used into drivers that would get confused if 0 would mean no IRQ is > probably quite small. Ah, I misunderstood -- that's a separate issue, but also an important one. I guess this applies to a fair number of older boards. One way of fixing this would be to migrate those boards to use irq domains -- but those boards may be sporadically maintained. > But as you illustrated, there is a large number of drivers that already > assume no IRQ is < 0, even if they don't use any IRQ #0 themselves. > That is a much bigger problem to fix. My concern is that as soon as we start to change this in significant volume, a _lot_ of stuff is going to break. Everywhere that an irq value is passed from one piece of code to another, there is a potential interface mismatch -- there seems to be no single place where we can apply a conversion and fix everything. Cheers ---Dave ^ permalink raw reply [flat|nested] 63+ messages in thread
* Re: [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver 2011-12-05 19:26 ` Dave Martin @ 2011-12-05 19:49 ` Nicolas Pitre 2011-12-06 9:37 ` Dave Martin 0 siblings, 1 reply; 63+ messages in thread From: Nicolas Pitre @ 2011-12-05 19:49 UTC (permalink / raw) To: Dave Martin Cc: Russell King - ARM Linux, Benjamin Herrenschmidt, Linus Torvalds, Anton Vorontsov, Alan Cox, Stephen Rothwell, Andrew Morton, devicetree-discuss, LKML, linux-ide, Randy Dunlap, linux-next, Ingo Molnar, Jeff Garzik, Pawel Moll, linux-arm-kernel On Mon, 5 Dec 2011, Dave Martin wrote: > On Mon, Dec 05, 2011 at 01:18:30PM -0500, Nicolas Pitre wrote: > > On Mon, 5 Dec 2011, Dave Martin wrote: > > > > > On Mon, Dec 05, 2011 at 12:40:16PM -0500, Nicolas Pitre wrote: > > > > On Mon, 5 Dec 2011, Dave Martin wrote: > > > > > On Sat, Dec 03, 2011 at 10:12:53AM +1100, Benjamin Herrenschmidt wrote: > > > > > > On Fri, 2011-12-02 at 11:28 -0800, Linus Torvalds wrote: > > > > > > > Don't *change* NO_IRQ to zero (that whole #define is broken - leave it > > > > > > > around as a marker of brokenness), just start removing it from all the > > > > > > > ARM drivers that use the OF infrastructure. Which is presumably not > > > > > > > all that many yet. > > > > > > > > > > > > > > So whenever you find breakage, the fix now is to just remove NO_IRQ > > > > > > > tests, and replace them with "!irq". > > > > > > > > > > > > > > > > Russell, do you know whether it would make sense to set a timeline for > > > > > removing NO_IRQ from ARM platforms and migrating to 0 for the no-interrupt > > > > > case? I'm assuming that this mainly involves migrating existing hard-wired > > > > > code that deals with interrupt numbers to use irq domains. > > > > > > > > How many drivers do use IRQ #0 to start with? We might discover that in > > > > practice there is only a very few cases where this is an issue if 0 > > > > would mean no IRQ. > > > > > > The total number of files referring to NO_IRQ is not that huge: > > > > > > arch/arm/ 188 matches in 39 files > > > drivers/ 174 matches in 84 files > > > > > > Unfortunately, NO_IRQ is often not spelled "NO_IRQ". It looks like the assumption > > > "irq < 0 === no irq" may be quite a lot more widespread than "NO_IRQ === no irq". > > > Since there's no specific thing we can grep for (and simply due to volume) > > > finding all such instances may be quite a bit harder. > > [...] > > > > ARgh. > > > > My point was about current actual usage of the IRQ numbered 0 which > > probably prompted the introduction of NO_IRQ in the first place. What I > > was saying is that the number of occurrences where IRQ #0 is currently > > used into drivers that would get confused if 0 would mean no IRQ is > > probably quite small. > > Ah, I misunderstood -- that's a separate issue, but also an important one. > I guess this applies to a fair number of older boards. One way of fixing > this would be to migrate those boards to use irq domains -- but those boards > may be sporadically maintained. > > > But as you illustrated, there is a large number of drivers that already > > assume no IRQ is < 0, even if they don't use any IRQ #0 themselves. > > That is a much bigger problem to fix. > > My concern is that as soon as we start to change this in significant > volume, a _lot_ of stuff is going to break. Everywhere that an irq value > is passed from one piece of code to another, there is a potential > interface mismatch -- there seems to be no single place where we can > apply a conversion and fix everything. No need to convert everything. First move is to make irq=0 meaning no IRQ. That means making things like: if (irq < 0) if (irq >= 0) into if (irq <= 0) if (irq > 0) And replace NO_IRQ with 0. That change shouldn't break anything, except those drivers which are 1) being passed an actual IRQ #0 and 2) testing for no IRQ. I suspect that those conditions aren't very common together. Nicolas ^ permalink raw reply [flat|nested] 63+ messages in thread
* Re: [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver 2011-12-05 19:49 ` Nicolas Pitre @ 2011-12-06 9:37 ` Dave Martin [not found] ` <20111206093709.GB2274-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> 2011-12-06 19:11 ` Nicolas Pitre 0 siblings, 2 replies; 63+ messages in thread From: Dave Martin @ 2011-12-06 9:37 UTC (permalink / raw) To: Nicolas Pitre Cc: Russell King - ARM Linux, Benjamin Herrenschmidt, Linus Torvalds, Anton Vorontsov, Alan Cox, Stephen Rothwell, Andrew Morton, devicetree-discuss, LKML, linux-ide, Randy Dunlap, linux-next, Ingo Molnar, Jeff Garzik, Pawel Moll, linux-arm-kernel On Mon, Dec 05, 2011 at 02:49:01PM -0500, Nicolas Pitre wrote: [...] > > > > Unfortunately, NO_IRQ is often not spelled "NO_IRQ". It looks like the assumption > > > > "irq < 0 === no irq" may be quite a lot more widespread than "NO_IRQ === no irq". > > > > Since there's no specific thing we can grep for (and simply due to volume) > > > > finding all such instances may be quite a bit harder. > > > [...] > > > > > > ARgh. > > > > > > My point was about current actual usage of the IRQ numbered 0 which > > > probably prompted the introduction of NO_IRQ in the first place. What I > > > was saying is that the number of occurrences where IRQ #0 is currently > > > used into drivers that would get confused if 0 would mean no IRQ is > > > probably quite small. > > > > Ah, I misunderstood -- that's a separate issue, but also an important one. > > I guess this applies to a fair number of older boards. One way of fixing > > this would be to migrate those boards to use irq domains -- but those boards > > may be sporadically maintained. > > > > > But as you illustrated, there is a large number of drivers that already > > > assume no IRQ is < 0, even if they don't use any IRQ #0 themselves. > > > That is a much bigger problem to fix. > > > > My concern is that as soon as we start to change this in significant > > volume, a _lot_ of stuff is going to break. Everywhere that an irq value > > is passed from one piece of code to another, there is a potential > > interface mismatch -- there seems to be no single place where we can > > apply a conversion and fix everything. > > No need to convert everything. > > First move is to make irq=0 meaning no IRQ. That means making things > like: > > if (irq < 0) > if (irq >= 0) > > into > > if (irq <= 0) > if (irq > 0) > > And replace NO_IRQ with 0. > > That change shouldn't break anything, except those drivers which are 1) > being passed an actual IRQ #0 and 2) testing for no IRQ. I suspect that > those conditions aren't very common together. To clarify, you're suggesting that the meanings of all other IRQ values would not change initially? (i.e., we remap HW irq 0, if there is one, to some other random number but have a 1:1 mapping for everything else). That could make sense as an approach. Cheers ---Dave ^ permalink raw reply [flat|nested] 63+ messages in thread
[parent not found: <20111206093709.GB2274-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>]
* Re: [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver [not found] ` <20111206093709.GB2274-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> @ 2011-12-06 10:46 ` Russell King - ARM Linux 2011-12-06 11:00 ` Geert Uytterhoeven ` (3 more replies) 0 siblings, 4 replies; 63+ messages in thread From: Russell King - ARM Linux @ 2011-12-06 10:46 UTC (permalink / raw) To: Dave Martin Cc: Nicolas Pitre, Stephen Rothwell, Pawel Moll, devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ, LKML, Jeff Garzik, linux-ide-u79uwXL29TY76Z2rM5mHXA, Randy Dunlap, linux-next-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Anton Vorontsov, Andrew Morton, Linus Torvalds, Ingo Molnar, Alan Cox On Tue, Dec 06, 2011 at 09:37:09AM +0000, Dave Martin wrote: > To clarify, you're suggesting that the meanings of all other IRQ values > would not change initially? (i.e., we remap HW irq 0, if there is one, > to some other random number but have a 1:1 mapping for everything else). Even better. Avoid the first 16 IRQ numbers altogether - so that ISA drivers which have these numbers hard-encoded in them will see failures if they're expecting standard ISA IRQ numbering. We already do that with the GIC, partly because of the hardware design. We do that on Footbridge based systems, because they may or may not have a real ISA IRQ controller. But.. let's make one thing clear: Alan Cox and Linus have been going on about how IRQ0 should not be used. Let's be crystal clear: even x86 uses IRQ0. It happens to be the PIC timer, and that gets claimed early on during the x86 boot. So please don't tell me that x86 avoids IRQ0. It doesn't. It just happens that x86 never shows IRQ0 to anything but the i8253 PIC driver. So lets see how x86 squeels if we make the i8253 PIC driver reject IRQ0. I bet that there'd be absolute fury at such a suggestion. When x86 sorts this out, there _might_ be some more motivation to take such comments seriously. Until then it's more like a joke. ^ permalink raw reply [flat|nested] 63+ messages in thread
* Re: [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver 2011-12-06 10:46 ` Russell King - ARM Linux @ 2011-12-06 11:00 ` Geert Uytterhoeven 2011-12-06 11:03 ` Russell King - ARM Linux 2011-12-06 11:10 ` Alan Cox 2011-12-06 11:05 ` Alan Cox ` (2 subsequent siblings) 3 siblings, 2 replies; 63+ messages in thread From: Geert Uytterhoeven @ 2011-12-06 11:00 UTC (permalink / raw) To: Russell King - ARM Linux Cc: Dave Martin, Nicolas Pitre, Benjamin Herrenschmidt, Linus Torvalds, Anton Vorontsov, Alan Cox, Stephen Rothwell, Andrew Morton, devicetree-discuss, LKML, linux-ide, Randy Dunlap, linux-next, Ingo Molnar, Jeff Garzik, Pawel Moll, linux-arm-kernel On Tue, Dec 6, 2011 at 11:46, Russell King - ARM Linux <linux@arm.linux.org.uk> wrote: > But.. let's make one thing clear: Alan Cox and Linus have been going on > about how IRQ0 should not be used. Let's be crystal clear: even x86 > uses IRQ0. It happens to be the PIC timer, and that gets claimed early > on during the x86 boot. So please don't tell me that x86 avoids IRQ0. > It doesn't. It just happens that x86 never shows IRQ0 to anything but > the i8253 PIC driver. It's shown in /proc/interrupts due to a "bug" in show_interrupts(). The (gmail damaged) patch below fixes this bug. From 46f51a2d42548358868a34df00c2a4e47bbdf691 Mon Sep 17 00:00:00 2001 From: Geert Uytterhoeven <Geert.Uytterhoeven@eu.sony.com> Date: Tue, 6 Dec 2011 11:55:05 +0100 Subject: [PATCH] /proc/interrupts: irq zero is invalid As zero is an invalid irq number, show_interrupts() should not try to print it. Just return after printing the header for i == 0. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> --- kernel/irq/proc.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/kernel/irq/proc.c b/kernel/irq/proc.c index 4bd4faa..5b8bbf0 100644 --- a/kernel/irq/proc.c +++ b/kernel/irq/proc.c @@ -439,6 +439,7 @@ int show_interrupts(struct seq_file *p, void *v) for_each_online_cpu(j) seq_printf(p, "CPU%-8d", j); seq_putc(p, '\n'); + return 0; } desc = irq_to_desc(i); -- 1.7.0.4 Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds ^ permalink raw reply related [flat|nested] 63+ messages in thread
* Re: [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver 2011-12-06 11:00 ` Geert Uytterhoeven @ 2011-12-06 11:03 ` Russell King - ARM Linux 2011-12-06 11:10 ` Alan Cox 1 sibling, 0 replies; 63+ messages in thread From: Russell King - ARM Linux @ 2011-12-06 11:03 UTC (permalink / raw) To: Geert Uytterhoeven Cc: Dave Martin, Nicolas Pitre, Benjamin Herrenschmidt, Linus Torvalds, Anton Vorontsov, Alan Cox, Stephen Rothwell, Andrew Morton, devicetree-discuss, LKML, linux-ide, Randy Dunlap, linux-next, Ingo Molnar, Jeff Garzik, Pawel Moll, linux-arm-kernel On Tue, Dec 06, 2011 at 12:00:12PM +0100, Geert Uytterhoeven wrote: > On Tue, Dec 6, 2011 at 11:46, Russell King - ARM Linux > <linux@arm.linux.org.uk> wrote: > > But.. let's make one thing clear: Alan Cox and Linus have been going on > > about how IRQ0 should not be used. Let's be crystal clear: even x86 > > uses IRQ0. It happens to be the PIC timer, and that gets claimed early > > on during the x86 boot. So please don't tell me that x86 avoids IRQ0. > > It doesn't. It just happens that x86 never shows IRQ0 to anything but > > the i8253 PIC driver. > > It's shown in /proc/interrupts due to a "bug" in show_interrupts(). > The (gmail damaged) patch below fixes this bug. So we now try to hide the fact that there _is_ an interrupt called 0 on x86 systems? Sorry, I can't that that seriously in any way. ^ permalink raw reply [flat|nested] 63+ messages in thread
* Re: [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver 2011-12-06 11:00 ` Geert Uytterhoeven 2011-12-06 11:03 ` Russell King - ARM Linux @ 2011-12-06 11:10 ` Alan Cox 1 sibling, 0 replies; 63+ messages in thread From: Alan Cox @ 2011-12-06 11:10 UTC (permalink / raw) To: Geert Uytterhoeven Cc: Russell King - ARM Linux, Dave Martin, Nicolas Pitre, Benjamin Herrenschmidt, Linus Torvalds, Anton Vorontsov, Stephen Rothwell, Andrew Morton, devicetree-discuss, LKML, linux-ide, Randy Dunlap, linux-next, Ingo Molnar, Jeff Garzik, Pawel Moll, linux-arm-kernel > It's shown in /proc/interrupts due to a "bug" in show_interrupts(). > The (gmail damaged) patch below fixes this bug. We get API breakage then. Which is a pain of course because debug tools and the like which think IRQ 0 is "timer ticks" are somewhat broken. ^ permalink raw reply [flat|nested] 63+ messages in thread
* Re: [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver 2011-12-06 10:46 ` Russell King - ARM Linux 2011-12-06 11:00 ` Geert Uytterhoeven @ 2011-12-06 11:05 ` Alan Cox [not found] ` <20111206110554.53bddd14-qBU/x9rampVanCEyBjwyrvXRex20P6io@public.gmane.org> 2011-12-06 11:37 ` Dave Martin 2011-12-06 19:20 ` Linus Torvalds 3 siblings, 1 reply; 63+ messages in thread From: Alan Cox @ 2011-12-06 11:05 UTC (permalink / raw) To: Russell King - ARM Linux Cc: Dave Martin, Nicolas Pitre, Benjamin Herrenschmidt, Linus Torvalds, Anton Vorontsov, Stephen Rothwell, Andrew Morton, devicetree-discuss, LKML, linux-ide, Randy Dunlap, linux-next, Ingo Molnar, Jeff Garzik, Pawel Moll, linux-arm-kernel > Even better. Avoid the first 16 IRQ numbers altogether - so that ISA > drivers which have these numbers hard-encoded in them will see failures > if they're expecting standard ISA IRQ numbering. The ISA bus space is non-discoverable so that doesn't make any sense. > But.. let's make one thing clear: Alan Cox and Linus have been going on > about how IRQ0 should not be used. Let's be crystal clear: even x86 > uses IRQ0. It happens to be the PIC timer, and that gets claimed early > on during the x86 boot. So please don't tell me that x86 avoids IRQ0. > It doesn't. It just happens that x86 never shows IRQ0 to anything but > the i8253 PIC driver. x86 has an internal invisible IRQ 0 on some platforms. It's never exposed beyond the arch code. > So lets see how x86 squeels if we make the i8253 PIC driver reject IRQ0. > I bet that there'd be absolute fury at such a suggestion. Actually it would be about ten minutes work to remap it to some other number that isn't used. It never goes via request_irq or via any core or driver layer code however. In the ARM case the same is going to be true. If you have IRQ 0 plumbing that only goes internally in the arch/arm code - eg an ARM with IRQ 0 wired to something totally arch specific and non-driver then it's not going to break and like the internals of x86 doesn't matter. > When x86 sorts this out, there _might_ be some more motivation to take > such comments seriously. Until then it's more like a joke. Pity you feel that way, but if ARM wants to continue to break more and more as we clean up NO_IRQ for everything else that's your privilege, but don't expect any sympathy. Alan ^ permalink raw reply [flat|nested] 63+ messages in thread
[parent not found: <20111206110554.53bddd14-qBU/x9rampVanCEyBjwyrvXRex20P6io@public.gmane.org>]
* Re: [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver [not found] ` <20111206110554.53bddd14-qBU/x9rampVanCEyBjwyrvXRex20P6io@public.gmane.org> @ 2011-12-06 11:25 ` Russell King - ARM Linux 2011-12-06 12:11 ` Alan Cox 0 siblings, 1 reply; 63+ messages in thread From: Russell King - ARM Linux @ 2011-12-06 11:25 UTC (permalink / raw) To: Alan Cox Cc: Nicolas Pitre, Stephen Rothwell, Pawel Moll, devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ, LKML, Jeff Garzik, linux-ide-u79uwXL29TY76Z2rM5mHXA, Randy Dunlap, linux-next-u79uwXL29TY76Z2rM5mHXA, Anton Vorontsov, Andrew Morton, Linus Torvalds, Ingo Molnar, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r On Tue, Dec 06, 2011 at 11:05:54AM +0000, Alan Cox wrote: > > Even better. Avoid the first 16 IRQ numbers altogether - so that ISA > > drivers which have these numbers hard-encoded in them will see failures > > if they're expecting standard ISA IRQ numbering. > > The ISA bus space is non-discoverable so that doesn't make any sense. > > > But.. let's make one thing clear: Alan Cox and Linus have been going on > > about how IRQ0 should not be used. Let's be crystal clear: even x86 > > uses IRQ0. It happens to be the PIC timer, and that gets claimed early > > on during the x86 boot. So please don't tell me that x86 avoids IRQ0. > > It doesn't. It just happens that x86 never shows IRQ0 to anything but > > the i8253 PIC driver. > > x86 has an internal invisible IRQ 0 on some platforms. It's never exposed > beyond the arch code. > > > So lets see how x86 squeels if we make the i8253 PIC driver reject IRQ0. > > I bet that there'd be absolute fury at such a suggestion. > > Actually it would be about ten minutes work to remap it to some other > number that isn't used. It never goes via request_irq or via any core or > driver layer code however. > > In the ARM case the same is going to be true. If you have IRQ 0 plumbing > that only goes internally in the arch/arm code - eg an ARM with IRQ 0 > wired to something totally arch specific and non-driver then it's not > going to break and like the internals of x86 doesn't matter. > > > When x86 sorts this out, there _might_ be some more motivation to take > > such comments seriously. Until then it's more like a joke. > > Pity you feel that way, but if ARM wants to continue to break more and > more as we clean up NO_IRQ for everything else that's your privilege, but > don't expect any sympathy. For the platforms I care about, it probably won't break. For those which do break, it's a matter of fixing their include/mach/irqs.h and the code in their irqchips to convert the IRQ number to the correct bitmask for the register. However, I have suggested in the past that new platforms _should_ avoid not just IRQ0 but IRQ0-15 (for a completely different reason to that of 'IRQ0 means no IRQ'.) But such comments just get ignored, so I just don't see the point in doing anything about this. If people experience breakage, so be it. I too will have little sympathy but not for the same reason. ^ permalink raw reply [flat|nested] 63+ messages in thread
* Re: [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver 2011-12-06 11:25 ` Russell King - ARM Linux @ 2011-12-06 12:11 ` Alan Cox 0 siblings, 0 replies; 63+ messages in thread From: Alan Cox @ 2011-12-06 12:11 UTC (permalink / raw) To: Russell King - ARM Linux Cc: Dave Martin, Nicolas Pitre, Benjamin Herrenschmidt, Linus Torvalds, Anton Vorontsov, Stephen Rothwell, Andrew Morton, devicetree-discuss, LKML, linux-ide, Randy Dunlap, linux-next, Ingo Molnar, Jeff Garzik, Pawel Moll, linux-arm-kernel > However, I have suggested in the past that new platforms _should_ avoid > not just IRQ0 but IRQ0-15 (for a completely different reason to that of > 'IRQ0 means no IRQ'.) But such comments just get ignored, so I just > don't see the point in doing anything about this. If people experience > breakage, so be it. I too will have little sympathy but not for the same > reason. The one I can think of that is capable of taking EISA/ISA cards but has differently IRQ plumbing arrangements is PA-RISC, and they do exactly this. Beyond that it probably doesn't come up except in the weird world of PCI legacy compatibility for legacy IDE and VGA vertical interrupt routing. In those cases we fix up the PCI config space so the platform in turn can do proper IRQ plumbing. Alan ^ permalink raw reply [flat|nested] 63+ messages in thread
* Re: [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver 2011-12-06 10:46 ` Russell King - ARM Linux 2011-12-06 11:00 ` Geert Uytterhoeven 2011-12-06 11:05 ` Alan Cox @ 2011-12-06 11:37 ` Dave Martin 2011-12-06 11:49 ` Russell King - ARM Linux 2011-12-06 19:20 ` Linus Torvalds 3 siblings, 1 reply; 63+ messages in thread From: Dave Martin @ 2011-12-06 11:37 UTC (permalink / raw) To: Russell King - ARM Linux Cc: Nicolas Pitre, Stephen Rothwell, Pawel Moll, Benjamin Herrenschmidt, devicetree-discuss, LKML, Jeff Garzik, linux-ide, Randy Dunlap, linux-next, linux-arm-kernel, Anton Vorontsov, Andrew Morton, Linus Torvalds, Ingo Molnar, Alan Cox On Tue, Dec 06, 2011 at 10:46:54AM +0000, Russell King - ARM Linux wrote: > On Tue, Dec 06, 2011 at 09:37:09AM +0000, Dave Martin wrote: > > To clarify, you're suggesting that the meanings of all other IRQ values > > would not change initially? (i.e., we remap HW irq 0, if there is one, > > to some other random number but have a 1:1 mapping for everything else). > > Even better. Avoid the first 16 IRQ numbers altogether - so that ISA > drivers which have these numbers hard-encoded in them will see failures > if they're expecting standard ISA IRQ numbering. > > We already do that with the GIC, partly because of the hardware design. > We do that on Footbridge based systems, because they may or may not have > a real ISA IRQ controller. > > But.. let's make one thing clear: Alan Cox and Linus have been going on > about how IRQ0 should not be used. Let's be crystal clear: even x86 > uses IRQ0. It happens to be the PIC timer, and that gets claimed early > on during the x86 boot. So please don't tell me that x86 avoids IRQ0. > It doesn't. It just happens that x86 never shows IRQ0 to anything but > the i8253 PIC driver. > > So lets see how x86 squeels if we make the i8253 PIC driver reject IRQ0. > I bet that there'd be absolute fury at such a suggestion. > > When x86 sorts this out, there _might_ be some more motivation to take > such comments seriously. Until then it's more like a joke. OK -- but the situation is breaking OF-based drivers on ARM platforms today. Based on what you've suggested, does the following policy sound reasonable for resolving that deadlock? 1) All OF code and drivers should be migrating to use 0 instead of NO_IRQ for the no-interrupt case. Code which receives irq numbers directly from the OF framework and refers to NO_IRQ, or expects 0 to be a valid needs to be fixed. 2) Where we hit a problem, board code needs to be adapted to remap HW IRQs 0-15 to different software values. (This could be done using irq domains, or not) I'm still not sure what the correct approach is for drivers which get irq numbers from OF indirectly -- this particularly applies to platform and AMBA devices. If we expect board code to start populating platform data based on information from the OF code, we need to fix the board not to use linux irq 0 to describe a real HW interrupt, if it matters (as in (2)). AMBA devices registered via of_platform_populate() already get their irq numbers from OF. So long as OF used to explicitly return NO_IRQ there was no problem -- but if OF is moving to return 0 instead, we have a potential problem for each AMBA driver which may be used by a board which can boot without DT... if we have any scenarios where that driver is given real irq 0. Maybe we can fix these breakages as they occur -- I don't really know the scale of the impact. What are your thoughts on this? Cheers ---Dave ^ permalink raw reply [flat|nested] 63+ messages in thread
* Re: [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver 2011-12-06 11:37 ` Dave Martin @ 2011-12-06 11:49 ` Russell King - ARM Linux 2011-12-06 13:25 ` Dave Martin 2011-12-06 19:56 ` Rob Herring 0 siblings, 2 replies; 63+ messages in thread From: Russell King - ARM Linux @ 2011-12-06 11:49 UTC (permalink / raw) To: Dave Martin Cc: Nicolas Pitre, Stephen Rothwell, Pawel Moll, Benjamin Herrenschmidt, devicetree-discuss, LKML, Jeff Garzik, linux-ide, Randy Dunlap, linux-next, linux-arm-kernel, Anton Vorontsov, Andrew Morton, Linus Torvalds, Ingo Molnar, Alan Cox On Tue, Dec 06, 2011 at 11:37:35AM +0000, Dave Martin wrote: > 1) All OF code and drivers should be migrating to use 0 instead of NO_IRQ > for the no-interrupt case. Code which receives irq numbers directly > from the OF framework and refers to NO_IRQ, or expects 0 to be a valid > needs to be fixed. > > 2) Where we hit a problem, board code needs to be adapted to remap HW IRQs > 0-15 to different software values. (This could be done using irq > domains, or not) No AMBA driver I'm aware of ever uses an IRQ number 0 or is passed such an IRQ number. ^ permalink raw reply [flat|nested] 63+ messages in thread
* Re: [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver 2011-12-06 11:49 ` Russell King - ARM Linux @ 2011-12-06 13:25 ` Dave Martin 2011-12-06 19:56 ` Rob Herring 1 sibling, 0 replies; 63+ messages in thread From: Dave Martin @ 2011-12-06 13:25 UTC (permalink / raw) To: Russell King - ARM Linux Cc: Nicolas Pitre, Stephen Rothwell, Pawel Moll, Benjamin Herrenschmidt, devicetree-discuss, LKML, Jeff Garzik, linux-ide, Randy Dunlap, linux-next, linux-arm-kernel, Anton Vorontsov, Andrew Morton, Linus Torvalds, Ingo Molnar, Alan Cox On Tue, Dec 06, 2011 at 11:49:52AM +0000, Russell King - ARM Linux wrote: > On Tue, Dec 06, 2011 at 11:37:35AM +0000, Dave Martin wrote: > > 1) All OF code and drivers should be migrating to use 0 instead of NO_IRQ > > for the no-interrupt case. Code which receives irq numbers directly > > from the OF framework and refers to NO_IRQ, or expects 0 to be a valid > > needs to be fixed. > > > > 2) Where we hit a problem, board code needs to be adapted to remap HW IRQs > > 0-15 to different software values. (This could be done using irq > > domains, or not) > > No AMBA driver I'm aware of ever uses an IRQ number 0 or is passed such > an IRQ number. OK, hopefully we can safely ignore that case, then. But other than that, you're in agreement? Cheers ---Dave ^ permalink raw reply [flat|nested] 63+ messages in thread
* Re: [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver 2011-12-06 11:49 ` Russell King - ARM Linux 2011-12-06 13:25 ` Dave Martin @ 2011-12-06 19:56 ` Rob Herring 1 sibling, 0 replies; 63+ messages in thread From: Rob Herring @ 2011-12-06 19:56 UTC (permalink / raw) To: Russell King - ARM Linux Cc: Dave Martin, Nicolas Pitre, Stephen Rothwell, Pawel Moll, Benjamin Herrenschmidt, devicetree-discuss, Ingo Molnar, LKML, linux-ide, Randy Dunlap, linux-next, Alan Cox, Anton Vorontsov, Andrew Morton, Linus Torvalds, Jeff Garzik, linux-arm-kernel On 12/06/2011 05:49 AM, Russell King - ARM Linux wrote: > On Tue, Dec 06, 2011 at 11:37:35AM +0000, Dave Martin wrote: >> 1) All OF code and drivers should be migrating to use 0 instead of NO_IRQ >> for the no-interrupt case. Code which receives irq numbers directly >> from the OF framework and refers to NO_IRQ, or expects 0 to be a valid >> needs to be fixed. >> >> 2) Where we hit a problem, board code needs to be adapted to remap HW IRQs >> 0-15 to different software values. (This could be done using irq >> domains, or not) > > No AMBA driver I'm aware of ever uses an IRQ number 0 or is passed such > an IRQ number. The watchdog on VersatileAB is on Linux IRQ0. This is easily fixed with VIC irqdomain patches which are queued up. Rob ^ permalink raw reply [flat|nested] 63+ messages in thread
* Re: [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver 2011-12-06 10:46 ` Russell King - ARM Linux ` (2 preceding siblings ...) 2011-12-06 11:37 ` Dave Martin @ 2011-12-06 19:20 ` Linus Torvalds 2011-12-06 20:00 ` Russell King - ARM Linux [not found] ` <CA+55aFwZBr+3_S9kU-+m8zN8iwOvn2miuuAy-zt7sUjW_+abBg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 3 siblings, 2 replies; 63+ messages in thread From: Linus Torvalds @ 2011-12-06 19:20 UTC (permalink / raw) To: Russell King - ARM Linux Cc: Dave Martin, Nicolas Pitre, Benjamin Herrenschmidt, Anton Vorontsov, Alan Cox, Stephen Rothwell, Andrew Morton, devicetree-discuss, LKML, linux-ide, Randy Dunlap, linux-next, Ingo Molnar, Jeff Garzik, Pawel Moll, linux-arm-kernel On Tue, Dec 6, 2011 at 2:46 AM, Russell King - ARM Linux <linux@arm.linux.org.uk> wrote: > > But.. let's make one thing clear: Alan Cox and Linus have been going on > about how IRQ0 should not be used. Let's be crystal clear: even x86 > uses IRQ0. Not for any device driver, though. It's used entirely internally, and it doesn't even use "request_irq()". It uses the magic internal "setup_irq()" and never *ever* exposes irq0 as anything that a driver can see. That's what matters. You can use irq0 in ARM land all you like, AS LONG AS IT'S SOME HIDDEN INTERNAL USE. No drivers. No *nothing* that ever uses that absolutely *idiotic* NO_IRQ crap. In fact, you may be *forced* to use what is "physically" irq0 - it's just that you should never expose it as such to drivers. And x86 doesn't. So Russell, if you think this has anything to do with NO_IRQ, and how x86 isn't doing things right, you're wrong. It's just like the internal exception thing, or the magical "cascade interrupt", or the "x87 exception mapped through the PIC". They are magic hidden interrupts that are set up in one place (well, one place *each*), and are never exposed anywhere else. The problem with NO_IRQ is that stupid "we expose our mind-numbingly stupid interfaces across the whole kernel". x86 never did that. ARM still does. x86 doesn't have to fix anything. ARM does. Linus ^ permalink raw reply [flat|nested] 63+ messages in thread
* Re: [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver 2011-12-06 19:20 ` Linus Torvalds @ 2011-12-06 20:00 ` Russell King - ARM Linux [not found] ` <CA+55aFwZBr+3_S9kU-+m8zN8iwOvn2miuuAy-zt7sUjW_+abBg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 1 sibling, 0 replies; 63+ messages in thread From: Russell King - ARM Linux @ 2011-12-06 20:00 UTC (permalink / raw) To: Linus Torvalds Cc: Dave Martin, Nicolas Pitre, Benjamin Herrenschmidt, Anton Vorontsov, Alan Cox, Stephen Rothwell, Andrew Morton, devicetree-discuss, LKML, linux-ide, Randy Dunlap, linux-next, Ingo Molnar, Jeff Garzik, Pawel Moll, linux-arm-kernel On Tue, Dec 06, 2011 at 11:20:49AM -0800, Linus Torvalds wrote: > Not for any device driver, though. > > It's used entirely internally, and it doesn't even use > "request_irq()". It uses the magic internal "setup_irq()" and never > *ever* exposes irq0 as anything that a driver can see. > > That's what matters. You can use irq0 in ARM land all you like, AS > LONG AS IT'S SOME HIDDEN INTERNAL USE. No drivers. No *nothing* that > ever uses that absolutely *idiotic* NO_IRQ crap. > > In fact, you may be *forced* to use what is "physically" irq0 - it's > just that you should never expose it as such to drivers. And x86 > doesn't. > > So Russell, if you think this has anything to do with NO_IRQ, and how > x86 isn't doing things right, you're wrong. It's just like the > internal exception thing, or the magical "cascade interrupt", or the > "x87 exception mapped through the PIC". They are magic hidden > interrupts that are set up in one place (well, one place *each*), and > are never exposed anywhere else. > > The problem with NO_IRQ is that stupid "we expose our mind-numbingly > stupid interfaces across the whole kernel". > > x86 never did that. ARM still does. x86 doesn't have to fix anything. ARM does. Remember you said that I shouldn't take things personally? Well, this is one issue I really don't care about. I don't think any platform I _actually_ have will be impacted by any change in this area. Other platform maintainers may have their own issues but that's not _my_ problem. ^ permalink raw reply [flat|nested] 63+ messages in thread
[parent not found: <CA+55aFwZBr+3_S9kU-+m8zN8iwOvn2miuuAy-zt7sUjW_+abBg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver [not found] ` <CA+55aFwZBr+3_S9kU-+m8zN8iwOvn2miuuAy-zt7sUjW_+abBg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2011-12-06 20:59 ` Uwe Kleine-König 0 siblings, 0 replies; 63+ messages in thread From: Uwe Kleine-König @ 2011-12-06 20:59 UTC (permalink / raw) To: Linus Torvalds Cc: Nicolas Pitre, Stephen Rothwell, Russell King - ARM Linux, Pawel Moll, devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ, Ingo Molnar, LKML, linux-ide-u79uwXL29TY76Z2rM5mHXA, Randy Dunlap, linux-next-u79uwXL29TY76Z2rM5mHXA, Alan Cox, Anton Vorontsov, Andrew Morton, Jeff Garzik, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r Hello Linus, On Tue, Dec 06, 2011 at 11:20:49AM -0800, Linus Torvalds wrote: > On Tue, Dec 6, 2011 at 2:46 AM, Russell King - ARM Linux > <linux-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org> wrote: > > > > But.. let's make one thing clear: Alan Cox and Linus have been going on > > about how IRQ0 should not be used. Let's be crystal clear: even x86 > > uses IRQ0. > > Not for any device driver, though. > > It's used entirely internally, and it doesn't even use > "request_irq()". It uses the magic internal "setup_irq()" and never > *ever* exposes irq0 as anything that a driver can see. > > That's what matters. You can use irq0 in ARM land all you like, AS > LONG AS IT'S SOME HIDDEN INTERNAL USE. No drivers. No *nothing* that > ever uses that absolutely *idiotic* NO_IRQ crap. > > In fact, you may be *forced* to use what is "physically" irq0 - it's > just that you should never expose it as such to drivers. And x86 > doesn't. > > So Russell, if you think this has anything to do with NO_IRQ, and how > x86 isn't doing things right, you're wrong. It's just like the > internal exception thing, or the magical "cascade interrupt", or the > "x87 exception mapped through the PIC". They are magic hidden > interrupts that are set up in one place (well, one place *each*), and > are never exposed anywhere else. Well there is try_misrouted_irq in kernel/irq/spurious.c that assumes irq0 to be something that it never is on ARM (and maybe all other platforms apart from x86). So at least it's not internal to a single (x86 specific) place. I tried to patch that two years ago, but that only ended in people saying "don't use irq0". I don't know if try_misrouted_irq sees hardware irqs, but if it does it's a bug even on archs != X86 that use virtual irqs. (Note that this doesn't oppose to your statement that using NO_IRQ is crap.) > The problem with NO_IRQ is that stupid "we expose our mind-numbingly > stupid interfaces across the whole kernel". > > x86 never did that. ARM still does. x86 doesn't have to fix anything. ARM does. Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-König | Industrial Linux Solutions | http://www.pengutronix.de/ | ^ permalink raw reply [flat|nested] 63+ messages in thread
* Re: [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver 2011-12-06 9:37 ` Dave Martin [not found] ` <20111206093709.GB2274-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> @ 2011-12-06 19:11 ` Nicolas Pitre 1 sibling, 0 replies; 63+ messages in thread From: Nicolas Pitre @ 2011-12-06 19:11 UTC (permalink / raw) To: Dave Martin Cc: Russell King - ARM Linux, Benjamin Herrenschmidt, Linus Torvalds, Anton Vorontsov, Alan Cox, Stephen Rothwell, Andrew Morton, devicetree-discuss, LKML, linux-ide, Randy Dunlap, linux-next, Ingo Molnar, Jeff Garzik, Pawel Moll, linux-arm-kernel On Tue, 6 Dec 2011, Dave Martin wrote: > On Mon, Dec 05, 2011 at 02:49:01PM -0500, Nicolas Pitre wrote: > > > No need to convert everything. > > > > First move is to make irq=0 meaning no IRQ. That means making things > > like: > > > > if (irq < 0) > > if (irq >= 0) > > > > into > > > > if (irq <= 0) > > if (irq > 0) > > > > And replace NO_IRQ with 0. > > > > That change shouldn't break anything, except those drivers which are 1) > > being passed an actual IRQ #0 and 2) testing for no IRQ. I suspect that > > those conditions aren't very common together. > > To clarify, you're suggesting that the meanings of all other IRQ values > would not change initially? Initially, or even ever. > (i.e., we remap HW irq 0, if there is one, > to some other random number but have a 1:1 mapping for everything else). Exact. > That could make sense as an approach. You might notice that a true IRQ #0 passed to generic drivers is not really frequent. Nicolas ^ permalink raw reply [flat|nested] 63+ messages in thread
[parent not found: <20111205161157.GA27550-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>]
* Re: [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver [not found] ` <20111205161157.GA27550-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org> @ 2011-12-05 17:41 ` Alan Cox 0 siblings, 0 replies; 63+ messages in thread From: Alan Cox @ 2011-12-05 17:41 UTC (permalink / raw) To: Dave Martin Cc: Stephen Rothwell, Russell King - ARM Linux, Pawel Moll, devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ, LKML, Jeff Garzik, linux-ide-u79uwXL29TY76Z2rM5mHXA, Randy Dunlap, linux-next-u79uwXL29TY76Z2rM5mHXA, Anton Vorontsov, Andrew Morton, Linus Torvalds, Ingo Molnar, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r > Russell, do you know whether it would make sense to set a timeline for > removing NO_IRQ from ARM platforms and migrating to 0 for the no-interrupt > case? I'm assuming that this mainly involves migrating existing hard-wired > code that deals with interrupt numbers to use irq domains. The timelime was several years ago. Several years of complete inaction later the chickens have come home to roost. I refer you to Linus mail of 26 Sept 2006 to linux-kernel ('restore libata build on frv') Quoting Linus email: >> That's fine -- but don't use zero to mean none. We have NO_IRQ for >> that, and zero isn't an appropriate choice. > > Zero _is_ an appropriate choice, dammit! > > That NO_IRQ thing should be zero, and any architecture that thinks that >zero is a valid IRQ just needs to fix its own irq mapping so that the > "cookie" doesn't work. > > The thing is, it's zero. Get over it. It can't be "-1" or some other > random value like people have indicated, because that thing is often read > from places where "-1" simply isn't a possible value (eg it gets its > default value initialized from a "unsigned char" in MMIO space on x86). > > So instead of making everybody and their dog to silly things with some > NO_IRQ define that they haven't historically done, the rule is simple: "0" > means "no irq", so that you can test for it with obvious code like > > if (!dev->irq) > .. > > and then, if your actual _hardware_ things that the bit-pattern with all > bits clear is a valid irq that can be used for normal devices, then what > you do is you add a irq number translation layer (WHICH WE NEED AND HAVE > _ANYWAY_) and make sure that nobody sees that on a _software_ level. ---------- On 15th October 2008 Linus said the following to linux-next > Grr. Can we please just get rid of that IDIOTIC thing instead? > > NO_IRQ was a bad idea to begin with. Let's not add more. > > I assume that broken driver is some ARM-specific thing. I certainly don't > want to see NO_IRQ in any general drivers. So instead of having that > NO_IRQ insanity spread any more, I'd much rather see the driver either > fixed to not use it, or just marked ARM-only. > > The proper way to test for whether an interrupt is valid or not is to do > > if (dev->irq) { > ... > and no other. There is no spoon. That NO_IRQ was insane. And > architectures or drivers that still think otherwise should fix themselves. ------------ So there we are.. ARM spent years ignoring clear direction. If ARM breaks for a release now so be it. You've had *YEARS* to get off your collective backsides and sort it out. > I worry that if we just change the convention for the OF case, we'll end > up with OF-ised platform drivers which have to deal with a different no- > irq convention depending on whether they are probed as platform drivers > or through the OF framework ... and these ported or semi-ported drivers > will be intermixed with unported drivers, confusing maintainers All drivers should assume that if (!dev->irq) works. Zero is not an IRQ except in certain buried internal invisible cases in arch code (legacy PC timer being the obvious one). Come to think about it we had a prior discussion about NO_IRQ in 2005 even! The core kernel generic IRQ code knows about zero being special, many common driver layer components such as serial and network phylib do, so if anything it's going to fix bugs sorting the mess out on ARM. Jut fix it. Other platforms have done so without problem. Alan ^ permalink raw reply [flat|nested] 63+ messages in thread
* Re: [PATCH] ata: Fix build error in pata_of_platform (NO_IRQ usage) 2011-11-10 15:18 ` [PATCH] ata: Fix build error in pata_of_platform (NO_IRQ usage) Anton Vorontsov 2011-11-10 15:25 ` [PATCH 1/2] of/irq: Get rid of NO_IRQ usage Anton Vorontsov 2011-11-10 15:26 ` [PATCH 2/2] ata: Don't use NO_IRQ in pata_of_platform driver Anton Vorontsov @ 2011-11-10 15:35 ` Alan Cox 2 siblings, 0 replies; 63+ messages in thread From: Alan Cox @ 2011-11-10 15:35 UTC (permalink / raw) To: Anton Vorontsov Cc: Ingo Molnar, Jeff Garzik, Grant Likely, Randy Dunlap, Stephen Rothwell, linux-next, LKML, linux-ide@vger.kernel.org, Linus Torvalds, Andrew Morton, devicetree-discuss > The proper fix (stop OF code from returning NO_IRQ values) is pending. Please just apply the proper fix. > - The NO_IRQ disease spreads despite our willingness, even within > the new OF code. Then it can stop right here, because if the arch people don't fix their code to use zero their ATA port won't work. > +/* For archs that don't support NO_IRQ (such as x86), provide a dummy value */ > +#ifndef NO_IRQ > +#define NO_IRQ 0 > +#endif NAK - just test against zero. They've been complained at about this for over two years. Enough is enough. Alan ^ permalink raw reply [flat|nested] 63+ messages in thread
* Re: linux-next: Tree for Oct 11 (ata/pata_of_platform.c) 2011-11-10 13:57 ` Ingo Molnar 2011-11-10 14:25 ` Alan Cox 2011-11-10 15:18 ` [PATCH] ata: Fix build error in pata_of_platform (NO_IRQ usage) Anton Vorontsov @ 2011-11-10 18:18 ` Jeff Garzik 2 siblings, 0 replies; 63+ messages in thread From: Jeff Garzik @ 2011-11-10 18:18 UTC (permalink / raw) To: Ingo Molnar Cc: Randy Dunlap, Stephen Rothwell, linux-next, LKML, linux-ide@vger.kernel.org, Anton Vorontsov, Linus Torvalds, Andrew Morton On 11/10/2011 08:57 AM, Ingo Molnar wrote: > > * Randy Dunlap<rdunlap@xenotime.net> wrote: > >> On 10/11/2011 01:37 PM, Randy Dunlap wrote: >>> On 10/11/11 02:11, Stephen Rothwell wrote: >>>> Hi all, >>>> >>>> The linux-next tree is now available from >>>> git://github.com/sfrothwell/linux-next.git as a temporary measure while >>>> the kernel.org servers are unavailable. >>>> >>>> It may also turn up on git.kernel.org (depending on the mirroring). The >>>> patch set is still absent, however. >>>> >>>> Changes since 20111007: >>>> >>>> Removed tree: ide (at the maintainer's request) >>> >>> >>> drivers/ata/pata_of_platform.c:55:13: error: 'NO_IRQ' undeclared (first use in this function) >> >> >> [adding Author: Anton] >> >> Build error still present in linux-next of 20111014. > > This build failure regression report was ignored twice and then > pushed upstream and is still unfixed a month after the initial > report. Upstream now fails to build on like 25% of x86 configs. > > What's going on with this bug guys? Hum, I missed it in my LKML scans, and never got a CC. Will merge Anton's patch immediately... Jeff ^ permalink raw reply [flat|nested] 63+ messages in thread
end of thread, other threads:[~2011-12-07 9:52 UTC | newest]
Thread overview: 63+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20111011201127.455df266dcbffb1d621f8576@canb.auug.org.au>
2011-10-11 20:37 ` linux-next: Tree for Oct 11 (ata/pata_of_platform.c) Randy Dunlap
2011-10-14 17:58 ` Randy Dunlap
2011-11-10 13:57 ` Ingo Molnar
2011-11-10 14:25 ` Alan Cox
2011-11-10 15:18 ` [PATCH] ata: Fix build error in pata_of_platform (NO_IRQ usage) Anton Vorontsov
2011-11-10 15:25 ` [PATCH 1/2] of/irq: Get rid of NO_IRQ usage Anton Vorontsov
2011-12-06 21:22 ` Rob Herring
2011-12-06 21:25 ` Linus Torvalds
2011-12-06 23:16 ` [PATCH v3] " Anton Vorontsov
2011-12-07 3:51 ` Rob Herring
[not found] ` <20111206231626.GA31683-wnGakbxT3iijyJ0x5qLZdcN33GVbZNy3@public.gmane.org>
2011-12-07 9:52 ` Wolfram Sang
2011-11-10 15:26 ` [PATCH 2/2] ata: Don't use NO_IRQ in pata_of_platform driver Anton Vorontsov
2011-11-10 15:38 ` Alan Cox
2011-11-10 16:28 ` [PATCH] " Anton Vorontsov
2011-11-10 20:34 ` Jeff Garzik
2011-12-02 19:19 ` Dave Martin
2011-12-02 22:34 ` Anton Vorontsov
2011-12-02 22:40 ` Anton Vorontsov
2011-12-02 22:46 ` Anton Vorontsov
2011-12-02 22:40 ` Linus Torvalds
2011-12-02 23:18 ` [PATCH v2] of/irq: Get rid of NO_IRQ usage Anton Vorontsov
2011-12-02 23:22 ` [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver Alan Cox
2011-12-03 18:56 ` Geert Uytterhoeven
2011-12-02 19:26 ` Dave Martin
2011-12-02 19:28 ` Linus Torvalds
2011-12-02 23:12 ` Benjamin Herrenschmidt
2011-12-05 16:11 ` Dave Martin
2011-12-05 17:40 ` Nicolas Pitre
2011-12-05 18:02 ` Dave Martin
2011-12-05 18:15 ` Geert Uytterhoeven
2011-12-05 18:18 ` Nicolas Pitre
[not found] ` <alpine.LFD.2.02.1112051310150.2357-QuJgVwGFrdf/9pzu0YdTqQ@public.gmane.org>
2011-12-05 18:45 ` Alan Cox
2011-12-05 19:19 ` James Bottomley
2011-12-06 6:13 ` Jean-Christophe PLAGNIOL-VILLARD
[not found] ` <20111206061321.GH9192-RQcB7r2h9QmfDR2tN2SG5Ni2O/JbrIOy@public.gmane.org>
2011-12-06 11:34 ` Alan Cox
2011-12-05 19:16 ` Rob Herring
2011-12-05 20:21 ` Anton Vorontsov
2011-12-05 20:47 ` Rob Herring
[not found] ` <4EDD2DE1.1050606-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2011-12-05 20:53 ` Alan Cox
2011-12-06 9:30 ` Dave Martin
[not found] ` <20111206093000.GA2274-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2011-12-06 10:34 ` Alan Cox
2011-12-06 10:55 ` Russell King - ARM Linux
2011-12-05 19:26 ` Dave Martin
2011-12-05 19:49 ` Nicolas Pitre
2011-12-06 9:37 ` Dave Martin
[not found] ` <20111206093709.GB2274-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2011-12-06 10:46 ` Russell King - ARM Linux
2011-12-06 11:00 ` Geert Uytterhoeven
2011-12-06 11:03 ` Russell King - ARM Linux
2011-12-06 11:10 ` Alan Cox
2011-12-06 11:05 ` Alan Cox
[not found] ` <20111206110554.53bddd14-qBU/x9rampVanCEyBjwyrvXRex20P6io@public.gmane.org>
2011-12-06 11:25 ` Russell King - ARM Linux
2011-12-06 12:11 ` Alan Cox
2011-12-06 11:37 ` Dave Martin
2011-12-06 11:49 ` Russell King - ARM Linux
2011-12-06 13:25 ` Dave Martin
2011-12-06 19:56 ` Rob Herring
2011-12-06 19:20 ` Linus Torvalds
2011-12-06 20:00 ` Russell King - ARM Linux
[not found] ` <CA+55aFwZBr+3_S9kU-+m8zN8iwOvn2miuuAy-zt7sUjW_+abBg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-12-06 20:59 ` Uwe Kleine-König
2011-12-06 19:11 ` Nicolas Pitre
[not found] ` <20111205161157.GA27550-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2011-12-05 17:41 ` Alan Cox
2011-11-10 15:35 ` [PATCH] ata: Fix build error in pata_of_platform (NO_IRQ usage) Alan Cox
2011-11-10 18:18 ` linux-next: Tree for Oct 11 (ata/pata_of_platform.c) Jeff Garzik
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).