Skip to content

Commit

Permalink
linux-next
Browse files Browse the repository at this point in the history
GIT bbcbd8247afc239ed98f4e3453cbce6d5ba11e5f

commit 9012e89f6e669d52e68dbaf6aa4b7aa3daeec72a
Author: Guenter Roeck <groeck@chromium.org>
Date:   Mon Aug 15 06:15:35 2016 -0700

    extcon: Introduce EXTCON_PROP_USB_SUPERSPEED property
    
    EXTCON_PROP_USB_SUPERSPEED[1] is necessary to distinguish between USB/USB2
    and USB3 connections on USB Type-C cables.
    
    [1] https://en.wikipedia.org/wiki/USB#Overview
    
    Cc: Chris Zhong <zyw@rock-chips.com>
    Signed-off-by: Guenter Roeck <groeck@chromium.org>
    Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>

commit 45d339309f491058f5a3f974a17aa893f5a35329
Author: Wei Yongjun <weiyj.lk@gmail.com>
Date:   Mon Aug 15 22:51:48 2016 +0000

    net: mediatek: remove unnecessary platform_set_drvdata()
    
    The driver core clears the driver data to NULL after device_release
    or on probe failure. Thus, it is not needed to manually clear the
    device driver data to NULL.
    
    Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>

commit 5288b6fff17369386e435b6780a00e3e3fd633de
Author: Wei Yongjun <weiyj.lk@gmail.com>
Date:   Mon Aug 15 22:51:29 2016 +0000

    net: thunderx: Remove unnecessary pci_set_drvdata()
    
    The driver core clears the driver data to NULL after device_release
    or on probe failure. Thus, it is not needed to manually clear the
    device driver data to NULL.
    
    Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>

commit 6e22066fd02b675260b980b3e42b7d616a9839c5
Author: Wei Yongjun <weiyj.lk@gmail.com>
Date:   Mon Aug 15 22:51:04 2016 +0000

    net: ena: Fix error return code in ena_device_init()
    
    Fix to return a negative error code from the invalid dma width
    error handling case instead of 0.
    
    Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>

commit 557bc7d44d52d52374bc72e9cc3b0beb41026886
Author: Wei Yongjun <weiyj.lk@gmail.com>
Date:   Mon Aug 15 22:50:34 2016 +0000

    net: ena: Remove unnecessary pci_set_drvdata()
    
    The driver core clears the driver data to NULL after device_release
    or on probe failure. Thus, it is not needed to manually clear the
    device driver data to NULL.
    
    Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>

commit 64721094b9a966c8e02d2b03729e5093471f9d1c
Author: Wei Yongjun <weiyj.lk@gmail.com>
Date:   Mon Aug 15 22:34:57 2016 +0000

    net: phy: Fix return value check in xgmiitorgmii_probe()
    
    In case of error, the function of_parse_phandle() returns NULL
    pointer not ERR_PTR(). The IS_ERR() test in the return value check
    should be replaced with NULL test.
    
    Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>

commit d18a33c67119ccbc1963b2c8da19e4ee0c9904f3
Author: Kevin Hilman <khilman@baylibre.com>
Date:   Thu Jun 23 12:04:11 2016 -0700

    MMC: meson: initial support for GXBB platforms
    
    Initial support for the SD/eMMC controller in the Amlogic S905/GXBB
    family of SoCs.
    
    Currently working for the SD and eMMC interfaces, but not yet tested
    for SDIO.
    
    Signed-off-by: Kevin Hilman <khilman@baylibre.com>

commit fa91f6910dc6809bd0f68de119a43293ddd15330
Author: Kevin Hilman <khilman@baylibre.com>
Date:   Thu Jun 23 12:01:23 2016 -0700

    ARM64: dts: meson-gxbb: add MMC support
    
    Add binding and basic support for the SD/eMMC controller on Amlogic
    S905/GXBB devices.
    
    Signed-off-by: Kevin Hilman <khilman@baylibre.com>

commit 7e6a3a1d79fe9bb9b9daacb59e9b5c35f71570f5
Author: Stephen Boyd <sboyd@codeaurora.org>
Date:   Mon Aug 15 16:09:04 2016 -0700

    clk: qcom: Sort Makefile alphabetically
    
    We've started getting out of order, fix it.
    
    Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>

commit 3e99c7ab16af52be826cfd4a8be5b525dd38ccc9
Author: Neil Armstrong <narmstrong@baylibre.com>
Date:   Thu Aug 11 14:48:05 2016 +0200

    dt-bindings: clock: Update bindings for MDM9615 GCC and LCC
    
    Acked-by: Rob Herring <robh@kernel.org>
    Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
    Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>

commit b732ace40a1d5ea643ee9c28116e829ae950fe8f
Author: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
Date:   Sat Aug 13 22:06:33 2016 +0530

    power: ds2760_battery: Remove deprecated create_singlethread_workqueue
    
    alloc_ordered_workqueue() with WQ_MEM_RECLAIM set replaces
    deprecated create_singlethread_workqueue(). This is the identity
    conversion.
    
    The workqueue "monitor_wqueue" is used to monitor the battery
    status. It has been identity converted.
    
    It queues multiple work items viz &di->monitor_work,
    &di->set_charged_work, which require execution ordering.
    Hence, alloc_workqueue has been used to replace the
    deprecated create_singlethread_workqueue instance.
    
    WQ_MEM_RECLAIM flag has been set to ensure forward progress under
    memory pressure.
    
    Signed-off-by: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
    Signed-off-by: Sebastian Reichel <sre@kernel.org>

commit 1c53f3709cbc0da9fbf83bb10b2e3633ade05875
Author: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
Date:   Sat Aug 13 22:05:00 2016 +0530

    power: ab8500_fg: Remove deprecated create_singlethread_workqueue
    
    alloc_ordered_workqueue() with WQ_MEM_RECLAIM set replaces
    deprecated create_singlethread_workqueue(). This is the identity
    conversion.
    
    The workqueue "fg_wq" is used for running the FG algorithm periodically.
    It has been identity converted.
    
    It has multiple work items viz fg_periodic_work, fg_low_bat_work,
    fg_reinit_work, fg_work, fg_acc_cur_work and fg_check_hw_failure_work,
    which require execution ordering. Hence, a dedicated ordered workqueue
    has been used here.
    
    The WQ_MEM_RECLAIM flag has been set to guarantee forward progress under
    memory pressure.
    
    Signed-off-by: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
    Signed-off-by: Sebastian Reichel <sre@kernel.org>

commit 829f0e97cc03b0c834cc5f86ff72b2ec389020ef
Author: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
Date:   Sat Aug 13 22:03:53 2016 +0530

    power: ipaq_micro_battery: Remove deprecated create_singlethread_workqueue
    
    The workqueue "wq" is used for handling battery related tasks.
    
    It has a single work item viz &mb->update and hence it doesn't require
    execution ordering. Hence, alloc_workqueue has been used to replace the
    deprecated create_singlethread_workqueue instance.
    
    The WQ_MEM_RECLAIM flag has been set to ensure forward progress under
    memory pressure.
    
    Since there is a single work item, explicit concurrency
    limit is unnecessary here.
    
    Signed-off-by: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
    Signed-off-by: Sebastian Reichel <sre@kernel.org>

commit 9df82628265857e1c491c1ca0ace353e658457ea
Author: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
Date:   Sat Aug 13 21:51:23 2016 +0530

    power: ab8500_charger: Remove deprecated create_singlethread_workqueue
    
    alloc_ordered_workqueue() with WQ_MEM_RECLAIM set replaces
    deprecated create_singlethread_workqueue(). This is the identity
    conversion.
    
    The workqueue "charger_wq" is used for the IRQs and checking HW state of
    the charger. It has been identity converted.
    
    It has multiple work items viz usb_charger_attached_work, kick_wd_work,
    check_vbat_work, check_hw_failure_work, usb_charger_attached_work,
    ac_work, ac_charger_attached_work, attach_work and check_usbchgnotok_work,
    which require execution ordering. Hence, a dedicated ordered workqueue
    has been used here.
    
    The WQ_MEM_RECLAIM flag has also been set to ensure
    forward progress under memory pressure.
    
    Signed-off-by: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
    Signed-off-by: Sebastian Reichel <sre@kernel.org>

commit 87f818b35c3007d1014541c07688ab29443a22c2
Author: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
Date:   Sat Aug 13 21:50:11 2016 +0530

    power: intel_mid_battery: Remove deprecated create_singlethread_workqueue
    
    The workqueue "monitor_wqueue" is used to monitor the PMIC battery status.
    It queues a single work item (pbi->monitor_battery) and hence doesn't
    require ordering. Hence, alloc_workqueue has been used to replace the
    deprecated create_singlethread_workqueue instance.
    
    Since PMIC battery status needs to be monitored for any change, the
    WQ_MEM_RECLAIM flag has been set to ensure forward progress under memory
    pressure.
    
    Since there is a single work item, explicit concurrency
    limit is unnecessary here.
    
    Signed-off-by: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
    Signed-off-by: Sebastian Reichel <sre@kernel.org>

commit d8a69251fb58a756e2dd00cc5c7f1b54d383e203
Author: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
Date:   Sat Aug 13 21:48:43 2016 +0530

    power: pm2301_charger: Remove deprecated create_singlethread_workqueue
    
    alloc_ordered_workqueue() with WQ_MEM_RECLAIM set replaces
    deprecated create_singlethread_workqueue(). This is the identity
    conversion.
    
    The workqueue "charger_wq" is used for running all the charger related
    tasks. This involves charger detection, checking for HW failure and HW
    status. This workqueue has been identity converted.
    
    It queues multiple workitems viz &pm2->check_main_thermal_prot_work,
    &pm2->check_hw_failure_work, &pm2->ac_work. Hence, the deprecated
    create_singlethread_workqueue() instance has been replaced with a
    dedicated ordered workqueue.
    
    The WQ_MEM_RECLAIM flag has been set to ensure forward progress under
    memory pressure.
    
    Signed-off-by: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
    Signed-off-by: Sebastian Reichel <sre@kernel.org>

commit a8dd5b6868dd8ecb79f741dd94ac25a46ac19ba4
Author: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
Date:   Sat Aug 13 21:47:35 2016 +0530

    power: ab8500_btemp: Remove deprecated create_singlethread_workqueue
    
    The workqueue "btemp_wq" is used for measuring the temperature
    periodically. It queues a single workitem (btemp_periodic_work) and
    hence doesn't require ordering. Thus, the deprecated
    create_singlethread_workqueue() instance has been replaced with
    alloc_workqueue().
    
    The WQ_MEM_RECLAIM flag has been set to ensure forward progress under
    memory pressure.
    
    Since there is a single work item, explicit concurrency
    limit is unnecessary here.
    
    Signed-off-by: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
    Signed-off-by: Sebastian Reichel <sre@kernel.org>

commit 0b9992f76f65532be8727977bd6997aa55e1340e
Author: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
Date:   Sat Aug 13 21:46:10 2016 +0530

    power: abx500_chargalg: Remove deprecated create_singlethread_workqueue
    
    alloc_ordered_workqueue() with WQ_MEM_RECLAIM set replaces
    deprecated create_singlethread_workqueue(). This is the identity
    conversion.
    
    The workqueue "chargalg_wq" is used for running the charging algorithm.
    It has multiple workitems viz &di->chargalg_periodic_work,
    &di->chargalg_wd_work, &di->chargalg_work per abx500_chargalg, which
    require ordering. It has been identity converted.
    
    Also, WQ_MEM_RECLAIM has been set to ensure forward progress under
    memory pressure.
    
    Signed-off-by: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
    Signed-off-by: Sebastian Reichel <sre@kernel.org>

commit 7792a8d6713c33758636c252bd6ff7c8c001de12
Author: Neil Armstrong <narmstrong@baylibre.com>
Date:   Thu Aug 11 14:48:04 2016 +0200

    clk: mdm9615: Add support for MDM9615 Clock Controllers
    
    In order to support the Qualcomm MDM9615 SoC, add support for
    the Global and LPASS Clock Controllers.
    
    Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
    Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>

commit f7508fedd85e14a9d3c6d4e457231e691618b208
Author: Neil Armstrong <narmstrong@baylibre.com>
Date:   Thu Aug 11 14:48:03 2016 +0200

    dt-bindings: Add MDM9615 DT bindings include files for GCC and LCC
    
    Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
    Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>

commit 33608dcd01d0c0eb3f2442d88c8a97f1195bd2d5
Author: Kevin Hilman <khilman@baylibre.com>
Date:   Tue Aug 2 14:40:11 2016 -0700

    clk: gxbb: add MMC gate clocks, and expose for DT
    
    Add the SD/eMMC gate clocks and expose them for use by DT.
    
    While at it, also explose FCLK_DIV2 since this is one of the input
    clocks to the mux internal to each of the SD/eMMC blocks.
    
    Signed-off-by: Kevin Hilman <khilman@baylibre.com>
    Tested-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
    Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>

commit 5d87f493ddb1b86a0569fa3c4037fa9efc0c7183
Author: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Date:   Sun Aug 14 04:07:32 2016 +0200

    x86/power/64: Use __pa() for physical address computation
    
    The value of temp_level4_pgt is the physical address of the
    top-level page directory, so use __pa() to compute it.
    
    Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
    Acked-by: Ingo Molnar <mingo@kernel.org>

commit 5a227cd1ab3693d36ac7a6f1fc4e21a7129f62f0
Author: Laxman Dewangan <ldewangan@nvidia.com>
Date:   Fri Jun 17 16:21:07 2016 +0530

    clk: max77686: Add support for MAX77620 clocks
    
    Maxim Max77620 has one 32KHz clock output and the clock HW
    IP used on this PMIC is same as what it is there in the MAX77686.
    
    Add clock driver support for MAX77620 on the MAX77686 driver.
    
    CC: Krzysztof Kozlowski <k.kozlowski@samsung.com>
    CC: Javier Martinez Canillas <javier@dowhile0.org>
    Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
    Tested-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
    Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
    Reviewed-by: Javier Martinez Canillas <javier@osg.samsung.com>
    Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>

commit 2ee565c934b7aa3ad84dcc3735fb2359026866a0
Author: Wei Yongjun <weiyj.lk@gmail.com>
Date:   Sat Aug 13 09:07:07 2016 +0000

    power: axp288_charger: remove duplicated include from axp288_charger.c
    
    Remove duplicated include.
    
    Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>
    Acked-by: Chen-Yu Tsai <wens@csie.org>
    Signed-off-by: Sebastian Reichel <sre@kernel.org>

commit ad7656c75faebb43cf1102756c503668309d666f
Author: Wei Yongjun <weiyj.lk@gmail.com>
Date:   Sat Aug 13 09:06:47 2016 +0000

    power: axp288_fuel_gauge: remove duplicated include from axp288_fuel_gauge.c
    
    Remove duplicated include.
    
    Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>
    Acked-by: Chen-Yu Tsai <wens@csie.org>
    Signed-off-by: Sebastian Reichel <sre@kernel.org>

commit 1bbd3d282557cf5e544cc749d577bd7cefe929f4
Author: Wei Yongjun <weiyj.lk@gmail.com>
Date:   Sat Aug 13 09:06:22 2016 +0000

    power: z2_battery: remove .owner field for driver
    
    Remove .owner field if calls are used which set it automatically.
    
    Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci
    
    Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>
    Signed-off-by: Sebastian Reichel <sre@kernel.org>

commit e581245d8aaf897870afacd4aaf2bbce77cf1f1e
Author: Laxman Dewangan <ldewangan@nvidia.com>
Date:   Fri Jun 17 16:21:06 2016 +0530

    clk: max77686: Add DT binding details for PMIC MAX77620
    
    Maxim has used the same clock IP on multiple PMICs like MAX77686,
    MAX77802, MAX77620. Only differences are the number of clocks
    from these PMICs like MAX77686 has 3 clocks output, MAX776802 have
    two clock output and MAX77620 has one clock output.
    
    Add clock binding details and DT example for the MAX77620.
    
    Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
    CC: Krzysztof Kozlowski <k.kozlowski@samsung.com>
    CC: Javier Martinez Canillas <javier@dowhile0.org>
    Reviewed-by: Javier Martinez Canillas <javier@osg.samsung.com>
    Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
    Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>

commit 24f668debcd9fe774668920c4b8152fab0b5732a
Author: Laxman Dewangan <ldewangan@nvidia.com>
Date:   Fri Jun 17 16:21:05 2016 +0530

    clk: Combine DT binding doc for max77686 and max77802
    
    The clock IP used on the Maxim PMICs max77686 and max77802 are
    same. The configuration of clock register is also same except
    the number of clocks.
    
    Define the common DT binding file for the clocks of Maxim PMICs
    MAX77686 and MAX77802. For this, remove the separate DT binding
    document file for maxim,max77802 and move all information to
    maxim,max77686 DT binding document.
    
    Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
    CC: Krzysztof Kozlowski <k.kozlowski@samsung.com>
    CC: Javier Martinez Canillas <javier@dowhile0.org>
    Acked-by: Rob Herring <robh@kernel.org>
    Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
    Reviewed-by: Javier Martinez Canillas <javier@osg.samsung.com>
    Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>

commit 8ad313fe4e0016bac5dc6a7fbb323b8551977bd9
Author: Laxman Dewangan <ldewangan@nvidia.com>
Date:   Fri Jun 17 16:21:04 2016 +0530

    clk: max77686: Combine Maxim max77686 and max77802 driver
    
    The clock IP used on the Maxim PMICs max77686 and max77802 are
    same. The configuration of clock register is also same except
    the number of clocks.
    
    Part of common code utilisation, there is 3 files for these chips
    clock driver, one for common and two files for driver registration.
    
    Combine both drivers into single file and move common code into
    same common file reduces the 2 files and make max77686 and max77802
    clock driver in single fine. This driver does not depends on the
    parent driver structure. The regmap handle is acquired through
    regmap APIs for the register access.
    
    This combination of driver helps on adding clock driver for different
    Maxim PMICs which has similar clock IP like MAX77620 and MAX20024.
    
    Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
    CC: Krzysztof Kozlowski <k.kozlowski@samsung.com>
    CC: Javier Martinez Canillas <javier@dowhile0.org>
    Reviewed-by: Javier Martinez Canillas <javier@osg.samsung.com>
    Tested-by: Javier Martinez Canillas <javier@osg.samsung.com>
    Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
    Tested-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
    Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>

commit 8dfdd2a8426b71bf85b400d5226c4c6e0fa21781
Author: Bjorn Andersson <bjorn.andersson@linaro.org>
Date:   Wed Aug 3 22:04:06 2016 -0700

    power: reset: syscon-reboot-mode: Use managed resource API
    
    Use the managed resource version of reboot_mode_register().
    
    Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
    Tested-by: John Stultz <john.stultz@linaro.org>
    Signed-off-by: Sebastian Reichel <sre@kernel.org>

commit c1a9634f1aaf5e10c23f8890ea2e64c61d48cb44
Author: Bjorn Andersson <bjorn.andersson@linaro.org>
Date:   Wed Aug 3 22:04:05 2016 -0700

    power: reset: reboot-mode: Add managed resource API
    
    Provide managed resource version of reboot_mode_register() and
    reboot_mode_unregister() to simplify implementations.
    
    Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
    Tested-by: John Stultz <john.stultz@linaro.org>
    Signed-off-by: Sebastian Reichel <sre@kernel.org>

commit d336e9a71eedb1970b81bc8c042334b70fd4ddf7
Author: Stephen Boyd <sboyd@codeaurora.org>
Date:   Fri Aug 12 18:50:23 2016 -0700

    clk: fixed-rate: Remove export symbol on setup function
    
    This function is only called by builtin code, but we always
    exported it and had marked it as __init before commit
    e4eda8e0654c (clk: remove exported function from __init section,
    2013-01-06) removed that marking. Given that it isn't used by
    modules, lets unexport it and add back __init.
    
    Cc: Denis Efremov <yefremov.denis@gmail.com>
    Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>

commit 1caadde436d230bc37b3caaaef850580c25010e6
Author: Stephen Boyd <sboyd@codeaurora.org>
Date:   Fri Aug 12 18:50:22 2016 -0700

    clk: fixed-factor: Remove export symbol on setup function
    
    This function is marked __init, so it can't possibly need to be
    exported to modules. Remove the marking.
    
    Cc: Gregory CLEMENT <gregory.clement@free-electrons.com>
    Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>

commit f155d15b64e36b45ca89e3521fe0c1ccad5e5ff0
Author: Stephen Boyd <sboyd@codeaurora.org>
Date:   Mon Aug 15 14:32:23 2016 -0700

    clk: Return errors from clk providers in __of_clk_get_from_provider()
    
    Before commit 0861e5b8cf80 (clk: Add clk_hw OF clk providers,
    2016-02-05) __of_clk_get_from_provider() would return an error
    pointer of the provider's choosing if there was a provider
    registered and EPROBE_DEFER otherwise. After that commit, it
    would return EPROBE_DEFER regardless of whether or not the
    provider returned an error. This is odd and can lead to behavior
    where clk consumers keep probe deferring when they should be
    seeing some other error.
    
    Let's restore the previous behavior where we only return
    EPROBE_DEFER when there isn't a provider in our of_clk_providers
    list. Otherwise, return the error from the last provider we find
    that matches the node.
    
    Reported-by: Masahiro Yamada <yamada.masahiro@socionext.com>
    Fixes: 0861e5b8cf80 ("clk: Add clk_hw OF clk providers")
    Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>

commit 00746f104420e79efb2dd30467a3546c790b30eb
Author: Wei Yongjun <weiyj.lk@gmail.com>
Date:   Mon Aug 8 13:55:20 2016 +0000

    clk: gxbb: use builtin_platform_driver to simplify the code
    
    Use the builtin_platform_driver() macro to make the code simpler.
    
    Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>
    Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>

commit 957cb720518341abf19009044f240a6342bdd039
Author: Joshua Clayton <stillcompiling@gmail.com>
Date:   Thu Aug 11 09:59:12 2016 -0700

    sbs-battery: add ability to get battery capacity
    
    Battery capacity level is a standard feature of sbs battery
    That can be used to tell what the remainig battery capacity is, and
    can tell if the battery has not been calibrated/initialized, which makes
    the capacity and charging/discharging percentages invalid.
    
    Signed-off-by: Joshua Clayton <stillcompiling@gmail.com>
    Signed-off-by: Sebastian Reichel <sre@kernel.org>

commit 33e7664a0af6e9a516f01014f39737aaa119b6d9
Author: Wei Yongjun <weiyj.lk@gmail.com>
Date:   Tue Jul 26 14:49:04 2016 +0000

    power_supply: tps65217-charger: fix missing platform_set_drvdata()
    
    Add missing platform_set_drvdata() in tps65217_charger_probe(), otherwise
    calling platform_get_drvdata() in remove returns NULL.
    
    This is detected by Coccinelle semantic patch.
    
    Fixes: 3636859b280c ("power_supply: Add support for tps65217-charger")
    Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>
    Signed-off-by: Sebastian Reichel <sre@kernel.org>

commit 8ca4746a78abc39cc0496654068eaaadb0f3c4d0
Author: Gregory CLEMENT <gregory.clement@free-electrons.com>
Date:   Tue Jul 19 15:42:22 2016 +0200

    clk: mvebu: Add the peripheral clock driver for Armada 3700
    
    These clocks are the ones which will be used as source for the
    peripherals of the Armada 3700 SoC. On this SoC there is two blocks of
    clocks: the North bridge one and the South bridge one.
    
    Most of them are gatable. Most of the time their rate are their parent
    rated divided by a ratio depending of two registers. Their parent can be
    choose between the TBG clocks for most of them.
    
    However, some of them can't choose their parent or directly depend of the
    xtal clocks. Other ones do not use exactly the same pattern to find the
    ratio between their parent rate and their rate.
    
    For these reason each clock is a composite clock and the operations they
    use are different depending of the clock.
    
    According to the datasheet it would be possible to select the parent
    clock and the ratio, however currently the driver does not support it.
    
    Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
    Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>

commit c6d591c14e45e7ca8e158f2e0e5449371e23055c
Author: Gregory CLEMENT <gregory.clement@free-electrons.com>
Date:   Tue Jul 19 15:42:21 2016 +0200

    dt-bindings: clock: add DT binding for the peripheral clocks on Armada 3700
    
    This commit adds the DT binding documentation for the peripheral clocks
    used in the Marvell Armada 3700 SoCs.
    
    Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
    Acked-by: Rob Herring <robh@kernel.org>
    Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>

commit 96265523ace51b71dc1b2fd445a93c4b2f9bedb8
Author: Gregory CLEMENT <gregory.clement@free-electrons.com>
Date:   Tue Jul 19 15:42:20 2016 +0200

    clk: mvebu Add the time base generator clocks for Armada 3700
    
    These clocks are children of the xtal clock and each one can be selected
    as a source for the peripheral clocks.
    
    According to the datasheet it should be possible to modify their rate,
    but currently it is not supported.
    
    Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
    Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>

commit c302588e17d084408210a45a0fa6243978a0f785
Author: Gregory CLEMENT <gregory.clement@free-electrons.com>
Date:   Tue Jul 19 15:42:19 2016 +0200

    dt-bindings: clock: add DT binding for the TBG clocks on Armada 3700
    
    This commit adds the DT binding documentation for the Time Base Generator
    clock used in the Marvell Armada 3700 SoCs.
    
    Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
    Acked-by: Rob Herring <robh@kernel.org>
    Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>

commit 7ea8250406a6abe2f057c2096249c63b788b728f
Author: Gregory CLEMENT <gregory.clement@free-electrons.com>
Date:   Tue Jul 19 15:42:18 2016 +0200

    clk: mvebu: Add the xtal clock for Armada 3700 SoC
    
    This clock is the parent of all the Armada 3700 clocks. It is a fixed
    rate clock which depends on the gpio configuration read when resetting
    the SoC.
    
    Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
    Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>

commit cedfbc309d62f8f029dc0c3b926452cc84796023
Author: Gregory CLEMENT <gregory.clement@free-electrons.com>
Date:   Tue Jul 19 15:42:17 2016 +0200

    dt-bindings: clock: add DT binding for the Xtal clock on Armada 3700
    
    This commit adds the DT binding documentation for the the Xtal clock on
    Armada 3700 used in the Marvell Armada 3700 SoCs.
    
    Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
    Acked-by: Rob Herring <robh@kernel.org>
    Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>

commit d2fbdf76b85bcdfe57b8ef2ba09d20e8ada79abd
Author: Vegard Nossum <vegard.nossum@oracle.com>
Date:   Sat Jul 23 08:15:04 2016 +0200

    tipc: fix NULL pointer dereference in shutdown()
    
    tipc_msg_create() can return a NULL skb and if so, we shouldn't try to
    call tipc_node_xmit_skb() on it.
    
        general protection fault: 0000 [#1] PREEMPT SMP KASAN
        CPU: 3 PID: 30298 Comm: trinity-c0 Not tainted 4.7.0-rc7+ #19
        Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Ubuntu-1.8.2-1ubuntu1 04/01/2014
        task: ffff8800baf09980 ti: ffff8800595b8000 task.ti: ffff8800595b8000
        RIP: 0010:[<ffffffff830bb46b>]  [<ffffffff830bb46b>] tipc_node_xmit_skb+0x6b/0x140
        RSP: 0018:ffff8800595bfce8  EFLAGS: 00010246
        RAX: 0000000000000000 RBX: 0000000000000000 RCX: 000000003023b0e0
        RDX: 0000000000000000 RSI: dffffc0000000000 RDI: ffffffff83d12580
        RBP: ffff8800595bfd78 R08: ffffed000b2b7f32 R09: 0000000000000000
        R10: fffffbfff0759725 R11: 0000000000000000 R12: 1ffff1000b2b7f9f
        R13: ffff8800595bfd58 R14: ffffffff83d12580 R15: dffffc0000000000
        FS:  00007fcdde242700(0000) GS:ffff88011af80000(0000) knlGS:0000000000000000
        CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
        CR2: 00007fcddde1db10 CR3: 000000006874b000 CR4: 00000000000006e0
        DR0: 00007fcdde248000 DR1: 00007fcddd73d000 DR2: 00007fcdde248000
        DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000090602
        Stack:
         0000000000000018 0000000000000018 0000000041b58ab3 ffffffff83954208
         ffffffff830bb400 ffff8800595bfd30 ffffffff8309d767 0000000000000018
         0000000000000018 ffff8800595bfd78 ffffffff8309da1a 00000000810ee611
        Call Trace:
         [<ffffffff830c84a3>] tipc_shutdown+0x553/0x880
         [<ffffffff825b4a3b>] SyS_shutdown+0x14b/0x170
         [<ffffffff8100334c>] do_syscall_64+0x19c/0x410
         [<ffffffff83295ca5>] entry_SYSCALL64_slow_path+0x25/0x25
        Code: 90 00 b4 0b 83 c7 00 f1 f1 f1 f1 4c 8d 6d e0 c7 40 04 00 00 00 f4 c7 40 08 f3 f3 f3 f3 48 89 d8 48 c1 e8 03 c7 45 b4 00 00 00 00 <80> 3c 30 00 75 78 48 8d 7b 08 49 8d 75 c0 48 b8 00 00 00 00 00
        RIP  [<ffffffff830bb46b>] tipc_node_xmit_skb+0x6b/0x140
         RSP <ffff8800595bfce8>
        ---[ end trace 57b0484e351e71f1 ]---
    
    I feel like we should maybe return -ENOMEM or -ENOBUFS, but I'm not sure
    userspace is equipped to handle that. Anyway, this is better than a GPF
    and looks somewhat consistent with other tipc_msg_create() callers.
    
    Signed-off-by: Vegard Nossum <vegard.nossum@oracle.com>
    Acked-by: Ying Xue <ying.xue@windriver.com>
    Acked-by: Jon Maloy <jon.maloy@ericsson.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>

commit 0dbff144a1e7310e2f8b7a957352c4be9aeb38e4
Author: Vitaly Kuznetsov <vkuznets@redhat.com>
Date:   Mon Aug 15 17:48:43 2016 +0200

    hv_netvsc: fix bonding devices check in netvsc_netdev_event()
    
    Bonding driver sets IFF_BONDING on both master (the bonding device) and
    slave (the real NIC) devices and in netvsc_netdev_event() we want to skip
    master devices only. Currently, there is an uncertainty when a slave
    interface is removed: if bonding module comes first in netdev_chain it
    clears IFF_BONDING flag on the netdev and netvsc_netdev_event() correctly
    handles NETDEV_UNREGISTER event, but in case netvsc comes first on the
    chain it sees the device with IFF_BONDING still attached and skips it. As
    we still hold vf_netdev pointer to the device we crash on the next inject.
    
    Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
    Acked-by: Haiyang Zhang <haiyangz@microsoft.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>

commit 0f20d795f78d182c4b743d880a5e8dc4d39892fe
Author: Vitaly Kuznetsov <vkuznets@redhat.com>
Date:   Mon Aug 15 17:48:42 2016 +0200

    hv_netvsc: protect module refcount by checking net_device_ctx->vf_netdev
    
    We're not guaranteed to see NETDEV_REGISTER/NETDEV_UNREGISTER notifications
    only once per VF but we increase/decrease module refcount unconditionally.
    Check vf_netdev to make sure we don't take/release it twice. We presume
    that only one VF per netvsc device may exist.
    
    Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
    Acked-by: Haiyang Zhang <haiyangz@microsoft.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>

commit 57c1826b991244d2144eb6e3d5d1b13a53cbea63
Author: Vitaly Kuznetsov <vkuznets@redhat.com>
Date:   Mon Aug 15 17:48:41 2016 +0200

    hv_netvsc: reset vf_inject on VF removal
    
    We reset vf_inject on VF going down (netvsc_vf_down()) but we don't on
    VF removal (netvsc_unregister_vf()) so vf_inject stays 'true' while
    vf_netdev is already NULL and we're trying to inject packets into NULL
    net device in netvsc_recv_callback() causing kernel to crash.
    
    Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
    Acked-by: Haiyang Zhang <haiyangz@microsoft.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>

commit d072218f214929194db06069564495b6b9fff34a
Author: Vitaly Kuznetsov <vkuznets@redhat.com>
Date:   Mon Aug 15 17:48:40 2016 +0200

    hv_netvsc: avoid deadlocks between rtnl lock and vf_use_cnt wait
    
    Here is a deadlock scenario:
    - netvsc_vf_up() schedules netvsc_notify_peers() work and quits.
    - netvsc_vf_down() runs before netvsc_notify_peers() gets executed. As it
      is being executed from netdev notifier chain we hold rtnl lock when we
      get here.
    - we enter while (atomic_read(&net_device_ctx->vf_use_cnt) != 0) loop and
      wait till netvsc_notify_peers() drops vf_use_cnt.
    - netvsc_notify_peers() starts on some other CPU but netdev_notify_peers()
      will hang on rtnl_lock().
    - deadlock!
    
    Instead of introducing additional synchronization I suggest we drop
    gwrk.dwrk completely and call NETDEV_NOTIFY_PEERS directly. As we're
    acting under rtnl lock this is legitimate.
    
    Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
    Acked-by: Haiyang Zhang <haiyangz@microsoft.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>

commit f9a7da9130ef0143eb900794c7863dc5c9051fbc
Author: Vitaly Kuznetsov <vkuznets@redhat.com>
Date:   Mon Aug 15 17:48:39 2016 +0200

    hv_netvsc: don't lose VF information
    
    struct netvsc_device is not suitable for storing VF information as this
    structure is being destroyed on MTU change / set channel operation (see
    rndis_filter_device_remove()). Move all VF related stuff to struct
    net_device_context which is persistent.
    
    Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
    Acked-by: Haiyang Zhang <haiyangz@microsoft.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>

commit cfaace269d0ce5a4ae26bfe442f1c4df1a9558de
Author: Colin Ian King <colin.king@canonical.com>
Date:   Mon Aug 15 13:55:17 2016 +0100

    net: hns: mdio->irq is an array, so no need to check if it is null
    
    The null check on mdio->irq is redundant since mdio->irq is an array
    of PHY_MAX_ADDR ints and hence can never be null. Remove the redundant
    check.
    
    Signed-off-by: Colin Ian King <colin.king@canonical.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>

commit 2eb03e6c4e305b71bdd2d0ce4250b9c9099d9128
Author: Or Gerlitz <ogerlitz@mellanox.com>
Date:   Mon Aug 15 14:51:54 2016 +0300

    switchdev: Put export declaration in the right place
    
    Move exporting of switchdev_port_same_parent_id to be right
    below it and not elsewhere.
    
    Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
    Reported-by: Ido Schimmel <idosch@mellanox.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>

commit f759b640c7219c99e19f0a42c6e086a19d2e2a17
Author: Neil Armstrong <narmstrong@baylibre.com>
Date:   Sun Jul 10 11:11:06 2016 +0200

    ARM64: dts: amlogic: meson-gxbb: Add watchdog node
    
    Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
    Reviewed-by: Guenter Roeck <linux@roeck-us.net>
    Signed-off-by: Kevin Hilman <khilman@baylibre.com>

commit 3d7b33209201cbfa090d614db993571ca3c6b090
Author: Simon Horman <simon.horman@netronome.com>
Date:   Mon Aug 15 13:06:24 2016 +0200

    gre: set inner_protocol on xmit
    
    Ensure that the inner_protocol is set on transmit so that GSO segmentation,
    which relies on that field, works correctly.
    
    This is achieved by setting the inner_protocol in gre_build_header rather
    than each caller of that function. It ensures that the inner_protocol is
    set when gre_fb_xmit() is used to transmit GRE which was not previously the
    case.
    
    I have observed this is not the case when OvS transmits GRE using
    lwtunnel metadata (which it always does).
    
    Fixes: 38720352412a ("gre: Use inner_proto to obtain inner header protocol")
    Cc: Pravin Shelar <pshelar@ovn.org>
    Acked-by: Alexander Duyck <alexander.h.duyck@intel.com>
    Signed-off-by: Simon Horman <simon.horman@netronome.com>
    Acked-by: Pravin B Shelar <pshelar@ovn.org>
    Signed-off-by: David S. Miller <davem@davemloft.net>

commit 525ef5c07f187bf0918fdf3bbc76ad18ce1d1cf9
Author: Yuval Mintz <Yuval.Mintz@qlogic.com>
Date:   Mon Aug 15 10:42:45 2016 +0300

    qed*: Add and modify some prints
    
    This patch touches various prints in the driver - it reduces the
    verbosity of some prints [which were previously logged by default]
    while adding several new debug prints and modifying others.
    
    Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>

commit 83aeb9339f4859c587d0ad3d80d225b520db047e
Author: Yuval Mintz <Yuval.Mintz@qlogic.com>
Date:   Mon Aug 15 10:42:44 2016 +0300

    qed*: Trivial modifications
    
    Change qed* code in trivial manner; This isn't necessarily
    semantic-only, but the end result is the same, i.e., no change
    should occur from user perspective. Changes include:
      - Using temporary variables to better fit 80-character restrictions.
      - Removal of unused variables & code with no effect.
    [plus some additional minor modifications].
    
    Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>

commit 1a635e488ecf6fcae00bffda61707b63bc1aacbe
Author: Yuval Mintz <Yuval.Mintz@qlogic.com>
Date:   Mon Aug 15 10:42:43 2016 +0300

    qed*: Semantic changes
    
    Make semantic-only adjustments to qed* drivers, such as:
      - Changes in code indentation.
      - Usage of BIT() macro.
      - re-naming of variables.
      - Re-ordering of variable declerations.
      - Removal of (== 0) and (!= 0) in conditions.
    
    Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>

commit 6ff9ea0da61fb436166635ff9ae3e8efc4c8b0ae
Author: Kevin Hilman <khilman@baylibre.com>
Date:   Mon Aug 15 13:08:29 2016 -0700

    arm64: defconfig: enable meson WDT as modules
    
    Signed-off-by: Kevin Hilman <khilman@baylibre.com>

commit d11708925d9ce5d0113ff8f7ae62cf00bcd30a74
Author: Kevin Hilman <khilman@baylibre.com>
Date:   Mon Aug 15 13:05:36 2016 -0700

    arm64: defconfig: enable HW random as module
    
    drivers/char/hw_random/Kconfig has 'default m', so
    simply removing this entry from the defconfig will
    enable building HW random drivers as modules.
    
    Signed-off-by: Kevin Hilman <khilman@baylibre.com>

commit 492ff9d8f5fa6ad44288050238b7961d457a239d
Author: Phil Reid <preid@electromag.com.au>
Date:   Mon Jul 25 10:42:59 2016 +0800

    power: sbs-battery: Use devm_power_supply_register
    
    Use devm_power_supply_register instead of power_supply_register.
    Remove call to power_supply_unregister.
    
    Signed-off-by: Phil Reid <preid@electromag.com.au>
    Signed-off-by: Sebastian Reichel <sre@kernel.org>

commit d2cec82c28802da31596b395ad292cb8f132fd63
Author: Phil Reid <preid@electromag.com.au>
Date:   Mon Jul 25 10:42:58 2016 +0800

    power: sbs-battery: Request threaded irq and fix dev callback cookie
    
    Currently the battery detect gpio can not be used with a chained interrupt
    controller that requires threaded irq handlers. Use threaded irq instead.
    In addition this was not going to be working at present because
    chip->power_supply is assigned after the request irq call.
    
    Signed-off-by: Phil Reid <preid@electromag.com.au>
    Signed-off-by: Sebastian Reichel <sre@kernel.org>

commit 9239a86f0976b58d3da7a2261ed659ac9eba0f25
Author: Phil Reid <preid@electromag.com.au>
Date:   Mon Jul 25 10:42:57 2016 +0800

    power: sbs-battery: Use devm_kzalloc to alloc data
    
    Use devm_kzalloc to allow memory to be freed automatically on
    driver probe failure or removal.
    
    Signed-off-by: Phil Reid <preid@electromag.com.au>
    Signed-off-by: Sebastian Reichel <sre@kernel.org>

commit e4a404a081df1abe95a06ab24b7c76d8cf02402f
Author: H. Nikolaus Schaller <hns@goldelico.com>
Date:   Mon Jul 18 18:12:09 2016 +0200

    power:bq27xxx: 27000/10 read FLAGS register as single
    
    The bq27000 and bq27010 have a single byte FLAGS register.
    Other gauges have 16 bit FLAGS registers.
    
    For reading the FLAGS register it is sufficient to read the single
    register instead of reading RSOC at the next higher address as
    well and then ignore the high byte.
    
    This does not change functionality but optimizes i2c and hdq
    traffic.
    
    Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
    Acked-by: Pali Rohár <pali.rohar@gmail.com>
    Acked-by: Andrew F. Davis <afd@ti.com>
    Signed-off-by: Sebastian Reichel <sre@kernel.org>

commit 47d7d5ed68d877269003a392b7008905d65650bb
Author: Marcin Niestroj <m.niestroj@grinn-global.com>
Date:   Mon Jun 20 12:50:54 2016 +0200

    power_supply: tps65217-charger: Add support for IRQs
    
    Make use of IRQ resources defined in tps65217 mfd code. If they are valid
    we use them instead separate poll task, in order to define AC power state.
    
    Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com>
    Signed-off-by: Sebastian Reichel <sre@kernel.org>

commit 5e457896986e16c440c97bb94b9ccd95dd157292
Author: Lorenzo Colitti <lorenzo@google.com>
Date:   Sat Aug 13 01:13:38 2016 +0900

    net: ipv6: Fix ping to link-local addresses.
    
    ping_v6_sendmsg does not set flowi6_oif in response to
    sin6_scope_id or sk_bound_dev_if, so it is not possible to use
    these APIs to ping an IPv6 address on a different interface.
    Instead, it sets flowi6_iif, which is incorrect but harmless.
    
    Stop setting flowi6_iif, and support various ways of setting oif
    in the same priority order used by udpv6_sendmsg.
    
    Tested: https://android-review.googlesource.com/#/c/254470/
    Signed-off-by: Lorenzo Colitti <lorenzo@google.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>

commit 7e37deb7fae8437c0487d9fc3f13c7415770efd7
Author: Peter Ujfalusi <peter.ujfalusi@ti.com>
Date:   Mon May 30 11:55:11 2016 +0300

    clk: twl6040: Rename the driver and use consistent names in the code
    
    The driver is to provide the functional clock to OMAP4/5 McPDM. The clock
    is named as pdmclk in the documentations so change the function names,
    structure names and variables to align with this.
    At the same time rename the driver from "twl6040-clk" to "twl6040-pdmclk".
    This can be done w/o regression since the clock driver is not in use at
    the moment, the MFD core driver is not even registering the device for it.
    
    Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
    Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>

commit 994deaae37a05bfe59aded7bb176092fb849c5b4
Author: Peter Ujfalusi <peter.ujfalusi@ti.com>
Date:   Mon May 30 11:55:10 2016 +0300

    clk: twl6040: Register the clock as of_clk_provider
    
    In order ot be able to use the pdmclk clock via DT it need to be registered
    as of_clk_provide.
    Since the twl6040 clock driver does not have it's own DT node, use the
    parent's node for registering.
    
    Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
    Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>

commit 225ff4e87ab2ceca4d4db05a5930a8c7ad16d754
Author: Peter Ujfalusi <peter.ujfalusi@ti.com>
Date:   Mon May 30 11:55:09 2016 +0300

    clk: twl6040: Correct clk_ops
    
    Since the drover only supports prepare callbacks, the use of is_enabled is
    not correct, it should be handling is_prepared.
    
    Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
    Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>

commit 54be3d985e7ec834dc2512d8a1345329d246ccd5
Author: Markus Elfring <elfring@users.sourceforge.net>
Date:   Mon Aug 15 08:34:56 2016 +0200

    fjes: Delete owner assignment
    
    The field "owner" is set by core. Thus delete an extra initialisation.
    
    Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci
    Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
    Signed-off-by: David S. Miller <davem@davemloft.net>

commit 12311959ecf8a3a64676c01b62ce67a0c5f0fd49
Author: Vegard Nossum <vegard.nossum@oracle.com>
Date:   Fri Aug 12 20:10:44 2016 +0200

    rhashtable: fix shift by 64 when shrinking
    
    I got this:
    
        ================================================================================
        UBSAN: Undefined behaviour in ./include/linux/log2.h:63:13
        shift exponent 64 is too large for 64-bit type 'long unsigned int'
        CPU: 1 PID: 721 Comm: kworker/1:1 Not tainted 4.8.0-rc1+ #87
        Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.9.3-0-ge2fc41e-prebuilt.qemu-project.org 04/01/2014
        Workqueue: events rht_deferred_worker
         0000000000000000 ffff88011661f8d8 ffffffff82344f50 0000000041b58ab3
         ffffffff84f98000 ffffffff82344ea4 ffff88011661f900 ffff88011661f8b0
         0000000000000001 ffff88011661f6b8 dffffc0000000000 ffffffff867f7640
        Call Trace:
         [<ffffffff82344f50>] dump_stack+0xac/0xfc
         [<ffffffff82344ea4>] ? _atomic_dec_and_lock+0xc4/0xc4
         [<ffffffff8242f5b8>] ubsan_epilogue+0xd/0x8a
         [<ffffffff82430c41>] __ubsan_handle_shift_out_of_bounds+0x255/0x29a
         [<ffffffff824309ec>] ? __ubsan_handle_out_of_bounds+0x180/0x180
         [<ffffffff84003436>] ? nl80211_req_set_reg+0x256/0x2f0
         [<ffffffff812112ba>] ? print_context_stack+0x8a/0x160
         [<ffffffff81200031>] ? amd_pmu_reset+0x341/0x380
         [<ffffffff823af808>] rht_deferred_worker+0x1618/0x1790
         [<ffffffff823af808>] ? rht_deferred_worker+0x1618/0x1790
         [<ffffffff823ae1f0>] ? rhashtable_jhash2+0x370/0x370
         [<ffffffff8134c12d>] ? process_one_work+0x6fd/0x1970
         [<ffffffff8134c1cf>] process_one_work+0x79f/0x1970
         [<ffffffff8134c12d>] ? process_one_work+0x6fd/0x1970
         [<ffffffff8134ba30>] ? try_to_grab_pending+0x4c0/0x4c0
         [<ffffffff8134d564>] ? worker_thread+0x1c4/0x1340
         [<ffffffff8134d8ff>] worker_thread+0x55f/0x1340
         [<ffffffff845e904f>] ? __schedule+0x4df/0x1d40
         [<ffffffff8134d3a0>] ? process_one_work+0x1970/0x1970
         [<ffffffff8134d3a0>] ? process_one_work+0x1970/0x1970
         [<ffffffff813642f7>] kthread+0x237/0x390
         [<ffffffff813640c0>] ? __kthread_parkme+0x280/0x280
         [<ffffffff845f8c93>] ? _raw_spin_unlock_irq+0x33/0x50
         [<ffffffff845f95df>] ret_from_fork+0x1f/0x40
         [<ffffffff813640c0>] ? __kthread_parkme+0x280/0x280
        ================================================================================
    
    roundup_pow_of_two() is undefined when called with an argument of 0, so
    let's avoid the call and just fall back to ht->p.min_size (which should
    never be smaller than HASH_MIN_SIZE).
    
    Cc: Herbert Xu <herbert@gondor.apana.org.au>
    Signed-off-by: Vegard Nossum <vegard.nossum@oracle.com>
    Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
    Signed-off-by: David S. Miller <davem@davemloft.net>

commit 03459345bc00da70a35fa39bcfcf13d779097074
Author: Gao Feng <fgao@ikuai8.com>
Date:   Sat Aug 13 00:30:48 2016 +0800

    pptp: Refactor the struct and macros of PPTP codes
    
    1. Use struct gre_base_hdr directly in pptp_gre_header instead of
    duplicated members;
    2. Use existing macros like GRE_KEY, GRE_SEQ, and so on instead of
    duplicated macros defined by PPTP;
    3. Add new macros like GRE_IS_ACK/SEQ and so on instead of
    PPTP_GRE_IS_A/S and so on;
    
    Signed-off-by: Gao Feng <fgao@ikuai8.com>
    Reviewed-by: Philip Prindeville <philipp@redfish-solutions.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>

commit 92bb8d5d55f7fe1a7a1201c42120c1611840807c
Author: Jisheng Zhang <jszhang@marvell.com>
Date:   Mon Aug 15 09:20:21 2016 +0100

    ARM: 8597/1: VDSO: put RO and RO after init objects into proper sections
    
    vdso_data_mapping is never modified, so mark it as const.
    
    vdso_total_pages, vdso_data_page, vdso_text_mapping and cntvct_ok are
    initialized by vdso_init(), thereafter are read only.
    
    The fact that they are read only after init makes them candidates for
    __ro_after_init declarations.
    
    Signed-off-by: Jisheng Zhang <jszhang@marvell.com>
    Reviewed-by: Kees Cook <keescook@chromium.org>
    Acked-by: Nathan Lynch <nathan_lynch@mentor.com>
    Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

commit 1c9690e5b1345c34ccc62259904380db60a36e3a
Author: Kevin Hilman <khilman@baylibre.com>
Date:   Thu Jun 23 13:38:24 2016 -0700

    arm64: defconfig: enable MMC for meson-gxbb
    
    Signed-off-by: Kevin Hilman <khilman@baylibre.com>

commit 08ef98069718cfa8dc9acab46fdc52810511636d
Author: Javier Martinez Canillas <javier@osg.samsung.com>
Date:   Mon Aug 1 12:47:04 2016 -0400

    ARM: dts: omap3/4/5/dra7: remove unneeded unit name for gpio-leds nodes
    
    This patch fixes the following DTC warnings for many boards:
    
    "Node /leds/led@1 has a unit name, but no reg property"
    
    Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
    Signed-off-by: Tony Lindgren <tony@atomide.com>

commit c731abd99121cae0b9a1735c062c96c56e2b72fc
Author: Javier Martinez Canillas <javier@osg.samsung.com>
Date:   Mon Aug 1 12:47:03 2016 -0400

    ARM: dts: am335x/437x/57xx: remove unneeded unit name for gpio-leds nodes
    
    This patch fixes the following DTC warnings for many boards:
    
    "Node /leds/led@1 has a unit name, but no reg property"
    
    Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
    Signed-off-by: Tony Lindgren <tony@atomide.com>

commit 45ed37f7b92d20541c0c651884815a9e504246fa
Author: Javier Martinez Canillas <javier@osg.samsung.com>
Date:   Mon Aug 1 12:47:02 2016 -0400

    ARM: dts: omap3/4: remove unneeded unit name for gpio-keys nodes
    
    This patch fixes the following DTC warnings for many boards:
    
    "Node /gpio_keys/button0@10 has a unit name, but no reg property"
    
    Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
    Signed-off-by: Tony Lindgren <tony@atomide.com>

commit 57a78a8a6f6e07253c6ff276847923e523a90a59
Author: Javier Martinez Canillas <javier@osg.samsung.com>
Date:   Mon Aug 1 12:47:01 2016 -0400

    ARM: dts: am335x/am437x: remove unneeded unit name for gpio-keys nodes
    
    This patch fixes the following DTC warnings for many boards:
    
    "Node /gpio_keys/button0@10 has a unit name, but no reg property"
    
    Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
    Signed-off-by: Tony Lindgren <tony@atomide.com>

commit 909b0ebde95d24af3cdecbe22863830413f3fe81
Author: Javier Martinez Canillas <javier@osg.samsung.com>
Date:   Mon Aug 1 12:47:00 2016 -0400

    ARM: dts: omap3/dra62x: remove unneeded unit name for fixed regulators
    
    This patch fixes the following DTC warnings for many boards:
    
    "Node /fixedregulator@0 has a unit name, but no reg property"
    
    Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
    Signed-off-by: Tony Lindgren <tony@atomide.com>

commit 0b0d912ab516782beeb3449149d2a126882d550a
Author: Javier Martinez Canillas <javier@osg.samsung.com>
Date:   Mon Aug 1 12:46:59 2016 -0400

    ARM: dts: da850/dm81x: remove unneeded unit name for fixed regulators
    
    This patch fixes the following DTC warnings for many boards:
    
    "Node /fixedregulator@0 has a unit name, but no reg property"
    
    Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
    Signed-off-by: Tony Lindgren <tony@atomide.com>

commit 4c049a5b7c89012872184c1fdaefe04ea3dc7dc0
Author: Javier Martinez Canillas <javier@osg.samsung.com>
Date:   Mon Aug 1 12:46:58 2016 -0400

    ARM: dts: am335x/am437x: remove unneeded unit name for fixed regulators
    
    This patch fixes the following DTC warnings for many boards:
    
    "Node /fixedregulator@0 has a unit name, but no reg property"
    
    Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
    Signed-off-by: Tony Lindgren <tony@atomide.com>

commit 18ad99d4c2d0c02f7811ecde37a79fd993258621
Author: Javier Martinez Canillas <javier@osg.samsung.com>
Date:   Mon Aug 1 12:46:57 2016 -0400

    ARM: dts: am335x/am437x: remove unneeded unit name for gpio-matrix-keypad
    
    This patch fixes the following DTC warnings for many boards:
    
    "Node /matrix_keypad@0 has a unit name, but no reg property"
    
    Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
    Signed-off-by: Tony Lindgren <tony@atomide.com>

commit 0b965a13ad81fa895e534d1f50b355ff8b0b3ed3
Author: Javier Martinez Canillas <javier@osg.samsung.com>
Date:   Mon Aug 1 12:46:56 2016 -0400

    ARM: dts: omap3: overo: add missing unit name for lcd35 display
    
    Commit b8d368caa8dc ("ARM: dts: omap3: overo: remove unneded unit names
    in display nodes") removed the unit names for all Overo display nodes
    that didn't have a reg property.
    
    But the display in arch/arm/boot/dts/omap3-overo-common-lcd35.dtsi does
    have a reg property so the correct fix was to make the unit name match
    the value of the reg property, instead of removing it.
    
    This patch fixes the following DTC warning for boards using this dtsi:
    
    "ocp/spi@48098000/display has a reg or ranges property, but no unit name"
    
    Fixes: b8d368caa8dc ("ARM: dts: omap3: overo: remove unneded unit names in display nodes")
    Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
    Signed-off-by: Tony Lindgren <tony@atomide.com>

commit f515f81424cbd75734197ac4723c4c379ab60add
Author: Javier Martinez Canillas <javier@osg.samsung.com>
Date:   Mon Aug 1 12:46:55 2016 -0400

    ARM: dts: omap3/am4372: add missing unit name to ocp node
    
    This patch fixes the following DTC warnings for many boards:
    
    "Node /ocp has a reg or ranges property, but no unit name"
    
    Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
    Signed-off-by: Tony Lindgren <tony@atomide.com>

commit 99f1c013194e64d4b67d5d318148303b0e1585e1
Author: Oleg Drokin <green@linuxhacker.ru>
Date:   Thu Jul 14 23:40:21 2016 -0400

    staging/lustre/llite: Close atomic_open race with several openers
    
    Right now, if it's an open of a negative dentry, a race is possible
    with several openers who all try to instantiate/rehash the same
    dentry and would hit a BUG_ON in d_add.
    But in fact if we got a negative dentry in atomic_open, that means
    we just revalidated it so no point in talking to MDS at all,
    just return ENOENT and make the race go away completely.
    
    Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
    Cc: stable <stable@vger.kernel.org> # 4.7+
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

commit 34276bb062b8449b3b0a208c9b848a1a27920075
Author: Lucas Stach <l.stach@pengutronix.de>
Date:   Mon Aug 15 14:58:43 2016 +0200

    of: fix reference counting in of_graph_get_endpoint_by_regs
    
    The called of_graph_get_next_endpoint() already decrements the refcount
    of the prev node, so it is wrong to do it again in the calling function.
    
    Use the for_each_endpoint_of_node() helper to interate through the
    endpoint OF nodes, which already does the right thing and simplifies
    the code a bit.
    
    Fixes: 8ccd0d0ca041
    (of: add helper for getting endpoint node of specific identifiers)
    Cc: stable@vger.kernel.org
    Reported-by: David Jander <david@protonic.nl>
    Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
    Acked-by: Philipp Zabel <p.zabel@pengutronix.de>
    Signed-off-by: Rob Herring <robh@kernel.org>

commit 4875b8fcf68d8133713dd5c5df5bc79431be8be7
Author: Adam Ford <aford173@gmail.com>
Date:   Sat Aug 13 10:21:00 2016 -0500

    ARM: dts: logicpd-somlv: Fix NAND device nodes
    
    This fix was applied to a bunch of omap3 devices including LogicPD
    Torpedo, but this got missed since it was new around the same times
    the patches were applied.  This makes the GPMC parameters match the
    Torpedo since they have the same processor PoP memory.
    
    Signed-off-by: Adam Ford <aford173@gmail.com>
    Signed-off-by: Tony Lindgren <tony@atomide.com>

commit a8771a6a64226c24f4baf30b8d13a2116795487f
Author: Adam Ford <aford173@gmail.com>
Date:   Sat Aug 13 10:13:04 2016 -0500

    ARM: dts: logicpd-torpedo-som: Provide NAND ready pin
    
    This was applied to a variety of omap3 boards, so it should
    probably be applied here.  I did not test NAND performance, but
    I tested this with UBI to confirm read/write didn't break.
    
    Signed-off-by: Adam Ford <aford173@gmail.com>
    Signed-off-by: Tony Lindgren <tony@atomide.com>

commit 153b58ea932b2d0642fa5cd41c93bb0555f3f09b
Author: Johan Hovold <johan@kernel.org>
Date:   Mon Aug 15 09:10:49 2016 -0700

    ARM: dts: overo: fix gpmc nand on boards with ethernet
    
    The gpmc ranges property for NAND at CS0 was being overridden by later
    includes that defined gpmc ethernet nodes, effectively breaking NAND on
    these systems:
    
    	omap-gpmc 6e000000.gpmc: /ocp/gpmc@6e000000/nand@0,0 has
    	malformed 'reg' property
    
    Instead of redefining the NAND range in every such dtsi, define all
    currently used ranges in omap3-overo-base.dtsi.
    
    Fixes: 98ce6007efb4 ("ARM: dts: overo: Support PoP NAND")
    Cc: stable <stable@vger.kernel.org> # 4.3
    Signed-off-by: Johan Hovold <johan@kernel.org>
    Signed-off-by: Tony Lindgren <tony@atomide.com>

commit 5e0568dfbfb8c13cdb69c9fd06d600593ad4b430
Author: Johan Hovold <johan@kernel.org>
Date:   Mon Aug 15 09:10:45 2016 -0700

    ARM: dts: overo: fix gpmc nand cs0 range
    
    The gpmc ranges property for NAND at CS0 has been broken since it was
    first added.
    
    This currently prevents the nand gpmc child node from being probed:
    
    	omap-gpmc 6e000000.gpmc: /ocp/gpmc@6e000000/nand@0,0 has
    	malformed 'reg' property
    
    and consequently the NAND device from being registered.
    
    Fixes: 98ce6007efb4 ("ARM: dts: overo: Support PoP NAND")
    Cc: stable <stable@vger.kernel.org>	# 4.3
    Signed-off-by: Johan Hovold <johan@kernel.org>
    Signed-off-by: Tony Lindgren <tony@atomide.com>

commit 42647f947210cb9fd8a7737c0fd2a60002a81188
Author: Teresa Remmet <t.remmet@phytec.de>
Date:   Mon Aug 15 09:10:39 2016 -0700

    ARM: dts: am335x: Update elm phandle binding
    
    The check for the "elm_id" binding had been removed.
    This causes nand boot to fail on boards still using
    the old binding. Update the bindings on those boards.
    
    Signed-off-by: Teresa Remmet <t.remmet@phytec.de>
    Acked-by: Brian Norris <computersforpeace@gmail.com>
    Acked-by: Roger Quadros <rogerq@ti.com>
    Signed-off-by: Tony Lindgren <tony@atomide.com>

commit 3cd0126dca82ecba8b2a6bf5aca91454da0a0776
Author: Eric Sandeen <sandeen@redhat.com>
Date:   Fri Aug 12 17:40:09 2016 -0500

    quota: fill in Q_XGETQSTAT inode information for inactive quotas
    
    The manpage for quotactl says that the Q_XGETQSTAT command is
    "useful in finding out how much space is spent to store quota
    information," but the current implementation does not report this
    info if the inode is allocated, but its quota type is not enabled.
    
    This is a change from the earlier XFS implementation, which
    reported information about allocated quota inodes even if their
    quota type was not currently active.
    
    Change quota_getstate() and quota_getstatev() to copy out the inode
    information if the filesystem has provided it, even if the quota
    type for that inode is not currently active.
    
    Signed-off-by: Eric Sandeen <sandeen@redhat.com>
    Reviewed-by: Bill O'Donnell <billodo@redhat.com>
    Signed-off-by: Jan Kara <jack@suse.cz>

commit 6c6aba9e898582f289b4b93ecc0b991ab3caab31
Author: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Date:   Mon Aug 15 17:04:42 2016 +0200

    rtc: rx6110: remove owner assignment
    
    .owner is already set by the spi core.
    
    Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>

commit 7b142d8fd0bd4c9bf06ccb72ac4daedb503f0124
Author: Jann Horn <jannh@google.com>
Date:   Thu Jun 16 00:45:33 2016 +0200

    android: binder: fix dangling pointer comparison
    
    If /dev/binder is opened and the opener process then e.g. calls execve,
    proc->vma_vm_mm will still point to the location of the now-freed
    mm_struct. If the process then calls ioctl(binder_fd, ...), the dangling
    proc->vma_vm_mm pointer will be compared to current->mm.
    
    Let the binder take a reference to the mm_struct to avoid this.
    
    v2: use the right refcounter
    
    Fixes: a906d6931f3c ("android: binder: Sanity check at binder ioctl")
    Signed-off-by: Jann Horn <jannh@google.com>
    Reviewed-by: Chen Feng <puck.chen@hisilicon.com>
    Cc: stable <stable@vger.kernel.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

commit 4c1cc206ab2420be663de6aab729815d9c081c9d
Author: Markus Elfring <elfring@users.sourceforge.net>
Date:   Mon Aug 15 10:52:47 2016 +0200

    rtc: pic32: Delete owner assignment
    
    The field "owner" is set by core. Thus delete an extra initialisation.
    
    Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci
    Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
    Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>

commit 19140488337f3327bf90a4c794c2d2fb4ec43637
Author: Jan Östlund <jao@hms.se>
Date:   Thu Aug 11 13:31:44 2016 +0200

    rtc: bq32k: Fix handling of oscillator failure flag
    
    While the oscillator failure flag is set, the RTC registers
    should be considered invalid. bq32k_rtc_read_time() now
    returns an error instead of an invalid time.
    
    The failure flag is cleared the next time the clock is set.
    
    Signed-off-by: Jan Östlund <jao@hms.se>
    Signed-off-by: Daniel Romell <daro@hms.se>
    Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>

commit f92430c27bbb97aac234a861deaed85a1dd961e8
Author: Jan Östlund <jao@hms.se>
Date:   Thu Aug 11 13:31:43 2016 +0200

    rtc: bq32k: Use correct mask name for 'minutes' register.
    
    The BQ32K_SECONDS_MASK and BQ32K_MINUTES_MASK both has the same
    value. This is no functional change.
    
    Signed-off-by: Jan Östlund <jao@hms.se>
    Signed-off-by: Daniel Romell <daro@hms.se>
    Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>

commit add125054b8727103631dce116361668436ef6a7
Author: Gavin Li <git@thegavinli.com>
Date:   Fri Aug 12 00:52:56 2016 -0700

    cdc-acm: fix wrong pipe type on rx interrupt xfers
    
    This fixes the "BOGUS urb xfer" warning logged by usb_submit_urb().
    
    Signed-off-by: Gavin Li <git@thegavinli.com>
    Acked-by: Oliver Neukum <oneukum@suse.com>
    Cc: stable <stable@vger.kernel.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

commit 73577d61799e8d8bb7d69a9acdc54923e5998138
Author: Icenowy Zheng <icenowy@aosc.xyz>
Date:   Fri Aug 12 11:06:22 2016 +0800

    ehci-platform: add the max clock number to 4
    
    Allwinner A64 EHCI requires 4 clocks to be enabled.
    
    Signed-off-by: Icenowy Zheng <icenowy@aosc.xyz>
    Acked-by: Alan Stern <stern@rowland.harvard.edu>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

commit d6b76c4ddb124dd22c6e910ca9332e472e7b3273
Author: Rafał Miłecki <rafal@milecki.pl>
Date:   Wed Aug 10 11:56:46 2016 +0200

    USB: bcma: support old USB 2.0 controller on Northstar devices
    
    Currently bcma-hcd driver handles 3 different bcma cores:
    1) BCMA_CORE_USB20_HOST (0x819)
    2) BCMA_CORE_NS_USB20 (0x504)
    3) BCMA_CORE_NS_USB30 (0x505)
    
    The first one was introduced years ago and so far was used on MIPS
    devices only. All Northstar (ARM) devices were using other two cores
    which allowed easy implementation of separated initialization paths.
    
    It seems however Broadcom decided to reuse this old USB 2.0 controller
    on some recently introduced cheaper Northstar BCM53573 SoCs. I noticed
    this on Tenda AC9 (based on BCM47189B0 belonging to BCM53573 family).
    
    There is no difference in this old controller core identification
    between MIPS and ARM devices: they share the same id and revision. We
    need different controller initialization procedure however.
    To handle this add a check for architecture and implement required
    initialization for ARM case.
    
    Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

commit 6e958051cb0742dd54bb61528c130bd6e…
  • Loading branch information
mmotm auto import authored and hnaz committed Aug 16, 2016
1 parent 4f6effa commit 7835463
Show file tree
Hide file tree
Showing 1,994 changed files with 86,498 additions and 29,188 deletions.
5 changes: 5 additions & 0 deletions Documentation/ABI/testing/sysfs-driver-wacom
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ What: /sys/bus/hid/devices/<bus>:<vid>:<pid>.<n>/wacom_led/status0_luminance
Date: August 2014
Contact: linux-input@vger.kernel.org
Description:
<obsoleted by the LED class API now exported by the driver>
Writing to this file sets the status LED luminance (1..127)
when the stylus does not touch the tablet surface, and no
button is pressed on the stylus. This luminance level is
Expand All @@ -33,6 +34,7 @@ What: /sys/bus/hid/devices/<bus>:<vid>:<pid>.<n>/wacom_led/status1_luminance
Date: August 2014
Contact: linux-input@vger.kernel.org
Description:
<obsoleted by the LED class API now exported by the driver>
Writing to this file sets the status LED luminance (1..127)
when the stylus touches the tablet surface, or any button is
pressed on the stylus.
Expand All @@ -41,6 +43,7 @@ What: /sys/bus/hid/devices/<bus>:<vid>:<pid>.<n>/wacom_led/status_led0_select
Date: August 2014
Contact: linux-input@vger.kernel.org
Description:
<obsoleted by the LED class API now exported by the driver>
Writing to this file sets which one of the four (for Intuos 4
and Intuos 5) or of the right four (for Cintiq 21UX2 and Cintiq
24HD) status LEDs is active (0..3). The other three LEDs on the
Expand All @@ -50,6 +53,7 @@ What: /sys/bus/hid/devices/<bus>:<vid>:<pid>.<n>/wacom_led/status_led1_select
Date: August 2014
Contact: linux-input@vger.kernel.org
Description:
<obsoleted by the LED class API now exported by the driver>
Writing to this file sets which one of the left four (for Cintiq 21UX2
and Cintiq 24HD) status LEDs is active (0..3). The other three LEDs on
the left are always inactive.
Expand Down Expand Up @@ -91,6 +95,7 @@ What: /sys/bus/hid/devices/<bus>:<vid>:<pid>.<n>/wacom_remote/<serial_number>/r
Date: July 2015
Contact: linux-input@vger.kernel.org
Description:
<obsoleted by the LED class API now exported by the driver>
Reading from this file reports the mode status of the
remote as indicated by the LED lights on the device. If no
reports have been received from the paired device, reading
Expand Down
28 changes: 19 additions & 9 deletions Documentation/CodingStyle
Original file line number Diff line number Diff line change
Expand Up @@ -396,9 +396,13 @@ locations and some common work such as cleanup has to be done. If there is no
cleanup needed then just return directly.

Choose label names which say what the goto does or why the goto exists. An
example of a good name could be "out_buffer:" if the goto frees "buffer". Avoid
using GW-BASIC names like "err1:" and "err2:". Also don't name them after the
goto location like "err_kmalloc_failed:"
example of a good name could be "out_free_buffer:" if the goto frees "buffer".
Avoid using GW-BASIC names like "err1:" and "err2:", as you would have to
renumber them if you ever add or remove exit paths, and they make correctness
difficult to verify anyway.

It is advised to indent labels with a single space (not tab), so that
"diff -p" does not confuse labels with functions.

The rationale for using gotos is:

Expand All @@ -425,20 +429,29 @@ The rationale for using gotos is:
goto out_buffer;
}
...
out_buffer:
out_free_buffer:
kfree(buffer);
return result;
}

A common type of bug to be aware of is "one err bugs" which look like this:

err:
err:
kfree(foo->bar);
kfree(foo);
return ret;

The bug in this code is that on some exit paths "foo" is NULL. Normally the
fix for this is to split it up into two error labels "err_bar:" and "err_foo:".
fix for this is to split it up into two error labels "err_free_bar:" and
"err_free_foo:":

err_free_bar:
kfree(foo->bar);
err_free_foo:
kfree(foo);
return ret;

Ideally you should simulate errors to test all exit paths.


Chapter 8: Commenting
Expand All @@ -461,9 +474,6 @@ When commenting the kernel API functions, please use the kernel-doc format.
See the files Documentation/kernel-documentation.rst and scripts/kernel-doc
for details.

Linux style for comments is the C89 "/* ... */" style.
Don't use C99-style "// ..." comments.

The preferred style for long (multi-line) comments is:

/*
Expand Down
7 changes: 7 additions & 0 deletions Documentation/DocBook/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,15 @@ ifeq ($(DOCBOOKS),)
# Skip DocBook build if the user explicitly requested no DOCBOOKS.
.DEFAULT:
@echo " SKIP DocBook $@ target (DOCBOOKS=\"\" specified)."
else
ifneq ($(SPHINXDIRS),)

# Skip DocBook build if the user explicitly requested a sphinx dir
.DEFAULT:
@echo " SKIP DocBook $@ target (SPHINXDIRS specified)."
else


###
# The build process is as follows (targets):
# (xmldocs) [by docproc]
Expand Down Expand Up @@ -221,6 +227,7 @@ silent_gen_xml = :
echo "</programlisting>") > $@

endif # DOCBOOKS=""
endif # SPHINDIR=...

###
# Help targets as used by the top-level makefile
Expand Down
57 changes: 43 additions & 14 deletions Documentation/Makefile.sphinx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
# You can set these variables from the command line.
SPHINXBUILD = sphinx-build
SPHINXOPTS =
SPHINXDIRS = .
_SPHINXDIRS = $(patsubst $(srctree)/Documentation/%/conf.py,%,$(wildcard $(srctree)/Documentation/*/conf.py))
SPHINX_CONF = conf.py
PAPER =
BUILDDIR = $(obj)/output

Expand All @@ -25,38 +28,58 @@ else ifneq ($(DOCBOOKS),)

else # HAVE_SPHINX

# User-friendly check for rst2pdf
HAVE_RST2PDF := $(shell if python -c "import rst2pdf" >/dev/null 2>&1; then echo 1; else echo 0; fi)
# User-friendly check for pdflatex
HAVE_PDFLATEX := $(shell if which pdflatex >/dev/null 2>&1; then echo 1; else echo 0; fi)

# Internal variables.
PAPEROPT_a4 = -D latex_paper_size=a4
PAPEROPT_letter = -D latex_paper_size=letter
KERNELDOC = $(srctree)/scripts/kernel-doc
KERNELDOC_CONF = -D kerneldoc_srctree=$(srctree) -D kerneldoc_bin=$(KERNELDOC)
ALLSPHINXOPTS = -D version=$(KERNELVERSION) -D release=$(KERNELRELEASE) -d $(BUILDDIR)/.doctrees $(KERNELDOC_CONF) $(PAPEROPT_$(PAPER)) -c $(srctree)/$(src) $(SPHINXOPTS) $(srctree)/$(src)
ALLSPHINXOPTS = $(KERNELDOC_CONF) $(PAPEROPT_$(PAPER)) $(SPHINXOPTS)
# the i18n builder cannot share the environment and doctrees with the others
I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .

quiet_cmd_sphinx = SPHINX $@
cmd_sphinx = BUILDDIR=$(BUILDDIR) $(SPHINXBUILD) -b $2 $(ALLSPHINXOPTS) $(BUILDDIR)/$2
# commands; the 'cmd' from scripts/Kbuild.include is not *loopable*
loop_cmd = $(echo-cmd) $(cmd_$(1))

# $2 sphinx builder e.g. "html"
# $3 name of the build subfolder / e.g. "media", used as:
# * dest folder relative to $(BUILDDIR) and
# * cache folder relative to $(BUILDDIR)/.doctrees
# $4 dest subfolder e.g. "man" for man pages at media/man
# $5 reST source folder relative to $(srctree)/$(src),
# e.g. "media" for the linux-tv book-set at ./Documentation/media

quiet_cmd_sphinx = SPHINX $@ --> file://$(abspath $(BUILDDIR)/$3/$4);
cmd_sphinx = $(MAKE) BUILDDIR=$(abspath $(BUILDDIR)) $(build)=Documentation/media all;\
BUILDDIR=$(abspath $(BUILDDIR)) SPHINX_CONF=$(abspath $(srctree)/$(src)/$5/$(SPHINX_CONF)) \
$(SPHINXBUILD) \
-b $2 \
-c $(abspath $(srctree)/$(src)) \
-d $(abspath $(BUILDDIR)/.doctrees/$3) \
-D version=$(KERNELVERSION) -D release=$(KERNELRELEASE) \
$(ALLSPHINXOPTS) \
$(abspath $(srctree)/$(src)/$5) \
$(abspath $(BUILDDIR)/$3/$4);

htmldocs:
$(MAKE) BUILDDIR=$(BUILDDIR) -f $(srctree)/Documentation/media/Makefile $@
$(call cmd,sphinx,html)
@$(foreach var,$(SPHINXDIRS),$(call loop_cmd,sphinx,html,$(var),,$(var)))

pdfdocs:
ifeq ($(HAVE_RST2PDF),0)
$(warning The Python 'rst2pdf' module was not found. Make sure you have the module installed to produce PDF output.)
ifeq ($(HAVE_PDFLATEX),0)
$(warning The 'pdflatex' command was not found. Make sure you have it installed and in PATH to produce PDF output.)
@echo " SKIP Sphinx $@ target."
else # HAVE_RST2PDF
$(call cmd,sphinx,pdf)
endif # HAVE_RST2PDF
else # HAVE_PDFLATEX
@$(call loop_cmd,sphinx,latex,.,latex,.))
$(Q)$(MAKE) -C $(BUILDDIR)/latex
endif # HAVE_PDFLATEX

epubdocs:
$(call cmd,sphinx,epub)
@$(foreach var,$(SPHINXDIRS),$(call loop_cmd,sphinx,epub,$(var),epub,$(var)))

xmldocs:
$(call cmd,sphinx,xml)
@$(foreach var,$(SPHINXDIRS),$(call loop_cmd,sphinx,xml,$(var),xml,$(var)))

# no-ops for the Sphinx toolchain
sgmldocs:
Expand All @@ -76,3 +99,9 @@ dochelp:
@echo ' epubdocs - EPUB'
@echo ' xmldocs - XML'
@echo ' cleandocs - clean all generated files'
@echo
@echo ' make SPHINXDIRS="s1 s2" [target] Generate only docs of folder s1, s2'
@echo ' valid values for SPHINXDIRS are: $(_SPHINXDIRS)'
@echo
@echo ' make SPHINX_CONF={conf-file} [target] use *additional* sphinx-build'
@echo ' configuration. This is e.g. useful to build with nit-picking config.'
Loading

0 comments on commit 7835463

Please sign in to comment.