31 Jan, 2009

22 commits

  • As the pata-rb532-cf driver calls gpio_direction_input(), the calls to
    rb532_gpio_set_func() and rb532_gpio_direction_input() are not needed since
    the alternate function is automatically being disabled when changing the
    GPIO pin direction.
    The later two calls to rb532_gpio_set_{ilevel,istat}() are implicitly being
    done by the IRQ initialisation of pata-rb532-cf.

    Signed-off-by: Phil Sutter
    Signed-off-by: Ralf Baechle

    Phil Sutter
     
  • When a driver calls gpio_set_direction_{input,output}(), it obviously
    doesn't want the alternate function for that pin to be active (as the
    direction would not matter in that case). This patch ensures alternate
    function is disabled when the direction is being changed.

    Signed-off-by: Phil Sutter
    Signed-off-by: Ralf Baechle

    Phil Sutter
     
  • Interrupt Group 4 mapps the GPIO pins enabled as interrupt sources;
    add defines to make this clear when addressing them later in code.

    The mapped GPIOs support triggering on either level high or low. To
    achieve this, the set_type() function calls rb532_gpio_set_ilevel() for
    interrupts of the above mentioned group.

    As there is no way to alter the triggering characteristics of the other
    interrupts, accept level triggering on status high only. (This is just a
    guess; but as the system boots fine and interrupt-driven devices (e.g.
    serial console) work with no implications, it seems to be right.)

    To clear a GPIO mapped IRQ, the source has to be cleared (i.e., the
    interrupt status bit of the corresponding GPIO pin). This is done inside
    rb532_disable_irq().

    After applying these changes I could undo most of my former "fixes" to
    pata-rb532-cf. Particularly all interrupt handling can be done
    generically via set_irq_type() as it was before.

    Signed-off-by: Phil Sutter
    Signed-off-by: Ralf Baechle

    Phil Sutter
     
  • The code is rather based on trial-and-error than knowledge. Verified Via
    Rhine functionality in PIO as well as MMIO mode.

    [Looks sane -- Ralf]

    Signed-off-by: Phil Sutter
    Tested-by: Florian Fainelli
    Signed-off-by: Ralf Baechle

    Phil Sutter
     
  • The algorithm works unconditionally. If bitval is one, the first line is
    a no op and the second line sets the bit at offset position. Vice versa,
    if bitval is zero, the first line clears the bit at offset position and
    the second line is a no op.

    Signed-off-by: Phil Sutter
    Signed-off-by: Ralf Baechle

    Phil Sutter
     
  • The previous definition inadvertently omits Octeon which currently is
    treated as an architecture variant separate from MIPS32 and MIPS64.

    Signed-off-by: David Daney
    Signed-off-by: Ralf Baechle

    David Daney
     
  • If a context switch occurred between the watch exception and reading the
    watch registers, it would be possible for the new process to corrupt their
    state. Enabling interrupts only after the watch registers are read avoids
    this race.

    Signed-off-by: David Daney
    Signed-off-by: Ralf Baechle

    David Daney
     
  • This fixes the ptrace ABI for watch registers, and should allow 64bit
    kernels to use the watch register support.

    Signed-off-by: David Daney
    Signed-off-by: Ralf Baechle

    David Daney
     
  • Add platform support to use rtc-tx4939 driver.

    Signed-off-by: Atsushi Nemoto
    Signed-off-by: Ralf Baechle

    Atsushi Nemoto
     
  • Signed-off-by: Ralf Baechle

    Ralf Baechle
     
  • The special IP27 DMA code selected by DMA_IP27 has been removed a while
    ago turning DMA_IP27 into almost a nop. Also fixup the broken logic of
    its last users memcpy.S and memcpy-inatomic.s.

    Signed-off-by: Ralf Baechle

    Ralf Baechle
     
  • And while at it, convert all functions from macros to inline functions
    for sanity.

    Signed-off-by: Ralf Baechle

    Ralf Baechle
     
  • Signed-off-by: Huang Weiyi
    Signed-off-by: Ralf Baechle

    Huang Weiyi
     
  • This shaves of 1912 bytes of an IP27 defconfig kernel and avoids
    unexpected overflow behaviour in atomic_sub_if_positive. Apply the same
    changes to the atomic64_* functions for consistency.

    Signed-off-by: Ralf Baechle

    Ralf Baechle
     
  • Original commit 1c0fe6e3bda0464728c23c8d84aa47567e8b716c.

    Signed-off-by: Ralf Baechle

    Ralf Baechle
     
  • See discussion e9c3a7c20901051031y528d0d31r18d44c5096c59e0@mail.gmail.com.

    Signed-off-by: Ralf Baechle

    Ralf Baechle
     
  • Signed-off-by: Ralf Baechle

    Ralf Baechle
     
  • Commit de33c8db5910cda599899dd431cc30d7c1018cbf ("Fix OOPS in
    mmap_region() when merging adjacent VM_LOCKED file segments") unified
    the vma merging of anonymous and file maps to just one place, which
    simplified the code and fixed a use-after-free bug that could cause an
    oops.

    But by doing the merge opportunistically before even having called
    ->mmap() on the file method, it now compares two different 'vm_flags'
    values: the pre-mmap() value of the new not-yet-formed vma, and previous
    mappings of the same file around it.

    And in doing so, it refused to merge the common file case, which adds a
    marker to say "I can be made non-linear".

    This fixes it by just adding a set of flags that don't have to match,
    because we know they are ok to merge. Currently it's only that single
    VM_CAN_NONLINEAR flag, but at least conceptually there could be others
    in the future.

    Reported-and-acked-by: Hugh Dickins
    Cc: Lee Schermerhorn
    Cc: Nick Piggin
    Cc: Andrew Morton
    Cc: Greg KH
    Signed-off-by: Linus Torvalds

    Linus Torvalds
     
  • * 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4:
    ext4: Remove bogus BUG() check in ext4_bmap()
    ext4: Fix building with EXT4FS_DEBUG
    ext4: Initialize the new group descriptor when resizing the filesystem
    ext4: Fix ext4_free_blocks() w/o a journal when files have indirect blocks
    jbd2: On a __journal_expect() assertion failure printk "JBD2", not "EXT3-fs"
    ext3: Add sanity check to make_indexed_dir
    ext4: Add sanity check to make_indexed_dir
    ext4: only use i_size_high for regular files
    ext4: fix wrong use of do_div

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.dk/linux-2.6-block:
    cfq-iosched: Allow RT requests to pre-empt ongoing BE timeslice
    block: add sysfs file for controlling io stats accounting
    Mark mandatory elevator functions in the biodoc.txt
    include/linux: Add bsg.h to the Kernel exported headers
    block: silently error an unsupported barrier bio
    block: Fix documentation for blkdev_issue_flush()
    block: add bio_rw_flagged() for testing bio->bi_rw
    block: seperate bio/request unplug and sync bits
    block: export SSD/non-rotational queue flag through sysfs
    Fix small typo in bio.h's documentation
    block: get rid of the manual directory counting in blktrace
    block: Allow empty integrity profile
    block: Remove obsolete BUG_ON
    block: Don't verify integrity metadata on read error

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (29 commits)
    tulip: fix 21142 with 10Mbps without negotiation
    drivers/net/skfp: if !capable(CAP_NET_ADMIN): inverted logic
    gianfar: Fix Wake-on-LAN support
    smsc911x: timeout reaches -1
    smsc9420: fix interrupt signalling test failures
    ucc_geth: Change uec phy id to the same format as gianfar's
    wimax: fix build issue when debugfs is disabled
    netxen: fix memory leak in drivers/net/netxen_nic_init.c
    tun: Add some missing TUN compat ioctl translations.
    ipv4: fix infinite retry loop in IP-Config
    net: update documentation ip aliases
    net: Fix OOPS in skb_seq_read().
    net: Fix frag_list handling in skb_seq_read
    netxen: revert jumbo ringsize
    ath5k: fix locking in ath5k_config
    cfg80211: print correct intersected regulatory domain
    cfg80211: Fix sanity check on 5 GHz when processing country IE
    iwlwifi: fix kernel oops when ucode DMA memory allocation failure
    rtl8187: Fix error in setting OFDM power settings for RTL8187L
    mac80211: remove Michael Wu as maintainer
    ...

    Linus Torvalds
     
  • This fixes a crash observed when non-existant enable_ms function is
    called for jsm driver.

    Signed-off-by: Scott Kilau
    Signed-off-by: Paul Larson
    Signed-off-by: Linus Torvalds

    Paul Larson
     

30 Jan, 2009

18 commits