02 Apr, 2015

1 commit


29 Mar, 2015

1 commit


27 Mar, 2015

6 commits

  • An upcoming patch will depend on tai_ns() and NMI-safe ktime_get_raw_fast(),
    so merge timers/core here in a separate topic branch until it's all cooked
    and timers/core is merged upstream.

    Signed-off-by: Ingo Molnar

    Ingo Molnar
     
  • The IMG PDC watchdog driver heartbeat module parameter has no default so
    it is initialised to zero. This results in the following warning during
    probe:

    imgpdc-wdt 2006000.wdt: Initial timeout out of range! setting max timeout

    The module parameter description implies that the default value should
    be PDC_WDT_DEF_TIMEOUT, which isn't yet used, so initialise it to that.

    Also tweak the heartbeat module parameter description for consistency.

    Fixes: 93937669e9b5 ("watchdog: ImgTec PDC Watchdog Timer Driver")
    Signed-off-by: James Hogan
    Cc: Ezequiel Garcia
    Cc: Naidu Tellapati
    Cc: Jude Abraham
    Cc: linux-watchdog@vger.kernel.org
    Reviewed-by: Guenter Roeck
    Signed-off-by: Wim Van Sebroeck

    James Hogan
     
  • The IMG PDC watchdog probe function calls pdc_wdt_stop() prior to
    watchdog_set_drvdata(), causing a NULL pointer dereference when
    pdc_wdt_stop() retrieves the struct pdc_wdt_dev pointer using
    watchdog_get_drvdata() and reads the register base address through it.

    Fix by moving the watchdog_set_drvdata() call earlier, to where various
    other pdc_wdt->wdt_dev fields are initialised.

    Fixes: 93937669e9b5 ("watchdog: ImgTec PDC Watchdog Timer Driver")
    Signed-off-by: James Hogan
    Cc: Ezequiel Garcia
    Cc: Naidu Tellapati
    Cc: Jude Abraham
    Cc: linux-watchdog@vger.kernel.org
    Reviewed-by: Guenter Roeck
    Signed-off-by: Wim Van Sebroeck

    James Hogan
     
  • "ret" should be signed for the error handling to work correctly. This
    doesn't matter much in real life since mtk_wdt_set_timeout() always
    succeeds.

    Signed-off-by: Dan Carpenter
    Reviewed-by: Matthias Brugger
    Reviewed-by: Guenter Roeck
    Signed-off-by: Wim Van Sebroeck

    Dan Carpenter
     
  • Pull drm refcounting fixes from Dave Airlie:
    "Here is the complete set of i915 bug/warn/refcounting fixes"

    * 'drm-fixes' of git://people.freedesktop.org/~airlied/linux:
    drm/i915: Fixup legacy plane->crtc link for initial fb config
    drm/i915: Fix atomic state when reusing the firmware fb
    drm/i915: Keep ring->active_list and ring->requests_list consistent
    drm/i915: Don't try to reference the fb in get_initial_plane_config()
    drm: Fixup racy refcounting in plane_force_disable

    Linus Torvalds
     
  • Pull device mapper fix from Mike Snitzer:
    "Fix DM core device cleanup regression -- due to a latent race that was
    exposed by the bdi changes that were introduced during the 4.0 merge"

    * tag 'dm-4.0-fix-2' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm:
    dm: fix add_disk() NULL pointer due to race with free_dev()

    Linus Torvalds
     

26 Mar, 2015

8 commits

  • This is a very similar bug in the load detect code fixed in

    commit 9128b040eb774e04bc23777b005ace2b66ab2a85
    Author: Daniel Vetter
    Date: Tue Mar 3 17:31:21 2015 +0100

    drm/i915: Fix modeset state confusion in the load detect code

    But this time around it was the initial fb code that forgot to update
    the plane->crtc pointer. Otherwise it's the exact same bug, with the
    exact same restrains (any set_config call/ioctl that doesn't disable
    the pipe papers over the bug for free, so fairly hard to hit in normal
    testing). So if you want the full explanation just go read that one
    over there - it's rather long ...

    Cc: Matt Roper
    Cc: Linus Torvalds
    Cc: Chris Wilson
    Cc: Josh Boyer
    Cc: Jani Nikula
    Reported-and-tested-by: Josh Boyer
    Signed-off-by: Daniel Vetter
    [Jani: backported to drm-intel-fixes for v4.0-rc]
    Reference: http://mid.gmane.org/CA+5PVA7ChbtJrknqws1qvZcbrg1CW2pQAFkSMURWWgyASRyGXg@mail.gmail.com
    Signed-off-by: Jani Nikula

    Daniel Vetter
     
  • Right now, we get a warning when taking over the firmware fb:

    [drm:drm_atomic_plane_check] FB set but no CRTC

    with the following backtrace:

    [] drm_atomic_check_only+0x35d/0x510 [drm]
    [] drm_atomic_commit+0x17/0x60 [drm]
    [] drm_atomic_helper_plane_set_property+0x8d/0xd0 [drm_kms_helper]
    [] drm_mode_plane_set_obj_prop+0x2d/0x90 [drm]
    [] restore_fbdev_mode+0x6b/0xf0 [drm_kms_helper]
    [] drm_fb_helper_restore_fbdev_mode_unlocked+0x29/0x80 [drm_kms_helper]
    [] drm_fb_helper_set_par+0x22/0x50 [drm_kms_helper]
    [] intel_fbdev_set_par+0x1a/0x60 [i915]
    [] fbcon_init+0x4f4/0x580

    That's because we update the plane state with the fb from the firmware, but we
    never associate the plane to that CRTC.

    We don't quite have the full DRM take over from HW state just yet, so
    fake enough of the plane atomic state to pass the checks.

    v2: Fix the state on which we set the CRTC in the case we're sharing the
    initial fb with another pipe. (Matt)

    Signed-off-by: Damien Lespiau
    Reviewed-by: Matt Roper
    Signed-off-by: Daniel Vetter
    [Jani: backported to drm-intel-fixes for v4.0-rc]
    Reference: http://mid.gmane.org/CA+5PVA7yXH=U757w8V=Zj2U1URG4nYNav20NpjtQ4svVueyPNw@mail.gmail.com
    Reference: http://lkml.kernel.org/r/CA+55aFweWR=nDzc2Y=rCtL_H8JfdprQiCimN5dwc+TgyD4Bjsg@mail.gmail.com
    Signed-off-by: Jani Nikula

    Damien Lespiau
     
  • The sun5i timer is used as the sched-clock on certain systems, and ever
    since we started using cpufreq, the cpu clock (that is one of the
    timer's clock indirect parent) now changes as well, along with the
    actual sched_clock() rate.

    This is not accurate and not desirable.

    We can safely remove the sun5i sched-clock on those systems, since we
    have other reliable sched_clock() sources in the system.

    Tested-by: Hans de Goede
    Signed-off-by: Maxime Ripard
    Signed-off-by: Daniel Lezcano
    [ Improved the changelog. ]
    Cc: richard@nod.at
    Link: http://lkml.kernel.org/r/1427362029-6511-4-git-send-email-daniel.lezcano@linaro.org
    Signed-off-by: Ingo Molnar

    Maxime Ripard
     
  • Fix !CONFIG_HAS_IOMEM related build failures in three clocksource drivers.

    The build failures have the pattern of:

    drivers/clocksource/sh_cmt.c: In function ‘sh_cmt_map_memory’: drivers/clocksource/sh_cmt.c:920:2:
    error: implicit declaration of function ‘ioremap_nocache’ [-Werror=implicit-function-declaration] cmt->mapbase = ioremap_nocache(mem->start, resource_size(mem));

    Signed-off-by: Richard Weinberger
    Signed-off-by: Daniel Lezcano
    Acked-by: Geert Uytterhoeven
    Cc: maxime.ripard@free-electrons.com
    Link: http://lkml.kernel.org/r/1427362029-6511-1-git-send-email-daniel.lezcano@linaro.org
    Signed-off-by: Ingo Molnar

    Richard Weinberger
     
  • If we retire requests last, we may use a later seqno and so clear
    the requests lists without clearing the active list, leading to
    confusion. Hence we should retire requests first for consistency with
    the early return. The order used to be important as the lifecycle for
    the object on the active list was determined by request->seqno. However,
    the requests themselves are now reference counted removing the
    constraint from the order of retirement.

    Fixes regression from

    commit 1b5a433a4dd967b125131da42b89b5cc0d5b1f57
    Author: John Harrison
    Date: Mon Nov 24 18:49:42 2014 +0000

    drm/i915: Convert 'i915_seqno_passed' calls into 'i915_gem_request_completed
    '

    and a

    WARNING: CPU: 0 PID: 1383 at drivers/gpu/drm/i915/i915_gem_evict.c:279 i915_gem_evict_vm+0x10c/0x140()
    WARN_ON(!list_empty(&vm->active_list))

    Identified by updating WATCH_LISTS:

    [drm:i915_verify_lists] *ERROR* blitter ring: active list not empty, but no requests
    WARNING: CPU: 0 PID: 681 at drivers/gpu/drm/i915/i915_gem.c:2751 i915_gem_retire_requests_ring+0x149/0x230()
    WARN_ON(i915_verify_lists(ring->dev))

    Note that this is only a problem in evict_vm where the following happens
    after a retire_request has cleaned out all requests, but not all active
    bo:
    - intel_ring_idle called from i915_gpu_idle notices that no requests are
    outstanding and immediately returns.
    - i915_gem_retire_requests_ring called from i915_gem_retire_requests also
    immediately returns when there's no request, still leaving the bo on the
    active list.
    - evict_vm hits the WARN_ON(!list_empty(&vm->active_list)) after evicting
    all active objects that there's still stuff left that shouldn't be
    there.

    Signed-off-by: Chris Wilson
    Cc: John Harrison
    Cc: Daniel Vetter
    Reviewed-by: Daniel Vetter
    Signed-off-by: Jani Nikula

    Chris Wilson
     
  • Merge misc fixes from Andrew Morton:
    "15 fixes"

    * emailed patches from Andrew Morton :
    mm: numa: mark huge PTEs young when clearing NUMA hinting faults
    mm: numa: slow PTE scan rate if migration failures occur
    mm: numa: preserve PTE write permissions across a NUMA hinting fault
    mm: numa: group related processes based on VMA flags instead of page table flags
    hfsplus: fix B-tree corruption after insertion at position 0
    MAINTAINERS: add Jan as DMI/SMBIOS support maintainer
    fs/affs/file.c: unlock/release page on error
    mm/page_alloc.c: call kernel_map_pages in unset_migrateype_isolate
    mm/slub: fix lockups on PREEMPT && !SMP kernels
    mm/memory hotplug: postpone the reset of obsolete pgdat
    MAINTAINERS: correct rtc armada38x pattern entry
    mm/pagewalk.c: prevent positive return value of walk_page_test() from being passed to callers
    mm: fix anon_vma->degree underflow in anon_vma endless growing prevention
    drivers/rtc/rtc-mrst: fix suspend/resume
    aoe: update aoe maintainer information

    Linus Torvalds
     
  • The Moorestown RTC driver implements suspend and resume callbacks and
    assigns them to the suspend and resume fields of the device_driver
    struct. These callbacks are never actually called by anything though.

    Modify the driver to properly use dev_pm_ops so that the suspend and
    resume functions are actually executed upon suspend/resume.

    [akpm@linux-foundation.org: device_driver.name is const char *]
    Signed-off-by: Lars-Peter Clausen
    Cc: Alessandro Zummo
    Cc: Feng Tang
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Lars-Peter Clausen
     
  • Pull block layer fixes from Jens Axboe:
    "A small collection of fixes that has been gathered over the last few
    weeks. This contains:

    - A one-liner fix for NVMe, fixing a missing list_head init that
    could makes us oops on hitting recovery at load time.

    - Two small blk-mq fixes:
    - Fixup a bad goto jump on error handling.
    - Fix for oopsing if running out of reserved tags.

    - A memory leak fix for NBD.

    - Two small writeback fixes from Tejun, fixing a missing init to
    INITIAL_JIFFIES, and a possible underflow introduced recently.

    - A core merge fixup in sg gap detection, where rq->biotail was
    indexed with the count of rq->bio"

    * 'for-linus' of git://git.kernel.dk/linux-block:
    writeback: fix possible underflow in write bandwidth calculation
    NVMe: Initialize device list head before starting
    Fix bug in blk_rq_merge_ok
    blkmq: Fix NULL pointer deref when all reserved tags in
    blk-mq: fix use of incorrect goto label in blk_mq_init_queue error path
    nbd: fix possible memory leak
    writeback: add missing INITIAL_JIFFIES init in global_update_bandwidth()

    Linus Torvalds
     

25 Mar, 2015

7 commits

  • Pull libata fix from Tejun Heo:
    "One patch to fix a regression from the recent switch to blk-mq tag
    allocation which can cause oops on SAS-attached SATA drives"

    * 'for-4.0-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/libata:
    ata: Add a new flag to destinguish sas controller

    Linus Torvalds
     
  • Pull MFD fixes from Lee Jones:
    - Use DMA'able addresses for DMA; rtsx_usb
    - Use return value in the correct way; kempld-core

    * tag 'mfd-fixes-4.0' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd:
    mfd: kempld-core: Fix callback return value check
    mfd: rtsx_usb: Prevent DMA from stack

    Linus Torvalds
     
  • Tvrtko noticed a new warning on boot:

    WARNING: CPU: 1 PID: 353 at include/linux/kref.h:47 drm_framebuffer_reference+0x6c/0x80 [drm]()
    Call Trace:
    [] dump_stack+0x4f/0x7b
    [] warn_slowpath_common+0xaa/0xd0
    [] warn_slowpath_null+0x1a/0x20
    [] drm_framebuffer_reference+0x6c/0x80 [drm]
    [] update_state_fb.isra.54+0x47/0x50 [i915]
    [] skylake_get_initial_plane_config+0x93c/0x950 [i915]
    [] intel_modeset_init+0x1551/0x17c0 [i915]
    [] i915_driver_load+0xed0/0x11e0 [i915]
    [] ? _raw_spin_unlock_irqrestore+0x51/0x70
    [] drm_dev_register+0x77/0x110 [drm]
    [] drm_get_pci_dev+0x11b/0x1f0 [drm]
    [] ? trace_hardirqs_on+0xd/0x10
    [] ? _raw_spin_unlock_irqrestore+0x51/0x70
    [] i915_pci_probe+0x56/0x60 [i915]
    [] pci_device_probe+0x7c/0x100
    [] driver_probe_device+0x16d/0x380

    We cannot take a reference at this point, not before
    intel_framebuffer_init() and the underlying drm_framebuffer_init().

    Introduced in:

    commit 706dc7b549175e47f23e913b7f1e52874a7d0f56
    Author: Matt Roper
    Date: Tue Feb 3 13:10:04 2015 -0800

    drm/i915: Ensure plane->state->fb stays in sync with plane->fb

    v2: Don't move update_state_fb(). It was moved around because I
    originally put update_state_fb() in intel_alloc_plane_obj() before
    finding a better place. (Matt)

    Reviewed-by: Matt Roper
    Reported-by: Tvrtko Ursulin
    Cc: Matt Roper
    Cc: Tvrtko Ursulin
    Signed-off-by: Damien Lespiau
    Signed-off-by: Daniel Vetter
    From drm-next:
    (cherry picked from commit f55548b5af87ebfc586ca75748947f1c1b1a4a52)
    Signed-off-by: Dave Airlie

    Damien Lespiau
     
  • Pull spi fixes from Mark Brown:
    "A couple of driver specific fixes of the usual "important if you have
    that device" kind together with a fix for a use after free bug that
    was introduced into the trace code in some of the recent refactoring
    of the message queue handling"

    * tag 'spi-v4.0-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi:
    spi: trigger trace event for message-done before mesg->complete
    spi: dw-mid: clear BUSY flag fist and test other one
    spi: qup: Fix cs-num DT property parsing

    Linus Torvalds
     
  • …git/broonie/regulator

    Pull regulator fixes from Mark Brown:
    "Two fixes here, one typo fix in the documentation and one fix for a
    system hang with one of the Palmas chips caused by the use of an
    incorrect offset being provided for one of the registers"

    * tag 'regulator-fix-v4.0-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator:
    regulator: Fix documentation for regmap in the config
    regulator: palmas: Correct TPS659038 register definition for REGEN2

    Linus Torvalds
     
  • Pull regmap fix from Mark Brown:
    "This patch fixes a bad interaction between the support that was added
    for having regmaps without devices for early system controller
    initialization and the trace support.

    There's a very good analysis of the actual issue in the commit message
    for the change"

    * tag 'regmap-fix-v4.0-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap:
    regmap: introduce regmap_name to fix syscon regmap trace events

    Linus Torvalds
     
  • Mark Brown
     

24 Mar, 2015

4 commits

  • Originally it was impossible to be dropping the last refcount in this
    function since there was always one around still from the idr. But in

    commit 83f45fc360c8e16a330474860ebda872d1384c8c
    Author: Daniel Vetter
    Date: Wed Aug 6 09:10:18 2014 +0200

    drm: Don't grab an fb reference for the idr

    we've switched to weak references, broke that assumption but forgot to
    fix it up.

    Since we still force-disable planes it's only possible to hit this
    when racing multiple rmfb with fbdev restoring or similar evil things.
    As long as userspace is nice it's impossible to hit the BUG_ON.

    But the BUG_ON would most likely be hit from fbdev code, which usually
    invovles the console_lock besides all modeset locks. So very likely
    we'd never get the bug reports if this was hit in the wild, hence
    better be safe than sorry and backport.

    Spotted by Matt Roper while reviewing other patches.

    [airlied: pull this back into 4.0 - the oops happens there]

    Cc: stable@vger.kernel.org
    Cc: Matt Roper
    Reviewed-by: Matt Roper
    Signed-off-by: Daniel Vetter
    Signed-off-by: Dave Airlie

    Daniel Vetter
     
  • Commit c4db59d31e39 ("fs: don't reassign dirty inodes to
    default_backing_dev_info") exposed DM to a latent race in free_dev() vs
    add_disk() in relation to management of the device's minor number.

    Fix this by refactoring free_dev() to match cleanup order of the
    alloc_dev() error path. Move cleanup of the gendisk, queue, and bdev
    to _before_ the cleanup of the idr managed minor number.

    Also, purely due to cleanup that fell out during the free_dev() audit:
    - adjust dm_blk_close() to access the gendisk's private_data under
    the _minor_lock spinlock.
    - move __dm_destroy()'s dm_get_live_table() call out from under the
    _minor_lock spinlock.

    Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1202449

    Reported-by: Zdenek Kabelac
    Reported-by: Jeff Moyer
    Signed-off-by: Mike Snitzer

    Mike Snitzer
     
  • Mark Brown
     
  • Pull networking fixes from David Miller:

    1) Validate iov ranges before feeding them into iov_iter_init(), from
    Al Viro.

    2) We changed copy_from_msghdr_from_user() to zero out the msg_namelen
    is a NULL pointer is given for the msg_name. Do the same in the
    compat code too. From Catalin Marinas.

    3) Fix partially initialized tuples in netfilter conntrack helper, from
    Ian Wilson.

    4) Missing continue; statement in nft_hash walker can lead to crashes,
    from Herbert Xu.

    5) tproxy_tg6_check looks for IP6T_INV_PROTO in ->flags instead of
    ->invflags, fix from Pablo Neira Ayuso.

    6) Incorrect memory account of TCP FINs can result in negative socket
    memory accounting values. Fix from Josh Hunt.

    7) Don't allow virtual functions to enable VLAN promiscuous mode in
    be2net driver, from Vasundhara Volam.

    * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net:
    netfilter: nft_compat: set IP6T_F_PROTO flag if protocol is set
    cx82310_eth: wait for firmware to become ready
    net: validate the range we feed to iov_iter_init() in sys_sendto/sys_recvfrom
    net: compat: Update get_compat_msghdr() to match copy_msghdr_from_user() behaviour
    be2net: use PCI MMIO read instead of config read for errors
    be2net: restrict MODIFY_EQ_DELAY cmd to a max of 8 EQs
    be2net: Prevent VFs from enabling VLAN promiscuous mode
    tcp: fix tcp fin memory accounting
    ipv6: fix backtracking for throw routes
    net: ethernet: pcnet32: Setup the SRAM and NOUFLO on Am79C97{3, 5}
    ipv6: call ipv6_proxy_select_ident instead of ipv6_select_ident in udp6_ufo_fragment
    netfilter: xt_TPROXY: fix invflags check in tproxy_tg6_check()
    netfilter: restore rule tracing via nfnetlink_log
    netfilter: nf_tables: allow to change chain policy without hook if it exists
    netfilter: Fix potential crash in nft_hash walker
    netfilter: Zero the tuple in nfnl_cthelper_parse_tuple()

    Linus Torvalds
     

23 Mar, 2015

6 commits

  • Driver recovery requires the device's list node to have been initialized.

    Fixes: https://lkml.org/lkml/2015/3/22/262

    Reported-by: Steven Noonan
    Signed-off-by: Keith Busch
    Cc: Matthew Wilcox
    Cc: Jens Axboe
    Signed-off-by: Jens Axboe

    Keith Busch
     
  • Pull bugfix for md from Neil Brown:
    "One fix for md in 4.0-rc4

    Regression in recent patch causes crash on error path"

    * tag 'md/4.0-rc4-fix' of git://neil.brown.name/md:
    md: fix problems with freeing private data after ->run failure.

    Linus Torvalds
     
  • Pull char/misc fixes from Greg KH:
    "Here are three fixes for 4.0-rc5 that revert 3 PCMCIA patches that
    were merged in 4.0-rc1 that cause regressions. So let's revert them
    for now and they will be reworked and resent sometime in the future.

    All have been tested in linux-next for a while"

    * tag 'char-misc-4.0-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc:
    Revert "pcmcia: add a new resource manager for non ISA systems"
    Revert "pcmcia: fix incorrect bracketing on a test"
    Revert "pcmcia: add missing include for new pci resource handler"

    Linus Torvalds
     
  • Pull staging driver fixes from Greg KH:
    "Here are four small staging driver fixes, all for the vt6656 and
    vt6655 drivers, that resolve some reported issues with them.

    All of these patches have been in linux next for a while"

    * tag 'staging-4.0-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging:
    vt6655: Fix late setting of byRFType.
    vt6655: RFbSetPower fix missing rate RATE_12M
    staging: vt6656: vnt_rf_setpower: fix missing rate RATE_12M
    staging: vt6655: vnt_tx_packet fix dma_idx selection.

    Linus Torvalds
     
  • Pull tty/serial driver fix from Greg KH:
    "Here's a single 8250 serial driver that fixes a reported deadlock with
    the serial console and the tty driver.

    It's been in linux-next for a while now"

    * tag 'tty-4.0-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty:
    serial: 8250_dw: Fix deadlock in LCR workaround

    Linus Torvalds
     
  • Pull USB / PHY driver fixes from Greg KH:
    "Here's a number of USB and PHY driver fixes for 4.0-rc5.

    The largest thing here is a revert of a gadget function driver patch
    that removes 500 lines of code. Other than that, it's a number of
    reported bugs fixes and new quirk/id entries.

    All have been in linux-next for a while"

    * tag 'usb-4.0-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (33 commits)
    usb: common: otg-fsm: only signal connect after switching to peripheral
    uas: Add US_FL_NO_ATA_1X for Initio Corporation controllers / devices
    USB: ehci-atmel: rework clk handling
    MAINTAINERS: add entry for USB OTG FSM
    usb: chipidea: otg: add a_alt_hnp_support response for B device
    phy: omap-usb2: Fix missing clk_prepare call when using old dt name
    phy: ti/omap: Fix modalias
    phy: core: Fixup return value of phy_exit when !pm_runtime_enabled
    phy: miphy28lp: Convert to devm_kcalloc and fix wrong sizof
    phy: miphy365x: Convert to devm_kcalloc and fix wrong sizeof
    phy: twl4030-usb: Remove redundant assignment for twl->linkstat
    phy: exynos5-usbdrd: Fix off-by-one valid value checking for args->args[0]
    phy: Find the right match in devm_phy_destroy()
    phy: rockchip-usb: Fixup rockchip_usb_phy_power_on failure path
    phy: ti-pipe3: Simplify ti_pipe3_dpll_wait_lock implementation
    phy: samsung-usb2: Remove NULL terminating entry from phys array
    phy: hix5hd2-sata: Check return value of platform_get_resource
    phy: exynos-dp-video: Kill exynos_dp_video_phy_pwr_isol function
    Revert "usb: gadget: zero: Add support for interrupt EP"
    Revert "xhci: Clear the host side toggle manually when endpoint is 'soft reset'"
    ...

    Linus Torvalds
     

22 Mar, 2015

7 commits

  • When the device is powered up, some (older) firmware versions fail to work
    properly if we send commands before the boot is complete (everything is OK
    when the device is hot-plugged). The firmware indicates its ready status by
    putting the link up.
    Newer firmwares delay the first command so they don't suffer from this problem.
    They also report the link being always up.

    Wait for firmware to become ready (link up) before sending any commands and/or
    data.

    This also allows lowering CMD_TIMEOUT value to a reasonable time.

    Tested with 4.1.0.9 (old) and 4.1.0.30 (new) firmware versions.

    Signed-off-by: Ondrej Zary
    Signed-off-by: David S. Miller

    Ondrej Zary
     
  • Pull slave dmaengine fixes from Vinod Koul:
    "Four fixes for dw, pl08x, imx-sdma and at_hdmac driver. Nothing
    unusual here, simple fixes to these drivers"

    * 'fixes' of git://git.infradead.org/users/vkoul/slave-dma:
    dmaengine: pl08x: Define capabilities for generic capabilities reporting
    dmaengine: dw: append MODULE_ALIAS for platform driver
    dmaengine: imx-sdma: switch to dynamic context mode after script loaded
    dmaengine: at_hdmac: Fix calculation of the residual bytes

    Linus Torvalds
     
  • Pull power management and ACPI fixes from Rafael Wysocki:
    "These are fixes for recent regressions (PCI/ACPI resources and at91
    RTC locking), a stable-candidate powercap RAPL driver fix and two ARM
    cpuidle fixes (one stable-candidate too).

    Specifics:

    - Revert a recent PCI commit related to IRQ resources management that
    introduced a regression for drivers attempting to bind to devices
    whose previous drivers did not balance pci_enable_device() and
    pci_disable_device() as expected (Rafael J Wysocki).

    - Fix a deadlock in at91_rtc_interrupt() introduced by a typo in a
    recent commit related to wakeup interrupt handling (Dan Carpenter).

    - Allow the power capping RAPL (Running-Average Power Limit) driver
    to use different energy units for domains within one CPU package
    which is necessary to handle Intel Haswell EP processors correctly
    (Jacob Pan).

    - Improve the cpuidle mvebu driver's handling of Armada XP SoCs by
    updating the target residency and exit latency numbers for those
    chips (Sebastien Rannou).

    - Prevent the cpuidle mvebu driver from calling cpu_pm_enter() twice
    in a row before cpu_pm_exit() is called on the same CPU which
    breaks the core's assumptions regarding the usage of those
    functions (Gregory Clement)"

    * tag 'pm+acpi-4.0-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
    Revert "x86/PCI: Refine the way to release PCI IRQ resources"
    rtc: at91rm9200: double locking bug in at91_rtc_interrupt()
    powercap / RAPL: handle domains with different energy units
    cpuidle: mvebu: Update cpuidle thresholds for Armada XP SOCs
    cpuidle: mvebu: Fix the CPU PM notifier usage

    Linus Torvalds
     
  • Pull drm updates from Dave Airlie:
    "A bunch of fixes across drivers:

    radeon:
    disable two ended allocation for now, it breaks some stuff

    amdkfd:
    misc fixes

    nouveau:
    fix irq loop problem, add basic support for GM206 (new hw)

    i915:
    fix some WARNs people were seeing

    exynos:
    fix some iommu interactions causing boot failures"

    * git://people.freedesktop.org/~airlied/linux:
    drm/radeon: drop ttm two ended allocation
    drm/exynos: fix the initialization order in FIMD
    drm/exynos: fix typo config name correctly.
    drm/exynos: Check for NULL dereference of crtc
    drm/exynos: IS_ERR() vs NULL bug
    drm/exynos: remove unused files
    drm/i915: Make sure the primary plane is enabled before reading out the fb state
    drm/nouveau/bios: fix i2c table parsing for dcb 4.1
    drm/nouveau/device/gm100: Basic GM206 bring up (as copy of GM204)
    drm/nouveau/device: post write to NV_PMC_BOOT_1 when flipping endian switch
    drm/nouveau/gr/gf100: fix some accidental or'ing of buffer addresses
    drm/nouveau/fifo/nv04: remove the loop from the interrupt handler
    drm/radeon: Changing number of compute pipe lines
    drm/amdkfd: Fix SDMA queue init. in non-HWS mode
    drm/amdkfd: destroy mqd when destroying kernel queue
    drm/i915: Ensure plane->state->fb stays in sync with plane->fb

    Linus Torvalds
     
  • …/kernel/git/robh/linux

    Pull more DeviceTree fixes vfom Rob Herring:

    - revert setting stdout-path as preferred console. This caused
    regressions in PowerMACs and other systems.

    - yet another fix for stdout-path option parsing.

    - fix error path handling in of_irq_parse_one

    * tag 'devicetree-fixes-for-4.0-part2' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux:
    Revert "of: Fix premature bootconsole disable with 'stdout-path'"
    of: handle both '/' and ':' in path strings
    of: unittest: Add option string test case with longer path
    of/irq: Fix of_irq_parse_one() returned error codes

    Linus Torvalds
     
  • Pull SCSI target fixes from Nicholas Bellinger:
    "Here are current target-pending fixes for v4.0-rc5 code that have made
    their way into the queue over the last weeks.

    The fixes this round include:

    - Fix long-standing iser-target logout bug related to early
    conn_logout_comp completion, resulting in iscsi_conn use-after-tree
    OOpsen. (Sagi + nab)

    - Fix long-standing tcm_fc bug in ft_invl_hw_context() failure
    handing for DDP hw offload. (DanC)

    - Fix incorrect use of unprotected __transport_register_session() in
    tcm_qla2xxx + other single local se_node_acl fabrics. (Bart)

    - Fix reference leak in target_submit_cmd() -> target_get_sess_cmd()
    for ack_kref=1 failure path. (Bart)

    - Fix pSCSI backend ->get_device_type() statistics OOPs with
    un-configured device. (Olaf + nab)

    - Fix virtual LUN=0 target_configure_device failure OOPs at modprobe
    time. (Claudio + nab)

    - Fix FUA write false positive failure regression in v4.0-rc1 code.
    (Christophe Vu-Brugier + HCH)"

    * git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending:
    target: do not reject FUA CDBs when write cache is enabled but emulate_write_cache is 0
    target: Fix virtual LUN=0 target_configure_device failure OOPs
    target/pscsi: Fix NULL pointer dereference in get_device_type
    tcm_fc: missing curly braces in ft_invl_hw_context()
    target: Fix reference leak in target_get_sess_cmd() error path
    loop/usb/vhost-scsi/xen-scsiback: Fix use of __transport_register_session
    tcm_qla2xxx: Fix incorrect use of __transport_register_session
    iscsi-target: Avoid early conn_logout_comp for iser connections
    Revert "iscsi-target: Avoid IN_LOGOUT failure case for iser-target"
    target: Disallow changing of WRITE cache/FUA attrs after export

    Linus Torvalds
     
  • Pull devicemapper fixes from Mike Snitzer:
    "A handful of stable fixes for DM:
    - fix thin target to always zero-fill reads to unprovisioned blocks
    - fix to interlock device destruction's suspend from internal
    suspends
    - fix 2 snapshot exception store handover bugs
    - fix dm-io to cope with DISCARD and WRITE_SAME capabilities changing"

    * tag 'dm-4.0-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm:
    dm io: deal with wandering queue limits when handling REQ_DISCARD and REQ_WRITE_SAME
    dm snapshot: suspend merging snapshot when doing exception handover
    dm snapshot: suspend origin when doing exception handover
    dm: hold suspend_lock while suspending device during device deletion
    dm thin: fix to consistently zero-fill reads to unprovisioned blocks

    Linus Torvalds