[lkml]   [2004]   [Nov]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] smsc-ircc2: Add PnP support.
    mc> try to do an "echo auto > /sys/bus/pnp/device_number/resources"
    mc> It will reenable the device.

    I tried this on my Toshiba Satellite 1800-314 and the device gets IO
    resources but is still disabled. echo activate > ... will enable it but
    the smc-ircc2 driver still finds that the device is disabled (in
    2.6.10-rc2+yesterdays BK):

    nartsiss:~# cat /sys/bus/pnp/devices/00\:0a/options
    Dependent: 01 - Priority acceptable
    port 0x3f8-0x3f8, align 0x0, size 0x8, 16-bit address decoding
    Dependent: 02 - Priority acceptable
    port 0x2e8-0x2e8, align 0x0, size 0x8, 16-bit address decoding
    Dependent: 03 - Priority acceptable
    port 0x2f8-0x2f8, align 0x0, size 0x8, 16-bit address decoding
    Dependent: 04 - Priority acceptable
    port 0x3e8-0x3e8, align 0x0, size 0x8, 16-bit address decoding
    nartsiss:~# cat /sys/bus/pnp/devices/00\:0a/resources
    state = disabled
    nartsiss:~# echo auto > /sys/bus/pnp/devices/00\:0a/resources
    nartsiss:~# cat /sys/bus/pnp/devices/00\:0a/resources
    state = disabled
    io 0x2e8-0x2ef
    nartsiss:~# echo activate > /sys/bus/pnp/devices/00\:0a/resources
    nartsiss:~# cat /sys/bus/pnp/devices/00\:0a/resources
    state = active
    io 0x2e8-0x2ef
    nartsiss:~# modprobe smsc-ircc2
    FATAL: Error inserting smsc_ircc2
    (/lib/modules/2.6.10-rc2/kernel/drivers/net/irda/smsc-ircc2.ko): No such device
    nartsiss:~# dmesg|tail -5
    pnp: Device 00:0a activated.
    NET: Registered protocol family 23
    found SMC SuperIO Chip (devid=0x5a rev=00 base=0x002e): LPC47N227
    smsc_superio_flat(): IrDA not enabled
    smsc_superio_flat(): fir: 0x00, sir: 0x2e8, dma: 15, irq: 0, mode: 0x02

    Looks like there is also a enable/disable bit in the actual LPC device,
    or maybe it needs also a fir address and/or irq?

    Meelis Roos
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 14:08    [W:0.032 / U:45.832 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site