26 Jun, 2006

38 commits

  • Add an RTC driver for the Dallas DS1742 RTC chip.

    [akpm@osdl.org: cleanups, compile fix]
    Signed-off-by: Atsushi Nemoto
    Cc: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Atsushi Nemoto
     
  • Add an RTC driver for the Dallas DS1553 RTC chip.

    [akpm@osdl.org: cleanups, compile fix]
    Signed-off-by: Atsushi Nemoto
    Cc: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Atsushi Nemoto
     
  • - whitespace fixes (80-col display)

    - one unneeded cast of void*

    Cc: Andrew Victor
    Cc: Alessandro Zummo
    Cc: Russell King
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrew Morton
     
  • Adds support for the RTC integrated in the Atmel AT91RM9200 SoC.

    Driver was originally written for 2.4 by Rick Bronson. Then converted to
    2.6 ARM RTC API by Steven Scholz. Now converted to the RTC class model.

    Signed-off-by: Andrew Victor
    Signed-off-by: Alessandro Zummo
    Cc: Russell King
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrew Victor
     
  • RTC: Add exported function rtc_year_days() to calculate the tm_yday value.

    Signed-off-by: Andrew Victor
    Signed-off-by: Alessandro Zummo
    Cc: Russell King
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrew Victor
     
  • This patch adds support for the v3020 RTC from EM Microelectronic.

    The v3020 RTC is designed to be connected on a bus using only one data bit.
    Since any data bit may be used, it is necessary to specify this to the
    driver by passing a struct v3020_platform_data pointer (see
    include/linux/rtc-v3020.h) to the driver.

    Part of the following code comes from the kernel patchs produced by
    Compulab for their products. The original file (available here:
    http://raph.people.8d.com/misc/emv3020.c) was released under the terms of
    the GPL license.

    [akpm@osdl.org: cleanups]
    Signed-off-by: Raphael Assenat
    Cc: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Raphael Assenat
     
  • Add support for the MAX6902 SPI RTC chip. Tested on a pxa2xx cpu.

    The compulab code comes from the kernel patch the produce for their
    cn-x255 board. (inside a zip file on the
    http://www.compulab.co.il/x255/html/x255-developer.htm)

    The original file (drivers/char/max6902.c) was GPL, which is of course
    an appropriate licence:

    /*
    * max6902.c
    *
    * Driver for MAX6902 RTC
    *
    * Copyright (C) 2004 Compulab Ltd.
    *
    *
    * This program is free software; you can redistribute it and/or modify
    * it under the terms of the GNU General Public License version 2 as
    * published by the Free Software Foundation.
    *
    *
    */

    For reference, you can get the original file here:
    http://raph.people.8d.com/misc/max6902.c

    [akpm@osdl.org: cleanups]
    Signed-off-by: Raphael Assenat
    Cc: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Raphael Assenat
     
  • Centralize CAP_SYS_XXX checks to avoid duplicate code and missing checks in
    the drivers.

    Signed-off-by: Alessandro Zummo
    Cc: Richard Purdie
    Cc: Yoichi Yuasa
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alessandro Zummo
     
  • Remove commented capability checks and add some others.

    Signed-off-by: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alessandro Zummo
     
  • A port of the driver for the pcf8583 i2c rtc controller to the generic RTC
    framework by Alessandro Zummo. Based on
    drivers/acorn/char/{pcf8583.[hc],i2c.c}. Hopefully, acorn can be converted
    too to use this driver in the future.

    Signed-off-by: G. Liakhovetski
    Signed-off-by: Alessandro Zummo
    Cc: Russell King
    Cc: Jean Delvare
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    G. Liakhovetski
     
  • Import genrtc's RTC UIE emulation (CONFIG_GEN_RTC_X) to rtc-dev driver with
    slight adjustments/refinements. This makes UIE-less rtc drivers work
    better with programs doing read/poll on /dev/rtc, such as hwclock. This
    emulation should not harm rtc drivers with UIE support, since
    rtc_dev_ioctl() calls underlaying rtc driver's ioctl() first.

    Signed-off-by: Atsushi Nemoto
    Acked-by: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Atsushi Nemoto
     
  • This is an "RTC-framework" driver for DS1307 and similar RTC chips,

    It should be a full replacement for the existing ds1337.c driver (using the
    older RTC glue), giving a net increase in the number of RTC chips that work
    out-of-the-box. There's a whole cluster of RTCs that are very similar, but
    the 1337 driver was a bit too picky to work with most of them.

    Still no support for RTC alarm IRQs (on chips that support them).

    Signed-off-by: David Brownell
    Signed-off-by: James Chapman
    Signed-off-by: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    David Brownell
     
  • Fix section warning:
    WARNING: drivers/scsi/megaraid/megaraid_mbox.o - Section mismatch: reference to .init.text: from .text between 'megaraid_probe_one' (at offset 0x171e) and 'megaraid_queue_command'

    Signed-off-by: Randy Dunlap
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Randy Dunlap
     
  • From: Randy Dunlap

    Fix section mismatch in wd7000 driver:
    WARNING: drivers/scsi/wd7000.o - Section mismatch: reference to .init.text: from .text after 'wd7000_detect' (at offset 0xa5d)
    WARNING: drivers/scsi/wd7000.o - Section mismatch: reference to .init.text: from .text after 'wd7000_detect' (at offset 0xab6)
    WARNING: drivers/scsi/wd7000.o - Section mismatch: reference to .init.text: from .text after 'wd7000_detect' (at offset 0xb67

    Signed-off-by: Randy Dunlap
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Randy.Dunlap
     
  • Driver for the simple parallel port interface on the Asix AX88796 chip on
    an platform_bus.

    [akpm@osdl.org: x86_64 build fix]
    Signed-off-by: Ben Dooks
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ben Dooks
     
  • Do a *partial* CodingStyle cleanup, correct some spelling in printk()'s &&
    convert C++ comments to C comments - in moxa driver.

    Signed-off-by: Jesper Juhl
    Cc: Alan Cox
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jesper Juhl
     
  • Remove pointless check of 'tty' argument vs NULL from moxa driver.

    Signed-off-by: Jesper Juhl
    Cc: Alan Cox
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jesper Juhl
     
  • Signed-off-by: Jesper Juhl
    Acked-by: Alan Cox
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jesper Juhl
     
  • Lots of people use this. Apparently RH has for over 18 months so lets
    drop EXPERIMENTAL.

    Signed-off-by: Chris Wedgwood
    Cc: Matt Domsch
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Chris Wedgwood
     
  • WARNING: drivers/block/cpqarray.o - Section mismatch: reference to .init.text: from .text between 'cpqarray_register_ctlr' (at offset 0xe98) and 'alloc_cpqarray_hba'
    WARNING: drivers/block/cpqarray.o - Section mismatch: reference to .init.text: from .text between 'cpqarray_register_ctlr' (at offset 0xe9c) and 'alloc_cpqarray_hba'

    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrew Morton
     
  • This is a patch from Alan that fixes a real ide-cd.c regression causing
    bogus "Media Check" failures for perfectly valid Fedora install ISOs, on
    certain CD-ROM drives.

    This is a forward port to 2.6.16 (from RHEL) of the minimal changes for the
    end of media problem. It may not be sufficient for some controllers
    (promise notably) and it does not touch the locking so the error path
    locking is as horked as in mainstream.

    From: Ingo Molnar

    I have ported the patch to 2.6.17-rc4 and tested it by provoking
    end-of-media IO errors with an unaligned ISO image. Unlike the vanilla
    kernel, the patched kernel interpreted the error condition correctly with
    512 byte granularity:

    hdc: command error: status=0x51 { DriveReady SeekComplete Error }
    hdc: command error: error=0x54 { AbortedCommand LastFailedSense=0x05 }
    ide: failed opcode was: unknown
    ATAPI device hdc:
    Error: Illegal request -- (Sense key=0x05)
    Illegal mode for this track or incompatible medium -- (asc=0x64, ascq=0x00)
    The failed "Read 10" packet command was:
    "28 00 00 04 fb 78 00 00 06 00 00 00 00 00 00 00 "
    end_request: I/O error, dev hdc, sector 1306080
    Buffer I/O error on device hdc, logical block 163260
    Buffer I/O error on device hdc, logical block 163261
    Buffer I/O error on device hdc, logical block 163262

    the unpatched kernel produces an incorrect error dump:

    hdc: command error: status=0x51 { DriveReady SeekComplete Error }
    hdc: command error: error=0x54 { AbortedCommand LastFailedSense=0x05 }
    ide: failed opcode was: unknown
    end_request: I/O error, dev hdc, sector 1306080
    Buffer I/O error on device hdc, logical block 163260
    hdc: command error: status=0x51 { DriveReady SeekComplete Error }
    hdc: command error: error=0x54 { AbortedCommand LastFailedSense=0x05 }
    ide: failed opcode was: unknown
    end_request: I/O error, dev hdc, sector 1306088
    Buffer I/O error on device hdc, logical block 163261
    hdc: command error: status=0x51 { DriveReady SeekComplete Error }
    hdc: command error: error=0x54 { AbortedCommand LastFailedSense=0x05 }
    ide: failed opcode was: unknown
    end_request: I/O error, dev hdc, sector 1306096
    Buffer I/O error on device hdc, logical block 163262

    I do not have the right type of CD-ROM drive to reproduce the end-of-media
    data corruption bug myself, but this same patch in RHEL solved it.

    Signed-off-by: Ingo Molnar
    Cc: Alan Cox
    Cc: Bartlomiej Zolnierkiewicz
    Cc: Jens Axboe
    Cc: Matt Mackall
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alan Cox
     
  • nbd abuses file header as a changelog (and obsolete one, too), and fails to
    mention GPL. This fixes it.

    Signed-off-by: Pavel Machek
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Pavel Machek
     
  • - proper prototypes for the following functions:
    - ctrl_alt_del() (in include/linux/reboot.h)
    - getrusage() (in include/linux/resource.h)
    - make the following needlessly global functions static:
    - kernel_restart_prepare()
    - kernel_kexec()

    [akpm@osdl.org: compile fix]
    Signed-off-by: Adrian Bunk
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Adrian Bunk
     
  • Add a driver for the ARM PL031 RTC found on some ARM SOCs. The driver is
    fairly trivial as the RTC only provides a read/write and alarm capability.

    [akpm@osdl.org: compile fix]
    Signed-off-by: Deepak
    Acked-by: Alessandro Zummo
    Cc: Russell King
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Deepak Saxena
     
  • In both the read and write cases it will return an error if
    copy_{from/to}_user faults. However, I let the driver try to read/write as
    much as it can just as it normally would , then finally it returns an error
    if there was one. This was the most straight forward way to handle the
    error , since there isn't a clear way to clean up the buffers on error .

    I moved retval in idetape_chrdev_write() down into the actual code blocks
    since it's really once used there, and it conflicted with my ret variable.

    Fixes the following warning,

    drivers/ide/ide-tape.c: In function ‘idetape_copy_stage_from_user’:
    drivers/ide/ide-tape.c:2662: warning: ignoring return value of ‘copy_from_user’, declared with attribute warn_unused_result
    drivers/ide/ide-tape.c: In function ‘idetape_copy_stage_to_user’:
    drivers/ide/ide-tape.c:2689: warning: ignoring return value of ‘copy_to_user’, declared with attribute warn_unused_result

    Signed-off-by: Daniel Walker
    Cc: Alan Cox
    Cc: Bartlomiej Zolnierkiewicz
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Daniel Walker
     
  • Convert the driver to use module_{init,exit}.

    Signed-off-by: Adrian Bunk
    Acked-by: David Woodhouse
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Adrian Bunk
     
  • Signed-off-by: Markus Armbruster
    Cc: Philippe Elie
    Cc: John Levon
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Markus Armbruster
     
  • We can leak `clink' if drv->probe == 0.

    Signed-off-by: Jesper Juhl
    Cc: Adam Belay
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jesper Juhl
     
  • The core input layer is already calling add_input_randomness.

    Signed-off-by: Matt Mackall
    Cc: Dmitry Torokhov
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Matt Mackall
     
  • Disk devices should use add_disk_randomness rather than SA_SAMPLE_RANDOM

    Signed-off-by: Matt Mackall
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Matt Mackall
     
  • Disk devices should use the add_disk_randomness API rather than
    SA_SAMPLE_RANDOM.

    Signed-off-by: Matt Mackall
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Matt Mackall
     
  • This patch contains a total rewrite of the backlight infrastructure for
    portable Apple computers. Backward compatibility is retained. A sysfs
    interface allows userland to control the brightness with more steps than
    before. Userland is allowed to upload a brightness curve for different
    monitors, similar to Mac OS X.

    [akpm@osdl.org: add needed exports]
    Signed-off-by: Michael Hanselmann
    Acked-by: Benjamin Herrenschmidt
    Cc: Richard Purdie
    Cc: "Antonino A. Daplas"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Michael Hanselmann
     
  • Signed-off-by: Roman Zippel
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Roman Zippel
     
  • Introduce irq controller and use it to manage auto vector interrupts.
    Introduce setup_irq() which can be used for irq setup.

    Signed-off-by: Roman Zippel
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Roman Zippel
     
  • Rename IRQ1..IRQ7 to IRQ_AUTO_1..IRQ_AUTO_7 and remove the duplicate
    defintions.

    Signed-off-by: Roman Zippel
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Roman Zippel
     
  • Signed-off-by: Roman Zippel
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Roman Zippel
     
  • Remove VM_LOCKED before remap_pfn range from device drivers and get rid of
    VM_SHM.

    remap_pfn_range() already sets VM_IO. There is no need to set VM_SHM since
    it does nothing. VM_LOCKED is of no use since the remap_pfn_range does not
    place pages on the LRU. The pages are therefore never subject to swap
    anyways. Remove all the vm_flags settings before calling remap_pfn_range.

    After removing all the vm_flag settings no use of VM_SHM is left. Drop it.

    Signed-off-by: Christoph Lameter
    Acked-by: Hugh Dickins
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Christoph Lameter
     
  • Also revert patch "frv: ieee1394 is borken on frv", as it no longer is.

    Signed-off-by: Stefan Richter
    Cc: David Howells
    Cc: Jody McIntyre
    Cc: Ben Collins
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Stefan Richter
     

25 Jun, 2006

2 commits

  • * master.kernel.org:/home/rmk/linux-2.6-arm: (25 commits)
    [ARM] 3648/1: Update struct ucontext layout for coprocessor registers
    [ARM] Add identifying number for non-rt sigframe
    [ARM] Gather common sigframe saving code into setup_sigframe()
    [ARM] Gather common sigframe restoration code into restore_sigframe()
    [ARM] Re-use sigframe within rt_sigframe
    [ARM] Merge sigcontext and sigmask members of sigframe
    [ARM] Replace extramask with a full copy of the sigmask
    [ARM] Remove rt_sigframe puc and pinfo pointers
    [ARM] 3647/1: S3C24XX: add Osiris to the list of simtec pm machines
    [ARM] 3645/1: S3C2412: irq support for external interrupts
    [ARM] 3643/1: S3C2410: Add new usb clocks
    [ARM] 3642/1: S3C24XX: Add machine SMDK2413
    [ARM] 3641/1: S3C2412: Fixup gpio register naming
    [ARM] 3640/1: S3C2412: Use S3C24XX_DCLKCON instead of S3C2410_DCLKCON
    [ARM] 3639/1: S3C2412: serial port support
    [ARM] 3638/1: S3C2412: core clocks
    [ARM] 3637/1: S3C24XX: Add mpll clock, and set as fclk parent
    [ARM] 3636/1: S3C2412: Add selection of CPU_ARM926
    [ARM] 3635/1: S3C24XX: Add S3C2412 core cpu support
    [ARM] 3633/1: S3C24XX: s3c2410 gpio bugfix - wrong pin nos
    ...

    Linus Torvalds
     
  • This reverts commit 786dc1d3d7333f269e17d742886eac2188a2d9cc.

    As Al so eloquently points out, the patch is crap. The old code was fine,
    the new code was bogus.

    It never dereferenced a user pointer, the "->" operator was to an array
    member, which gives the _address_ of the member (in user space), not an
    actual dereference at all.

    Signed-off-by: Linus Torvalds

    Linus Torvalds