1. 16 7月, 2007 2 次提交
  2. 15 7月, 2007 1 次提交
  3. 13 7月, 2007 7 次提交
  4. 12 7月, 2007 16 次提交
    • J
      i2c-rpx: Remove · 0a85e9a2
      Jean Delvare 提交于
      This driver has been broken forever. It depends on i2c-algo-8xx which
      has never been in the mainline kernel.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      0a85e9a2
    • J
      i2c: New bus driver for the TAOS evaluation modules · b9cdad74
      Jean Delvare 提交于
      This is a new I2C bus driver for the TAOS evaluation modules. Developped
      and tested on the TAOS TSL2550 EVM.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      b9cdad74
    • O
      i2c-i801: Use the internal 32-byte buffer on ICH4+ · 7edcb9ab
      Oleg Ryjkov 提交于
      Add an ability to utilize the internal SRAM buffer on ICH4
      and newer host controllers to speed up execution of block operations.
      
      I've split the code so that it is more clear which block transaction is
      performed.
      
      First of all the host controller's type is identified. isich4 is set when
      we think that the controller has the internal buffer. Then, before every
      block transaction, if isich4 is set, we attempt to enable the E32B bit in
      SMBAUXCTL register.
      Signed-off-by: NOleg Ryjkov <olegr@google.com>
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      7edcb9ab
    • H
      i2c-piix4: Add support for the ATI SB700 · c29c2221
      Henry Su 提交于
      Add the SMBus device ID for ATI SB700.
      Signed-off-by: NHenry Su <Henry.su@amd.com>
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      c29c2221
    • J
      i2c: Fix the i2c_smbus_read_i2c_block_data() prototype · 4b2643d7
      Jean Delvare 提交于
      Let the drivers specify how many bytes they want to read with
      i2c_smbus_read_i2c_block_data(). So far, the block count was
      hard-coded to I2C_SMBUS_BLOCK_MAX (32), which did not make much sense.
      Many driver authors complained about this before, and I believe it's
      about time to fix it. Right now, authors have to do technically stupid
      things, such as individual byte reads or full-fledged I2C messaging,
      to work around the problem. We do not want to encourage that.
      
      I even found that some bus drivers (e.g. i2c-amd8111) already
      implemented I2C block read the "right" way, that is, they didn't
      follow the old, broken standard. The fact that it was never noticed
      before just shows how little i2c_smbus_read_i2c_block_data() was used,
      which isn't that surprising given how broken its prototype was so far.
      
      There are some obvious compatiblity considerations:
      * This changes the i2c_smbus_read_i2c_block_data() prototype. Users
        outside the kernel tree will notice at compilation time, and will
        have to update their code.
      * User-space has access to i2c_smbus_xfer() directly using i2c-dev, so
        the changed expectations would affect tools such as i2cdump. In order
        to preserve binary compatibility, we give I2C_SMBUS_I2C_BLOCK_DATA
        a new numeric value, and define I2C_SMBUS_I2C_BLOCK_BROKEN with the
        old numeric value. When i2c-dev receives a transaction with the
        old value, it can convert it to the new format on the fly.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      4b2643d7
    • J
      i2c: Deprecate legacy RTC drivers · ba7fbb72
      Jean Delvare 提交于
      We have a new RTC subsystem with better drivers.
      
      Legacy driver status:
      * ds1337: The DS1337 and DS1339 are now supported by the rtc-ds1307
        driver, so it looks to me like we could even delete the ds1337
        driver right away.
      * ds1374: Will soon be replaced with Scott Wood's rtc-ds1374 driver.
      * m41t00: The M41T00 is supported by the rtc-ds1307 driver. For the
        M41T81 and M41T85, the rtc-m41t80 driver written by Atsushi Nemoto
        should work.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Cc: Alessandro Zummo <a.zummo@towertech.it>
      Acked-by: NMark A. Greer <mgreer@mvista.com>
      Acked-by: NJames Chapman <jchapman@katalix.com>
      Cc: Randy Vinson <rvinson@mvista.com>
      ba7fbb72
    • J
      i2c: Delete outdated x1205 driver documentation · 890e0375
      Jean Delvare 提交于
      The x1205 driver moved to the RTC subsystem and was significantly
      modified since then, so just delete the outdated documentation.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Cc: Alessandro Zummo <alessandro.zummo@towertech.it>
      890e0375
    • D
      i2c: Add kernel documentation · d64f73be
      David Brownell 提交于
      Generate I2C kerneldoc; fix various glitches and add "context" sections to
      that documentation.  Most I2C and SMBus functions still have no kerneldoc.
      
      Let me suggest providing kerneldoc for all the i2c_smbus_*() functions as
      a small and mostly self-contained project for anyone so inclined.  :)
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      d64f73be
    • E
      security: Protection for exploiting null dereference using mmap · ed032189
      Eric Paris 提交于
      Add a new security check on mmap operations to see if the user is attempting
      to mmap to low area of the address space.  The amount of space protected is
      indicated by the new proc tunable /proc/sys/vm/mmap_min_addr and defaults to
      0, preserving existing behavior.
      
      This patch uses a new SELinux security class "memprotect."  Policy already
      contains a number of allow rules like a_t self:process * (unconfined_t being
      one of them) which mean that putting this check in the process class (its
      best current fit) would make it useless as all user processes, which we also
      want to protect against, would be allowed. By taking the memprotect name of
      the new class it will also make it possible for us to move some of the other
      memory protect permissions out of 'process' and into the new class next time
      we bump the policy version number (which I also think is a good future idea)
      Acked-by: NStephen Smalley <sds@tycho.nsa.gov>
      Acked-by: NChris Wright <chrisw@sous-sol.org>
      Signed-off-by: NEric Paris <eparis@redhat.com>
      Signed-off-by: NJames Morris <jmorris@namei.org>
      ed032189
    • 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
    • K
      Rules on how to use sysfs in userspace programs · 46336009
      Kay Sievers 提交于
      Here's a document to help clear things up.
      Signed-off-by: NKay Sievers <kay.sievers@vrfy.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      46336009
    • 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
    • J
      PCI: remove pci_dac_dma_... APIs · caa51716
      Jan Beulich 提交于
      Based on replies to a respective query, remove the pci_dac_dma_...() APIs
      (except for pci_dac_dma_supported() on Alpha, where this function is used
      in non-DAC PCI DMA code).
      Signed-off-by: NJan Beulich <jbeulich@novell.com>
      Cc: Andi Kleen <ak@suse.de>
      Cc: Jesse Barnes <jesse.barnes@intel.com>
      Cc: Christoph Hellwig <hch@infradead.org>
      Acked-by: NDavid Miller <davem@davemloft.net>
      Cc: Jeff Garzik <jeff@garzik.org>
      Cc: <linux-arch@vger.kernel.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      
      caa51716
    • 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
    • C
    • A
      [IA64] prevent MCA when performing MMIO mmap to PCI config space · 012b7105
      Alex Chiang 提交于
      Example memory map (HP rx7640 with 'default' acpiconfig setting, VGA disabled):
         0x00000000 - 0x3FFFBFFF  supports only WB (cacheable) access
      
      If a user attempts to perform an MMIO mmap (using the PCIIOC_MMAP_IS_MEM ioctl)
      to PCI config space (like mmap'ing and accessing memory at 0xA0000),
      we will MCA because the kernel will attempt to use a mapping with the UC
      attribute.
      
      So check the memory attribute in kern_mmap and the EFI memmap. If WC is
      requested, and WC or UC access is supported for the region, allow it.
      Otherwise, use the same attribute the kernel uses.
      
      Updates documentation and test cases as well.
      Signed-off-by: NAlex Chiang <achiang@hp.com>
      Signed-off-by: NBjorn Helgaas <bjorn.helgaas@hp.com>
      Signed-off-by: NTony Luck <tony.luck@intel.com>
      012b7105
  5. 11 7月, 2007 8 次提交
  6. 10 7月, 2007 6 次提交
    • G
      Documentation/block/barrier.txt is not in sync with the actual code: -... · c0613c1c
      Geert Uytterhoeven 提交于
      Documentation/block/barrier.txt is not in sync with the actual code: - blk_queue_ordered() no longer has a gfp_mask parameter - blk_queue_ordered_locked() no longer exists - sd_prepare_flush() looks slightly different
      Signed-off-by: NGeert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
      Acked-by: NTejun Heo <htejun@gmail.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NJens Axboe <jens.axboe@oracle.com>
      c0613c1c
    • A
      [BATTERY] Universal power supply class (was: battery class) · 4a11b59d
      Anton Vorontsov 提交于
      This class is result of "external power" and "battery" classes merge,
      as suggested by David Woodhouse. He also implemented uevent support.
      
      Here how userspace seeing it now:
      
          	# ls /sys/class/power\ supply/
          	ac  main-battery  usb
      
          	# cat /sys/class/power\ supply/ac/type
          	AC
      
          	# cat /sys/class/power\ supply/usb/type
          	USB
      
          	# cat /sys/class/power\ supply/main-battery/type
          	Battery
      
          	# cat /sys/class/power\ supply/ac/online
          	1
      
          	# cat /sys/class/power\ supply/usb/online
          	0
      
          	# cat /sys/class/power\ supply/main-battery/status
          	Charging
      
          	# cat /sys/class/leds/h5400\:red-left/trigger
          	none h5400-radio timer hwtimer ac-online usb-online
          	main-battery-charging-or-full [main-battery-charging]
          	main-battery-full
      Signed-off-by: NAnton Vorontsov <cbou@mail.ru>
      Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      4a11b59d
    • J
      splice: completely document external interface with kerneldoc · 932cc6d4
      Jens Axboe 提交于
      Also add fs/splice.c as a kerneldoc target with a smaller blurb that
      should be expanded to better explain the overview of splice.
      Signed-off-by: NJens Axboe <jens.axboe@oracle.com>
      932cc6d4
    • S
      ieee1394: remove old isochronous ABI · 53c96b41
      Stefan Richter 提交于
      Based on patch "the scheduled removal of RAW1394_REQ_ISO_{SEND,LISTEN}"
      from Adrian Bunk, November 20 2006.
      
      This patch also removes the underlying facilities in ohci1394 and
      disables them in pcilynx.  That is, hpsb_host_driver.devctl() and
      hpsb_host_driver.transmit_packet() are no longer used for iso reception
      and transmission.
      
      Since video1394 and dv1394 only work with ohci1394 and raw1394's rawiso
      interface has never been implemented in pcilynx, pcilynx is now no
      longer useful for isochronous applications.
      
      raw1394 will still handle the request types but will complete the
      requests with errors that indicate API version conflicts.
      Signed-off-by: NStefan Richter <stefanr@s5r6.in-berlin.de>
      53c96b41
    • I
      sched: add CFS documentation · 5e7eaade
      Ingo Molnar 提交于
      add Documentation/sched-design-CFS.txt
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      5e7eaade
    • I
      sched: zap the migration init / cache-hot balancing code · 0437e109
      Ingo Molnar 提交于
      the SMP load-balancer uses the boot-time migration-cost estimation
      code to attempt to improve the quality of balancing. The reason for
      this code is that the discrete priority queues do not preserve
      the order of scheduling accurately, so the load-balancer skips
      tasks that were running on a CPU 'recently'.
      
      this code is fundamental fragile: the boot-time migration cost detector
      doesnt really work on systems that had large L3 caches, it caused boot
      delays on large systems and the whole cache-hot concept made the
      balancing code pretty undeterministic as well.
      
      (and hey, i wrote most of it, so i can say it out loud that it sucks ;-)
      
      under CFS the same purpose of cache affinity can be achieved without
      any special cache-hot special-case: tasks are sorted in the 'timeline'
      tree and the SMP balancer picks tasks from the left side of the
      tree, thus the most cache-cold task is balanced automatically.
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      0437e109