13 Aug, 2013

6 commits

  • Since all the used PWM prescalers and dividers configuration has been
    moved to appropriate drivers, the pwm-clock infrastructure is now
    unused and so this patch removes it.

    Signed-off-by: Tomasz Figa
    Reviewed-by: Sylwester Nawrocki
    Tested-by: Heiko Stuebner
    Tested-by: Mark Brown
    Tested-by: Sylwester Nawrocki
    Acked-by: Arnd Bergmann

    Tomasz Figa
     
  • This patch removes old Samsung PWM timer platform devices that are not
    used any more.

    Signed-off-by: Tomasz Figa
    Reviewed-by: Sylwester Nawrocki
    Tested-by: Heiko Stuebner
    Tested-by: Mark Brown
    Tested-by: Sylwester Nawrocki
    Acked-by: Arnd Bergmann

    Tomasz Figa
     
  • This patch removes the now unused pwm-samsung-legacy driver, which was
    replaced by new pwm-samsung driver.

    Signed-off-by: Tomasz Figa
    Reviewed-by: Sylwester Nawrocki
    Tested-by: Heiko Stuebner
    Tested-by: Mark Brown
    Tested-by: Sylwester Nawrocki
    Acked-by: Arnd Bergmann
    Acked-by: Thierry Reding

    Tomasz Figa
     
  • This patch modifies any board files using the legacy PWM device to use
    the new device instead.

    Signed-off-by: Tomasz Figa
    Reviewed-by: Sylwester Nawrocki
    Tested-by: Heiko Stuebner
    Tested-by: Mark Brown
    Tested-by: Sylwester Nawrocki
    Acked-by: Arnd Bergmann

    Tomasz Figa
     
  • This patch modifies dev-backlight helpers to get private data using
    container_of instead of abusing platform_data field of PWM device.

    Signed-off-by: Tomasz Figa
    Reviewed-by: Sylwester Nawrocki
    Tested-by: Heiko Stuebner
    Tested-by: Mark Brown
    Tested-by: Sylwester Nawrocki
    Acked-by: Arnd Bergmann

    Tomasz Figa
     
  • This patch introduces new Samsung PWM driver, which is completely
    rewritten to be multiplatform- and DeviceTree-aware.

    In addition, remaining problems of old driver are fixed, such as:
    - proper handling of hardware variants,
    - synchronization on SMP systems,
    - handling of boundary parameter values,
    - hardware sharing with PWM clocksource driver,
    - undefined state of PWM output after stopping PWM channel.

    Signed-off-by: Tomasz Figa
    Reviewed-by: Sylwester Nawrocki
    Tested-by: Heiko Stuebner
    Tested-by: Mark Brown
    Tested-by: Sylwester Nawrocki
    Acked-by: Arnd Bergmann
    Acked-by: Thierry Reding

    Tomasz Figa
     

06 Aug, 2013

12 commits

  • This patch renames the old pwm-samsung driver to pwm-samsung-legacy to
    create place for the new, rewritten, DT-aware pwm-samsung driver.

    Signed-off-by: Tomasz Figa
    Reviewed-by: Sylwester Nawrocki
    Tested-by: Heiko Stuebner
    Tested-by: Mark Brown
    Tested-by: Sylwester Nawrocki
    Acked-by: Arnd Bergmann
    Acked-by: Thierry Reding

    Tomasz Figa
     
  • As the need for an IRQ chip handling PWM timer interrupt chaining is
    gone now, this patch removes all the code made unnecessary.

    Signed-off-by: Tomasz Figa
    Signed-off-by: Kyungmin Park
    Reviewed-by: Sylwester Nawrocki
    Tested-by: Heiko Stuebner
    Tested-by: Mark Brown
    Tested-by: Sylwester Nawrocki
    Acked-by: Arnd Bergmann

    Tomasz Figa
     
  • This patch removes the old samsung-time driver, since all its users have
    been migrated to the new samsung_pwm_timer clocksource driver.

    Signed-off-by: Tomasz Figa
    Reviewed-by: Sylwester Nawrocki
    Tested-by: Heiko Stuebner
    Tested-by: Mark Brown
    Tested-by: Sylwester Nawrocki
    Acked-by: Arnd Bergmann

    Tomasz Figa
     
  • This patch moves all Samsung platforms using PWM clocksource from legacy
    samsung-time to new samsung-pwm-timer driver.

    Signed-off-by: Tomasz Figa
    Reviewed-by: Daniel Lezcano
    Reviewed-by: Sylwester Nawrocki
    Tested-by: Heiko Stuebner
    Tested-by: Mark Brown
    Tested-by: Sylwester Nawrocki
    Acked-by: Arnd Bergmann

    Tomasz Figa
     
  • This patch adds PWM platform data needed for legacy (non-DT) platforms
    to handle SoC-specific bits of the PWM/timer block.

    Signed-off-by: Tomasz Figa
    Signed-off-by: Kyungmin Park
    Reviewed-by: Sylwester Nawrocki
    Tested-by: Heiko Stuebner
    Tested-by: Mark Brown
    Tested-by: Sylwester Nawrocki
    Acked-by: Arnd Bergmann

    Tomasz Figa
     
  • This patch adds new samsung_device_pwm platform device that represents
    the whole PWM/timer block and includes memory and IRQ resources.

    Signed-off-by: Tomasz Figa
    Reviewed-by: Sylwester Nawrocki
    Tested-by: Heiko Stuebner
    Tested-by: Mark Brown
    Tested-by: Sylwester Nawrocki
    Acked-by: Arnd Bergmann

    Tomasz Figa
     
  • This patch makes all defintions of timer block base address use the same
    prefix to allow using the common name to define platform device
    resource.

    Signed-off-by: Tomasz Figa
    Signed-off-by: Kyungmin Park
    Reviewed-by: Sylwester Nawrocki
    Tested-by: Heiko Stuebner
    Tested-by: Mark Brown
    Tested-by: Sylwester Nawrocki
    Acked-by: Arnd Bergmann
    Acked-by: Daniel Lezcano

    Tomasz Figa
     
  • Current suspend/resume handling of the driver was broken, because:
    - periodic timer was being enabled in CLOCK_EVT_MODE_RESUME mode, which
    does not seem to be correct behavior looking at other platforms,
    - PWM divisors need to be restored, but they were not,
    - clockevent interrupt mask needs to be restored, but it was not,
    - clocksource was being restored in clockevent resume callback.

    This patch fixes issues mentioned above, making suspend/resume handling
    in the driver correct.

    Signed-off-by: Tomasz Figa
    Reviewed-by: Sylwester Nawrocki
    Tested-by: Heiko Stuebner
    Tested-by: Mark Brown
    Tested-by: Sylwester Nawrocki
    Acked-by: Arnd Bergmann
    Acked-by: Daniel Lezcano

    Tomasz Figa
     
  • In case of Samsung PWM timer, clocksource MMIO can not be used, because
    custom suspend/resume callbacks are required.

    Signed-off-by: Tomasz Figa
    Reviewed-by: Daniel Lezcano
    Reviewed-by: Sylwester Nawrocki
    Tested-by: Heiko Stuebner
    Tested-by: Mark Brown
    Tested-by: Sylwester Nawrocki
    Acked-by: Arnd Bergmann

    Tomasz Figa
     
  • Instead of calculating register every time the timer should be read,
    we can just do it one time at initialization and store the address in
    driver data.

    Signed-off-by: Tomasz Figa
    Reviewed-by: Sylwester Nawrocki
    Tested-by: Heiko Stuebner
    Tested-by: Mark Brown
    Tested-by: Sylwester Nawrocki
    Acked-by: Arnd Bergmann

    Tomasz Figa
     
  • PWM channel 4 has its autoreload bit located at different position. This
    patch fixes the driver to account for that.

    This fixes a problem with the clocksource hanging after it overflows because
    it is not reloaded any more.

    Signed-off-by: Tomasz Figa
    Reviewed-by: Sylwester Nawrocki
    Tested-by: Heiko Stuebner
    Tested-by: Mark Brown
    Tested-by: Sylwester Nawrocki
    Acked-by: Arnd Bergmann

    Tomasz Figa
     
  • PWM registers are shared between clocksource and PWM drivers and so can
    not be claimed for exclusive use.

    Signed-off-by: Tomasz Figa
    Reviewed-by: Sylwester Nawrocki
    Tested-by: Heiko Stuebner
    Tested-by: Mark Brown
    Tested-by: Sylwester Nawrocki
    Acked-by: Arnd Bergmann

    Tomasz Figa
     

05 Aug, 2013

5 commits

  • Linus Torvalds
     
  • Pull dmaengine fixes from Vinod Koul:
    "Two fixes for slave dmaengine. The first fixes cyclic dma transfers
    for pl330 and the second one makes us return the correct error code on
    probe"

    * 'fixes' of git://git.infradead.org/users/vkoul/slave-dma:
    dma: pl330: Fix cyclic transfers
    pch_dma: fix error return code in pch_dma_probe()

    Linus Torvalds
     
  • Pull drm fix from Dave Airlie:
    "Just a quick fix that a few people have reported, be nice to have in
    asap"

    The drm tree seems to be very confused about 64-bit divides. Here it
    uses a slow 64-by-64 bit divide to divide by a small constant. Oh well.
    Doesn't look performance-critical, just stupid.

    * 'drm-fixes' of git://people.freedesktop.org/~airlied/linux:
    drm/radeon: fix 64 bit divide in SI spm code

    Linus Torvalds
     
  • Commit 46a1c2c7ae53 ("vfs: export lseek_execute() to modules") broke the
    tmpfs SEEK_DATA/SEEK_HOLE implementation, because vfs_setpos() converts
    the carefully prepared -ENXIO to -EINVAL. Other filesystems avoid it in
    error cases: do the same in tmpfs.

    Signed-off-by: Hugh Dickins
    Cc: Jie Liu
    Cc: Al Viro
    Signed-off-by: Linus Torvalds

    Hugh Dickins
     
  • Pull sound fixes from Takashi Iwai:
    "All small regression or small fixes, nothing surprising at this stage.

    - regression fix for intel Mac Mini quirk
    - compress ioctl error fix
    - ASoC fixes for control change notifications, some UI fixes,
    driver-specific fixes (resource leak, build errors, etc)"

    * tag 'sound-3.11' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound:
    ALSA: hda - Fix missing fixup for Mac Mini with STAC9221
    ASoC: wm0010: Fix resource leak
    ASoC: au1x: Fix build
    ASoC: bf5xx-ac97: Fix compile error with SND_BF5XX_HAVE_COLD_RESET
    ASoC: bfin-ac97: Fix prototype error following AC'97 refactoring
    ALSA: compress: fix the return value for SNDRV_COMPRESS_VERSION
    ASoC: dapm: Fix return value of snd_soc_dapm_put_{volsw,enum_virt}()

    Linus Torvalds
     

04 Aug, 2013

14 commits

  • Forgot to use the appropriate math64 function.

    Signed-off-by: Alex Deucher
    Signed-off-by: Dave Airlie

    Alex Deucher
     
  • Pull networking fixes from David Miller:

    1) Don't ignore user initiated wireless regulatory settings on cards
    with custom regulatory domains, from Arik Nemtsov.

    2) Fix length check of bluetooth information responses, from Jaganath
    Kanakkassery.

    3) Fix misuse of PTR_ERR in btusb, from Adam Lee.

    4) Handle rfkill properly while iwlwifi devices are offline, from
    Emmanuel Grumbach.

    5) Fix r815x devices DMA'ing to stack buffers, from Hayes Wang.

    6) Kernel info leak in ATM packet scheduler, from Dan Carpenter.

    7) 8139cp doesn't check for DMA mapping errors, from Neil Horman.

    8) Fix bridge multicast code to not snoop when no querier exists,
    otherwise mutlicast traffic is lost. From Linus Lüssing.

    9) Avoid soft lockups in fib6_run_gc(), from Michal Kubecek.

    10) Fix races in automatic address asignment on ipv6, which can result
    in incorrect lifetime assignments. From Jiri Benc.

    11) Cure build bustage when CONFIG_NET_LL_RX_POLL is not set and rename
    it CONFIG_NET_RX_BUSY_POLL to eliminate the last reference to the
    original naming of this feature. From Cong Wang.

    12) Fix crash in TIPC when server socket creation fails, from Ying Xue.

    13) macvlan_changelink() silently succeeds when it shouldn't, from
    Michael S Tsirkin.

    14) HTB packet scheduler can crash due to sign extension, fix from
    Stephen Hemminger.

    15) With the cable unplugged, r8169 prints out a message every 10
    seconds, make it netif_dbg() instead of netif_warn(). From Peter
    Wu.

    16) Fix memory leak in rtm_to_ifaddr(), from Daniel Borkmann.

    17) sis900 gets spurious TX queue timeouts due to mismanagement of link
    carrier state, from Denis Kirjanov.

    18) Validate somaxconn sysctl to make sure it fits inside of a u16.
    From Roman Gushchin.

    19) Fix MAC address filtering on qlcnic, from Shahed Shaikh.

    * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: (68 commits)
    qlcnic: Fix for flash update failure on 83xx adapter
    qlcnic: Fix link speed and duplex display for 83xx adapter
    qlcnic: Fix link speed display for 82xx adapter
    qlcnic: Fix external loopback test.
    qlcnic: Removed adapter series name from warning messages.
    qlcnic: Free up memory in error path.
    qlcnic: Fix ingress MAC learning
    qlcnic: Fix MAC address filter issue on 82xx adapter
    net: ethernet: davinci_emac: drop IRQF_DISABLED
    netlabel: use domain based selectors when address based selectors are not available
    net: check net.core.somaxconn sysctl values
    sis900: Fix the tx queue timeout issue
    net: rtm_to_ifaddr: free ifa if ifa_cacheinfo processing fails
    r8169: remove "PHY reset until link up" log spam
    net: ethernet: cpsw: drop IRQF_DISABLED
    htb: fix sign extension bug
    macvlan: handle set_promiscuity failures
    macvlan: better mode validation
    tipc: fix oops when creating server socket fails
    net: rename CONFIG_NET_LL_RX_POLL to CONFIG_NET_RX_BUSY_POLL
    ...

    Linus Torvalds
     
  • Flash update routine was improperly checking register read API return value.
    Modify register read API and perform proper error check.

    Signed-off-by: Himanshu Madhani
    Signed-off-by: David S. Miller

    Himanshu Madhani
     
  • o Set link speed and duplex to unknown when link is not up.

    Signed-off-by: Rajesh Borundia
    Signed-off-by: Shahed Shaikh
    Signed-off-by: David S. Miller

    Rajesh Borundia
     
  • o Do not obtain link speed from register when adapter
    link is down.

    Signed-off-by: Rajesh Borundia
    Signed-off-by: Shahed Shaikh
    Signed-off-by: David S. Miller

    Rajesh Borundia
     
  • Driver was not handling external loopback diagnostic
    test request.

    Signed-off-by: Shahed Shaikh
    Signed-off-by: David S. Miller

    Shahed Shaikh
     
  • Signed-off-by: Pratik Pujar
    Signed-off-by: Shahed Shaikh
    Signed-off-by: David S. Miller

    Pratik Pujar
     
  • Signed-off-by: Himanshu Madhani
    Signed-off-by: Shahed Shaikh
    Signed-off-by: David S. Miller

    Himanshu Madhani
     
  • o Delete MAC address from the adapter's filter table
    if the source MAC address of ingress packet matches.

    Signed-off-by: Shahed Shaikh
    Signed-off-by: David S. Miller

    Shahed Shaikh
     
  • Driver was passing the address of a pointer instead of
    the pointer itself.

    Signed-off-by: Shahed Shaikh
    Signed-off-by: David S. Miller

    Shahed Shaikh
     
  • IRQF_DISABLED is a no-op by now and should be removed.

    Signed-off-by: Mugunthan V N
    Signed-off-by: David S. Miller

    Mugunthan V N
     
  • Pull nfsd bugfixes from Bruce Fields:
    "Most of this is due to a screwup on my part -- some gss-proxy crashes
    got fixed before the merge window but somehow never made it out of a
    temporary git repo on my laptop...."

    * 'for-3.11' of git://linux-nfs.org/~bfields/linux:
    svcrpc: set cr_gss_mech from gss-proxy as well as legacy upcall
    svcrpc: fix kfree oops in gss-proxy code
    svcrpc: fix gss-proxy xdr decoding oops
    svcrpc: fix gss_rpc_upcall create error
    NFSD/sunrpc: avoid deadlock on TCP connection due to memory pressure.

    Linus Torvalds
     
  • Pull hwmon fix from Guenter Roeck:
    "Fix chip initialization/configuration in MAX6697 driver"

    * tag 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging:
    hwmon: (max6697) fix MAX6581 ideality

    Linus Torvalds
     
  • Pull arm fixes fixes from Russell King:
    "This fixes a couple of problems with commit 48be69a026b2 ("ARM: move
    signal handlers into a vdso-like page"), one of which was originally
    discovered via my testing originally, but the fix for it was never
    actually committed.

    The other shows up on noMMU builds, and such platforms are extremely
    rare and as such are not part of my nightly testing"

    * 'fixes' of git://git.linaro.org/people/rmk/linux-arm:
    ARM: fix nommu builds with 48be69a02 (ARM: move signal handlers into a vdso-like page)
    ARM: fix a cockup in 48be69a02 (ARM: move signal handlers into a vdso-like page)

    Linus Torvalds
     

03 Aug, 2013

3 commits