30 Jun, 2006

8 commits

  • * master.kernel.org:/pub/scm/linux/kernel/git/gregkh/pci-2.6:
    [PATCH] i386: export memory more than 4G through /proc/iomem
    [PATCH] 64bit Resource: finally enable 64bit resource sizes
    [PATCH] 64bit Resource: convert a few remaining drivers to use resource_size_t where needed
    [PATCH] 64bit resource: change pnp core to use resource_size_t
    [PATCH] 64bit resource: change pci core and arch code to use resource_size_t
    [PATCH] 64bit resource: change resource core to use resource_size_t
    [PATCH] 64bit resource: introduce resource_size_t for the start and end of struct resource
    [PATCH] 64bit resource: fix up printks for resources in misc drivers
    [PATCH] 64bit resource: fix up printks for resources in arch and core code
    [PATCH] 64bit resource: fix up printks for resources in pcmcia drivers
    [PATCH] 64bit resource: fix up printks for resources in video drivers
    [PATCH] 64bit resource: fix up printks for resources in ide drivers
    [PATCH] 64bit resource: fix up printks for resources in mtd drivers
    [PATCH] 64bit resource: fix up printks for resources in pci core and hotplug drivers
    [PATCH] 64bit resource: fix up printks for resources in networks drivers
    [PATCH] 64bit resource: fix up printks for resources in sound drivers
    [PATCH] 64bit resource: C99 changes for struct resource declarations

    Fixed up trivial conflict in drivers/ide/pci/cmd64x.c (the printk that
    was changed by the 64-bit resources had been deleted in the meantime ;)

    Linus Torvalds
     
  • This patch-queue improves the generic IRQ layer to be truly generic, by adding
    various abstractions and features to it, without impacting existing
    functionality.

    While the queue can be best described as "fix and improve everything in the
    generic IRQ layer that we could think of", and thus it consists of many
    smaller features and lots of cleanups, the one feature that stands out most is
    the new 'irq chip' abstraction.

    The irq-chip abstraction is about describing and coding and IRQ controller
    driver by mapping its raw hardware capabilities [and quirks, if needed] in a
    straightforward way, without having to think about "IRQ flow"
    (level/edge/etc.) type of details.

    This stands in contrast with the current 'irq-type' model of genirq
    architectures, which 'mixes' raw hardware capabilities with 'flow' details.
    The patchset supports both types of irq controller designs at once, and
    converts i386 and x86_64 to the new irq-chip design.

    As a bonus side-effect of the irq-chip approach, chained interrupt controllers
    (master/slave PIC constructs, etc.) are now supported by design as well.

    The end result of this patchset intends to be simpler architecture-level code
    and more consolidation between architectures.

    We reused many bits of code and many concepts from Russell King's ARM IRQ
    layer, the merging of which was one of the motivations for this patchset.

    This patch:

    rename desc->handler to desc->chip.

    Originally i did not want to do this, because it's a big patch. But having
    both "desc->handler", "desc->handle_irq" and "action->handler" caused a
    large degree of confusion and made the code appear alot less clean than it
    truly is.

    I have also attempted a dual approach as well by introducing a
    desc->chip alias - but that just wasnt robust enough and broke
    frequently.

    So lets get over with this quickly. The conversion was done automatically
    via scripts and converts all the code in the kernel.

    This renaming patch is the first one amongst the patches, so that the
    remaining patches can stay flexible and can be merged and split up
    without having some big monolithic patch act as a merge barrier.

    [akpm@osdl.org: build fix]
    [akpm@osdl.org: another build fix]
    Signed-off-by: Ingo Molnar
    Signed-off-by: Thomas Gleixner
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ingo Molnar
     
  • Signed-off-by: Adrian Bunk
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Adrian Bunk
     
  • Coverity spotted this leak (id #613), when we are not configured, we return
    without freeing the allocated skb.

    Signed-off-by: Eric Sesterhenn
    Acked-by: Karsten Keil
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Eric Sesterhenn
     
  • AFAICT, this is x86 only, so the patch below is needed to stop this new
    option showing up on PPC, IA64, etc..

    Signed-off-by: Dave Jones
    Cc: Jim Cromie
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Dave Jones
     
  • Another possible dereference detected by coverity (id #759). pf_probe()
    might call pf_identify() which might call get_capacity() which dereferences
    pf->disk

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

    Eric Sesterhenn
     
  • Documention/pci.txt states..
    "The struct pci_driver shouldn't be marked with any of these tags."
    (Referring to __devinit and friends).

    (akpm: good documentation, that. Link this driver into vmlinux with hotplug
    CPU disabled and it'll crash).

    Signed-off-by: Dave Jones
    Cc: Brent Casavant
    Cc: Pat Gefre
    Cc: Jes Sorensen
    Cc: Tony Luck
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Dave Jones
     
  • drivers/built-in.o: In function `sgivwfb_set_par':
    sgivwfb.c:(.text+0x88583): undefined reference to `sgivwfb_mem_phys'
    sgivwfb.c:(.text+0x88596): undefined reference to `sgivwfb_mem_phys'
    sgivwfb.c:(.text+0x885a8): undefined reference to `sgivwfb_mem_phys'
    drivers/built-in.o: In function `sgivwfb_check_var':
    sgivwfb.c:(.text+0x88ad0): undefined reference to `sgivwfb_mem_size'
    drivers/built-in.o: In function `sgivwfb_mmap':
    sgivwfb.c:(.text+0x88c75): undefined reference to `sgivwfb_mem_size'
    sgivwfb.c:(.text+0x88c7f): undefined reference to `sgivwfb_mem_phys'
    drivers/built-in.o: In function `sgivwfb_probe':
    sgivwfb.c:(.init.text+0x4060): undefined reference to `sgivwfb_mem_size'
    sgivwfb.c:(.init.text+0x4065): undefined reference to `sgivwfb_mem_phys'
    sgivwfb.c:(.init.text+0x4076): undefined reference to `sgivwfb_mem_phys'
    sgivwfb.c:(.init.text+0x409c): undefined reference to `sgivwfb_mem_size'
    sgivwfb.c:(.init.text+0x410e): undefined reference to `sgivwfb_mem_size'
    sgivwfb.c:(.init.text+0x4113): undefined reference to `sgivwfb_mem_phys'
    sgivwfb.c:(.init.text+0x4162): undefined reference to `sgivwfb_mem_size'
    sgivwfb.c:(.init.text+0x4168): undefined reference to `sgivwfb_mem_phys'
    make: *** [.tmp_vmlinux1] Error 1

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

    Adrian Bunk
     

29 Jun, 2006

22 commits

  • * master.kernel.org:/pub/scm/linux/kernel/git/wim/linux-2.6-watchdog:
    [WATCHDOG] Documentation/watchdog update
    [WATCHDOG] convert AT91RM9200 watchdog to platform driver
    [WATCHDOG] add WDIOC_GETTIMELEFT ioctl
    [WATCHDOG] Pre-Timeout flags

    Linus Torvalds
     
  • This patch adds earlier initialization of spi_device.mode, as needed
    on boards using nondefault chipselect polarity. An example would be
    ones using the RS5C348 RTC without an external signal inverter between
    the RTC chipselect and the SPI controller.

    Without this mechanism, the first setup() call for that chip would
    wrongly enable chips, corrupting transfers to/from other chips sharing
    that SPI bus.

    Signed-off-by: David Brownell
    Signed-off-by: Linus Torvalds

    David Brownell
     
  • * master.kernel.org:/pub/scm/linux/kernel/git/dtor/input:
    Input: db9 - fix potential buffer overrun
    Input: atkbd - fix hardware autorepeat
    Input: wistron - add mapping for Wistron MS 2111

    Linus Torvalds
     
  • Clean out the 68328serial driver:

    . remove use of cli/sti
    . fix usage of tty_* calls
    . remove unused variables

    Signed-off-by: Greg Ungerer
    Signed-off-by: Linus Torvalds

    Greg Ungerer
     
  • Signed-off-by: Alan Cox
    Cc: Bartlomiej Zolnierkiewicz
    Cc: Sergei Shtylyov
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alan Cox
     
  • Also sets the new fifo flag so that we don't hang on some errors with this
    chipset.

    Signed-off-by: Alan Cox
    Cc: Bartlomiej Zolnierkiewicz
    Cc: Sergei Shtylyov
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alan Cox
     
  • Move auto arrays to static (const). Clean up using PCI_DEVICE in places,
    remove unreachable junk and dead code.

    Fix the serverworks cable detect logic (if ordering is wrong). Backport
    from libata. Plenty of scope for more cleanup left.

    Signed-off-by: Alan Cox
    Cc: Bartlomiej Zolnierkiewicz
    Cc: Sergei Shtylyov
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alan Cox
     
  • If the controller FIFO cleared automatically on error we must not try
    and drain it as this will hang some chips.

    Based in concept on a broken patch from -mm some while back

    Signed-off-by: Alan Cox
    Cc: Sergei Shtylyov
    Cc: Bartlomiej Zolnierkiewicz
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alan Cox
     
  • Kill a pair of long escaped debug printk calls

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

    Alan Cox
     
  • Remove all the ifdef preparation for enhanced features that never occcurred
    and is only in libata. For the SATA chips (but not yet PATA ones) politely
    suggest to the user that libata may offer more features.

    Signed-off-by: Alan Cox
    Cc: Sergei Shtylylov
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alan Cox
     
  • This is based on the proposed patches flying around but also checks that
    the device in question is new enough to have word 93 rather thanb blindly
    assuming word 93 == 0 means SATA (see ATA-5, ATA-7)

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

    Alan Cox
     
  • Fix a erroneous calculation of the legacy brightness values as reported by
    Paul Collins. Additionally, it moves the calculation of the negative value
    in the radeonfb driver after the value check.

    Signed-off-by: Michael Hanselmann
    Acked-by: Benjamin Herrenschmidt
    Acked-by: Paul Collins
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Michael Hanselmann
     
  • Modify the watchdog timeout in IPMI to only do things at panic/reboot time if
    the watchdog timer was already running. Some BIOSes do not disable the
    watchdog timer at startup, and this led to a reboot a while later if the new
    OS running didn't start monitoring the watchdog, even if the watchdog was not
    running before.

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

    Corey Minyard
     
  • There was some old high-res-timer code in the IPMI driver that is dead.
    Remove it.

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

    Corey Minyard
     
  • Tidy up the timer usage in the IPMI driver.

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

    Corey Minyard
     
  • Turned out to be rather a monster

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

    Alan Cox
     
  • Works better on SMP if...

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

    Alan Cox
     
  • Remove 'active' field from tty buffer structure. This was added in 2.6.16
    as part of a patch to make the new tty buffering SMP safe. This field is
    unnecessary with the more intelligently written flush_to_ldisc that adds
    receive_room handling.

    Removing this field reverts to simpler logic where the tail buffer is
    always the 'active' buffer, which should not be freed by flush_to_ldisc.
    (active == buffer being filled with new data)

    The result is simpler, smaller, and faster tty buffer code.

    Signed-off-by: Paul Fulghum
    Cc: Alan Cox
    Cc: Theodore Ts'o
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Paul Fulghum
     
  • Flush data serially to line discipline in blocks no larger than
    tty->receive_room to avoid losing data if line discipline is busy (such as
    N_TTY operating at high speed on heavily loaded system) or does not accept
    data in large blocks (such as N_MOUSE).

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

    Paul Fulghum
     
  • Remove TTY_DONT_FLIP tty flag. This flag was introduced in 2.1.X kernels
    to prevent the N_TTY line discipline functions read_chan() and
    n_tty_receive_buf() from running at the same time. 2.2.15 introduced
    tty->read_lock to protect access to the N_TTY read buffer, which is the
    only state requiring protection between these two functions.

    The current TTY_DONT_FLIP implementation is broken for SMP, and is not
    universally honored by drivers that send data directly to the line
    discipline receive_buf function.

    Because TTY_DONT_FLIP is not necessary, is broken in implementation, and is
    not universally honored, it is removed.

    Signed-off-by: Paul Fulghum
    Cc: Alan Cox
    Cc: Theodore Ts'o
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Paul Fulghum
     
  • Add an SPI driver for the Ricoh RS5C348 RTC chip.

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

    Atsushi Nemoto
     
  • Same as with already do with the file operations: keep them in .rodata and
    prevents people from doing runtime patching.

    Signed-off-by: Christoph Hellwig
    Cc: Steven French
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Christoph Hellwig
     

28 Jun, 2006

10 commits

  • Fixes Coverity #id 483

    Signed-off-by: Eric Sesterhenn
    Signed-off-by: Dmitry Torokhov

    Eric Sesterhenn
     
  • Signed-off-by: Dmitry Torokhov

    Dmitry Torokhov
     
  • * 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6:
    [netdrvr] Remove long-unused bits from Becker template drivers
    [netdrvr] natsemi: minor cleanups
    [netdrvr] natsemi: Separate out media initialization code
    [PATCH] WAN: update info page for a bunch of my drivers
    [PATCH] drivers/net/hamradio/dmascc.c: fix section mismatch
    [PATCH] Fix phy id for LXT971A/LXT972A
    [PATCH] DM9000 - minor code cleanups
    [PATCH] DM9000 - do no re-init spin lock
    [PATCH] DM9000 - check for MAC left in by bootloader
    [PATCH] DM9000 - better checks for platform resources

    Linus Torvalds
     
  • * git://git.infradead.org/mtd-2.6:
    [MTD] NAND: Select chip before checking write protect status
    [MTD] CORE mtdchar.c: fix off-by-one error in lseek()
    [MTD] NAND: Fix typo in mtd/nand/ts7250.c
    [JFFS2][XATTR] coexistence between xattr and write buffering support.
    [JFFS2][XATTR] Fix wrong copyright
    [JFFS2][XATTR] Re-define xd->refcnt as atomic_t
    [JFFS2][XATTR] Fix memory leak with jffs2_xattr_ref
    [JFFS2][XATTR] rid unnecessary writing of delete marker.
    [JFFS2][XATTR] Fix ACL bug when updating null xattr by null ACL.
    [JFFS2][XATTR] using 'delete marker' for xdatum/xref deletion
    [MTD] Fix off-by-one error in physmap.c
    [MTD] Remove unused 'nr_banks' variable from ixp2000 map driver
    [MTD NAND] s3c2412 support in s3c2410.c
    [MTD] Initialize 'writesize'
    [MTD] NAND: ndfc fix address offset thinko
    [MTD] NAND: S3C2410 convert prinks to dev_*()s
    [MTD] NAND: Missing fixups

    Linus Torvalds
     
  • * 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/libata-dev:
    [PATCH] ata_piix: add ICH6/7/8 to Kconfig
    [PATCH] sata_sil: disable hotplug interrupts on two ATI IXPs
    [PATCH] libata: cosmetic updates
    [PATCH] ata: add some NVIDIA chipset IDs
    [PATCH] libata reduce timeouts
    [PATCH] libata: implement ata_port_max_devices()
    [PATCH] libata: make two functions global
    [PATCH] libata: update ata_do_simple_cmd()
    [PATCH] libata: move ata_do_simple_cmd() below ata_exec_internal()
    [PATCH] libata: clear EH action on device detach
    [PATCH] libata: implement and use ata_deh_dev_action()
    [PATCH] libata: move ata_eh_clear_action() upward
    [PATCH] libata.h needs scatterlist.h
    [libata] sata_vsc: partially revert a PCI ID-related commit
    [libata] Bump versions

    Linus Torvalds
     
  • Commit 02dd7ae2892e5ceff111d032769c78d3377df970 ("[PATCH] i2c-i801:
    Merge setup function") has a missing return 0 in the _probe() function.
    This means the error path is always executed and pci_disable_device() is
    called even when the device just got successfully enabled.

    Having the SMBus device disabled makes some systems (eg.
    Fujitsu-Siemens Lifebook E8010) hang hard during power-off.

    Intead of reverting the whole commit this patch fixes it up:
    - don't ever call pci_disable_device(), also not in the _remove() function
    to avoid hangs
    - fix missing pci_release_region() in error path

    Signed-off-by: Daniel Ritz
    Signed-off-by: Linus Torvalds

    Daniel Ritz
     
  • Collection of fixes for the ColdFire FEC ethernet driver:

    . reworked event setting so that it occurs after the MII setup.
    roucaries bastien
    . Do not read cbd_sc in memory for each bit we test. Once per buffer is enough.
    . Overrun errors must increase `rx_fifo_errors', not `rx_crc_errors'
    . No need for a special value to activate rx or tx. Only write access matters.
    . Simplify parameter of eth_copy_and_sum : `data' has already the right value.
    . Some spelling fixes.

    Signed-off-by: Philippe De Muyter
    Signed-off-by: Greg Ungerer
    Signed-off-by: Linus Torvalds

    Greg Ungerer
     
  • Set different irq priority levels for each IRQ requested.
    According to the Freescale ColdFire documentation each separate IRQ
    must have its own unique priority/level combination.

    Signed-off-by: Greg Ungerer
    Signed-off-by: Linus Torvalds

    Willson Callan
     
  • Add support for the FEC module in the ColdFire 532x CPU family.

    Signed-off-by: Greg Ungerer
    Signed-off-by: Linus Torvalds

    Matt Waddel
     
  • Avoid requesting a `Graceful Transmit Stop' when link has disappeared,
    because that request cannot complete without link.

    Signed-off-by: Greg Ungerer
    Signed-off-by: Linus Torvalds

    Philippe De Muyter