03 May, 2013

3 commits

  • Pull i2c changes from Wolfram Sang:

    - an arbitration driver. While the driver is quite simple, it caused
    discussion if we need additional arbitration on top of the one
    specified in the I2C standard. Conclusion is that I accept a few
    generic mechanisms, but not very specific ones.

    - the core lost the detach_adapter() call. It has no users anymore and
    was in the way for other cleanups. attach_adapter() is sadly still
    there since there are users waiting to be converted.

    - the core gained a bus recovery infrastructure. I2C defines a way to
    recover if the data line is stalled. This mechanism is now in the
    core and drivers can now pass some data to make use of it.

    - bigger driver cleanups for designware, s3c2410

    - removing superfluous refcounting from drivers

    - removing Ben Dooks as second maintainer due to inactivity. Thanks
    for all your work so far, Ben!

    - bugfixes, feature additions, devicetree fixups, simplifications...

    * 'i2c/for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux: (38 commits)
    i2c: xiic: must always write 16-bit words to TX_FIFO
    i2c: octeon: use HZ in timeout value
    i2c: octeon: Fix i2c fail problem when a process is terminated by a signal
    i2c: designware-pci: drop superfluous {get|put}_device
    i2c: designware-plat: drop superfluous {get|put}_device
    i2c: davinci: drop superfluous {get|put}_device
    MAINTAINERS: Ben Dooks is inactive regarding I2C
    i2c: mux: Add i2c-arb-gpio-challenge 'mux' driver
    i2c: at91: convert to dma_request_slave_channel_compat()
    i2c: mxs: do error checking and handling in PIO mode
    i2c: mxs: remove races in PIO code
    i2c-designware: switch to use runtime PM autosuspend
    i2c-designware: use usleep_range() in the busy-loop
    i2c-designware: enable/disable the controller properly
    i2c-designware: use dynamic adapter numbering on Lynxpoint
    i2c-designware-pci: use managed functions pcim_* and devm_*
    i2c-designware-pci: use dev_err() instead of printk()
    i2c-designware: move to managed functions (devm_*)
    i2c: remove CONFIG_HOTPLUG ifdefs
    i2c: s3c2410: Add SMBus emulation for block read
    ...

    Linus Torvalds
     
  • Pull ARM SoC multiplatform updates from Olof Johansson:
    "More multiplatform enablement for ARM platforms. The ones converted
    in this branch are:

    - bcm2835
    - cns3xxx
    - sirf
    - nomadik
    - msx
    - spear
    - tegra
    - ux500

    We're getting close to having most of them converted!

    One of the larger platforms remaining is Samsung Exynos, and there are
    a bunch of supporting patches in this merge window for it. There was
    a patch in this branch to a early version of multiplatform conversion,
    but it ended up being reverted due to need of more bake time. The
    revert commit is part of the branch since it would have required
    rebasing multiple dependent branches and they were stable by then"

    * tag 'multiplatform-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (70 commits)
    mmc: sdhci-s3c: Fix operation on non-single image Samsung platforms
    clocksource: nomadik-mtu: fix up clocksource/timer
    Revert "ARM: exynos: enable multiplatform support"
    ARM: SPEAr13xx: Fix typo "ARCH_HAVE_CPUFREQ"
    ARM: exynos: enable multiplatform support
    rtc: s3c: make header file local
    mtd: onenand/samsung: make regs-onenand.h file local
    thermal/exynos: remove unnecessary header inclusions
    mmc: sdhci-s3c: remove platform dependencies
    ARM: samsung: move mfc device definition to s5p-dev-mfc.c
    ARM: exynos: move debug-macro.S to include/debug/
    ARM: exynos: prepare for sparse IRQ
    ARM: exynos: introduce EXYNOS_ATAGS symbol
    ARM: tegra: build assembly files with -march=armv7-a
    ARM: Push selects for TWD/SCU into machine entries
    ARM: ux500: build hotplug.o for ARMv7-a
    ARM: ux500: move to multiplatform
    ARM: ux500: make remaining headers local
    ARM: ux500: make irqs.h local to platform
    ARM: ux500: get rid of
    ...

    Linus Torvalds
     
  • Pull ARM SoC cleanup from Olof Johansson:
    "Here is a collection of cleanup patches. Among the pieces that stand
    out are:

    - The deletion of h720x platforms
    - Split of at91 non-dt platforms to their own Kconfig file to keep
    them separate
    - General cleanups and refactoring of i.MX and MXS platforms
    - Some restructuring of clock tables for OMAP
    - Convertion of PMC driver for Tegra to dt-only
    - Some renames of sunxi -> sun4i (Allwinner A10)
    - ... plus a bunch of other stuff that I haven't mentioned"

    * tag 'cleanup-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (119 commits)
    ARM: i.MX: remove unused ARCH_* configs
    ARM i.MX53: remove platform ahci support
    ARM: sunxi: Rework the restart code
    irqchip: sunxi: Rename sunxi to sun4i
    irqchip: sunxi: Make use of the IRQCHIP_DECLARE macro
    clocksource: sunxi: Rename sunxi to sun4i
    clocksource: sunxi: make use of CLKSRC_OF
    clocksource: sunxi: Cleanup the timer code
    ARM: at91: remove trailing semicolon from macros
    ARM: at91/setup: fix trivial typos
    ARM: EXYNOS: remove "config EXYNOS_DEV_DRM"
    ARM: EXYNOS: change the name of USB ohci header
    ARM: SAMSUNG: Remove unnecessary code for dma
    ARM: S3C24XX: Remove unused GPIO drive strength register definitions
    ARM: OMAP4+: PM: Restore CPU power state to ON with clockdomain force wakeup method
    ARM: S3C24XX: Removed unneeded dependency on CPU_S3C2412
    ARM: S3C24XX: Removed unneeded dependency on CPU_S3C2410
    ARM: S3C24XX: Removed unneeded dependency on ARCH_S3C24XX for boards
    ARM: SAMSUNG: Fix typo "CONFIG_SAMSUNG_DEV_RTC"
    ARM: S5P64X0: Fix typo "CONFIG_S5P64X0_SETUP_SDHCI"
    ...

    Linus Torvalds
     

02 May, 2013

6 commits

  • Pull VFS updates from Al Viro,

    Misc cleanups all over the place, mainly wrt /proc interfaces (switch
    create_proc_entry to proc_create(), get rid of the deprecated
    create_proc_read_entry() in favor of using proc_create_data() and
    seq_file etc).

    7kloc removed.

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: (204 commits)
    don't bother with deferred freeing of fdtables
    proc: Move non-public stuff from linux/proc_fs.h to fs/proc/internal.h
    proc: Make the PROC_I() and PDE() macros internal to procfs
    proc: Supply a function to remove a proc entry by PDE
    take cgroup_open() and cpuset_open() to fs/proc/base.c
    ppc: Clean up scanlog
    ppc: Clean up rtas_flash driver somewhat
    hostap: proc: Use remove_proc_subtree()
    drm: proc: Use remove_proc_subtree()
    drm: proc: Use minor->index to label things, not PDE->name
    drm: Constify drm_proc_list[]
    zoran: Don't print proc_dir_entry data in debug
    reiserfs: Don't access the proc_dir_entry in r_open(), r_start() r_show()
    proc: Supply an accessor for getting the data from a PDE's parent
    airo: Use remove_proc_subtree()
    rtl8192u: Don't need to save device proc dir PDE
    rtl8187se: Use a dir under /proc/net/r8180/
    proc: Add proc_mkdir_data()
    proc: Move some bits from linux/proc_fs.h to linux/{of.h,signal.h,tty.h}
    proc: Move PDE_NET() to fs/proc/proc_net.c
    ...

    Linus Torvalds
     
  • Supply an accessor function for getting the private data from the parent
    proc_dir_entry struct of the proc_dir_entry struct associated with an inode.

    ReiserFS, for instance, stores the super_block pointer in the proc directory
    it makes for that super_block, and a pointer to the respective seq_file show
    function in each of the proc files in that directory.

    This allows a reduction in the number of file_operations structs, open
    functions and seq_operations structs required. The problem otherwise is that
    each show function requires two pieces of data but only has storage for one
    per PDE (and this has no release function).

    Signed-off-by: David Howells
    Acked-by: Mauro Carvalho Chehab
    Acked-by: Greg Kroah-Hartman
    cc: Jerry Chuang
    cc: Maxim Mikityanskiy
    cc: YAMANE Toshiaki
    cc: linux-wireless@vger.kernel.org
    cc: linux-scsi@vger.kernel.org
    cc: devel@driverdev.osuosl.org
    Signed-off-by: Al Viro

    David Howells
     
  • Don't need to save the PDE of a directory created under /proc/net/rtl8192/ as
    we can use proc subtree deletion to get rid of it and all its children.

    Signed-off-by: David Howells
    Acked-by: Mauro Carvalho Chehab
    Acked-by: Greg Kroah-Hartman
    cc: Jerry Chuang
    cc: linux-wireless@vger.kernel.org
    cc: devel@driverdev.osuosl.org
    Signed-off-by: Al Viro

    David Howells
     
  • Create a dir under /proc/net/r8180/ named for the device and create that
    device's files under there. This means that there won't be a problem for
    multiple devices in the system (if such is possible) and it means we don't
    need to save the 'device directory' PDE any more as we can just do a proc
    subtree removal.

    Signed-off-by: David Howells
    Acked-by: Greg Kroah-Hartman
    cc: Maxim Mikityanskiy
    cc: YAMANE Toshiaki
    cc: linux-wireless@vger.kernel.org
    cc: devel@driverdev.osuosl.org
    Signed-off-by: Al Viro

    David Howells
     
  • Add proc_mkdir_data() to allow procfs directories to be created that are
    annotated at the time of creation with private data rather than doing this
    post-creation. This means no access is then required to the proc_dir_entry
    struct to set this.

    Signed-off-by: David Howells
    Acked-by: Mauro Carvalho Chehab
    Acked-by: Greg Kroah-Hartman
    cc: Neela Syam Kolli
    cc: Jerry Chuang
    cc: linux-scsi@vger.kernel.org
    cc: devel@driverdev.osuosl.org
    cc: linux-wireless@vger.kernel.org
    Signed-off-by: Al Viro

    David Howells
     
  • Pull networking updates from David Miller:
    "Highlights (1721 non-merge commits, this has to be a record of some
    sort):

    1) Add 'random' mode to team driver, from Jiri Pirko and Eric
    Dumazet.

    2) Make it so that any driver that supports configuration of multiple
    MAC addresses can provide the forwarding database add and del
    calls by providing a default implementation and hooking that up if
    the driver doesn't have an explicit set of handlers. From Vlad
    Yasevich.

    3) Support GSO segmentation over tunnels and other encapsulating
    devices such as VXLAN, from Pravin B Shelar.

    4) Support L2 GRE tunnels in the flow dissector, from Michael Dalton.

    5) Implement Tail Loss Probe (TLP) detection in TCP, from Nandita
    Dukkipati.

    6) In the PHY layer, allow supporting wake-on-lan in situations where
    the PHY registers have to be written for it to be configured.

    Use it to support wake-on-lan in mv643xx_eth.

    From Michael Stapelberg.

    7) Significantly improve firewire IPV6 support, from YOSHIFUJI
    Hideaki.

    8) Allow multiple packets to be sent in a single transmission using
    network coding in batman-adv, from Martin Hundebøll.

    9) Add support for T5 cxgb4 chips, from Santosh Rastapur.

    10) Generalize the VXLAN forwarding tables so that there is more
    flexibility in configurating various aspects of the endpoints.
    From David Stevens.

    11) Support RSS and TSO in hardware over GRE tunnels in bxn2x driver,
    from Dmitry Kravkov.

    12) Zero copy support in nfnelink_queue, from Eric Dumazet and Pablo
    Neira Ayuso.

    13) Start adding networking selftests.

    14) In situations of overload on the same AF_PACKET fanout socket, or
    per-cpu packet receive queue, minimize drop by distributing the
    load to other cpus/fanouts. From Willem de Bruijn and Eric
    Dumazet.

    15) Add support for new payload offset BPF instruction, from Daniel
    Borkmann.

    16) Convert several drivers over to mdoule_platform_driver(), from
    Sachin Kamat.

    17) Provide a minimal BPF JIT image disassembler userspace tool, from
    Daniel Borkmann.

    18) Rewrite F-RTO implementation in TCP to match the final
    specification of it in RFC4138 and RFC5682. From Yuchung Cheng.

    19) Provide netlink socket diag of netlink sockets ("Yo dawg, I hear
    you like netlink, so I implemented netlink dumping of netlink
    sockets.") From Andrey Vagin.

    20) Remove ugly passing of rtnetlink attributes into rtnl_doit
    functions, from Thomas Graf.

    21) Allow userspace to be able to see if a configuration change occurs
    in the middle of an address or device list dump, from Nicolas
    Dichtel.

    22) Support RFC3168 ECN protection for ipv6 fragments, from Hannes
    Frederic Sowa.

    23) Increase accuracy of packet length used by packet scheduler, from
    Jason Wang.

    24) Beginning set of changes to make ipv4/ipv6 fragment handling more
    scalable and less susceptible to overload and locking contention,
    from Jesper Dangaard Brouer.

    25) Get rid of using non-type-safe NLMSG_* macros and use nlmsg_*()
    instead. From Hong Zhiguo.

    26) Optimize route usage in IPVS by avoiding reference counting where
    possible, from Julian Anastasov.

    27) Convert IPVS schedulers to RCU, also from Julian Anastasov.

    28) Support cpu fanouts in xt_NFQUEUE netfilter target, from Holger
    Eitzenberger.

    29) Network namespace support for nf_log, ebt_log, xt_LOG, ipt_ULOG,
    nfnetlink_log, and nfnetlink_queue. From Gao feng.

    30) Implement RFC3168 ECN protection, from Hannes Frederic Sowa.

    31) Support several new r8169 chips, from Hayes Wang.

    32) Support tokenized interface identifiers in ipv6, from Daniel
    Borkmann.

    33) Use usbnet_link_change() helper in USB net driver, from Ming Lei.

    34) Add 802.1ad vlan offload support, from Patrick McHardy.

    35) Support mmap() based netlink communication, also from Patrick
    McHardy.

    36) Support HW timestamping in mlx4 driver, from Amir Vadai.

    37) Rationalize AF_PACKET packet timestamping when transmitting, from
    Willem de Bruijn and Daniel Borkmann.

    38) Bring parity to what's provided by /proc/net/packet socket dumping
    and the info provided by netlink socket dumping of AF_PACKET
    sockets. From Nicolas Dichtel.

    39) Fix peeking beyond zero sized SKBs in AF_UNIX, from Benjamin
    Poirier"

    * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next: (1722 commits)
    filter: fix va_list build error
    af_unix: fix a fatal race with bit fields
    bnx2x: Prevent memory leak when cnic is absent
    bnx2x: correct reading of speed capabilities
    net: sctp: attribute printl with __printf for gcc fmt checks
    netlink: kconfig: move mmap i/o into netlink kconfig
    netpoll: convert mutex into a semaphore
    netlink: Fix skb ref counting.
    net_sched: act_ipt forward compat with xtables
    mlx4_en: fix a build error on 32bit arches
    Revert "bnx2x: allow nvram test to run when device is down"
    bridge: avoid OOPS if root port not found
    drivers: net: cpsw: fix kernel warn on cpsw irq enable
    sh_eth: use random MAC address if no valid one supplied
    3c509.c: call SET_NETDEV_DEV for all device types (ISA/ISAPnP/EISA)
    tg3: fix to append hardware time stamping flags
    unix/stream: fix peeking with an offset larger than data in queue
    unix/dgram: fix peeking with an offset larger than data in queue
    unix/dgram: peek beyond 0-sized skbs
    openvswitch: Remove unneeded ovs_netdev_get_ifindex()
    ...

    Linus Torvalds
     

01 May, 2013

7 commits

  • There is generic implementation of the function to unescape strings.

    Signed-off-by: Andy Shevchenko
    Cc: Samuel Thibault
    Cc: Greg Kroah-Hartman
    Cc: William Hubbs
    Cc: Chris Brannon
    Cc: Kirk Reiser
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andy Shevchenko
     
  • Allow zcache to be built/loaded as a module. Note runtime dependency
    disallows loading if cleancache/frontswap lazy initialization patches
    are not present. Zsmalloc support has not yet been merged into zcache
    but, once merged, could now easily be selected via a module_param.

    If built-in (not built as a module), the original mechanism of enabling
    via a kernel boot parameter is retained, but this should be considered
    deprecated.

    Note that module unload is explicitly not yet supported.

    Signed-off-by: Dan Magenheimer
    [v1: Rebased with different order of patches]
    [v2: Removed [CLEANCACHE|FRONTSWAP]_HAS_LAZY_INIT ifdef]
    [v3: Rebased on top of ramster->zcache move]
    [v4: Redid the Makefile]
    [v5: s/ZCACHE2/ZCACHE/]
    Signed-off-by: Konrad Rzeszutek Wilk
    Signed-off-by: Bob Liu
    Cc: Wanpeng Li
    Cc: Andor Daam
    Cc: Florian Schmaus
    Cc: Minchan Kim
    Cc: Stefan Hengelein
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Dan Magenheimer
     
  • Enable module support for ramster. Note runtime dependency disallows
    loading if cleancache/frontswap lazy initialization patches are not
    present.

    If built-in (not built as a module), the original mechanism of enabling
    via a kernel boot parameter is retained, but this should be considered
    deprecated.

    Note that module unload is explicitly not yet supported.

    [v1: Fixed compile issues since ramster_init now has four arguments]
    [v2: Fixed rebase on ramster->zcache move]
    [akpm@linux-foundation.org: use_frontswap_selfshrink cannot be __initdata]
    Signed-off-by: Dan Magenheimer
    Signed-off-by: Konrad Rzeszutek Wilk
    Signed-off-by: Bob Liu
    Cc: Wanpeng Li
    Cc: Andor Daam
    Cc: Florian Schmaus
    Cc: Minchan Kim
    Cc: Stefan Hengelein
    Cc: Wu Fengguang
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Dan Magenheimer
     
  • In the past it either used to be NULL or the "older" backend. Now we
    also return -Exx error codes.

    Signed-off-by: Konrad Rzeszutek Wilk
    Signed-off-by: Bob Liu
    Cc: Wanpeng Li
    Cc: Andor Daam
    Cc: Dan Magenheimer
    Cc: Florian Schmaus
    Cc: Minchan Kim
    Cc: Stefan Hengelein
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Konrad Rzeszutek Wilk
     
  • Instead of using a backend_registered to determine whether a backend is
    enabled. This allows us to remove the backend_register check and just
    do 'if (cleancache_ops)'

    [v1: Rebase on top of b97c4b430b0a (ramster->zcache move]
    Signed-off-by: Konrad Rzeszutek Wilk
    Signed-off-by: Bob Liu
    Cc: Wanpeng Li
    Cc: Andor Daam
    Cc: Dan Magenheimer
    Cc: Florian Schmaus
    Cc: Minchan Kim
    Cc: Stefan Hengelein
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Konrad Rzeszutek Wilk
     
  • This simplifies the code in the frontswap - we can get rid of the
    'backend_registered' test and instead check against frontswap_ops.

    [v1: Rebase on top of 703ba7fe5e0 (ramster->zcache move]
    Signed-off-by: Konrad Rzeszutek Wilk
    Signed-off-by: Bob Liu
    Cc: Wanpeng Li
    Cc: Andor Daam
    Cc: Dan Magenheimer
    Cc: Florian Schmaus
    Cc: Minchan Kim
    Cc: Stefan Hengelein
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Konrad Rzeszutek Wilk
     
  • Pull media update from Mauro Carvalho Chehab:

    - OF documentation and patches at core and drivers, to be used by for
    embedded media systems

    - some I2C drivers used on go7007 were rewritten/promoted from staging:
    sony-btf-mpx, tw2804, tw9903, tw9906, wis-ov7640, wis-uda1342

    - add fimc-is driver (Exynos)

    - add a new radio driver: radio-si476x

    - add a two new tuners: r820t and tuner_it913x

    - split camera code on em28xx driver and add more models

    - the cypress firmware load is used outside dvb usb drivers. So, move
    it to a common directory to make easier to re-use it

    - siano media driver updated to work with sms2270 devices

    - several work done in order to promote go7007 and solo6x1x out of
    staging (still, there are some pending issues)

    - several API compliance fixes at v4l2 drivers that don't behave as
    expected

    - as usual, lots of driver fixes, improvements, cleanups and new device
    addition at the existing drivers.

    * 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media: (831 commits)
    [media] cx88: make core less verbose
    [media] em28xx: fix oops at em28xx_dvb_bus_ctrl()
    [media] s5c73m3: fix indentation of the help section in Kconfig
    [media] cx25821-alsa: get rid of a __must_check warning
    [media] cx25821-video: declare cx25821_vidioc_s_std as static
    [media] cx25821-video: remove maxw from cx25821_vidioc_try_fmt_vid_cap
    [media] r820t: Remove a warning for an unused value
    [media] dib0090: Fix a warning at dib0090_set_EFUSE
    [media] dib8000: fix a warning
    [media] dib8000: Fix sub-channel range
    [media] dib8000: store dtv_property_cache in a temp var
    [media] dib8000: warning fix: declare internal functions as static
    [media] r820t: quiet gcc warning on n_ring
    [media] r820t: memory leak in release()
    [media] r820t: precendence bug in r820t_xtal_check()
    [media] videodev2.h: Remove the unused old V4L1 buffer types
    [media] anysee: Grammar s/report the/report to/
    [media] anysee: Initialize ret = 0 in anysee_frontend_attach()
    [media] media: videobuf2: fix the length check for mmap
    [media] em28xx: save isoc endpoint number for DVB only if endpoint has alt settings with xMaxPacketSize != 0
    ...

    Linus Torvalds
     

30 Apr, 2013

10 commits

  • Include missing linux/slab.h inclusions where the source file is currently
    expecting to get kmalloc() and co. through linux/proc_fs.h.

    Signed-off-by: David Howells
    Acked-by: Greg Kroah-Hartman
    cc: linux-s390@vger.kernel.org
    cc: sparclinux@vger.kernel.org
    cc: linux-efi@vger.kernel.org
    cc: linux-mtd@lists.infradead.org
    cc: devel@driverdev.osuosl.org
    cc: x86@kernel.org
    Signed-off-by: Al Viro

    David Howells
     
  • Don't use create_proc_read_entry() as that is deprecated, but rather use
    proc_create_data() and seq_file instead.

    Signed-off-by: David Howells
    Acked-by: Greg Kroah-Hartman
    cc: Jouni Malinen
    cc: John W. Linville
    cc: Johannes Berg
    cc: linux-wireless@vger.kernel.org
    cc: netdev@vger.kernel.org
    cc: devel@driverdev.osuosl.org
    Signed-off-by: Al Viro

    David Howells
     
  • Don't use create_proc_read_entry() as that is deprecated, but rather use
    proc_create_data() and seq_file instead.

    Signed-off-by: David Howells
    cc: Henk de Groot
    cc: Bartlomiej Zolnierkiewicz
    cc: Greg Kroah-Hartman
    cc: linux-wireless@vger.kernel.org
    Signed-off-by: Al Viro

    David Howells
     
  • Don't use create_proc_read_entry() as that is deprecated, but rather use
    proc_create_data() and seq_file instead.

    Signed-off-by: David Howells
    cc: Bob Beers
    cc: Greg Kroah-Hartman
    cc: devel@driverdev.osuosl.org
    Signed-off-by: Al Viro

    David Howells
     
  • Don't use create_proc_read_entry() as that is deprecated, but rather use
    proc_create_data() and seq_file instead.

    Signed-off-by: David Howells
    cc: Greg Kroah-Hartman
    cc: Randy Dunlap
    cc: Priit Laes
    cc: devel@driverdev.osuosl.org
    cc: Mikko Virkkilä
    cc: Lauri Hintsala
    cc: Riku Mettälä
    cc: Veli-Pekka Peltola
    Signed-off-by: Al Viro

    David Howells
     
  • Don't use create_proc_read_entry() as that is deprecated, but rather use
    proc_create_data() and seq_file instead.

    Signed-off-by: David Howells
    cc: David Schleef
    cc: Ian Abbott
    cc: Mori Hess
    cc: Greg Kroah-Hartman
    cc: H Hartley Sweeten
    cc: devel@driverdev.osuosl.org
    Signed-off-by: Al Viro

    David Howells
     
  • Don't use create_proc_read_entry() as that is deprecated, but rather use
    proc_create_data() and seq_file instead.

    Signed-off-by: David Howells
    cc: Marek Belisko
    cc: Greg Kroah-Hartman
    cc: Ondrej Zary
    cc: devel@driverdev.osuosl.org
    Signed-off-by: Al Viro

    David Howells
     
  • Don't use create_proc_read_entry() as that is deprecated, but rather use
    proc_create_data() and seq_file instead. Whilst we're at it, reduce the
    number of show functions where we can share them.

    Question: Do any of the registers read by proc_get_registers() have side
    effects upon reading? If so, locking will be required.

    Signed-off-by: David Howells
    cc: Greg Kroah-Hartman
    cc: Maxim Mikityanskiy
    cc: YAMANE Toshiaki
    cc: Bill Pemberton
    cc: Andrea Merello
    cc: linux-wireless@vger.kernel.org
    cc: devel@driverdev.osuosl.org
    Signed-off-by: Al Viro

    David Howells
     
  • Don't use create_proc_read_entry() as that is deprecated, but rather use
    proc_create_data() and seq_file instead. Whilst we're at it, reduce the
    number of show functions where we can share them.

    Note: proc_get_stats_ap() should probably use seq_file iteration rather than
    list_for_each_entry().

    Further note: There appears to be a lot of locking missing in this file to
    defend against concurrent access by the driver doing normal operations.
    Notably, ieee->network_list traversal and RWCAM/RCAMO command/response access.
    Further, do any of the registers read have side effects upon reading?

    Signed-off-by: David Howells
    cc: Jerry Chuang
    cc: Mauro Carvalho Chehab
    cc: Greg Kroah-Hartman
    cc: linux-wireless@vger.kernel.org
    cc: devel@driverdev.osuosl.org
    Signed-off-by: Al Viro

    David Howells
     
  • Pull tty/serial driver update from Greg Kroah-Hartman:
    "Here's the big tty/serial driver merge request for 3.10-rc1

    Once again, Jiri has a number of TTY driver fixes and cleanups, and
    Peter Hurley came through with a bunch of ldisc fixes that resolve a
    number of reported issues. There are some other serial driver
    cleanups as well.

    All of these have been in the linux-next tree for a while"

    * tag 'tty-3.10-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty: (117 commits)
    tty/serial/sirf: fix MODULE_DEVICE_TABLE
    serial: mxs: drop superfluous {get|put}_device
    serial: mxs: fix buffer overflow
    ARM: PL011: add support for extended FIFO-size of PL011-r1p5
    serial_core.c: add put_device() after device_find_child()
    tty: Fix unsafe bit ops in tty_throttle_safe/unthrottle_safe
    serial: sccnxp: Replace pdata.init/exit with regulator API
    serial: sccnxp: Do not override device name
    TTY: pty, fix compilation warning
    TTY: rocket, fix compilation warning
    TTY: ircomm: fix DTR being raised on hang up
    TTY: synclinkmp: fix DTR being raised on hang up
    TTY: synclink_gt: fix DTR being raised on hang up
    TTY: synclink: fix DTR being raised on hang up
    serial: 8250_dw: Fix the stub for dw8250_probe_acpi()
    serial: 8250_dw: Convert to devm_ioremap()
    serial: 8250_dw: Set port capabilities based on CPR register
    serial: 8250_dw: Let ACPI code extract the DMA client info
    serial: 8250_dw: Support clk framework also with ACPI
    serial: 8250_dw: Enable runtime PM
    ...

    Linus Torvalds
     

24 Apr, 2013

14 commits

  • CONFIG_COMEDI_NI_LABPC_ISA is a tristate option. #if IS_ENABLED()
    needs to be used instead of #ifdef in order to build the legacy
    specific code in this driver.

    The local variable 'board' is not used in labpc_attach(). Remove it.

    The labpc_detach() function is only referenced in this file. Make
    it static.

    Signed-off-by: H Hartley Sweeten
    Cc: Ian Abbott
    Signed-off-by: Greg Kroah-Hartman

    H Hartley Sweeten
     
  • Cleanup the comments about the cio-das802/16 specific register
    defines. This also removes a checkpatch.pl warning about > 80
    char lines.

    Signed-off-by: H Hartley Sweeten
    Reviewed-by: Ian Abbott
    Signed-off-by: Greg Kroah-Hartman

    H Hartley Sweeten
     
  • Rename the CamelCase variables in das800_ai_do_cmd().

    For aesthetic reasons, initialize the variables when they are
    declared.

    Signed-off-by: H Hartley Sweeten
    Reviewed-by: Ian Abbott
    Signed-off-by: Greg Kroah-Hartman

    H Hartley Sweeten
     
  • For aesthetic reasons, change the 'do_bits' type to unsigned int
    to match the subdevice s->state. and change the 'forever' flag
    to a bool.

    Signed-off-by: H Hartley Sweeten
    Reviewed-by: Ian Abbott
    Signed-off-by: Greg Kroah-Hartman

    H Hartley Sweeten
     
  • Rename the CamelCase variable 'dataPoint'.

    Cleanup some of the comments and fix the > 80 char lines.

    Use the das800_ai_get_sample() helper to get the analog input data.

    Change the fifo flags into bools and make sure to check for the
    fifo overflow while reading the samples. This also fixes the overflow
    detection for 12-bit resolutions. In the current code the 'dataPoint'
    value has been shifted and masked. This could result in fifo_overflow
    being invalidly true.

    Remove the need for the 'thisboard' pointer by using the subdevice
    'maxdata' to determine the sample size.

    The devpriv->forever flag is really a bool. Treat it as such.

    Remove the comedi_error() messages. The user will get the error
    condition back in the async event. The message is just added noise.

    Signed-off-by: H Hartley Sweeten
    Reviewed-by: Ian Abbott
    Signed-off-by: Greg Kroah-Hartman

    H Hartley Sweeten
     
  • Introduce a couple helper functions to read the 16-bit analog input
    sample and to wait for the analog conversion to complete.

    Tidy up the das800_ai_insn_read() function by using the new helpers.
    Also, remove the need for 'thisboard' in the function by checking the
    subdevice 'maxdata' variable to determine the analog input resolution.

    Signed-off-by: H Hartley Sweeten
    Reviewed-by: Ian Abbott
    Signed-off-by: Greg Kroah-Hartman

    H Hartley Sweeten
     
  • For digital input subdevices, the (*insn_bits) function simply needs
    to return the status of the input channels in data[1].

    Signed-off-by: H Hartley Sweeten
    Reviewed-by: Ian Abbott
    Signed-off-by: Greg Kroah-Hartman

    H Hartley Sweeten
     
  • Use a couple local variables, mask and bits, to clarify this function.

    Its only necessary to update the outputs if the mask indicates that
    the bits are changing. Modify this function accordingly. Also, use
    the subdevice 'state' variable to hold the actual output channel
    state instead of needing to get it from the private data and shift
    it.

    Signed-off-by: H Hartley Sweeten
    Reviewed-by: Ian Abbott
    Signed-off-by: Greg Kroah-Hartman

    H Hartley Sweeten
     
  • The comedi core always calls the (*do_cmdtest) function before it
    calls the (*do_cmd) function. The divisors were already calculated
    in das800_ai_do_cmdtest(), it is not necessary to calculate them
    again in das800_ai_do_cmd().

    Signed-off-by: H Hartley Sweeten
    Reviewed-by: Ian Abbott
    Signed-off-by: Greg Kroah-Hartman

    H Hartley Sweeten
     
  • For aesthetic reasons, rename these functions to match the namespace
    of the rest of the driver. Also, remove the unnecessary comments.

    Signed-off-by: H Hartley Sweeten
    Reviewed-by: Ian Abbott
    Signed-off-by: Greg Kroah-Hartman

    H Hartley Sweeten
     
  • For aesthetic reasons, rename some of the subdevice functions
    to help with greps and add some whitespace to the subdevice init.

    Signed-off-by: H Hartley Sweeten
    Reviewed-by: Ian Abbott
    Signed-off-by: Greg Kroah-Hartman

    H Hartley Sweeten
     
  • Interrupts are only requires for the analog input async command support.

    Allow the driver to attach to the board if the request_irq() fails.

    Signed-off-by: H Hartley Sweeten
    Reviewed-by: Ian Abbott
    Signed-off-by: Greg Kroah-Hartman

    H Hartley Sweeten
     
  • Interrupt support is optional with this driver. Only hook up the async
    command support for the analog input subdevice if the user requested an
    interrupt when attaching to the board. This also allows removing the
    extra test in das800_ai_do_cmd().

    For aesthetic reasons, add some whitespace to the subdevice init.

    Signed-off-by: H Hartley Sweeten
    Reviewed-by: Ian Abbott
    Signed-off-by: Greg Kroah-Hartman

    H Hartley Sweeten
     
  • For aesthetic reasons, move some of the local variables to the place
    they are actually used. Also, rename the CamelCase 'startChan' local
    variable.

    Remove the unnecessary '()' around the variables passed in the
    i8253_cascade_ns_to_timer_2div() call.

    Add a local variable, 'next', to hold the cmd->chanlist[i] value
    used in the loop that checks the channel/gain list.

    Replace the comedi_error() with dev_dbg() and shorten the messages
    a bit.

    Signed-off-by: H Hartley Sweeten
    Reviewed-by: Ian Abbott
    Signed-off-by: Greg Kroah-Hartman

    H Hartley Sweeten