2010-07-13 07:00:00 bfin-gpio: GPIO 34 is already reserved as Peripheral by bfin-spi !
zhang zhihua (CHINA)
Message: 91196
I want to request a peripheral interrupt task use the GPIO PH2,but when I do it like this:
request_irq(IRQ_PH2, My_task,IRQF_TRIGGER_HIGH,DEVICE_NAME,NULL);
a error was happened:
"bfin-gpio: GPIO 34 is already reserved as Peripheral by bfin-spi !
setting trigger mode 4 for irq 105 failed (_bfin_gpio_irq_type+0x0/0x154)
Request the IRQ_PH2 failed!"
how to request it?
TranslateQuoteReplyEditDelete
2010-07-13 10:24:02 Re: bfin-gpio: GPIO 34 is already reserved as Peripheral by bfin-spi !
Mike Frysinger (UNITED STATES)
Message: 91199
you didnt say what version of software or hardware you're using. going by the names, and assuming you're using BF51x, you need to update your tree to the latest svn to get a fix for the issue.
QuoteReplyEditDelete
2010-07-13 22:22:02 Re: bfin-gpio: GPIO 34 is already reserved as Peripheral by bfin-spi !
zhang zhihua (CHINA)
Message: 91217
Hi,Mike,
My board is BF518F-EZBRD,and my software is linux-2.6.28!
TranslateQuoteReplyEditDelete
2010-07-14 02:00:41 Re: bfin-gpio: GPIO 34 is already reserved as Peripheral by bfin-spi !
Sonic Zhang (CHINA)
Message: 91219
please update you kernel to either 2009R1 branch head or trunk head.
QuoteReplyEditDelete
2010-07-14 20:48:51 Re: bfin-gpio: GPIO 34 is already reserved as Peripheral by bfin-spi !
zhang zhihua (CHINA)
Message: 91259
Hi,Sonic,
After update my kernel to the trunk head,it found that:
## Booting kernel from Legacy Image at 01000000 ...
Image Name: Linux-2.6.28.10-ADI-2009R1.1
Created: 2010-07-15 0:39:02 UTC
Image Type: Blackfin Linux Kernel Image (gzip compressed)
Data Size: 3895705 Bytes = 3.7 MB
Load Address: 00001000
Entry Point: 001f0b6c
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting Kernel at = 001f0b6c
Linux version 2.6.28.10-ADI-2009R1.1 (root@ubuntu) (gcc version 4.1.2 (ADI svn))
#482 Wed Jul 14 17:38:52 PDT 2010
bootconsole [early_shadow0] enabled
bootconsole [early_BFuart0] enabled
early printk enabled on early_BFuart0
Board Memory: 64MB
Kernel Managed Memory: 64MB
Memory map:
fixedcode = 0x00000400-0x00000490
text = 0x00001000-0x0014e1d0
rodata = 0x0014e1d0-0x001b51f0
bss = 0x001b6000-0x001cf67c
data = 0x001cf67c-0x001e4000
stack = 0x001e2000-0x001e4000
init = 0x001e4000-0x0068e000
available = 0x0068e000-0x03eff000
DMA Zone = 0x03f00000-0x04000000
Hardware Trace Active and Enabled
Boot Mode: 3
Blackfin support (C) 2004-2009 Analog Devices, Inc.
Compiled for ADSP-BF518 Rev 0.0
Warning: Compiled for Rev 0, but running on Rev 1
Blackfin Linux support by blackfin.uclinux.org/
Processor Speed: 400 MHz core clock and 80 MHz System Clock
NOMPU: setting up cplb tables
Instruction Cache Enabled for CPU0
Data Cache Enabled for CPU0 (write-back)
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 16001
Kernel command line: root=/dev/mtdblock0 rw clkin_hz=25000000 earlyprintk=serial
,uart0,57600 console=ttyBF0,57600 ip=192.168.0.15:192.168.0.2:192.168.0.1:255.25
5.255.0:bf518f-ezbrd:eth0:off
Configuring Blackfin Priority Driven Interrupts
PID hash table entries: 256 (order: 8, 1024 bytes)
Console: colour dummy device 80x25
console [ttyBF0] enabled, bootconsole disabled
console [ttyBF0] enabled, bootconsole disabled
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory available: 57224k/65536k RAM, (4776k init code, 1332k kernel code, 600k d
ata, 1024k dma, 576k reserved)
Calibrating delay loop... 796.67 BogoMIPS (lpj=1593344)
Security Framework initialized
Mount-cache hash table entries: 512
Blackfin Scratchpad data SRAM: 4 KB
Blackfin L1 Data A SRAM: 16 KB (15 KB free)
Blackfin L1 Data B SRAM: 16 KB (16 KB free)
Blackfin L1 Instruction SRAM: 32 KB (26 KB free)
net_namespace: 288 bytes
NET: Registered protocol family 16
Blackfin DMA Controller
ezbrd_init(): registering device resources
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
NET: Registered protocol family 1
NTFS driver 2.1.29 [Flags: R/O].
JFFS2 version 2.2. (NAND) 漏 2001-2006 Red Hat, Inc.
msgmni has been set to 111
io scheduler noop registered (default)
The major of the gpio device is 110
Registered character driver
The major of the test device is 253
Registered character driver
The major of the bluetooth device is 113
Registered character driver
The major of the test device is 112
Serial: Blackfin serial driver
bfin-uart.1: ttyBF0 at MMIO 0xffc00400 (irq = 29) is a BFIN-UART
bfin-uart.1: ttyBF1 at MMIO 0xffc02000 (irq = 31) is a BFIN-UART
brd: module loaded
bfin_mii_bus: probed
bfin_mac: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:03, irq=-1, mdc_
clk=2500000Hz(mdc_div=15)@sclk=80MHz)
bfin_mac bfin_mac.0: Blackfin on-chip Ethernet MAC driver, Version 1.1
physmap platform flash device: 00300000 at 20000000
physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank
NOR chip too large to fit in mapping. Attempting to cope...
Amd/Fujitsu Extended Query Table at 0x0040
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
Reducing visibility of 4096KiB chip to 3072KiB
cmdlinepart partition parsing not available
RedBoot partition parsing not available
Using physmap partition information
Creating 3 MTD partitions on "physmap-flash.0":
0x00000000-0x00040000 : "bootloader(nor)"
0x00040000-0x00200000 : "linux kernel(nor)"
0x00200000-0x00300000 : "file system(nor)"
m25p80 spi0.2: found m25p16, expected m25p64
bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_b
ase@ffc00500, dma channel@7
bfin-spi bfin-spi.1: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_b
ase@ffc03400, dma channel@5
rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0
bfin-wdt: initialized: timeout=20 sec (nowayout=0)
dma_alloc_init: dma_page @ 0x03b27000 - 256 pages at 0x03f00000
Hardware Trace:
0 Target : <0x00004ac0> { _dump_stack + 0x0 }
Source : <0x0000612c> { _peripheral_request + 0x10c } CALL pcrel
1 Target : <0x0000611a> { _peripheral_request + 0xfa }
Source : <0x00006008> { _cmp_label + 0x30 } RTS
2 Target : <0x00006000> { _cmp_label + 0x28 }
Source : <0x00005ff8> { _cmp_label + 0x20 } IF !CC JUMP
3 Target : <0x00005fd8> { _cmp_label + 0x0 }
Source : <0x00006116> { _peripheral_request + 0xf6 } CALL pcrel
4 Target : <0x0000610e> { _peripheral_request + 0xee }
Source : <0x00006092> { _peripheral_request + 0x72 } IF !CC JUMP
5 Target : <0x00006042> { _peripheral_request + 0x22 }
Source : <0x0000603c> { _peripheral_request + 0x1c } IF !CC JUMP
6 Target : <0x0000603a> { _peripheral_request + 0x1a }
Source : <0x0000602e> { _peripheral_request + 0xe } IF !CC JUMP
7 Target : <0x00006020> { _peripheral_request + 0x0 }
Source : <0x000061e0> { _peripheral_request_list + 0x24 } CALL pcrel
8 Target : <0x000061de> { _peripheral_request_list + 0x22 }
Source : <0x000061ce> { _peripheral_request_list + 0x12 } JUMP.S
9 Target : <0x000061bc> { _peripheral_request_list + 0x0 }
Source : <0x0014cbe4> { _sdh_probe + 0x1bc } CALL pcrel
10 Target : <0x0014cbd8> { _sdh_probe + 0x1b0 }
Source : <0x0014cb44> { _sdh_probe + 0x11c } IF CC JUMP
11 Target : <0x0014cb40> { _sdh_probe + 0x118 }
Source : <0x00028eb8> { _request_irq + 0x34 } RTS
12 Target : <0x00028eae> { _request_irq + 0x2a }
Source : <0x00028f1e> { _request_irq + 0x9a } IF CC JUMP
13 Target : <0x00028f1c> { _request_irq + 0x98 }
Source : <0x00028f14> { _request_irq + 0x90 } IF CC JUMP
14 Target : <0x00028f10> { _request_irq + 0x8c }
Source : <0x00028cae> { ___setup_irq + 0x1a } RTS
15 Target : <0x00028ca6> { ___setup_irq + 0x12 }
Source : <0x00028d64> { ___setup_irq + 0xd0 } JUMP.S
Stack info:
SP: [0x03ee9d00] <0x03ee9d00> /* kernel dynamic memory */
FP: (0x03ee9d14)
Memory from 0x03ee9d00 to 03eea000
03ee9d00:[001d4718]<00006130> 00000003 00008213 00000000 (00000000)<00028f10>
001d4700
03ee9d20: 000f739c <000061e4> 001d1c44 03b09bbc 001d1c44 00000000 00000000
0018708c
03ee9d40: 00000000 <0014cb40> 03b09a00 03b09bbc <0014cbe8> 03b09a00 00000000
00001000
03ee9d60: 001dd18c 001ff728 001dd18c <0006a102> 0019f03c 03b09bbc 001dd18c <
000cce70>
03ee9d80: 001d1750 001dd18c 001cd230 001d17fc 000000ac 00000000 <0014b2e4><
0014b30c>
03ee9da0: 001d1664 <000ccfc8> 001d1750 001dd18c 001ff728 001d17fc 001db470
001ff728
03ee9dc0: 00000000 <000cc686> 000ccf5c 001db470 00000000 03ee9de4 03b17bc0 <
000a846c>
03ee9de0: 001b6024 03efb5d8 001d1798 <000ccd1e> 001b6024 00000000 03b17bc0
00000000
03ee9e00: 03ee9e24 03ee9e24 <000cca38> 000ccf5c <000cca56><000cd118> 03a4f9a0
001dd13c
03ee9e20: 00192abc 0018708c 00000000 <000cd118> 001b6024 001dd18c 001ff728
00000000
03ee9e40: 00000000 00000000 00000000 00000000 <00001028> 001b6024 001f8430
00000000
03ee9e60: 00000000 00000000 03ee6bc0 001e1854 00000010 03ee8000 000040d0
00000000
03ee9e80: 00000001 000240d0 00000000 00000000 001e1854 00000001 00000044
03ee8000
03ee9ea0: 03ee8000 03ee8000 000240d0 03ee8000 00000010 0070dac0 00000000
00000000
03ee9ec0: 00000000 00000000 00000000 00000001 00000000 00000000 ffffffff
03ee9f0c
03ee9ee0:<000a7724> 03ed6940 03ed5a40 001c24ec <000a7798> 03efb6a4 00000000
000000fc
03ee9f00: 001c24ec 000000d0 03ee9f0c 03ee5e10 00000000 00000000 <00189d50><
000a78fe>
03ee9f20: 001c24ec 03ed5a40 00000000 <0006525c> 03ed6940 03ed5a40 001ff728
03ee9f60
03ee9f40: 00004000 00000000 00000000 00000000 001c24ec 03ee9f60 <00065480>
001d5510
03ee9f60: 000000fc <0006548e> 001d5510 001c19f8 03ed6940 03ed5a40 03ee9f9c
7fffff00
03ee9f80: 00000001 <0002a2be> 03ee9f9c 00000076 0000000e <00065552> 03ed5a40
00383131
03ee9fa0: 00000000 001f0000 <0002a31a> 001d3964 001ff4b0 00000076 001d5510 <
001e43a0>
03ee9fc0: 001ff6c0 001ff4b0 00000000 00000000 00000000 00000000 00000000
00000000
03ee9fe0: 00000000 <0000145e> 00000000 00000000 00000000 00000000 ffffffff
00000006
Return addresses in stack:
address : <0x00006130> { _peripheral_request + 0x110 }
frame 1 : <0x00028f10> { _request_irq + 0x8c }
address : <0x000061e4> { _peripheral_request_list + 0x28 }
address : <0x0014cb40> { _sdh_probe + 0x118 }
address : <0x0014cbe8> { _sdh_probe + 0x1c0 }
address : <0x0006a102> { _create_dir + 0x3a }
address : <0x000cce70> { _driver_probe_device + 0x80 }
address : <0x0014b2e4> { _klist_next + 0x20 }
address : <0x0014b30c> { _klist_next + 0x48 }
address : <0x000ccfc8> { ___driver_attach + 0x6c }
address : <0x000cc686> { _bus_for_each_dev + 0x3e }
address : <0x000a846c> { _kobject_init_and_add + 0x24 }
address : <0x000ccd1e> { _driver_attach + 0x1a }
address : <0x000cca38> { _bus_add_driver + 0x64 }
address : <0x000cca56> { _bus_add_driver + 0x82 }
address : <0x000cd118> { _driver_register + 0x40 }
address : <0x000cd118> { _driver_register + 0x40 }
address : <0x00001028> { _do_one_initcall + 0x28 }
address : <0x000a7724> { _ida_get_new_above + 0x94 }
address : <0x000a7798> { _ida_get_new_above + 0x108 }
address : <0x00189d50> /* kernel dynamic memory */
address : <0x000a78fe> { _ida_pre_get + 0xe }
address : <0x0006525c> { _proc_register + 0x30 }
address : <0x00065480> { _create_proc_entry + 0x3c }
address : <0x0006548e> { _create_proc_entry + 0x4a }
address : <0x0002a2be> { _register_irq_proc + 0x76 }
address : <0x00065552> { _proc_mkdir_mode + 0x2e }
address : <0x0002a31a> { _init_irq_proc + 0x42 }
address : <0x001e43a0> { _kernel_init + 0x84 }
address : <0x0000145e> { _kernel_thread_helper + 0x6 }
peripheral_request: Peripheral 19 function 1 is already reserved by mmc_spi !
bfin-sdh bfin-sdh.0: unable to request peripheral pins
bfin-sdh: probe of bfin-sdh.0 failed with error -16
mmc_spi spi0.5: ASSUMING 3.2-3.4 V slot power
------------[ cut here ]------------
WARNING: at fs/sysfs/dir.c:462 _sysfs_add_one+0x3a/0x3c()
sysfs: duplicate filename 'mmc0' can not be created
Modules linked in:
Hardware Trace:
0 Target : <0x00004ac0> { _dump_stack + 0x0 }
Source : <0x0000e890> { _warn_slowpath + 0x58 } CALL pcrel
1 Target : <0x0000e890> { _warn_slowpath + 0x58 }
Source : <0x0002597e> { _print_modules + 0x7a } RTS
2 Target : <0x00025978> { _print_modules + 0x74 }
Source : <0x0000eed2> { _printk + 0x16 } RTS
3 Target : <0x0000eece> { _printk + 0x12 }
Source : <0x0000f734> { _vprintk + 0x12c } RTS
4 Target : <0x0000f714> { _vprintk + 0x10c }
Source : <0x0000f858> { _vprintk + 0x250 } JUMP.S
5 Target : <0x0000f858> { _vprintk + 0x250 }
Source : <0x0000ed46> { _wake_up_klogd + 0x1a } RTS
6 Target : <0x0000ed46> { _wake_up_klogd + 0x1a }
Source : <0x0000ed38> { _wake_up_klogd + 0xc } IF !CC JUMP
7 Target : <0x0000ed2c> { _wake_up_klogd + 0x0 }
Source : <0x0000f14e> { _release_console_sem + 0x1a2 } JUMP.L
8 Target : <0x0000f146> { _release_console_sem + 0x19a }
Source : <0x0000f13a> { _release_console_sem + 0x18e } IF !CC JUMP
9 Target : <0x0000f138> { _release_console_sem + 0x18c }
Source : <0x0000f12a> { _release_console_sem + 0x17e } IF !CC JUMP
10 Target : <0x0000f124> { _release_console_sem + 0x178 }
Source : <0x00021168> { _up + 0x38 } RTS
11 Target : <0x00021162> { _up + 0x32 }
Source : <0x00021154> { _up + 0x24 } IF !CC JUMP
12 Target : <0x00021130> { _up + 0x0 }
Source : <0x0000f120> { _release_console_sem + 0x174 } CALL pcrel
13 Target : <0x0000f10c> { _release_console_sem + 0x160 }
Source : <0x0000eff6> { _release_console_sem + 0x4a } IF !CC JUMP
14 Target : <0x0000efce> { _release_console_sem + 0x22 }
Source : <0x0000f0ee> { _release_console_sem + 0x142 } IF !CC JUMP
15 Target : <0x0000f0e8> { _release_console_sem + 0x13c }
Source : <0x0000eca6> { __call_console_drivers + 0x7a } RTS
Stack info:
SP: [0x03ee9b7c] <0x03ee9b7c> /* kernel dynamic memory */
FP: (0x03ee9ccc)
Memory from 0x03ee9b70 to 03eea000
03ee9b70: 00000000 03ee9b7c 03b10400 [0000e890]<0000e894> 03ee9b9c 0018d748
00000006
03ee9b90: 0018d748 000001ce 03ee9b9c 7379735f 615f7366 6f5f6464 302b656e
2f613378
03ee9bb0: 63337830 00000000 00000000 03efb820 001c3508 00000000 00000001
ffffffff
03ee9bd0: 03ee9c00 <000a7724> 03efb824 03efb820 001c3508 00000000 00000001
00000001
03ee9bf0: 00000001 00000001 00000000 00000000 03b12400 <0004852a> 00000001
ffffffff
03ee9c10: 03ee9c40 <000a7724> 00efb824 03efb820 001c3508 00000000 00000001
00000001
03ee9c30: 00000001 001c3508 001c3508 03ee9c40 03b12400 <0004852a> 0072ecc4
03ee9cc0
03ee9c50: 03b10400 03ef5000 000698b4 03b12400 <00069d4a> 03b26878 0072ecc4 <
000485a6>
03ee9c70: 03ef5000 03b26878 03b12400 03ee9ca0 <00069c66> 03b26878 ffffffef
03b10490
03ee9c90: 03b10490 03b268fc 001d13b4 03b10400 03b08dc0 <0006aa06> 03ee9cc0
0072ecc4
03ee9cb0: 00000000 03b1046c <000a841e> 03b1046c 0072ecc4 00000000 00000000 (
00000000)
03ee9cd0:<0006ab1c> 03b10400 001d13b4 00000000 03b10404 0019dba0 <000cb2f0>
03ee9d04
03ee9cf0: 00000001 <000cb4e0> 03b1046c <000cab5c> 03b10400 03b10490 <000caff2>
03b10404
03ee9d10: 03b10404 03b12400 00000000 03b12400 <000eee6e> 03b10400 001d13b4
03b10400
03ee9d30: 00000000 <03b09800> 001dd1d0 00000000 00000000 <000f8a46> 03b105bc <
000f8b8a>
03ee9d50: 03b105bc 00000000 001dd1d0 0019f4bc 03b1248c 001ff728 001dd1d0 <
0006a102>
03ee9d70: 00000001 <000ccd68> 001dd1d0 <000cce70> 03b12400 001dd1d0 001cd230
03b124ac
03ee9d90: 000000ac 00000000 <0014b2e4><0014b30c> 03b12648 <000ccfc8> 03b12400
001dd1d0
03ee9db0: 001ff728 03b124ac 001dc760 001ff728 00000000 <000cc686> 000ccf5c
001dc760
03ee9dd0: 00000000 03ee9de4 03b17b60 <000a846c> 001b6024 03ed68f8 03b12448 <
000ccd1e>
03ee9df0: 001b6024 00000000 03b17b60 00000000 03ee9e24 03ee9e24 <000cca38>
000ccf5c
03ee9e10:<000cca56><000cd118> 03a4f9a0 001dd13c 00192abc 0019f4bc 00000000 <
000cd118>
03ee9e30: 001b6024 001dd1d0 001ff728 00000000 00000000 00000000 00000000
00000000
03ee9e50:<00001028> 001b6024 001f843c 00000000 00000000 00000000 03ee6bc0
001e1854
03ee9e70: 00000010 03ee8000 000040d0 00000000 00000001 000240d0 00000000
00000000
03ee9e90: 001e1854 00000001 00000044 03ee8000 03ee8000 03ee8000 000240d0
03ee8000
03ee9eb0: 00000010 0070dac0 00000000 00000000 00000000 00000000 00000000
00000001
03ee9ed0: 00000000 00000000 ffffffff 03ee9f0c <000a7724> 03ed6940 03ed5a40
001c24ec
03ee9ef0:<000a7798> 03efb6a4 00000000 000000fc 001c24ec 000000d0 03ee9f0c
03ee5e10
03ee9f10: 00000000 00000000 <00189d50><000a78fe> 001c24ec 03ed5a40 00000000 <
0006525c>
03ee9f30: 03ed6940 03ed5a40 001ff728 03ee9f60 00004000 00000000 00000000
00000000
03ee9f50: 001c24ec 03ee9f60 <00065480> 001d5510 000000fc <0006548e> 001d5510
001c19f8
03ee9f70: 03ed6940 03ed5a40 03ee9f9c 7fffff00 00000001 <0002a2be> 03ee9f9c
00000076
03ee9f90: 0000000e <00065552> 03ed5a40 00383131 00000000 001f0000 <0002a31a>
001d3964
03ee9fb0: 001ff4b0 00000076 001d5510 <001e43a0> 001ff6c4 001ff4b0 00000000
00000000
03ee9fd0: 00000000 00000000 00000000 00000000 00000000 <0000145e> 00000000
00000000
03ee9ff0: 00000000 00000000 ffffffff 00000006
Return addresses in stack:
address : <0x0000e890> { _warn_slowpath + 0x58 }
address : <0x0000e894> { _warn_slowpath + 0x5c }
address : <0x000a7724> { _ida_get_new_above + 0x94 }
address : <0x0004852a> { _ifind + 0xe }
address : <0x000a7724> { _ida_get_new_above + 0x94 }
address : <0x0004852a> { _ifind + 0xe }
address : <0x00069d4a> { _sysfs_new_dirent + 0x42 }
address : <0x000485a6> { _ilookup5 + 0x2e }
address : <0x00069c66> { _sysfs_add_one + 0x3a }
address : <0x0006aa06> { _sysfs_do_create_link + 0x82 }
address : <0x000a841e> { _kobject_add_varg + 0x12 }
frame 1 : <0x0006ab1c> { _sysfs_create_link + 0xc }
address : <0x000cb2f0> { _device_add + 0x5c }
address : <0x000cb4e0> { _device_add + 0x24c }
address : <0x000cab5c> { _dev_set_name + 0x1c }
address : <0x000caff2> { _device_initialize + 0x2a }
address : <0x000eee6e> { _mmc_add_host + 0x22 }
address : <0x03b09800> /* kernel dynamic memory */
address : <0x000f8a46> { _mmc_spi_probe + 0xf6 }
address : <0x000f8b8a> { _mmc_spi_probe + 0x23a }
address : <0x0006a102> { _create_dir + 0x3a }
address : <0x000ccd68> { _driver_sysfs_add + 0x44 }
address : <0x000cce70> { _driver_probe_device + 0x80 }
address : <0x0014b2e4> { _klist_next + 0x20 }
address : <0x0014b30c> { _klist_next + 0x48 }
address : <0x000ccfc8> { ___driver_attach + 0x6c }
address : <0x000cc686> { _bus_for_each_dev + 0x3e }
address : <0x000a846c> { _kobject_init_and_add + 0x24 }
address : <0x000ccd1e> { _driver_attach + 0x1a }
address : <0x000cca38> { _bus_add_driver + 0x64 }
address : <0x000cca56> { _bus_add_driver + 0x82 }
address : <0x000cd118> { _driver_register + 0x40 }
address : <0x000cd118> { _driver_register + 0x40 }
address : <0x00001028> { _do_one_initcall + 0x28 }
address : <0x000a7724> { _ida_get_new_above + 0x94 }
address : <0x000a7798> { _ida_get_new_above + 0x108 }
address : <0x00189d50> /* kernel dynamic memory */
address : <0x000a78fe> { _ida_pre_get + 0xe }
address : <0x0006525c> { _proc_register + 0x30 }
address : <0x00065480> { _create_proc_entry + 0x3c }
address : <0x0006548e> { _create_proc_entry + 0x4a }
address : <0x0002a2be> { _register_irq_proc + 0x76 }
address : <0x00065552> { _proc_mkdir_mode + 0x2e }
address : <0x0002a31a> { _init_irq_proc + 0x42 }
address : <0x001e43a0> { _kernel_init + 0x84 }
address : <0x0000145e> { _kernel_thread_helper + 0x6 }
---[ end trace 2a709d5e3ee3bb6f ]---
TranslateQuoteReplyEditDelete
2010-07-14 20:56:24 Re: bfin-gpio: GPIO 34 is already reserved as Peripheral by bfin-spi !
zhang zhihua (CHINA)
Message: 91260
sorry,update to the branch head .
TranslateQuoteReplyEditDelete
2010-07-15 01:21:45 Re: bfin-gpio: GPIO 34 is already reserved as Peripheral by bfin-spi !
zhang zhihua (CHINA)
Message: 91262
怎么修改呢?为什么更新后会出现这样的错误?是不是和page_alloc.c这个文件有关系?
TranslateQuoteReplyEditDelete
2010-07-15 03:17:20 Re: bfin-gpio: GPIO 34 is already reserved asPeripheral by bfin-spi !
Michael Hennerich (GERMANY)
Message: 91271 You have both mmc_spi (spi0.5) and bfin-sdh enabled - Is this intended?
Spi0.5 is PORT PG3 as well as bfin-sdh uses PG3 as Data0...
-Michael
QuoteReplyEditDelete
2010-07-15 04:55:01 Re: bfin-gpio: GPIO 34 is already reserved asPeripheral by bfin-spi !
zhang zhihua (CHINA)
Message: 91287
Hi,Michael,
The kernel is OK!Thanks!
but the error "bfin-gpio: GPIO 34 is already reserved asPeripheral by bfin-spi !" is not resolved!
TranslateQuoteReplyEditDelete
2010-07-15 05:27:42 Re: bfin-gpio: GPIO 34 is already reservedasPeripheral by bfin-spi !
Michael Hennerich (GERMANY)
Message: 91289 Looking at your kernel start messages - shows.
bfin-spi bfin-spi.1: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_b
ase@ffc03400, dma channel@5
SPI1 requests SPI1_MISO which is the same pins as GPIO 34.
If you don't need SPI1 (bfin_spi1_device) - remove it from your platform data.
QuoteReplyEditDelete
2010-07-15 05:27:52 Re: bfin-gpio: GPIO 34 is already reserved as Peripheral by bfin-spi !
zhang zhihua (CHINA)
Message: 91290
Hi,Sonic,
After update the kernel,the error not resolve!
TranslateQuoteReplyEditDelete
2010-07-15 20:42:57 Re: bfin-gpio: GPIO 34 is already reservedasPeripheral by bfin-spi !
zhang zhihua (CHINA)
Message: 91319
Hi,Michael,
How to remove it?when "make menuconfig",I cant found it!
TranslateQuoteReplyEditDelete
2010-07-16 00:07:49 Re: bfin-gpio: GPIO 34 is already reservedasPeripheral by bfin-spi !
Sonic Zhang (CHINA)
Message: 91322
It is in the platform data structure in your board file under arch/blackfin/mach-bf518/board/
QuoteReplyEditDelete
2010-07-16 02:07:04 Re: bfin-gpio: GPIO 34 is already reservedasPeripheral by bfin-spi !
zhang zhihua (CHINA)
Message: 91327
Can I delete those struct direct?like :
"struct bfin5xx_spi_master bfin_spi0_info"
"struct resource bfin_spi0_resource"
"struct platform_device bfin_spi0_device"?
TranslateQuoteReplyEditDelete
2010-07-16 02:47:05 Re: bfin-gpio: GPIO 34 is already reserved as Peripheral by bfin-spi !
zhang zhihua (CHINA)
Message: 91329
after delete it,It's OK!
Thanks for help!