Re: [PATCH] add PCI ROMs to sysfs

From: Jesse Barnes (jbarnes_at_engr.sgi.com)
Date: 07/30/04

  • Next message: Shane Shrybman: "Re: [patch] voluntary-preempt-2.6.8-rc2-L2 PS2 keyboard gone south"
    To: Greg KH <greg@kroah.com>
    Date:	Fri, 30 Jul 2004 14:34:50 -0700
    
    

    On Friday, July 30, 2004 2:29 pm, Greg KH wrote:
    > On Fri, Jul 30, 2004 at 02:09:05PM -0700, Jesse Barnes wrote:
    > > Thoughts? I've tried to add cleanup code, but I'm not sure how
    > > acceptable it is and I don't have any way of testing it.
    >
    > You don't have access to a cardbus machine? Or how about using the
    > fakephp driver to "remove" pci devices? You should be able to test this
    > code path with either one of those methods...

    I've never tried fakephp, I'll look into it. And I do have a laptop at home
    that I could mess around on too, though I don't think I have any devices with
    ROMs...

    > > +void pci_remove_sysfs_dev_files(struct pci_dev *pdev)
    > > +{
    > > + /* Don't need to free config entries since they're static & global */
    >
    > What do you mean by this? You should still remove all files we added in
    > the pci_create_sysfs_dev_files() function here, not just the rom file.

    What will happen if we don't? They didn't used to be removed, and there's
    only one global copy afaict. I'll add code to kill them at any rate.

    Thanks,
    Jesse
    -
    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: Shane Shrybman: "Re: [patch] voluntary-preempt-2.6.8-rc2-L2 PS2 keyboard gone south"

    Relevant Pages

    • Re: module-init-tools - input devices id support
      ... This is the first time I've looked at the input code, ... at least so I was assured by Greg. ... But it's designed for the hotplug stuff. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • RE: --- (or anyone else) one small i2c question.
      ... Greg one small i2c question. ... one Milidegrees is one thousand Grade Celsius. ... The actual Reading, from the vt8231 inside the io space is an 8 bit value. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: file2alias - incorrect? aliases for USB
      ... Andrey: the reason everything is in there is I didn't know what Greg ... visor.c defines one empty slot in USB ids table that can be filled in at ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: -mm -> 2.6.13 merge status
      ... fails totally in a single routine. ... then putting all of the cleanup code in a ... single function and using the enums eliminates duplicate code and ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [lm-sensors] [PATCH 2.6.12-rc4 15/15] drivers/i2c/chips/adm1026.c: use dynamic sysfs callbacks
      ... I like the idea of aggregating the related sensor attributes into ... arrays, I did things the same way in bmcsensors but of course that was ... As Greg points out there is probably a nicer way to create the ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)