Re: Exposing ROM's though sysfs

From: Alan Cox (alan_at_lxorguk.ukuu.org.uk)
Date: 07/31/04

  • Next message: Alan Cox: "Re: Exposing ROM's though sysfs"
    To: Matthew Wilcox <willy@debian.org>
    Date:	Fri, 30 Jul 2004 23:39:14 +0100
    
    

    On Gwe, 2004-07-30 at 19:12, Matthew Wilcox wrote:
    > I don't see a good way of doing this, unfortunately. It'd probably be
    > enough to call ->suspend on the driver while you read the contents of
    > the ROM, but that's pretty ugly.

    Is the BIOS guaranteed readable in D3 if we call suspend ?

    Since we only need the BIOS in some special cases we could just reject
    the request if the device is in use. If it has a driver - ask the
    driver, if it doesn't then ask sysfs.
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Alan Cox: "Re: Exposing ROM's though sysfs"

    Relevant Pages

    • Re: Exposing ROMs though sysfs
      ... When the driver for one of these card loads it could ... >> copy of the ROM into RAM and cache it in a PCI structure. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH] add PCI ROMs to sysfs
      ... Drivers for hardware with partial PCI decoding need to at least add a ... call to pci_remove_rom() to remove the rom attribute from sysfs. ... If anyone is maintainer for a driver ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH] lcd: replace cli()/sti() with spin_lock_irqsave()/spin_unlock_irqrestore()
      ... The driver is leaking memory, rom is not freed in this case. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Exposing ROMs though sysfs
      ... > userspace to cache it before the driver takes control of the card ... the kernel will have to take care of it. ... You may also need ROM access when resuming a suspended device so we ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH] CON_BOOT
      ... Matthew Wilcox wrote: ... Should we support more than a single CON_BOOT-labelled driver? ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)