Skip to content

Commit 279e677

Browse files
committed
Merge branch 'fixes-for-linus' of git://git.monstr.eu/linux-2.6-microblaze
* 'fixes-for-linus' of git://git.monstr.eu/linux-2.6-microblaze: microblaze: Fix kind-of-intr checking against number of interrupts microblaze: Update Microblaze defconfig
2 parents 467999f + 7b7210d commit 279e677

File tree

2 files changed

+34
-20
lines changed

2 files changed

+34
-20
lines changed

arch/microblaze/configs/nommu_defconfig

Lines changed: 32 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#
22
# Automatically generated make config: don't edit
3-
# Linux kernel version: 2.6.29
4-
# Tue Mar 24 10:23:20 2009
3+
# Linux kernel version: 2.6.30-rc5
4+
# Mon May 11 09:01:02 2009
55
#
66
CONFIG_MICROBLAZE=y
77
# CONFIG_SWAP is not set
@@ -32,6 +32,7 @@ CONFIG_LOCALVERSION_AUTO=y
3232
CONFIG_SYSVIPC=y
3333
CONFIG_SYSVIPC_SYSCTL=y
3434
CONFIG_POSIX_MQUEUE=y
35+
CONFIG_POSIX_MQUEUE_SYSCTL=y
3536
CONFIG_BSD_PROCESS_ACCT=y
3637
CONFIG_BSD_PROCESS_ACCT_V3=y
3738
# CONFIG_TASKSTATS is not set
@@ -63,6 +64,7 @@ CONFIG_SYSCTL_SYSCALL=y
6364
CONFIG_KALLSYMS=y
6465
CONFIG_KALLSYMS_ALL=y
6566
CONFIG_KALLSYMS_EXTRA_PASS=y
67+
# CONFIG_STRIP_ASM_SYMS is not set
6668
# CONFIG_HOTPLUG is not set
6769
CONFIG_PRINTK=y
6870
CONFIG_BUG=y
@@ -80,6 +82,8 @@ CONFIG_SLAB=y
8082
# CONFIG_SLUB is not set
8183
# CONFIG_SLOB is not set
8284
# CONFIG_PROFILING is not set
85+
# CONFIG_MARKERS is not set
86+
# CONFIG_SLOW_WORK is not set
8387
# CONFIG_HAVE_GENERIC_DMA_COHERENT is not set
8488
CONFIG_SLABINFO=y
8589
CONFIG_RT_MUTEXES=y
@@ -92,7 +96,6 @@ CONFIG_MODULE_UNLOAD=y
9296
# CONFIG_MODULE_SRCVERSION_ALL is not set
9397
CONFIG_BLOCK=y
9498
# CONFIG_LBD is not set
95-
# CONFIG_BLK_DEV_IO_TRACE is not set
9699
# CONFIG_BLK_DEV_BSG is not set
97100
# CONFIG_BLK_DEV_INTEGRITY is not set
98101

@@ -166,6 +169,8 @@ CONFIG_SPLIT_PTLOCK_CPUS=4
166169
# CONFIG_PHYS_ADDR_T_64BIT is not set
167170
CONFIG_ZONE_DMA_FLAG=0
168171
CONFIG_VIRT_TO_BUS=y
172+
CONFIG_UNEVICTABLE_LRU=y
173+
CONFIG_NOMMU_INITIAL_TRIM_EXCESS=1
169174

170175
#
171176
# Exectuable file formats
@@ -180,7 +185,6 @@ CONFIG_NET=y
180185
#
181186
# Networking options
182187
#
183-
CONFIG_COMPAT_NET_DEV_OPS=y
184188
CONFIG_PACKET=y
185189
# CONFIG_PACKET_MMAP is not set
186190
CONFIG_UNIX=y
@@ -232,6 +236,7 @@ CONFIG_DEFAULT_TCP_CONG="cubic"
232236
# CONFIG_LAPB is not set
233237
# CONFIG_ECONET is not set
234238
# CONFIG_WAN_ROUTER is not set
239+
# CONFIG_PHONET is not set
235240
# CONFIG_NET_SCHED is not set
236241
# CONFIG_DCB is not set
237242

@@ -244,7 +249,6 @@ CONFIG_DEFAULT_TCP_CONG="cubic"
244249
# CONFIG_IRDA is not set
245250
# CONFIG_BT is not set
246251
# CONFIG_AF_RXRPC is not set
247-
# CONFIG_PHONET is not set
248252
CONFIG_WIRELESS=y
249253
# CONFIG_CFG80211 is not set
250254
CONFIG_WIRELESS_OLD_REGULATORY=y
@@ -379,6 +383,7 @@ CONFIG_MISC_DEVICES=y
379383
# CONFIG_ATA is not set
380384
# CONFIG_MD is not set
381385
CONFIG_NETDEVICES=y
386+
CONFIG_COMPAT_NET_DEV_OPS=y
382387
# CONFIG_DUMMY is not set
383388
# CONFIG_BONDING is not set
384389
# CONFIG_MACVLAN is not set
@@ -388,6 +393,7 @@ CONFIG_NETDEVICES=y
388393
# CONFIG_PHYLIB is not set
389394
CONFIG_NET_ETHERNET=y
390395
# CONFIG_MII is not set
396+
# CONFIG_ETHOC is not set
391397
# CONFIG_DNET is not set
392398
# CONFIG_IBM_NEW_EMAC_ZMII is not set
393399
# CONFIG_IBM_NEW_EMAC_RGMII is not set
@@ -405,7 +411,6 @@ CONFIG_NETDEV_10000=y
405411
#
406412
# CONFIG_WLAN_PRE80211 is not set
407413
# CONFIG_WLAN_80211 is not set
408-
# CONFIG_IWLWIFI_LEDS is not set
409414

410415
#
411416
# Enable WiMAX (Networking options) to see the WiMAX drivers
@@ -455,6 +460,7 @@ CONFIG_LEGACY_PTYS=y
455460
CONFIG_LEGACY_PTY_COUNT=256
456461
# CONFIG_IPMI_HANDLER is not set
457462
CONFIG_HW_RANDOM=y
463+
# CONFIG_HW_RANDOM_TIMERIOMEM is not set
458464
# CONFIG_RTC is not set
459465
# CONFIG_GEN_RTC is not set
460466
# CONFIG_R3964 is not set
@@ -525,7 +531,7 @@ CONFIG_USB_SUPPORT=y
525531
#
526532

527533
#
528-
# NOTE: USB_STORAGE depends on SCSI but BLK_DEV_SD may also be needed;
534+
# NOTE: USB_STORAGE depends on SCSI but BLK_DEV_SD may
529535
#
530536
# CONFIG_USB_GADGET is not set
531537

@@ -538,6 +544,7 @@ CONFIG_USB_SUPPORT=y
538544
# CONFIG_ACCESSIBILITY is not set
539545
# CONFIG_RTC_CLASS is not set
540546
# CONFIG_DMADEVICES is not set
547+
# CONFIG_AUXDISPLAY is not set
541548
# CONFIG_UIO is not set
542549
# CONFIG_STAGING is not set
543550

@@ -562,6 +569,11 @@ CONFIG_FILE_LOCKING=y
562569
# CONFIG_AUTOFS4_FS is not set
563570
# CONFIG_FUSE_FS is not set
564571

572+
#
573+
# Caches
574+
#
575+
# CONFIG_FSCACHE is not set
576+
565577
#
566578
# CD-ROM/DVD Filesystems
567579
#
@@ -601,8 +613,13 @@ CONFIG_CRAMFS=y
601613
# CONFIG_HPFS_FS is not set
602614
# CONFIG_QNX4FS_FS is not set
603615
CONFIG_ROMFS_FS=y
616+
CONFIG_ROMFS_BACKED_BY_BLOCK=y
617+
# CONFIG_ROMFS_BACKED_BY_MTD is not set
618+
# CONFIG_ROMFS_BACKED_BY_BOTH is not set
619+
CONFIG_ROMFS_ON_BLOCK=y
604620
# CONFIG_SYSV_FS is not set
605621
# CONFIG_UFS_FS is not set
622+
# CONFIG_NILFS2_FS is not set
606623
CONFIG_NETWORK_FILESYSTEMS=y
607624
CONFIG_NFS_FS=y
608625
CONFIG_NFS_V3=y
@@ -614,7 +631,6 @@ CONFIG_LOCKD_V4=y
614631
CONFIG_NFS_ACL_SUPPORT=y
615632
CONFIG_NFS_COMMON=y
616633
CONFIG_SUNRPC=y
617-
# CONFIG_SUNRPC_REGISTER_V4 is not set
618634
# CONFIG_RPCSEC_GSS_KRB5 is not set
619635
# CONFIG_RPCSEC_GSS_SPKM3 is not set
620636
# CONFIG_SMB_FS is not set
@@ -647,6 +663,9 @@ CONFIG_DEBUG_SHIRQ=y
647663
CONFIG_DETECT_SOFTLOCKUP=y
648664
CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC=y
649665
CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC_VALUE=1
666+
CONFIG_DETECT_HUNG_TASK=y
667+
# CONFIG_BOOTPARAM_HUNG_TASK_PANIC is not set
668+
CONFIG_BOOTPARAM_HUNG_TASK_PANIC_VALUE=0
650669
CONFIG_SCHED_DEBUG=y
651670
CONFIG_SCHEDSTATS=y
652671
CONFIG_TIMER_STATS=y
@@ -678,15 +697,8 @@ CONFIG_DEBUG_SG=y
678697
# CONFIG_DEBUG_BLOCK_EXT_DEVT is not set
679698
# CONFIG_FAULT_INJECTION is not set
680699
CONFIG_SYSCTL_SYSCALL_CHECK=y
681-
682-
#
683-
# Tracers
684-
#
685-
# CONFIG_SCHED_TRACER is not set
686-
# CONFIG_CONTEXT_SWITCH_TRACER is not set
687-
# CONFIG_BOOT_TRACER is not set
688-
# CONFIG_TRACE_BRANCH_PROFILING is not set
689-
# CONFIG_DYNAMIC_PRINTK_DEBUG is not set
700+
# CONFIG_PAGE_POISONING is not set
701+
# CONFIG_DYNAMIC_DEBUG is not set
690702
# CONFIG_SAMPLES is not set
691703
CONFIG_EARLY_PRINTK=y
692704
CONFIG_HEART_BEAT=y
@@ -777,13 +789,15 @@ CONFIG_CRYPTO=y
777789
# Compression
778790
#
779791
# CONFIG_CRYPTO_DEFLATE is not set
792+
# CONFIG_CRYPTO_ZLIB is not set
780793
# CONFIG_CRYPTO_LZO is not set
781794

782795
#
783796
# Random Number Generation
784797
#
785798
# CONFIG_CRYPTO_ANSI_CPRNG is not set
786799
CONFIG_CRYPTO_HW=y
800+
# CONFIG_BINARY_PRINTF is not set
787801

788802
#
789803
# Library routines
@@ -797,8 +811,8 @@ CONFIG_GENERIC_FIND_LAST_BIT=y
797811
# CONFIG_CRC7 is not set
798812
# CONFIG_LIBCRC32C is not set
799813
CONFIG_ZLIB_INFLATE=y
800-
CONFIG_PLIST=y
801814
CONFIG_HAS_IOMEM=y
802815
CONFIG_HAS_IOPORT=y
803816
CONFIG_HAS_DMA=y
804817
CONFIG_HAVE_LMB=y
818+
CONFIG_NLATTR=y

arch/microblaze/kernel/intc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ void __init init_IRQ(void)
137137

138138
intr_type =
139139
*(int *) of_get_property(intc, "xlnx,kind-of-intr", NULL);
140-
if (intr_type >= (1 << nr_irq))
141-
printk(KERN_INFO " ERROR: Mishmash in king-of-intr param\n");
140+
if (intr_type >= (1 << (nr_irq + 1)))
141+
printk(KERN_INFO " ERROR: Mismatch in kind-of-intr param\n");
142142

143143
#ifdef CONFIG_SELFMOD_INTC
144144
selfmod_function((int *) arr_func, intc_baseaddr);

0 commit comments

Comments
 (0)