How to use compact flash on embedded 2.6.11 system?
Dirk Behme
dirk.behme at de.bosch.com
Sun Feb 13 11:18:13 EST 2005
Dirk Behme wrote:
> Now, with your help, I get a CIS and cardmgr loads ide_cs module :-)
> With this, I get the output below. Do I have to care about the 'could
> not adjust resource' messages? Do I have to configure memory windows as
> used in my configuration here? If yes, why do I have to configure the
> memory configuration twice, in the driver and for cardmgr?
>
> Is the 'cardmgr[757]: get dev info on socket 0 failed: No such device'
> related to this?
I looked into this and found that this comes from drivers/pcmcia/ds.c
There is a function get_device_info() which has a tree with label
'found:'. This label is reached, then
if (first)
node = p_dev->instance->dev;
sets node to 0 and function exits with
if (!node) {
ret = -ENODEV;
goto err_put;
Has anybody a hint what's wrong if p_dev->instance->dev is zero?
In my driver I set
socket.dev.dev = &omap_cf_device.dev;
with
static struct platform_device omap_cf_device = {
.name = MODNAME,
.id = 0,
};
In the driver omap_cf_device.dev isn't touched because in hd64465_ss.c
hd64465_device.dev isn't set as well (?).
Thanks
Dirk
> # cardmgr
> cardmgr[756]: watching 1 socket
> cardmgr[756]: could not adjust resource: IO ports 0xc00-0xcff: Function
> not implemented
> cardmgr[756]: could not adjust resource: IO ports 0x800-0x8ff: Function
> not implemented
> cardmgr[756]: could not adjust resource: IO ports 0x100-0x4ff: Function
> not implemented
> cardmgr[756]: could not adjust resource: memory 0xc0000-0xfffff:
> Function not implemented
> cardmgr[756]: could not adjust resource: memory 0x60000000-0x60ffffff:
> Function not implemed
> cardmgr[756]: could not adjust resource: memory 0xa0000000-0xa0ffffff:
> Function not implemed
> cardmgr[756]: could not adjust resource: IO ports 0xa00-0xaff: Function
> not implemented
> # cardmgr[757]: socket 0: ATA/IDE Fixed Disk
> 0.0: GetNextTuple: No more items
> cardmgr[757]: get dev info on socket 0 failed: No such device
> #
>
> # cardctl status
> Socket 0:
> 5V 16-bit PC Card
> function 0: [ready]
> # cardctl ident
> Socket 0:
> product info: "Transcend 128M ", "", "", ""
> manfid: 0x0000, 0x0000
> function: 4 (fixed disk)
> # cardctl config
> Socket 0:
> Vcc 5.0V Vpp1 5.0V Vpp2 5.0V
> # cardctl info
> PRODID_1="Transcend 128M "
> PRODID_2=""
> PRODID_3=""
> PRODID_4=""
> MANFID=0000,0000
> FUNCID=4
>
>
More information about the linux-pcmcia
mailing list