1. 15 7月, 2007 25 次提交
  2. 12 7月, 2007 5 次提交
    • Z
      sysfs: add parameter "struct bin_attribute *" in .read/.write methods for sysfs binary attributes · 91a69029
      Zhang Rui 提交于
      Well, first of all, I don't want to change so many files either.
      
      What I do:
      Adding a new parameter "struct bin_attribute *" in the
      .read/.write methods for the sysfs binary attributes.
      
      In fact, only the four lines change in fs/sysfs/bin.c and
      include/linux/sysfs.h do the real work.
      But I have to update all the files that use binary attributes
      to make them compatible with the new .read and .write methods.
      I'm not sure if I missed any. :(
      
      Why I do this:
      For a sysfs attribute, we can get a pointer pointing to the
      struct attribute in the .show/.store method,
      while we can't do this for the binary attributes.
      I don't know why this is different, but this does make it not
      so handy to use the binary attributes as the regular ones.
      So I think this patch is reasonable. :)
      
      Who benefits from it:
      The patch that exposes ACPI tables in sysfs
      requires such an improvement.
      All the table binary attributes share the same .read method.
      Parameter "struct bin_attribute *" is used to get
      the table signature and instance number which are used to
      distinguish different ACPI table binary attributes.
      
      Without this parameter, we need to offer different .read methods
      for different ACPI table binary attributes.
      This is impossible as there are various ACPI tables on different
      platforms, and we don't know what they are until they are loaded.
      Signed-off-by: NZhang Rui <rui.zhang@intel.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      91a69029
    • T
      sysfs: kill unnecessary attribute->owner · 7b595756
      Tejun Heo 提交于
      sysfs is now completely out of driver/module lifetime game.  After
      deletion, a sysfs node doesn't access anything outside sysfs proper,
      so there's no reason to hold onto the attribute owners.  Note that
      often the wrong modules were accounted for as owners leading to
      accessing removed modules.
      
      This patch kills now unnecessary attribute->owner.  Note that with
      this change, userland holding a sysfs node does not prevent the
      backing module from being unloaded.
      
      For more info regarding lifetime rule cleanup, please read the
      following message.
      
        http://article.gmane.org/gmane.linux.kernel/510293
      
      (tweaked by Greg to not delete the field just yet, to make it easier to
      merge things properly.)
      Signed-off-by: NTejun Heo <htejun@gmail.com>
      Cc: Cornelia Huck <cornelia.huck@de.ibm.com>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      7b595756
    • R
      PCI: add pci_try_set_mwi · 694625c0
      Randy Dunlap 提交于
      As suggested by Andrew, add pci_try_set_mwi(), which does not require
      return-value checking.
      
      - add pci_try_set_mwi() without __must_check
      - make it return 0 on success, errno if the "try" failed or error
      - review callers
      Signed-off-by: NRandy Dunlap <randy.dunlap@oracle.com>
      Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      694625c0
    • A
      PCI: Change all drivers to use pci_device->revision · 44c10138
      Auke Kok 提交于
      Instead of all drivers reading pci config space to get the revision
      ID, they can now use the pci_device->revision member.
      
      This exposes some issues where drivers where reading a word or a dword
      for the revision number, and adding useless error-handling around the
      read. Some drivers even just read it for no purpose of all.
      
      In devices where the revision ID is being copied over and used in what
      appears to be the equivalent of hotpath, I have left the copy code
      and the cached copy as not to influence the driver's performance.
      
      Compile tested with make all{yes,mod}config on x86_64 and i386.
      Signed-off-by: NAuke Kok <auke-jan.h.kok@intel.com>
      Acked-by: NDave Jones <davej@redhat.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      44c10138
    • D
      PCI: remove useless pci driver method · 56906c61
      David Brownell 提交于
      Remove pointless and never-called enable_wake() hook from pci_driver and
      from documentation.  Evidently this was introduced in the 2.4.6 kernel,
      but there's no evidence it was ever called; and it was rarely implemented.
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      56906c61
  3. 02 7月, 2007 1 次提交
    • R
      scsi disk help file is not complete · abcdceb9
      Randy Dunlap 提交于
      On Mon, 11 Jun 2007 20:28:16 +0200 api wrote:
      
      > Good day,
      > When doing make menuconfig one comes across CONFIG_BLK_DEV_SD.
      > The help file states that this is for scsi disks.NO MENTION IS MADE THAT
      > IT IS NEEDE FOR SATA DISKS AS WELL!
      > Would have saved me a lot of time if the help was up to date.
      > I hope this can be changed so others can make a kernel for sata systems
      > quicker.
      
      From: Randy Dunlap <randy.dunlap@oracle.com>
      
      Add help info for BLK_DEV_SD referring to its use in
      SATA or PATA driver configurations.
      
      Add help text for "ATA" indicating that it probably needs
      some SCSI config symbols enabled in order to be useful.
      Signed-off-by: NRandy Dunlap <randy.dunlap@oracle.com>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      abcdceb9
  4. 26 6月, 2007 1 次提交
  5. 20 6月, 2007 6 次提交
  6. 18 6月, 2007 2 次提交