17 Jun, 2009

8 commits

  • Add EISA IDs for Network Peripherals FDDI boards. Descriptions taken from
    the respective EISA configuration files.

    It's unlikely we'll ever support these cards, the problem being the lack
    of documentation. Assuming the policy for the EISA ID database is the
    same as for PCI I'm sending these entries for the sake of completeness.

    Signed-off-by: Maciej W. Rozycki
    Cc: Marc Zyngier
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Maciej W. Rozycki
     
  • There are some places to be able to use printk_once instead of hard coding.

    Signed-off-by: Minchan Kim
    Cc: Dominik Brodowski
    Cc: David S. Miller
    Cc: Ingo Molnar
    Cc: KOSAKI Motohiro
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Minchan Kim
     
  • Currently, nobody wants to turn UNEVICTABLE_LRU off. Thus this
    configurability is unnecessary.

    Signed-off-by: KOSAKI Motohiro
    Cc: Johannes Weiner
    Cc: Andi Kleen
    Acked-by: Minchan Kim
    Cc: David Woodhouse
    Cc: Matt Mackall
    Cc: Rik van Riel
    Cc: Lee Schermerhorn
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    KOSAKI Motohiro
     
  • Since videobuf-dma-contig is designed to handle physically contiguous
    memory, this patch modifies the videobuf-dma-contig code to only accept a
    user space pointer to physically contiguous memory. For now only
    VM_PFNMAP vmas are supported, so forget hotplug.

    On SuperH Mobile we use this with our sh_mobile_ceu_camera driver together
    with various multimedia accelerator blocks that are exported to user space
    using UIO. The UIO kernel code exports physically contiguous memory to
    user space and lets the user space application mmap() this memory and pass
    a pointer using the USERPTR interface for V4L2 zero copy operation.

    With this approach we support zero copy capture, hardware scaling and
    various forms of hardware encoding and decoding.

    [akpm@linux-foundation.org: coding-style fixes]
    Signed-off-by: Magnus Damm
    Cc: Johannes Weiner
    Cc: Paul Mundt
    Acked-by: Mauro Carvalho Chehab
    Cc: Hans Verkuil
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Magnus Damm
     
  • Callers of alloc_pages_node() can optionally specify -1 as a node to mean
    "allocate from the current node". However, a number of the callers in
    fast paths know for a fact their node is valid. To avoid a comparison and
    branch, this patch adds alloc_pages_exact_node() that only checks the nid
    with VM_BUG_ON(). Callers that know their node is valid are then
    converted.

    Signed-off-by: Mel Gorman
    Reviewed-by: Christoph Lameter
    Reviewed-by: KOSAKI Motohiro
    Reviewed-by: Pekka Enberg
    Acked-by: Paul Mundt [for the SLOB NUMA bits]
    Cc: Peter Zijlstra
    Cc: Nick Piggin
    Cc: Dave Hansen
    Cc: Lee Schermerhorn
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mel Gorman
     
  • Addresses http://bugzilla.kernel.org/show_bug.cgi?id=13484

    Peer reported:
    | The bug is introduced from kernel 2.6.27, if E820 table reserve the memory
    | above 4G in 32bit OS(BIOS-e820: 00000000fff80000 - 0000000120000000
    | (reserved)), system will report Int 6 error and hang up. The bug is caused by
    | the following code in drivers/firmware/memmap.c, the resource_size_t is 32bit
    | variable in 32bit OS, the BUG_ON() will be invoked to result in the Int 6
    | error. I try the latest 32bit Ubuntu and Fedora distributions, all hit this
    | bug.
    |======
    |static int firmware_map_add_entry(resource_size_t start, resource_size_t end,
    | const char *type,
    | struct firmware_map_entry *entry)

    and it only happen with CONFIG_PHYS_ADDR_T_64BIT is not set.

    it turns out we need to pass u64 instead of resource_size_t for that.

    [akpm@linux-foundation.org: add comment]
    Reported-and-tested-by: Peer Chen
    Signed-off-by: Yinghai Lu
    Cc: Ingo Molnar
    Acked-by: H. Peter Anvin
    Cc: Thomas Gleixner
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Yinghai Lu
     
  • Do not take the size of a pointer to determine the size of the pointed-to
    type.

    Signed-off-by: Roel Kluin
    Acked-by: Anton Vorontsov
    Cc: David Brownell
    Cc: Benjamin Herrenschmidt
    Cc: Kumar Gala
    Acked-by: Grant Likely
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Roel Kluin
     
  • PIT_TICK_RATE is currently defined in four architectures, but in three
    different places. While linux/timex.h is not the perfect place for it, it
    is still a reasonable replacement for those drivers that traditionally use
    asm/timex.h to get CLOCK_TICK_RATE and expect it to be the PIT frequency.

    Note that for Alpha, the actual value changed from 1193182UL to 1193180UL.
    This is unlikely to make a difference, and probably can only improve
    accuracy. There was a discussion on the correct value of CLOCK_TICK_RATE
    a few years ago, after which every existing instance was getting changed
    to 1193182. According to the specification, it should be
    1193181.818181...

    Signed-off-by: Arnd Bergmann
    Cc: Richard Henderson
    Cc: Ivan Kokshaysky
    Cc: Ralf Baechle
    Cc: Benjamin Herrenschmidt
    Cc: Ingo Molnar
    Cc: Thomas Gleixner
    Cc: "H. Peter Anvin"
    Cc: Len Brown
    Cc: john stultz
    Cc: Dmitry Torokhov
    Cc: Takashi Iwai
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Arnd Bergmann
     

16 Jun, 2009

2 commits

  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6: (1244 commits)
    pkt_sched: Rename PSCHED_US2NS and PSCHED_NS2US
    ipv4: Fix fib_trie rebalancing
    Bluetooth: Fix issue with uninitialized nsh.type in DTL-1 driver
    Bluetooth: Fix Kconfig issue with RFKILL integration
    PIM-SM: namespace changes
    ipv4: update ARPD help text
    net: use a deferred timer in rt_check_expire
    ieee802154: fix kconfig bool/tristate muckup
    bonding: initialization rework
    bonding: use is_zero_ether_addr
    bonding: network device names are case sensative
    bonding: elminate bad refcount code
    bonding: fix style issues
    bonding: fix destructor
    bonding: remove bonding read/write semaphore
    bonding: initialize before registration
    bonding: bond_create always called with default parameters
    x_tables: Convert printk to pr_err
    netfilter: conntrack: optional reliable conntrack event delivery
    list_nulls: add hlist_nulls_add_head and hlist_nulls_del
    ...

    Linus Torvalds
     
  • * 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc: (103 commits)
    powerpc: Fix bug in move of altivec code to vector.S
    powerpc: Add support for swiotlb on 32-bit
    powerpc/spufs: Remove unused error path
    powerpc: Fix warning when printing a resource_size_t
    powerpc/xmon: Remove unused variable in xmon.c
    powerpc/pseries: Fix warnings when printing resource_size_t
    powerpc: Shield code specific to 64-bit server processors
    powerpc: Separate PACA fields for server CPUs
    powerpc: Split exception handling out of head_64.S
    powerpc: Introduce CONFIG_PPC_BOOK3S
    powerpc: Move VMX and VSX asm code to vector.S
    powerpc: Set init_bootmem_done on NUMA platforms as well
    powerpc/mm: Fix a AB->BA deadlock scenario with nohash MMU context lock
    powerpc/mm: Fix some SMP issues with MMU context handling
    powerpc: Add PTRACE_SINGLEBLOCK support
    fbdev: Add PLB support and cleanup DCR in xilinxfb driver.
    powerpc/virtex: Add ml510 reference design device tree
    powerpc/virtex: Add Xilinx ML510 reference design support
    powerpc/virtex: refactor intc driver and add support for i8259 cascading
    powerpc/virtex: Add support for Xilinx PCI host bridge
    ...

    Linus Torvalds
     

15 Jun, 2009

20 commits

  • On Thu, May 28, 2009 at 10:59 AM, Mark Brown wrote:
    > On Thu, May 28, 2009 at 07:15:16AM +0200, Philipp Zabel wrote:
    >> The V3 regulator can be configured with an external resistor
    >> connected to the feedback pin (R24 in the data sheet) to
    >> increase the voltage range.
    >>
    >> For example, hx4700 has R24 = 3.32 kOhm to achieve a maximum
    >> V3 voltage of 1.55 V which is needed for 624 MHz CPU frequency.
    >>
    >> Signed-off-by: Philipp Zabel
    >
    > Looks good.
    >
    > Acked-by: Mark Brown

    Thanks, but it turns out I hit a 32 bit integer overflow in
    the gain calculation. I'd like to mend that with the following
    patch. Now max_uV could be increased up to 4.294 V, enough to
    charge LiPo cells.

    Signed-off-by: Philipp Zabel
    Acked-by: Robert Jarzmik
    Signed-off-by: Liam Girdwood

    Philipp Zabel
     
  • The V3 regulator can be configured with an external resistor
    connected to the feedback pin (R24 in the data sheet) to
    increase the voltage range.

    For example, hx4700 has R24 = 3.32 kOhm to achieve a maximum
    V3 voltage of 1.55 V which is needed for 624 MHz CPU frequency.

    Signed-off-by: Philipp Zabel
    Acked-by: Mark Brown
    Acked-by: Robert Jarzmik
    Signed-off-by: Liam Girdwood

    Philipp Zabel
     
  • lp3971_i2c_remove' referenced in section `.data' of drivers/built-in.o:
    defined in discarded section `.devexit.text' of drivers/built-in.o

    Signed-off-by: Liam Girdwood

    Liam Girdwood
     
  • This patch adds regulator drivers for National Semiconductors LP3971 PMIC.
    This LP3971 PMIC controller has 3 DC/DC voltage converters and 5 low
    drop-out (LDO) regulators. LP3971 PMIC controller uses I2C interface.

    Reviewed-by: Kyungmin Park
    Signed-off-by: Marek Szyprowski
    Acked-by: Mark Brown
    Signed-off-by: Liam Girdwood

    Marek Szyprowski
     
  • In the near future, the driver core is going to not allow direct access
    to the driver_data pointer in struct device. Instead, the functions
    dev_get_drvdata() and dev_set_drvdata() should be used. These functions
    have been around since the beginning, so are backwards compatible with
    all older kernel versions.

    Cc: Mark Brown
    Cc: Liam Girdwood
    Signed-off-by: Greg Kroah-Hartman
    Acked-by: Mark Brown
    Signed-off-by: Liam Girdwood

    Greg Kroah-Hartman
     
  • Several of the regulator drivers didn't have MODULE_ALIAS so couldn't be
    auto loaded. Add the MODULE_ALIAS in case they do get built as modules.

    Signed-off-by: Mark Brown
    Signed-off-by: Liam Girdwood

    Mark Brown
     
  • Signed-off-by: Mark Brown
    Signed-off-by: Liam Girdwood

    Mark Brown
     
  • Regulators need to be available early in init in order to allow them
    to be available for consumers when requested. This is generally done
    by registering them at subsys_initcall() time but not all regulator
    drivers have done that. Convert these drivers to do so in order to
    mimimise future support.

    Signed-off-by: Mark Brown
    Acked-by: Mike Rapoport
    Signed-off-by: Liam Girdwood

    Mark Brown
     
  • This patch fixes the follwing build failure on powerpc:-

    > Today's linux-next build (powerpc allyesconfig) failed like this:
    >
    > drivers/regulator/userspace-consumer.c:43: error: conflicting types
    > for 'show_state'
    > include/linux/sched.h:273: note: previous definition of 'show_state'
    > was here
    >
    > Caused by commit 5defa2bce704ca4151cfe24e4297aa7797cafd22 ("regulator:
    > add userspace-consumer driver") which I have reverted for today.

    Signed-off-by: Liam Girdwood

    Liam Girdwood
     
  • The userspace-consumer driver allows control of voltage and current
    regulator state from userspace. This is required for fine-grained
    power management of devices that are completely controller by userspace
    applications, e.g. a GPS transciever connected to a serial port.

    Signed-off-by: Mike Rapoport
    Acked-by: Mark Brown
    Signed-off-by: Liam Girdwood

    Mike Rapoport
     
  • The Maxim 1586 regulator is a voltage regulator with 2
    voltage outputs, specially suitable for Marvell PXA
    chips. One output is in the range of required VCC_CORE by
    the PXA27x chips, the other in the VCC_USIM required as well
    by PXA27x chips.

    The chip is controlled through the I2C bus.

    Signed-off-by: Robert Jarzmik
    Acked-by: Mark Brown
    Signed-off-by: Liam Girdwood

    Robert Jarzmik
     
  • Conflicts:
    Documentation/feature-removal-schedule.txt
    drivers/scsi/fcoe/fcoe.c
    net/core/drop_monitor.c
    net/core/net-traces.c

    David S. Miller
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband:
    mlx4_core: Don't double-free IRQs when falling back from MSI-X to INTx
    IB/mthca: Don't double-free IRQs when falling back from MSI-X to INTx
    IB/mlx4: Add strong ordering to local inval and fast reg work requests
    IB/ehca: Remove superfluous bitmasks from QP control block
    RDMA/cxgb3: Limit fast register size based on T3 limitations
    RDMA/cxgb3: Report correct port state and MTU
    mlx4_core: Add module parameter for number of MTTs per segment
    IB/mthca: Add module parameter for number of MTTs per segment
    RDMA/nes: Fix off-by-one bugs in reset_adapter_ne020() and init_serdes()
    infiniband: Remove void casts
    IB/ehca: Increment version number
    IB/ehca: Remove unnecessary memory operations for userspace queue pairs
    IB/ehca: Fall back to vmalloc() for big allocations
    IB/ehca: Replace vmalloc() with kmalloc() for queue allocation

    Linus Torvalds
     
  • Fix recent fusion driver kernel-doc fatal error and warnings.

    Signed-off-by: Randy Dunlap
    Cc: Eric.Moore@lsi.com
    Cc: support@lsi.com
    Cc: DL-MPTFusionLinux@lsi.com
    Signed-off-by: Linus Torvalds

    Randy Dunlap
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/drzeus/mmc: (25 commits)
    atmel-mci: add MCI2 register definitions
    atmel-mci: Integrate AT91 specific definition in header file
    tmio_mmc: allow compilation for ASIC3
    mmc_block: do not DMA to stack
    sdhci: Print ADMA status and pointer on debug
    tmio_mmc: fix clock setup
    tmio_mmc: map SD control registers after enabling the MFD cell
    tmio_mmc: correct probe return value for num_resources != 3
    tmio_mmc: don't use set_irq_type
    tmio_mmc: add bus_shift support
    MFD,mmc: tmio_mmc: make HCLK configurable
    mmc_spi: don't use EINVAL for possible transmission errors
    cb710: more cleanup for the DEBUG case.
    sdhci: platform driver for SDHCI
    mxcmmc: remove frequency workaround
    cb710: handle DEBUG define in Makefile
    cb710: add missing parenthesis
    cb710: fix printk format string
    mmc: Driver for CB710/720 memory card reader (MMC part)
    pxamci: add regulator support.
    ...

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (31 commits)
    trivial: remove the trivial patch monkey's name from SubmittingPatches
    trivial: Fix a typo in comment of addrconf_dad_start()
    trivial: usb: fix missing space typo in doc
    trivial: pci hotplug: adding __init/__exit macros to sgi_hotplug
    trivial: Remove the hyphen from git commands
    trivial: fix ETIMEOUT -> ETIMEDOUT typos
    trivial: Kconfig: .ko is normally not included in module names
    trivial: SubmittingPatches: fix typo
    trivial: Documentation/dell_rbu.txt: fix typos
    trivial: Fix Pavel's address in MAINTAINERS
    trivial: ftrace:fix description of trace directory
    trivial: unnecessary (void*) cast removal in sound/oss/msnd.c
    trivial: input/misc: Fix typo in Kconfig
    trivial: fix grammo in bus_for_each_dev() kerneldoc
    trivial: rbtree.txt: fix rb_entry() parameters in sample code
    trivial: spelling fix in ppc code comments
    trivial: fix typo in bio_alloc kernel doc
    trivial: Documentation/rbtree.txt: cleanup kerneldoc of rbtree.txt
    trivial: Miscellaneous documentation typo fixes
    trivial: fix typo milisecond/millisecond for documentation and source comments.
    ...

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid:
    HID: fix inverted wheel for bluetooth version of apple mighty mouse
    HID: no more reinitializtion is needed in post_reset
    HID: hidraw -- fix comment about accepted devices
    HID: Multitouch support for the N-Trig touchscreen
    HID: add new multitouch and digitizer contants
    HID: autocentering support for Logitech Force 3D Pro
    HID: fix hid-ff drivers so that devices work even without ff support
    HID: force feedback support for SmartJoy PLUS PS2/USB adapter
    HID: Wacom Graphire Bluetooth driver
    HID: autocentering support for Logitech G25 Racing Wheel

    Linus Torvalds
     
  • * 'for-linus' of master.kernel.org:/home/rmk/linux-2.6-arm: (417 commits)
    MAINTAINERS: EB110ATX is not ebsa110
    MAINTAINERS: update Eric Miao's email address and status
    fb: add support of LCD display controller on pxa168/910 (base layer)
    [ARM] 5552/1: ep93xx get_uart_rate(): use EP93XX_SYSCON_PWRCNT and EP93XX_SYSCON_PWRCN
    [ARM] pxa/sharpsl_pm: zaurus needs generic pxa suspend/resume routines
    [ARM] 5544/1: Trust PrimeCell resource sizes
    [ARM] pxa/sharpsl_pm: cleanup of gpio-related code.
    [ARM] pxa/sharpsl_pm: drop set_irq_type calls
    [ARM] pxa/sharpsl_pm: merge pxa-specific code into generic one
    [ARM] pxa/sharpsl_pm: merge the two sharpsl_pm.c since it's now pxa specific
    [ARM] sa1100: remove unused collie_pm.c
    [ARM] pxa: fix the conflicting non-static declarations of global_gpios[]
    [ARM] 5550/1: Add default configure file for w90p910 platform
    [ARM] 5549/1: Add clock api for w90p910 platform.
    [ARM] 5548/1: Add gpio api for w90p910 platform
    [ARM] 5551/1: Add multi-function pin api for w90p910 platform.
    [ARM] Make ARM_VIC_NR depend on ARM_VIC
    [ARM] 5546/1: ARM PL022 SSP/SPI driver v3
    ARM: OMAP4: SMP: Update defconfig for OMAP4430
    ARM: OMAP4: SMP: Enable SMP support for OMAP4430
    ...

    Linus Torvalds
     
  • Roland Dreier
     
  • When both MSI-X and legacy INTx fail to generate an interrupt, the
    driver frees the MSI-X interrupts twice. Fix this by clearing the
    have_irq flag for the MSI-X interrupts when they are freed the first
    time. This is the same bug that was reported in ib_mthca by Yinghai
    Lu .

    Signed-off-by: Roland Dreier

    Roland Dreier
     

14 Jun, 2009

10 commits

  • The current build shows a warning with the DTL-1 driver:

    CC [M] drivers/bluetooth/dtl1_cs.o
    drivers/bluetooth/dtl1_cs.c: In function ‘dtl1_hci_send_frame’:
    drivers/bluetooth/dtl1_cs.c:396: warning: ‘nsh.type’ may be used uninitialized in this function

    Fix this by adding a proper error for unknown packet types.

    Signed-off-by: Marcel Holtmann

    Marcel Holtmann
     
  • …xa-linux-2.6 into devel

    Russell King
     
  • menuconfig IEEE802154_DRIVERS is a bool that depends on tristate IEEE802154.
    If the IEEE802154 symbol is 'm', the bool becomes 'y'.
    This allows tristate symbols under IEEE802154_DRIVERS to be configured as
    'y' and cause build problems.
    Changing the menuconfig bool to a tristate fixes this.

    drivers/built-in.o: In function `fake_scan_req':
    fakehard.c:(.text+0x46d625): undefined reference to `ieee802154_nl_scan_confirm'
    drivers/built-in.o: In function `fake_disassoc_req':
    fakehard.c:(.text+0x46d66f): undefined reference to `ieee802154_nl_disassoc_confirm'
    drivers/built-in.o: In function `fake_assoc_req':
    fakehard.c:(.text+0x46d6be): undefined reference to `ieee802154_nl_assoc_confirm'

    Signed-off-by: Randy Dunlap
    Acked-by: Sergey Lapin
    Signed-off-by: David S. Miller

    Randy Dunlap
     
  • Need to rework how bonding devices are initialized to make it more
    amenable to creating bonding devices via netlink.

    Signed-off-by: Stephen Hemminger
    Signed-off-by: David S. Miller

    Stephen Hemminger
     
  • Remove bogus non-portable possibly unaligned way of testing
    for zero addres..

    Signed-off-by: Stephen Hemminger
    Signed-off-by: David S. Miller

    Stephen Hemminger
     
  • The bonding device acts unlike all other Linux network device functions
    in that it ignores case of device names. The developer must have come
    from windows!

    Cleanup the management of names and use standard routines where possible.
    Flag places where bonding device still doesn't work right with network
    namespaces.

    Signed-off-by: Stephen Hemminger
    Signed-off-by: David S. Miller

    Stephen Hemminger
     
  • The "expected_refcount" stuff in bonding sysfs module is a mistake.
    Sysfs does proper refcounting, and it is okay to remove a bond device
    that has some user process holding the file open.

    Signed-off-by: Stephen Hemminger
    Signed-off-by: David S. Miller

    Stephen Hemminger
     
  • Resolve some of the complaints from checkpatch, and remove "magic emacs format"
    comments, and useless MODULE_SUPPORTED_DEVICE(). But should not
    change actual code.

    Signed-off-by: Stephen Hemminger
    Signed-off-by: David S. Miller

    Stephen Hemminger
     
  • It is not safe to use a network device destructor that is a function in
    the module, since it can be called after module is unloaded if sysfs
    handle is open.

    When eventually using netlink, the device cleanup code needs to be done
    via uninit function.

    Signed-off-by: Stephen Hemminger
    Signed-off-by: David S. Miller

    Stephen Hemminger
     
  • The whole read/write semaphore locking can be removed. It doesn't add any
    protection that isn't already done by using the RTNL mutex properly.

    Signed-off-by: Stephen Hemminger
    Signed-off-by: David S. Miller

    Stephen Hemminger