Skip to content

Commit

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

commit c872503677d0b2209065cf0b739db82a2de84f2d
Author: Stephen Rothwell <sfr@canb.auug.org.au>
Date:   Wed Sep 14 14:22:25 2016 +1000

    partial revert of 797da5598f3a ("PM / devfreq: Add COMPILE_TEST for build coverage")
    
    Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>

commit e74e83724808b72173b557bd8008202109fb6091
Author: Fabio Estevam <fabio.estevam@nxp.com>
Date:   Thu Sep 8 09:34:32 2016 -0300

    usb: chipidea: udc: Use the preferred form for passing a size of a struct
    
    According to Documentation/CodingStyle:
    
    "The preferred form for passing a size of a struct is the following:
    
    	p = kmalloc(sizeof(*p), ...);
    "
    , so do as suggested to improve readability.
    
    Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
    Signed-off-by: Peter Chen <peter.chen@nxp.com>

commit 58001effe172f300d558dffbd723c8521b9404f2
Author: Fabio Estevam <fabio.estevam@nxp.com>
Date:   Thu Sep 8 09:34:31 2016 -0300

    usb: chipidea: udc: Fit into a single line
    
    No need to split the dma_pool_zalloc() line into two as it can
    perfectly fit into a single line.
    
    Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
    Signed-off-by: Peter Chen <peter.chen@nxp.com>

commit 382c1b38d8e70b2fe239c96bb9137c10f3229ba3
Author: Fabio Estevam <fabio.estevam@nxp.com>
Date:   Thu Sep 8 09:34:30 2016 -0300

    usb: chipidea: udc: Use dma_pool_zalloc()
    
    We can make the code simpler by using dma_pool_zalloc() instead
    of calling dma_pool_alloc() and then a memset().
    
    Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
    Signed-off-by: Peter Chen <peter.chen@nxp.com>

commit c744a0db756b34c7e2b60100bcfc58beb6b68c99
Author: Lucas Stach <l.stach@pengutronix.de>
Date:   Mon Aug 15 16:09:07 2016 +0200

    usb: chipidea: host: disable io watchdog
    
    The Chipidea EHCI core seems to behave sanely and doesn't need
    the IO watchdog. This kills off 10 non-deferrable wakeup events
    per second when the controller is otherwise idle.
    
    Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
    Tested-by: Stefan Agner <stefan@agner.ch>
    Signed-off-by: Peter Chen <peter.chen@nxp.com>

commit c6ee9f2345a2d95a986309a6486ae780f563230a
Author: Stefan Wahren <stefan.wahren@i2se.com>
Date:   Thu Aug 11 17:19:13 2016 +0000

    usb: chipidea: udc: Use direction flags consequently
    
    This driver make assumptions about the value of the direction flags.
    So better use them in comparisons to improve the readability.
    
    Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
    Signed-off-by: Peter Chen <peter.chen@nxp.com>

commit 9dba516ed282e3d16481051be547b54caa312029
Author: Li Jun <jun.li@nxp.com>
Date:   Wed Jul 20 16:02:42 2016 +0800

    usb: chipidea: imx: set over current polarity per dts setting
    
    imx usb over current polarity is low active by default, with
    over-current-active-high property added, user can config it to be high
    active. Meanwhile keep this setting unchanged for existing platforms
    so new platform must set the right value for active low by its usbmisc
    init function if over current is enabled.
    
    Signed-off-by: Li Jun <jun.li@nxp.com>
    Signed-off-by: Peter Chen <peter.chen@nxp.com>

commit e5b3253dcc8c6a2cb2b13916e77afe9fdfe55d27
Author: Li Jun <jun.li@nxp.com>
Date:   Wed Jul 20 16:02:41 2016 +0800

    doc: usb: ci-hdrc-usb2: add property over-current-active-high
    
    Adding over-current-active-high to indicate the over current flag
    is high active as typically we use active low for over current
    polarity.
    
    Signed-off-by: Li Jun <jun.li@nxp.com>
    Signed-off-by: Peter Chen <peter.chen@nxp.com>
    Acked-by: Rob Herring <robh@kernel.org>

commit 5de97f8bd74dd87d8856f17b585a7c221b535969
Author: Li Jun <jun.li@nxp.com>
Date:   Wed Jul 20 16:02:40 2016 +0800

    doc: usb: usbmisc-imx: add imx7d compatible string
    
    Add compatible string for imx7d-usbmisc.
    
    Acked-by: Rob Herring <robh@kernel.org>
    Signed-off-by: Li Jun <jun.li@nxp.com>
    Signed-off-by: Peter Chen <peter.chen@nxp.com>

commit 8007eb4e1824e52483ad99fb229fc56e6a73cec6
Author: Stefan Wahren <stefan.wahren@i2se.com>
Date:   Sat Jul 9 14:16:39 2016 +0000

    usb: chipidea: udc: Don't flush endpoint fifo twice
    
    The endpoint fifo is already flushed in _ep_nuke so there
    is no need to flush it twice.
    
    Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
    Signed-off-by: Peter Chen <peter.chen@nxp.com>

commit 66b76dbe37df88b250ffdac186adba3e5dc24631
Author: Stefan Wahren <stefan.wahren@i2se.com>
Date:   Sat Jul 9 14:16:38 2016 +0000

    usb: chipidea: udc: move write barrier into hw_ep_prime
    
    Since there should be a write barrier before every call of
    hw_ep_prime we could move it into hw_ep_prime.
    
    Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
    Signed-off-by: Peter Chen <peter.chen@nxp.com>

commit 2e06285655b59362847b610a7cfad204fee9640b
Author: Baoyou Xie <baoyou.xie@linaro.org>
Date:   Thu Sep 1 19:15:35 2016 +0800

    vfio: platform: mark symbols static where possible
    
    We get a few warnings when building kernel with W=1:
    drivers/vfio/platform/vfio_platform_common.c:76:5: warning: no previous prototype for 'vfio_platform_acpi_call_reset' [-Wmissing-prototypes]
    drivers/vfio/platform/vfio_platform_common.c:98:6: warning: no previous prototype for 'vfio_platform_acpi_has_reset' [-Wmissing-prototypes]
    drivers/vfio/platform/vfio_platform_common.c:640:5: warning: no previous prototype for 'vfio_platform_of_probe' [-Wmissing-prototypes]
    drivers/vfio/platform/reset/vfio_platform_amdxgbe.c:59:5: warning: no previous prototype for 'vfio_platform_amdxgbe_reset' [-Wmissing-prototypes]
    drivers/vfio/platform/reset/vfio_platform_calxedaxgmac.c:60:5: warning: no previous prototype for 'vfio_platform_calxedaxgmac_reset' [-Wmissing-prototypes]
    ....
    
    In fact, these functions are only used in the file in which they are
    declared and don't need a declaration, but can be made static.
    so this patch marks these functions with 'static'.
    
    Signed-off-by: Baoyou Xie <baoyou.xie@linaro.org>
    Acked-by: Arnd Bergmann <arnd@arndb.de>
    Reviewed-by: Eric Auger <eric.auger@redhat.com>
    Reviewed-by: Baptiste Reynal <b.reynal@virtualopensystems.com>
    Signed-off-by: Alex Williamson <alex.williamson@redhat.com>

commit 9b6a9ecc2d88ccdc57efc22d69436b9dd7e2eceb
Author: Wei Yongjun <weiyongjun1@huawei.com>
Date:   Sat Sep 10 07:43:48 2016 +0000

    selinux: fix error return code in policydb_read()
    
    Fix to return error code -EINVAL from the error handling case instead
    of 0 (rc is overwrite to 0 when policyvers >=
    POLICYDB_VERSION_ROLETRANS), as done elsewhere in this function.
    
    Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
    [PM: normalize "selinux" in patch subject, description line wrap]
    Signed-off-by: Paul Moore <paul@paul-moore.com>

commit 035ee288ae7ade4152f1c3cf23a587b04fdc526c
Author: Lukas Wunner <lukas@wunner.de>
Date:   Tue Sep 6 06:20:46 2016 +0200

    PCI: Fix bridge_d3 update on device removal
    
    Starting with v4.8, we allow a PCIe port to runtime suspend to D3hot if the
    port itself and its children satisfy a number of conditions.  Once a child
    is removed, we recheck those conditions in case the removed device was
    blocking the port from suspending.
    
    The rechecking needs to happen *after* the device has been removed from the
    bus it resides on.  Otherwise when walking the port's subordinate bus in
    pci_bridge_d3_update(), the device being removed would erroneously still be
    taken into account.
    
    However the device is removed from the bus_list in pci_destroy_dev() and we
    currently recheck *before* that.  Fix it.
    
    Fixes: 9d26d3a8f1b0 ("PCI: Put PCIe ports into D3 during suspend")
    Signed-off-by: Lukas Wunner <lukas@wunner.de>
    Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
    Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
    Acked-by: Rafael J. Wysocki <mika.westerberg@linux.intel.com>

commit 649d7df29ca83b2c9e81a4a305a8de8ab02b5e9d
Author: Jaegeuk Kim <jaegeuk@kernel.org>
Date:   Tue Sep 6 11:02:03 2016 -0700

    f2fs: fix to set PageUptodate in f2fs_write_end correctly
    
    Previously, f2fs_write_begin sets PageUptodate all the time. But, when user
    tries to update the entire page (i.e., len == PAGE_SIZE), we need to consider
    that the page is able to be copied partially afterwards. In such the case,
    we will lose the remaing region in the page.
    
    This patch fixes this by setting PageUptodate in f2fs_write_end as given copied
    result. In the short copy case, it returns zero to let generic_perform_write
    retry copying user data again.
    
    As a result, f2fs_write_end() works:
       PageUptodate      len      copied    return   retry
    1. no                4096     4096      4096     false  -> return 4096
    2. no                4096     1024      0        true   -> goto #1 case
    3. yes               2048     2048      2048     false  -> return 2048
    4. yes               2048     1024      1024     false  -> return 1024
    
    Suggested-by: Al Viro <viro@zeniv.linux.org.uk>
    Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>

commit 61e4da1172d18f5277be847a40559eacd3169ce7
Author: Fan Li <fanofcode.li@samsung.com>
Date:   Sat Sep 10 11:19:37 2016 +0800

    f2fs: fix parameters of __exchange_data_block
    
    __exchange_data_block should take block indexes as parameters
    instead of offsets in bytes.
    
    Signed-off-by: Fan li <fanofcode.li@samsung.com>
    Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>

commit 9512929608891830f4194e1959b667b43d86e619
Author: Chao Yu <yuchao0@huawei.com>
Date:   Fri Sep 9 08:38:20 2016 +0800

    MAINTAINERS: update f2fs entry
    
    This patch includes below modifications:
    1. change my maintainership from reviewer to maintainer.
    2. remove maintainership of Changman Lee since he is not active about
    one and a half year.
    3. change website of f2fs from wiki to kernel one.
    
    Signed-off-by: Chao Yu <yuchao0@huawei.com>
    Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>

commit e8ea9b3d7e278d2ef4b60e703f780ceee70cb331
Author: Jaegeuk Kim <jaegeuk@kernel.org>
Date:   Fri Sep 9 16:59:39 2016 -0700

    f2fs: avoid ENOMEM during roll-forward recovery
    
    This patch gives another chances during roll-forward recovery regarding to
    -ENOMEM.
    
    Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>

commit f148b41e8b2e114d0aba023adf326b03368f3246
Author: Masahiro Yamada <yamada.masahiro@socionext.com>
Date:   Sun Sep 11 14:58:21 2016 +0900

    x86: Clean up various simple wrapper functions
    
    Remove unneeded variables and assignments.
    
    While we are here, let's fix the following as well:
    
      - Remove unnecessary parentheses
      - Remove unnecessary unsigned-suffix 'U' from constant values
      - Reword the comment in set_apic_id() (suggested by Thomas Gleixner)
    
    Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
    Cc: Alex Thorlton <athorlton@sgi.com>
    Cc: Andrew Banman <abanman@sgi.com>
    Cc: Borislav Petkov <bp@suse.de>
    Cc: Daniel J Blueman <daniel@numascale.com>
    Cc: Denys Vlasenko <dvlasenk@redhat.com>
    Cc: Dimitri Sivanich <sivanich@sgi.com>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Matt Fleming <matt@codeblueprint.co.uk>
    Cc: Mike Travis <travis@sgi.com>
    Cc: Nathan Zimmer <nzimmer@sgi.com>
    Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Steffen Persvold <sp@numascale.com>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: Toshi Kani <toshi.kani@hpe.com>
    Cc: Wei Jiangang <weijg.fnst@cn.fujitsu.com>
    Link: http://lkml.kernel.org/r/1473573502-27954-1-git-send-email-yamada.masahiro@socionext.com
    Signed-off-by: Ingo Molnar <mingo@kernel.org>

commit 85063fac1f72419eec4349621fe829b07f9acb1e
Author: Andy Lutomirski <luto@kernel.org>
Date:   Mon Sep 12 15:05:51 2016 -0700

    x86/entry/64: Clean up and document espfix64 stack setup
    
    The espfix64 setup code was a bit inscrutible and contained an
    unnecessary push of RAX.  Remove that push, update all the stack
    offsets to match, and document the whole mess.
    
    Reported-By: Borislav Petkov <bp@alien8.de>
    Signed-off-by: Andy Lutomirski <luto@kernel.org>
    Reviewed-by: Borislav Petkov <bp@suse.de>
    Cc: Borislav Petkov <bp@alien8.de>
    Cc: Brian Gerst <brgerst@gmail.com>
    Cc: Denys Vlasenko <dvlasenk@redhat.com>
    Cc: H. Peter Anvin <hpa@zytor.com>
    Cc: Josh Poimboeuf <jpoimboe@redhat.com>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Link: http://lkml.kernel.org/r/e5459eb10cf1175c8b36b840bc425f210d045f35.1473717910.git.luto@kernel.org
    Signed-off-by: Ingo Molnar <mingo@kernel.org>

commit 1ef0199a1a698d82ecd39d11d1daa3f4ab006c75
Author: Andy Lutomirski <luto@kernel.org>
Date:   Mon Sep 12 15:05:50 2016 -0700

    selftests/x86/sigreturn: Use CX, not AX, as the scratch register
    
    RAX is handled specially in ESPFIX64.  Use CX as our scratch
    register so that, if something goes wrong with RAX handling, we'll
    notice.
    
    Signed-off-by: Andy Lutomirski <luto@kernel.org>
    Reviewed-by: Borislav Petkov <bp@suse.de>
    Cc: Borislav Petkov <bp@alien8.de>
    Cc: Brian Gerst <brgerst@gmail.com>
    Cc: Denys Vlasenko <dvlasenk@redhat.com>
    Cc: H. Peter Anvin <hpa@zytor.com>
    Cc: Josh Poimboeuf <jpoimboe@redhat.com>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Shuah Khan <shuahkh@osg.samsung.com>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Link: http://lkml.kernel.org/r/9ceeb24ea56925586c330dc46306f757ddea9fb5.1473717910.git.luto@kernel.org
    Signed-off-by: Ingo Molnar <mingo@kernel.org>

commit d59dc7bcfa649ef2128a76b6487b16f4b3f14d23
Author: Rik van Riel <riel@redhat.com>
Date:   Thu Sep 8 21:30:53 2016 -0400

    sched/numa, mm: Revert to checking pmd/pte_write instead of VMA flags
    
    Commit:
    
      4d9424669946 ("mm: convert p[te|md]_mknonnuma and remaining page table manipulations")
    
    changed NUMA balancing from _PAGE_NUMA to using PROT_NONE, and was quickly
    found to introduce a regression with NUMA grouping.
    
    It was followed up by these commits:
    
     53da3bc2ba9e ("mm: fix up numa read-only thread grouping logic")
     bea66fbd11af ("mm: numa: group related processes based on VMA flags instead of page table flags")
     b191f9b106ea ("mm: numa: preserve PTE write permissions across a NUMA hinting fault")
    
    The first of those two commits try alternate approaches to NUMA
    grouping, which apparently do not work as well as looking at the PTE
    write permissions.
    
    The latter patch preserves the PTE write permissions across a NUMA
    protection fault. However, it forgets to revert the condition for
    whether or not to group tasks together back to what it was before
    v3.19, even though the information is now preserved in the page tables
    once again.
    
    This patch brings the NUMA grouping heuristic back to what it was
    before commit 4d9424669946, which the changelogs of subsequent
    commits suggest worked best.
    
    We have all the information again. We should probably use it.
    
    Signed-off-by: Rik van Riel <riel@redhat.com>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: aarcange@redhat.com
    Cc: linux-mm@kvack.org
    Cc: mgorman@suse.de
    Link: http://lkml.kernel.org/r/20160908213053.07c992a9@annuminas.surriel.com
    Signed-off-by: Ingo Molnar <mingo@kernel.org>

commit f1e19f7a76548726df866e1f16aead5e19acc0a3
Author: Johannes Berg <johannes.berg@intel.com>
Date:   Tue Sep 13 17:08:23 2016 +0200

    cfg80211: allow connect keys only with default (TX) key
    
    There's no point in allowing connect keys when one of them
    isn't also configured as the TX key, it would just confuse
    drivers and probably cause them to pick something for TX.
    Disallow this confusing and erroneous configuration.
    
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>

commit 89b706fb28e431fa7639348536c284fb375eb3c0
Author: Johannes Berg <johannes.berg@intel.com>
Date:   Tue Sep 13 16:39:38 2016 +0200

    cfg80211: reduce connect key caching struct size
    
    After the previous patches, connect keys can only (correctly)
    be used for storing static WEP keys. Therefore, remove all the
    data for dealing with key index 4/5 and reduce the size of the
    key material to the maximum for WEP keys.
    
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>

commit e9c8f8d3a4d54106a30f2b981b53d658c9bc0c8e
Author: Johannes Berg <johannes.berg@intel.com>
Date:   Tue Sep 13 16:37:40 2016 +0200

    cfg80211: validate key index better
    
    Don't accept it if a key_idx < 0 snuck through, reject WEP keys with
    key index 4 and 5 (which are used for IGTKs) and don't allow IGTKs
    with key indices other than 4 and 5. This makes the key data match
    expectations better.
    
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>

commit 9381e267b69acfea96c8429dc99da3e78835cef1
Author: Johannes Berg <johannes.berg@intel.com>
Date:   Tue Sep 13 16:11:32 2016 +0200

    cfg80211: wext: only allow WEP keys to be configured before connected
    
    When not connected, anything but WEP keys shouldn't be allowed to be
    configured for later - only static WEP keys make sense at this point.
    Change wext to reject anything else just like nl80211 does.
    
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>

commit 386b1f273850380a1887044673922843736c6d0a
Author: Johannes Berg <johannes.berg@intel.com>
Date:   Tue Sep 13 16:10:02 2016 +0200

    nl80211: only allow WEP keys during connect command
    
    This was already documented that way in nl80211.h, but the
    parsing code still accepted other key types. Change it to
    really only accept WEP keys as documented.
    
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>

commit 42ee231cd12c2e1eb015163d04a65950e895d4b7
Author: Johannes Berg <johannes.berg@intel.com>
Date:   Tue Sep 13 15:51:03 2016 +0200

    nl80211: fix connect keys range check
    
    Only key index 0-3 should be accepted, 4/5 are for IGTKs and
    cannot be used as connect keys. Fix the range checking to not
    allow such erroneous configurations.
    
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>

commit b6b5555bc89f52e49244104ca4d7764c7b0f11cd
Author: Johannes Berg <johannes.berg@intel.com>
Date:   Tue Sep 13 16:25:58 2016 +0200

    cfg80211: disallow shared key authentication with key index 4
    
    Key index 4 can only be used for an IGTK, so the range checks
    for shared key authentication should treat 4 as an error, fix
    that in the code.
    
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>

commit ad5987b47e96a0fb6d13fea250e936aed000093c
Author: Johannes Berg <johannes.berg@intel.com>
Date:   Tue Sep 13 15:53:55 2016 +0200

    nl80211: validate number of probe response CSA counters
    
    Due to an apparent copy/paste bug, the number of counters for the
    beacon configuration were checked twice, instead of checking the
    number of probe response counters. Fix this to check the number of
    probe response counters before parsing those.
    
    Cc: stable@vger.kernel.org
    Fixes: 9a774c78e211 ("cfg80211: Support multiple CSA counters")
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>

commit b9d66a36aa7737d0f975d99aabc200b7496e26b8
Author: Ido Schimmel <idosch@mellanox.com>
Date:   Mon Sep 12 13:26:27 2016 +0200

    mlxsw: spectrum: Add support for new ethtool API
    
    Remove the deprecated {get,set}_settings callbacks and instead add
    {get,set}_link_ksettings along with support for newly available speeds.
    
    Signed-off-by: Ido Schimmel <idosch@mellanox.com>
    Signed-off-by: Jiri Pirko <jiri@mellanox.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>

commit 91bdc7a43ac7cfe044caa5ab7e74dca114f15904
Author: Ido Schimmel <idosch@mellanox.com>
Date:   Mon Sep 12 13:26:26 2016 +0200

    mlxsw: spectrum: Indicate support of multiple port types
    
    The device can support multiple port types, so don't return on first
    match.
    
    Signed-off-by: Ido Schimmel <idosch@mellanox.com>
    Signed-off-by: Jiri Pirko <jiri@mellanox.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>

commit 0213424adad63bfea08ef19cd6c997648ddcf44e
Author: Ido Schimmel <idosch@mellanox.com>
Date:   Mon Sep 12 13:26:25 2016 +0200

    mlxsw: spectrum: Report port type according to operational speed
    
    In case port isn't operational we shouldn't report the port type, but
    instead return PORT_OTHER. This is consistent with most other drivers
    that return PORT_OTHER when media type can't be determined.
    
    Signed-off-by: Ido Schimmel <idosch@mellanox.com>
    Signed-off-by: Jiri Pirko <jiri@mellanox.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>

commit 4149b97f728edc9247939ece42a784c14b4e212f
Author: Ido Schimmel <idosch@mellanox.com>
Date:   Mon Sep 12 13:26:24 2016 +0200

    mlxsw: spectrum: Report link partner's advertised speeds
    
    If autonegotiation was performed successfully, then we should report the
    link partner's advertised speeds instead of the operational speed of the
    port.
    
    Signed-off-by: Ido Schimmel <idosch@mellanox.com>
    Signed-off-by: Jiri Pirko <jiri@mellanox.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>

commit 0c83f88c02085a762d52ebcd9cc4ca3df39db797
Author: Ido Schimmel <idosch@mellanox.com>
Date:   Mon Sep 12 13:26:23 2016 +0200

    mlxsw: spectrum: Correctly report autonegotiation
    
    Up until now the device always reported autonegotiation to be off
    although it was on by default.
    
    Allow the user to disable / enable autonegotiation and report its status
    correctly.
    
    Signed-off-by: Ido Schimmel <idosch@mellanox.com>
    Signed-off-by: Jiri Pirko <jiri@mellanox.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>

commit 440f895aa97f81a2bdc02993da5360a1f6da2fb5
Author: Christophe Jaillet <christophe.jaillet@wanadoo.fr>
Date:   Sun Sep 11 21:43:34 2016 +0200

    drivers: net: phy: xgene: Fix 'remove' function
    
    If 'IS_ERR(pdata->clk)' is true, then 'clk_disable_unprepare(pdata->clk)'
    will do nothing.
    
    It is likely that 'if (!IS_ERR(pdata->clk))' was expected here.
    In fact, the test can even be removed because 'clk_disable_unprepare'
    already handles such cases.
    
    Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
    Signed-off-by: David S. Miller <davem@davemloft.net>

commit dd3e3bbf1445ba20a3a8e8c86fababad2b277a81
Author: Arnd Bergmann <arnd@arndb.de>
Date:   Tue Sep 13 18:01:40 2016 +0200

    arm-soc: document merges
    
    Signed-off-by: Arnd Bergmann <arnd@arndb.de>

commit 57ccdf449f962ab5fc8cbf26479402f13bdb8be7
Author: Wanpeng Li <wanpeng.li@hotmail.com>
Date:   Wed Sep 7 18:51:13 2016 +0800

    tick/nohz: Prevent stopping the tick on an offline CPU
    
    can_stop_full_tick() has no check for offline cpus. So it allows to stop
    the tick on an offline cpu from the interrupt return path, which is wrong
    and subsequently makes irq_work_needs_cpu() warn about being called for an
    offline cpu.
    
    Commit f7ea0fd639c2c4 ("tick: Don't invoke tick_nohz_stop_sched_tick() if
    the cpu is offline") added prevention for can_stop_idle_tick(), but forgot
    to do the same in can_stop_full_tick(). Add it.
    
    [ tglx: Massaged changelog ]
    
    Signed-off-by: Wanpeng Li <wanpeng.li@hotmail.com>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Frederic Weisbecker <fweisbec@gmail.com>
    Link: http://lkml.kernel.org/r/1473245473-4463-1-git-send-email-wanpeng.li@hotmail.com
    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

commit 36a19b299536746f5c01d7716dac962f831e4d38
Author: Philippe Reynes <tremyfr@gmail.com>
Date:   Sun Sep 11 17:54:04 2016 +0200

    net: ethernet: apm: xgene: use new api ethtool_{get|set}_link_ksettings
    
    The ethtool api {get|set}_settings is deprecated.
    We move this driver to new api {get|set}_link_ksettings.
    
    Signed-off-by: Philippe Reynes <tremyfr@gmail.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>

commit 971d3a44c00dcb27353f929c4c28367956c15527
Author: Philippe Reynes <tremyfr@gmail.com>
Date:   Sun Sep 11 17:54:03 2016 +0200

    net: ethernet: apm: xgene: use phydev from struct net_device
    
    The private structure contain a pointer to phydev, but the structure
    net_device already contain such pointer. So we can remove the pointer
    phy_dev in the private structure, and update the driver to use the
    one contained in struct net_device.
    
    Signed-off-by: Philippe Reynes <tremyfr@gmail.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>

commit 715f5552b1e90ba3eecf6d1a6d044d0d5226663f
Author: Xin Long <lucien.xin@gmail.com>
Date:   Sat Sep 10 23:11:23 2016 +0800

    sctp: hold the transport before using it in sctp_hash_cmp
    
    Since commit 4f0087812648 ("sctp: apply rhashtable api to send/recv
    path"), sctp uses transport rhashtable with .obj_cmpfn sctp_hash_cmp,
    in which it compares the members of the transport with the rhashtable
    args to check if it's the right transport.
    
    But sctp uses the transport without holding it in sctp_hash_cmp, it can
    cause a use-after-free panic. As after it gets transport from hashtable,
    another CPU may close the sk and free the asoc. In sctp_association_free,
    it frees all the transports, meanwhile, the assoc's refcnt may be reduced
    to 0, assoc can be destroyed by sctp_association_destroy.
    
    So after that, transport->assoc is actually an unavailable memory address
    in sctp_hash_cmp. Although sctp_hash_cmp is under rcu_read_lock, it still
    can not avoid this, as assoc is not freed by RCU.
    
    This patch is to hold the transport before checking it's members with
    sctp_transport_hold, in which it checks the refcnt first, holds it if
    it's not 0.
    
    Fixes: 4f0087812648 ("sctp: apply rhashtable api to send/recv path")
    Signed-off-by: Xin Long <lucien.xin@gmail.com>
    Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>

commit a5f54fcc8a63f4e93ea48243c3a762aa848299d5
Author: Wei Yongjun <weiyongjun1@huawei.com>
Date:   Sat Sep 10 12:31:30 2016 +0000

    net: ethernet: dwmac: fix non static symbol warning
    
    Fixes the following sparse warning:
    
    drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c:172:1: warning:
     symbol 'stm32_dwmac_pm_ops' was not declared. Should it be static?
    
    Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>

commit a7c22bda52e24094c7bc96afcd897ddad2b28bc0
Author: Wei Yongjun <weiyongjun1@huawei.com>
Date:   Sat Sep 10 11:17:57 2016 +0000

    net: macb: fix missing unlock on error in macb_start_xmit()
    
    Fix missing unlock before return from function macb_start_xmit()
    in the error handling case.
    
    Fixes: 007e4ba3ee13 ("net: macb: initialize checksum when using
    checksum offloading")
    Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
    Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>

commit 99c1790e5bbd31fe2b646bff868a55a13b1eeeb2
Author: Michael Ellerman <mpe@ellerman.id.au>
Date:   Sat Sep 10 19:59:05 2016 +1000

    net: Remove NO_IRQ from powerpc-only network drivers
    
    We'd like to eventually remove NO_IRQ on powerpc, so remove usages of it
    from powerpc-only drivers.
    
    Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
    Signed-off-by: David S. Miller <davem@davemloft.net>

commit c20cb8119337052a84e40cba94af732d870e22e3
Author: Wei Yongjun <weiyongjun1@huawei.com>
Date:   Sat Sep 10 00:56:55 2016 +0000

    tipc: fix possible memory leak in tipc_udp_enable()
    
    'ub' is malloced in tipc_udp_enable() and should be freed before
    leaving from the error handling cases, otherwise it will cause
    memory leak.
    
    Fixes: ba5aa84a2d22 ("tipc: split UDP nl address parsing")
    Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>

commit 9c0da3cc61f1233c2782e2d3d91e3d0707dd4ba5
Author: Mark Rutland <mark.rutland@arm.com>
Date:   Fri Sep 2 17:34:50 2016 +0100

    ARM: dts: explicitly mark skeleton.dtsi as deprecated
    
    As noted in commit 3ebee5a2e141496b ("arm64: dts: kill skeleton.dtsi"),
    there are a number of problems with skeleton.dtsi, and it would be
    prefereable to remove it entirely. As there are a large number of
    existing users, fixing these up will take a while.
    
    This patch adds a note to arm's skeleton.dtsi noting that this is the
    case, to make this more obvious and hopefully minimize new uptake of
    skeleton.dtsi in the mean time.
    
    Signed-off-by: Mark Rutland <mark.rutland@arm.com>
    Acked-by: Rob Herring <robh@kernel.org>
    Cc: Arnd Bergmann <arnd@arndb.de>
    Cc: Olof Johansson <olof@lixom.net>
    Signed-off-by: Arnd Bergmann <arnd@arndb.de>

commit 28b89b9e6f7b6c8fef7b3af39828722bca20cfee
Author: Joonwoo Park <joonwoop@codeaurora.org>
Date:   Sun Sep 11 21:14:58 2016 -0700

    cpuset: handle race between CPU hotplug and cpuset_hotplug_work
    
    A discrepancy between cpu_online_mask and cpuset's effective_cpus
    mask is inevitable during hotplug since cpuset defers updating of
    effective_cpus mask using a workqueue, during which time nothing
    prevents the system from more hotplug operations.  For that reason
    guarantee_online_cpus() walks up the cpuset hierarchy until it finds
    an intersection under the assumption that top cpuset's effective_cpus
    mask intersects with cpu_online_mask even with such a race occurring.
    
    However a sequence of CPU hotplugs can open a time window, during which
    none of the effective CPUs in the top cpuset intersect with
    cpu_online_mask.
    
    For example when there are 4 possible CPUs 0-3 and only CPU0 is online:
    
      ========================  ===========================
       cpu_online_mask           top_cpuset.effective_cpus
      ========================  ===========================
       echo 1 > cpu2/online.
       CPU hotplug notifier woke up hotplug work but not yet scheduled.
          [0,2]                     [0]
    
       echo 0 > cpu0/online.
       The workqueue is still runnable.
          [2]                       [0]
      ========================  ===========================
    
      Now there is no intersection between cpu_online_mask and
      top_cpuset.effective_cpus.  Thus invoking sys_sched_setaffinity() at
      this moment can cause following:
    
       Unable to handle kernel NULL pointer dereference at virtual address 000000d0
       ------------[ cut here ]------------
       Kernel BUG at ffffffc0001389b0 [verbose debug info unavailable]
       Internal error: Oops - BUG: 96000005 [#1] PREEMPT SMP
       Modules linked in:
       CPU: 2 PID: 1420 Comm: taskset Tainted: G        W       4.4.8+ #98
       task: ffffffc06a5c4880 ti: ffffffc06e124000 task.ti: ffffffc06e124000
       PC is at guarantee_online_cpus+0x2c/0x58
       LR is at cpuset_cpus_allowed+0x4c/0x6c
       <snip>
       Process taskset (pid: 1420, stack limit = 0xffffffc06e124020)
       Call trace:
       [<ffffffc0001389b0>] guarantee_online_cpus+0x2c/0x58
       [<ffffffc00013b208>] cpuset_cpus_allowed+0x4c/0x6c
       [<ffffffc0000d61f0>] sched_setaffinity+0xc0/0x1ac
       [<ffffffc0000d6374>] SyS_sched_setaffinity+0x98/0xac
       [<ffffffc000085cb0>] el0_svc_naked+0x24/0x28
    
    The top cpuset's effective_cpus are guaranteed to be identical to
    cpu_online_mask eventually.  Hence fall back to cpu_online_mask when
    there is no intersection between top cpuset's effective_cpus and
    cpu_online_mask.
    
    Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
    Acked-by: Li Zefan <lizefan@huawei.com>
    Cc: Tejun Heo <tj@kernel.org>
    Cc: cgroups@vger.kernel.org
    Cc: linux-kernel@vger.kernel.org
    Cc: <stable@vger.kernel.org> # 3.17+
    Signed-off-by: Tejun Heo <tj@kernel.org>

commit 3e1be7ad2d38c6bd6aeef96df9bd0a7822f4e51c
Author: Baoquan He <bhe@redhat.com>
Date:   Fri Sep 9 22:43:12 2016 +0800

    bnx2: Reset device during driver initialization
    
    When system enters into kdump kernel because of kernel panic, it won't
    shutdown devices. On-flight DMA will continue transferring data until
    device driver initializes. All devices are supposed to reset during
    driver initialization. And this property is used to fix the kdump
    failure in system with intel iommu. Other systems with hardware iommu
    should be similar. Please check commit 091d42e ("iommu/vt-d: Copy
    translation tables from old kernel") and those commits around.
    
    But bnx2 driver doesn't reset device during driver initialization. The
    device resetting is deferred to net device up stage. This will cause
    hardware iommu handling failure on bnx2 device. And its resetting relies
    on firmware. So in this patch move the firmware requesting code to earlier
    bnx2_init_one(), then next call bnx2_reset_chip to reset device.
    
    Signed-off-by: Baoquan He <bhe@redhat.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>

commit 308433155a67cb097142292c8943e0aa8d1a1c79
Author: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Date:   Thu Sep 8 12:50:43 2016 -0400

    net: bridge: add helper to call /sbin/bridge-stp
    
    If /sbin/bridge-stp is available on the system, bridge tries to execute
    it instead of the kernel implementation when starting/stopping STP.
    
    If anything goes wrong with /sbin/bridge-stp, bridge silently falls back
    to kernel STP, making hard to debug userspace STP.
    
    This patch adds a br_stp_call_user helper to start/stop userspace STP
    and debug errors from the program: abnormal exit status is stored in the
    lower byte and normal exit status is stored in higher byte.
    
    Below is a simple example on a kernel with dynamic debug enabled:
    
        # ln -s /bin/false /sbin/bridge-stp
        # brctl stp br0 on
        br0: failed to start userspace STP (256)
        # dmesg
        br0: /sbin/bridge-stp exited with code 1
        br0: failed to start userspace STP (256)
        br0: using kernel STP
    
    Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>

commit 5eb0d6eb3fac3daa60d9190eed9fa41cf809c756
Author: Boris Brezillon <boris.brezillon@free-electrons.com>
Date:   Tue Sep 13 15:58:29 2016 +0200

    irqchip/atmel-aic: Fix potential deadlock in ->xlate()
    
    aic5_irq_domain_xlate() and aic_irq_domain_xlate() take the generic chip
    lock without disabling interrupts, which can lead to a deadlock if an
    interrupt occurs while the lock is held in one of these functions.
    
    Replace irq_gc_{lock,unlock}() calls by
    irq_gc_{lock_irqsave,unlock_irqrestore}() ones to prevent this bug from
    happening.
    
    Fixes: b1479ebb7720 ("irqchip: atmel-aic: Add atmel AIC/AIC5 drivers")
    Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
    Acked-by: Marc Zyngier <marc.zyngier@arm.com>
    Cc: Jason Cooper <jason@lakedaemon.net>
    Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
    Cc: stable@vger.kernel.org
    Cc: Alexandre Belloni <alexandre.belloni@free-electrons.com>
    Link: http://lkml.kernel.org/r/1473775109-4192-2-git-send-email-boris.brezillon@free-electrons.com
    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

commit ebf9ff753c041b296241990aef76163bbb2cc9c8
Author: Boris Brezillon <boris.brezillon@free-electrons.com>
Date:   Tue Sep 13 15:58:28 2016 +0200

    genirq: Provide irq_gc_{lock_irqsave,unlock_irqrestore}() helpers
    
    Some irqchip drivers need to take the generic chip lock outside of the
    irq context.
    
    Provide the irq_gc_{lock_irqsave,unlock_irqrestore}() helpers to allow
    one to disable irqs while entering a critical section protected by
    gc->lock.
    
    Note that we do not provide optimized version of these helpers for !SMP,
    because they are not called from the hot-path.
    
    [ tglx: Added a comment when these helpers should be [not] used ]
    
    Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
    Cc: Jason Cooper <jason@lakedaemon.net>
    Cc: Marc Zyngier <marc.zyngier@arm.com>
    Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
    Cc: stable@vger.kernel.org
    Cc: Alexandre Belloni <alexandre.belloni@free-electrons.com>
    Link: http://lkml.kernel.org/r/1473775109-4192-1-git-send-email-boris.brezillon@free-electrons.com
    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

commit ecebca79f6976ddaddfd054d699272515869ea28
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Mon Aug 29 19:16:13 2016 +0100

    dma-buf/sync-file: Avoid enable fence signaling if poll(.timeout=0)
    
    If we being polled with a timeout of zero, a nonblocking busy query,
    we don't need to install any fence callbacks as we will not be waiting.
    As we only install the callback once, the overhead comes from the atomic
    bit test that also causes serialisation between threads.
    
    Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
    Cc: Sumit Semwal <sumit.semwal@linaro.org>
    Cc: Gustavo Padovan <gustavo@padovan.org>
    Cc: linux-media@vger.kernel.org
    Cc: dri-devel@lists.freedesktop.org
    Cc: linaro-mm-sig@lists.linaro.org
    Reviewed-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
    Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>
    Link: http://patchwork.freedesktop.org/patch/msgid/20160829181613.30722-1-chris@chris-wilson.co.uk

commit 92467a5fd55974bae4209da4543d621df605db5e
Author: Lars Persson <lars.persson@axis.com>
Date:   Tue Aug 23 16:00:52 2016 +0200

    ARM: dts: artpec: set irq affinity on pmu interrupts
    
    The irq affinity is required for pmu interrupts.
    
    Signed-off-by: Lars Persson <larper@axis.com>
    Signed-off-by: Arnd Bergmann <arnd@arndb.de>

commit 1b875160af6ca08bcb63d0201f38cca98e16601c
Author: Lars Persson <lars.persson@axis.com>
Date:   Tue Aug 23 16:00:51 2016 +0200

    ARM: dts: artpec: use optimized pl310 settings
    
    Use the cache settings that were determined to give best performance
    on artpec-6 typical workloads.
    
    Signed-off-by: Lars Persson <larper@axis.com>
    Signed-off-by: Arnd Bergmann <arnd@arndb.de>

commit d09ea47ac8dbd391d8d1103ffe841c75f0c1d8e7
Author: Lars Persson <lars.persson@axis.com>
Date:   Tue Aug 23 16:00:50 2016 +0200

    ARM: dts: artpec: use clock binding header
    
    Use defines from the clock binding header as clock indexes.
    
    Signed-off-by: Lars Persson <larper@axis.com>
    Signed-off-by: Arnd Bergmann <arnd@arndb.de>

commit ba6d018e3d2f6a0fad58a668cadf66b2d1f80f59
Author: Nicolas Iooss <nicolas.iooss_linux@m4x.org>
Date:   Sat Sep 10 20:30:45 2016 +0200

    x86/mm/pkeys: Do not skip PKRU register if debug registers are not used
    
    __show_regs() fails to dump the PKRU state when the debug registers are in
    their default state because there is a return statement on the debug
    register state.
    
    Change the logic to report PKRU value even when debug registers are in
    their default state.
    
    Fixes:c0b17b5bd4b7 ("x86/mm/pkeys: Dump PKRU with other kernel registers")
    Signed-off-by: Nicolas Iooss <nicolas.iooss_linux@m4x.org>
    Acked-by: Dave Hansen <dave.hansen@linux.intel.com>
    Link: http://lkml.kernel.org/r/20160910183045.4618-1-nicolas.iooss_linux@m4x.org
    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

commit 69b05825e1f883d15d3d051d0eab3171e247ecaa
Author: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Date:   Tue Sep 13 19:37:53 2016 +0900

    ALSA: seq: fix to copy from/to user space
    
    When checking value of request for copy operation, current implementation
    compares shifted value to macros, while these macros are already shifted.
    As a result, it never performs to copy from/to user space.
    
    This commit fixes the bug.
    
    Fixes: 8ce8eb601c71('ALSA: seq: add an alternative way to handle ioctl requests'
    Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
    Signed-off-by: Takashi Iwai <tiwai@suse.de>

commit d2f3e1058c7ff9dc18d14548f6263dcf13af67f7
Author: Simon Chopin <chopin.simon@gmail.com>
Date:   Sat Sep 10 07:11:52 2016 +0200

    staging: fwserial: fix checkpatch permission warnings
    
    Fix the following warnings:
    Symbolic permissions are not preferred. Consider using octal permissions.
    
    Signed-off-by: Simon Chopin <chopin.simon@gmail.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

commit 4854f175c3182816d906c4bc34be5f30556346a5
Author: Johannes Berg <johannes.berg@intel.com>
Date:   Tue Sep 13 15:39:29 2016 +0200

    mac80211: remove useless open_count check
    
    __ieee80211_suspend() checks early on if there's anything
    to do by checking open_count, so there's no need to check
    again later in the function. Remove the useless check.
    
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>

commit 7cc4ef8ed132e72ba44804cae3ddb2587ff757d6
Author: Borislav Petkov <bp@suse.de>
Date:   Mon Sep 12 09:59:41 2016 +0200

    x86/RAS/mce_amd_inj: Fix some W= warnings
    
    In particular:
    
      arch/x86/ras/mce_amd_inj.c: In function ‘prepare_msrs’:
      arch/x86/ras/mce_amd_inj.c:249:13: warning: declaration of ‘i_mce’ shadows a global declaration [-Wshadow]
        struct mce i_mce = *(struct mce *)info;
                   ^~~~~
    
      arch/x86/ras/mce_amd_inj.c: In function ‘init_mce_inject’:
      arch/x86/ras/mce_amd_inj.c:453:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
        for (i = 0; i < ARRAY_SIZE(dfs_fls); i++) {
    
    Signed-off-by: Borislav Petkov <bp@suse.de>
    Link: http://lkml.kernel.org/r/20160912075941.24699-16-bp@alien8.de
    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

commit a884675b873a0185d2626d1f304987c94cef6d74
Author: Yazen Ghannam <Yazen.Ghannam@amd.com>
Date:   Mon Sep 12 09:59:40 2016 +0200

    x86/MCE/AMD, EDAC: Handle reserved bank 4 on Fam17h properly
    
    Bank 4 is reserved on family 0x17 and shouldn't generate any MCE
    records. However, broken hardware and software is not something unheard
    of so warn about bank 4 errors. They shouldn't be coming from bank 4
    naturally but users can still use mce_amd_inj to simulate errors from it
    for testing purposed.
    
    Also, avoid special handling in the injector mce_amd_inj like it is
    being done on the older families.
    
    [ bp: Rewrite commit message and merge into one patch. Use boot_cpu_data. ]
    
    Signed-off-by: Yazen Ghannam <Yazen.Ghannam@amd.com>
    Signed-off-by: Borislav Petkov <bp@suse.de>
    Reviewed-by: Aravind Gopalakrishnan  <aravindksg.lkml@gmail.com>
    Link: http://lkml.kernel.org/r/1473384591-5323-1-git-send-email-Yazen.Ghannam@amd.com
    Link: http://lkml.kernel.org/r/1473384591-5323-2-git-send-email-Yazen.Ghannam@amd.com
    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

commit 4f29b73bae158e3635b8f289f77376b054904ef5
Author: Yazen Ghannam <Yazen.Ghannam@amd.com>
Date:   Mon Sep 12 09:59:39 2016 +0200

    x86/mce/AMD: Extract the error address on SMCA systems
    
    The MCA_ADDR registers on Scalable MCA systems contain the ErrorAddr
    in bits [55:0] and the least significant bit of the address in bits
    [61:56]. We should extract the valid ErrorAddr bits from the MCA_ADDR
    register rather than saving the raw value to struct mce.
    
    Signed-off-by: Yazen Ghannam <Yazen.Ghannam@amd.com>
    Signed-off-by: Borislav Petkov <bp@suse.de>
    Link: http://lkml.kernel.org/r/1473275643-1721-1-git-send-email-Yazen.Ghannam@amd.com
    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

commit 4b711f92c9b21878794597997ecda1428acc334c
Author: Yazen Ghannam <Yazen.Ghannam@amd.com>
Date:   Mon Sep 12 09:59:38 2016 +0200

    x86/mce, EDAC/mce_amd: Print MCA_SYND and MCA_IPID during MCE on SMCA systems
    
    The MCA_SYND and MCA_IPID registers contain valuable information and
    should be included in MCE output. The MCA_SYND register contains
    syndrome and other error information, and the MCA_IPID register will
    uniquely identify the MCA bank's type without having to rely on system
    software.
    
    Signed-off-by: Yazen Ghannam <Yazen.Ghannam@amd.com>
    Signed-off-by: Borislav Petkov <bp@suse.de>
    Link: http://lkml.kernel.org/r/1472680624-34221-2-git-send-email-Yazen.Ghannam@amd.com
    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

commit 5828c46f2c07b97d758da6dc6afd5c374768d44d
Author: Yazen Ghannam <Yazen.Ghannam@amd.com>
Date:   Mon Sep 12 09:59:37 2016 +0200

    x86/mce/AMD: Save MCA_IPID in MCE struct on SMCA systems
    
    The MCA_IPID register uniquely identifies a bank's type and instance
    on Scalable MCA systems. We should save the value of this register
    in struct mce along with the other relevant error information. This
    ensures that we can decode errors without relying on system software to
    correlate the bank to the type.
    
    Signed-off-by: Yazen Ghannam <Yazen.Ghannam@amd.com>
    Signed-off-by: Borislav Petkov <bp@suse.de>
    Link: http://lkml.kernel.org/r/1472680624-34221-1-git-send-email-Yazen.Ghannam@amd.com
    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

commit 66ef269dbbe45e264ccf7146d5db32b04478d148
Author: Yazen Ghannam <Yazen.Ghannam@amd.com>
Date:   Mon Sep 12 09:59:36 2016 +0200

    x86/mce/AMD: Ensure the deferred error interrupt is of type APIC on SMCA systems
    
    The Deferred Error Interrupt Type is set per bank on Scalable MCA
    systems. This is done in a bitfield in the MCA_CONFIG register of each
    bank. We should set its type to APIC-based interrupt and not assume BIOS
    has set it for us.
    
    Signed-off-by: Yazen Ghannam <Yazen.Ghannam@amd.com>
    Signed-off-by: Borislav Petkov <bp@suse.de>
    Link: http://lkml.kernel.org/r/1472737486-1720-1-git-send-email-Yazen.Ghannam@amd.com
    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

commit 87a6d4091bd795b43d684bfc87253e04a263af1c
Author: Yazen Ghannam <Yazen.Ghannam@amd.com>
Date:   Mon Sep 12 09:59:35 2016 +0200

    x86/mce/AMD: Update sysfs bank names for SMCA systems
    
    Define a bank's sysfs filename based on its IP type and InstanceId.
    
    Credits go to Aravind  for:
     * The general idea and proto- get_name().
     * Defining smca_umc_block_names[] and buf_mcatype[].
    
    Signed-off-by: Yazen Ghannam <Yazen.Ghannam@amd.com>
    Signed-off-by: Borislav Petkov <bp@suse.de>
    Cc: Aravind Gopalakrishnan <aravindksg.lkml@gmail.com>
    Link: http://lkml.kernel.org/r/1473193490-3291-2-git-send-email-Yazen.Ghannam@amd.com
    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

commit 5896820e0aa32572ad03b30563c539655b6c6375
Author: Yazen Ghannam <Yazen.Ghannam@amd.com>
Date:   Mon Sep 12 09:59:34 2016 +0200

    x86/mce/AMD, EDAC/mce_amd: Define and use tables for known SMCA IP types
    
    Scalable MCA defines a number of IP types. An MCA bank on an SMCA
    system is defined as one of these IP types. A bank's type is uniquely
    identified by the combination of the HWID and MCATYPE values read from
    its MCA_IPID register.
    
    Add the required tables in order to be able to lookup error descriptions
    based on a bank's type and the error's extended error code.
    
    [ bp: Align comments, simplify a bit. ]
    
    Signed-off-by: Yazen Ghannam <Yazen.Ghannam@amd.com>
    Signed-off-by: Borislav Petkov <bp@suse.de>
    Link: http://lkml.kernel.org/r/1472741832-1690-1-git-send-email-Yazen.Ghannam@amd.com
    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

commit 856095b1794be487527771dbd2fe28e34e94b266
Author: Yazen Ghannam <Yazen.Ghannam@amd.com>
Date:   Mon Sep 12 09:59:33 2016 +0200

    EDAC/mce_amd: Use SMCA prefix for error descriptions arrays
    
    The error descriptions defined for Fam17h can be reused for other SMCA
    systems, so their names should reflect this.
    
    Change f17h prefix to smca for error descriptions.
    
    Signed-off-by: Yazen Ghannam <Yazen.Ghannam@amd.com>
    Signed-off-by: Borislav Petkov <bp@suse.de>
    Link: http://lkml.kernel.org/r/1472673994-12235-4-git-send-email-Yazen.Ghannam@amd.com
    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

commit c019b951e1f9f1de0c5b0726032e3adf34c523a7
Author: Yazen Ghannam <Yazen.Ghannam@amd.com>
Date:   Mon Sep 12 09:59:32 2016 +0200

    EDAC/mce_amd: Add missing SMCA error descriptions
    
    Add missing SMCA error descriptions to the error descriptions arrays.
    
    Signed-off-by: Yazen Ghannam <Yazen.Ghannam@amd.com>
    Signed-off-by: Borislav Petkov <bp@suse.de>
    Link: http://lkml.kernel.org/r/1472673994-12235-3-git-send-email-Yazen.Ghannam@amd.com
    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

commit cfee4f6f0b2026380c6bc6913dbd27943df17371
Author: Yazen Ghannam <Yazen.Ghannam@amd.com>
Date:   Mon Sep 12 09:59:31 2016 +0200

    x86/mce/AMD: Read MSRs on the CPU allocating the threshold blocks
    
    Scalable MCA systems allow non-core MCA banks to only be accessible by
    certain CPUs. The MSRs for these banks are Read-as-Zero on other CPUs.
    
    During allocate_threshold_blocks(), get_block_address() can be scheduled
    on CPUs other than the one allocating the block. This causes the MSRs to
    be read on the wrong CPU and results in incorrect behavior.
    
    Add a @cpu parameter to get_block_address() and pass this in to ensure
    that the MSRs are only read on the CPU that is allocating the block.
    
    Signed-off-by: Yazen Ghannam <Yazen.Ghannam@amd.com>
    Signed-off-by: Borislav Petkov <bp@suse.de>
    Link: http://lkml.kernel.org/r/1472673994-12235-2-git-send-email-Yazen.Ghannam@amd.com
    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

commit bad744b7f29d264c2c2ad8fb723dd480e6c9b007
Author: Yazen Ghannam <Yazen.Ghannam@amd.com>
Date:   Mon Sep 12 09:59:30 2016 +0200

    x86/RAS: Add syndrome support to mce_amd_inj
    
    Add a debugfs file which holds the error syndrome (written into
    MCA_SYND) of an injected error. Only write it on SMCA systems. Update
    README file, while at it.
    
    Signed-off-by: Yazen Ghannam <Yazen.Ghannam@amd.com>
    Signed-off-by: Borislav Petkov <bp@suse.de>
    Link: http://lkml.kernel.org/r/1467633035-32080-3-git-send-email-Yazen.Ghannam@amd.com
    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

commit b300e87300b68120aa5374341b252875a1cb6ea1
Author: Yazen Ghannam <Yazen.Ghannam@amd.com>
Date:   Mon Sep 12 09:59:29 2016 +0200

    EDAC/mce_amd: Print syndrome register value on SMCA systems
    
    Print SyndV bit status and print the raw value of the MCA_SYND register.
    Further decoding of the syndrome from struct mce.synd can be done in
    other places where appropriate, e.g. DRAM ECC.
    
    Boris: make the error stanza more compact by putting the error address
    and syndrome on the same line:
    
      [Hardware Error]: Corrected error, no action required.
      [Hardware Error]: CPU:2 (17:0:0) MC4_STATUS[-|CE|-|PCC|AddrV|-|-|SyndV|CECC]: 0x96204100001e0117
      [Hardware Error]: Error Addr: 0x000000007f4c52e3, Syndrome: 0x0000000000000000
      [Hardware Error]: Invalid IP block specified.
      [Hardware Error]: cache level: L3/GEN, tx: DATA, mem-tx: RD
    
    Signed-off-by: Yazen Ghannam <Yazen.Ghannam@amd.com>
    Signed-off-by: Borislav Petkov <bp@suse.de>
    Link: http://lkml.kernel.org/r/1467633035-32080-2-git-send-email-Yazen.Ghannam@amd.com
    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

commit db819d60f6720080150a365080ff656cf239f88f
Author: Yazen Ghannam <Yazen.Ghannam@amd.com>
Date:   Mon Sep 12 09:59:28 2016 +0200

    x86/mce: Add support for new MCA_SYND register
    
    Syndrome information is no longer contained in MCA_STATUS for SMCA
    systems but in a new register - MCA_SYND.
    
    Add a synd field to struct mce to hold MCA_SYND register value. Add it
    to the end of struct mce to maintain compatibility with old versions of
    mcelog. Also, add it to the respective tracepoint.
    
    Signed-off-by: Yazen Ghannam <Yazen.Ghannam@amd.com>
    Signed-off-by: Borislav Petkov <bp@suse.de>
    Link: http://lkml.kernel.org/r/1467633035-32080-1-git-send-email-Yazen.Ghannam@amd.com
    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

commit 74ab0e7a836a7df772af50cac21267eb43688841
Author: Yazen Ghannam <Yazen.Ghannam@amd.com>
Date:   Mon Sep 12 09:59:27 2016 +0200

    x86/mce/AMD: Use msr_ops.misc() in allocate_threshold_blocks()
    
    Change MSR_IA32_MCx_MISC() macro to msr_ops.misc() because SMCA machines
    define a different set of MSRs and msr_ops will give you the correct
    MISC register.
    
    Signed-off-by: Yazen Ghannam <Yazen.Ghannam@amd.com>
    Signed-off-by: Borislav Petkov <bp@suse.de>
    Link: http://lkml.kernel.org/r/1468269447-8808-1-git-send-email-Yazen.Ghannam@amd.com
    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

commit 1d191e1057aec4f9f635556d49f4f0ef90b704d4
Author: Bhumika Goyal <bhumirks@gmail.com>
Date:   Tue Sep 13 17:41:26 2016 +0530

    Staging: wilc1000: Remove struct typedef
    
    Remove typedef from structure tstrRSSI as using typedef for
    structures is not preferred.
    Found using coccinelle:
    
    @r1@
    type T;
    @@
    
    typedef struct { ... } T;
    
    @script:python c1@
    T2;
    T << r1.T;
    @@
    if T[-2:] =="_t":
      coccinelle.T2 = T[:-2];
      print T
    else:
      coccinelle.T2=T;
    
    @r2@
    type r1.T;
    identifier c1.T2;
    @@
    -typedef
    struct
    + T2
    { ... }
    -T
    ;
    
    @r3@
    type r1.T;
    identifier c1.T2;
    @@
    - T
    + struct T2
    
    Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

commit 65f5c3ea622dfca230e96e5098603f1df9e0a902
Author: Ryan Swan <ryan@ryanswan.com>
Date:   Mon Sep 12 09:58:20 2016 -0400

    staging: vme/devices: vme_user.c: fix: converted decimal permissions to octal
    
    Ran checkpatch.pl -f vme_user.c
    Fixed: ERROR: Use 4 digit octal (0777) not decimal permissions
    
    Signed-off-by: Ryan Swan <ryan@ryanswan.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

commit b9ac4b65b5c0b16a34c12e3f0a3edf1452d4c34a
Author: sayli karnik <karniksayli1995@gmail.com>
Date:   Mon Sep 12 20:54:07 2016 +0530

    staging: gs_fpga_boot: Remove multiple blank lines
    
    This patch fixes the following checkpatch warning for the gs_fpgaboot
    driver:
    CHECK: Please don't use multiple blank lines.
    
    Signed-off-by: sayli karnik <karniksayli1995@gmail.com>
    Acked-by: Julia Lawall <julia.lawall@lip6.fr>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

commit c7e65f4d2f7968de8605ef1b83ac1019e8e51d22
Author: sayli karnik <karniksayli1995@gmail.com>
Date:   Tue Sep 13 02:47:28 2016 +0530

    staging: ks7010: Remove the explicit NULL comparison
    
    The patch removes the explicit null comparisons entirely for the ks7010 driver.
    This was detected by checkpatch.pl
    
    Signed-off-by: sayli karnik <karniksayli1995@gmail.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

commit 8b70d6961f03483a7c9db9aecba2c3b3b467cce2
Author: Mike Kofron <mpkofron@gmail.com>
Date:   Mon Sep 12 14:23:31 2016 -0400

    staging: netlogic: Make net_device_ops const
    
    This patch fixes the checkpatch.pl warning:
    
    WARNING: struct net_device_ops should normally be const
    
    Signed-off-by: Mike Kofron <mpkofron@gmail.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

commit b8a7b474672321c7f0550620b32cd676501c3506
Author: Bhumika Goyal <bhumirks@gmail.com>
Date:   Tue Sep 13 00:38:19 2016 +0530

    Staging: vt6655: Remove unused function vnt_key_init_table
    
    The function vnt_key_init_table is not used anywhere in the kernel.
    Therefore, remove the function definition and prototype.
    Grepped to find occurences.
    
    Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

commit c371ffa79c4ca29b8cd7da4d30157179162130c8
Author: Gargi Sharma <gs051095@gmail.com>
Date:   Tue Sep 13 00:42:07 2016 +0530

    staging: slicoss: add new line after struct declaration
    
    checkpatch generates a warning for no blank line after struct
    declaration. Inserted a new line.
    
    Signed-off-by: Gargi Sharma <gs051095@gmail.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

commit 602facfd96397298461cd71f6a6f9e17b82f9788
Author: Andrey Shvetsov <andrey.shvetsov@k2l.de>
Date:   Mon Sep 12 16:26:14 2016 +0200

    staging: most: core: constify structure member
    
    This patch adds the const qualifier to the declaration of the member
    name_suffix of structure most_channel_capability. It is needed since it
    points to string literals.
    
    Signed-off-by: Andrey Shvetsov <andrey.shvetsov@k2l.de>
    Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

commit bc5f96a15658f390aba8688408526542c9329d7e
Author: Christian Gromm <christian.gromm@microchip.com>
Date:   Mon Sep 12 16:26:13 2016 +0200

    staging: most: core: show all linked channels
    
    This patch is needed to have all linked channels being reported by the
    show() function of the attribute file add_link. Currently user space can
    only read back the latest link that has been established to a certain
    channel.
    
    Signed-off-by: Andrey Shvetsov <andrey.shvetsov@k2l.de>
    Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

commit 25b80dbe3fa6d76d8f19af0623d1fd8ed0dd671e
Author: Bhumika Goyal <bhumirks@gmail.com>
Date:   Mon Sep 12 23:02:47 2016 +0530

    Staging: comedi: drivers: Delete NULL check before pci_dev_put
    
    The function pci_dev_put checks whether its argument is NULL and returns
    immediately. Therefore, NULL test before the call if not needed.
    Found using coccinelle:
    @@
    expression x;
    @@
    
    - if(x)
    - pci_dev_put(x);
    + pci_dev_put(x);
    
    Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
    Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

commit 6e30293976983daf09eea8e882d48a09c80d5987
Author: Matias Mucciolo <mmucciolo@suteba.org.ar>
Date:   Mon Sep 12 10:18:59 2016 -0300

    staging: comedi: comedi_fops: coding style fixes
    
    - Fixed coding style in comedi_fops.c Symbolic to octal permission.
    
    Signed-off-by: Matias Mucciolo <mmucciolo@suteba.org.ar>
    Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

commit 601e59fa5149f428737c569b7f8a01c6ccb3e223
Author: sayli karnik <karniksayli1995@gmail.com>
Date:   Mon Sep 12 17:13:09 2016 +0530

    staging: gdm724x: Add spaces around the '*' operator
    
    This patch fixes the checkpatch.pl warning:
    Spaces required around the '*' operator.
    
    Signed-off-by: sayli karnik <karniksayli1995@gmail.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

commit 4a2a867f5bada15b3f81168089258a28eb02dc04
Author: Shaily Sangwan <shaily15297@yahoo.com>
Date:   Tue Sep 13 02:54:14 2016 +0530

    staging: rtl8712: fix block comments
    
    This patch fixes the following checkpatch.pl warning:
    Block comments use * on subsequent lines
    
    Signed-off-by: Shaily Sangwan <shaily15297@yahoo.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

commit 12bc1d1e9cb18176dcd80564067114b32d189d24
Author: Omri Arad <omriarad3@gmail.com>
Date:   Mon Sep 12 21:02:25 2016 +0300

    staging: rtl8712: fix coding style error reported from checkpatch
    
    removed the following:
    ERROR: code indent should use tabs where possible
    WARNING: please, no spaces at the start of a line
    WARNING: Statements should start on a tabstop
    
    Signed-off-by: Omri Arad <omriarad3@gmail.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

commit d147d54899339b321f8319dfb25d05f1eec0e77d
Author: Linus Walleij <linus.walleij@linaro.org>
Date:   Tue Sep 13 14:43:23 2016 +0200

    Revert "gpio: pca953x: initialize ret to zero to avoid returning garbage"
    
    This reverts commit 313b9a9938bf4076425741121d5d766826793e5d.
    
    This was already fixed by
    commit bf62efeb164343916ebb89dca6dfe5e6b6751700
    "gpio: pca954x: fix undefined error code from remove"
    
    The latter is a better fix since it makes it easier to detect
    erronous code by not assigning a default error code.
    
    Reported-by: Arnd Bergmann <arnd@arndb.de>
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

commit e2753293ac4bce8623650bb2d610b7e657bc869f
Author: Dave Hansen <dave.hansen@intel.com>
Date:   Mon Sep 12 13:38:42 2016 -0700

    x86/pkeys: Fix pkeys build breakage for some non-x86 arches
    
    Guenter Roeck reported breakage on the h8300 and c6x architectures (among
    others) caused by the new memory protection keys syscalls.  This patch does
    what Arnd suggested and adds them to kernel/sys_ni.c.
    
    Fixes: a60f7b69d92c ("generic syscalls: Wire up memory protection keys syscalls")
    Reported-and-tested-by: Guenter Roeck <linux@roeck-us.net>
    Signed-off-by: Dave Hansen <dave.hansen@intel.com>
    Acked-by: Arnd Bergmann <arnd@arndb.de>
    Cc: linux-arch@vger.kernel.org
    Cc: Dave Hansen <dave@sr71.net>
    Cc: linux-api@vger.kernel.org
    Link: http://lkml.kernel.org/r/20160912203842.48E7AC50@viggo.jf.intel.com
    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

commit 36e09e1f874baf581604a76ce81aae0538eb0a23
Author: Masahiro Yamada <yamada.masahiro@socionext.com>
Date:   Tue Sep 13 04:27:54 2016 +0900

    crypto: squash lines for simple wrapper functions
    
    Remove unneeded variables and assignments.
    
    Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
    Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

commit e9afc746299d39f415fdb13b1213137deb4fc497
Author: PrasannaKumar Muralidharan <prasannatsmkumar@gmail.com>
Date:   Sun Sep 11 20:54:26 2016 +0530

    hwrng: geode - Use linux/io.h instead of asm/io.h
    
    Fix checkpatch.pl warning by changing from asm/io.h to linux/io.h. In
    the mean time arrange the includes in alphabetical order.
    
    Signed-off-by: PrasannaKumar Muralidharan <prasannatsmkumar@gmail.com>
    Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

commit 6e9b5e76882cbdd99caaea50ef3917a31edead75
Author: PrasannaKumar Muralidharan <prasannatsmkumar@gmail.com>
Date:   Sun Sep 11 20:53:21 2016 +0530

    hwrng: geode - Migrate to managed API
    
    Use devm_ioremap and devm_hwrng_register instead of ioremap and
    hwrng_register. This removes error handling code. Also moved code around
    by removing goto statements. This improves code readability.
    
    Signed-off-by: PrasannaKumar Muralidharan <prasannatsmkumar@gmail.com>
    Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

commit 94879fa82275f161f3b4fdabab00cd4d625781f3
Author: Wei Yongjun <weiyongjun1@huawei.com>
Date:   Sat Sep 10 12:03:42 2016 +0000

    hwrng: st - Fix missing clk_disable_unprepare() on error in st_rng_probe()
    
    Fix the missing clk_disable_unprepare() before return
    from st_rng_probe() in the error handling case.
    
    Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
    Acked-by: Patrice Chotard <patrice.chotard@st.com>
    Acked-by: Peter Griffin <peter.griffin@linaro.org>
    Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

commit 31b2a73c9c5f1f02c896c4e434957b831dd50a7f
Author: PrasannaKumar Muralidharan <prasannatsmkumar@gmail.com>
Date:   Fri Sep 9 13:28:23 2016 +0530

    hwrng: amd - Migrate to managed API
    
    Managed API eliminates error handling code, thus reduces several lines
    of code.
    
    Signed-off-by: PrasannaKumar Muralidharan <prasannatsmkumar@gmail.com>
    Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

commit 58b022acac8dd435dad0b162ad92cbe8ec90a703
Author: PrasannaKumar Muralidharan <prasannatsmkumar@gmail.com>
Date:   Wed Sep 7 20:18:02 2016 +0530

    hwrng: core - Allocate memory during module init
 …
  • Loading branch information
mmotm auto import authored and hnaz committed Sep 15, 2016
1 parent 700603f commit adcc945
Show file tree
Hide file tree
Showing 6,682 changed files with 336,419 additions and 206,545 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
17 changes: 17 additions & 0 deletions CREDITS
Original file line number Diff line number Diff line change
Expand Up @@ -1090,6 +1090,10 @@ S: 6350 Stoneridge Mall Road
S: Pleasanton, CA 94588
S: USA

N: Dmitry Eremin-Solenikov
E: dbaryshkov@gmail.com
D: Power Supply Maintainer from v3.14 - v3.15

N: Doug Evans
E: dje@cygnus.com
D: Wrote Xenix FS (part of standard kernel since 0.99.15)
Expand Down Expand Up @@ -1944,6 +1948,11 @@ E: kraxel@bytesex.org
E: kraxel@suse.de
D: video4linux, bttv, vesafb, some scsi, misc fixes

N: Hans J. Koch
D: USERSPACE I/O, MAX6650
D: Hans passed away in June 2016, and will be greatly missed.
W: https://lwn.net/Articles/691000/

N: Harald Koenig
E: koenig@tat.physik.uni-tuebingen.de
D: XFree86 (S3), DCF77, some kernel hacks and fixes
Expand Down Expand Up @@ -3518,6 +3527,10 @@ S: 145 Howard St.
S: Northborough, MA 01532
S: USA

N: Doug Thompson
E: dougthompson@xmission.com
D: EDAC

N: Tommy Thorn
E: Tommy.Thorn@irisa.fr
W: http://www.irisa.fr/prive/thorn/index.html
Expand Down Expand Up @@ -3654,6 +3667,10 @@ S: Obere Heerbergstrasse 17
S: 97078 Wuerzburg
S: Germany

N: Jason Uhlenkott
E: juhlenko@akamai.com
D: I3000 EDAC driver

N: Greg Ungerer
E: gerg@snapgear.com
D: uClinux kernel hacker
Expand Down
29 changes: 26 additions & 3 deletions Documentation/ABI/testing/sysfs-bus-rbd
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,21 @@ Description:

Being used for adding and removing rbd block devices.

Usage: <mon ip addr> <options> <pool name> <rbd image name> [snap name]
Usage: <mon ip addr> <options> <pool name> <rbd image name> [<snap name>]

$ echo "192.168.0.1 name=admin rbd foo" > /sys/bus/rbd/add

The snapshot name can be "-" or omitted to map the image read/write. A <dev-id>
will be assigned for any registered block device. If snapshot is used, it will
be mapped read-only.

Removal of a device:
Usage: <dev-id> [force]

$ echo <dev-id> > /sys/bus/rbd/remove
$ echo 2 > /sys/bus/rbd/remove

Optional "force" argument which when passed will wait for running requests and
then unmap the image. Requests sent to the driver after initiating the removal
will be failed. (August 2016, since 4.9.)

What: /sys/bus/rbd/add_single_major
Date: December 2013
Expand All @@ -43,10 +47,25 @@ Description: Available only if rbd module is inserted with single_major
Entries under /sys/bus/rbd/devices/<dev-id>/
--------------------------------------------

client_addr

The ceph unique client entity_addr_t (address + nonce).
The format is <address>:<port>/<nonce>: '1.2.3.4:1234/5678' or
'[1:2:3:4:5:6:7:8]:1234/5678'. (August 2016, since 4.9.)

client_id

The ceph unique client id that was assigned for this specific session.

cluster_fsid

The ceph cluster UUID. (August 2016, since 4.9.)

config_info

The string written into /sys/bus/rbd/add{,_single_major}. (August
2016, since 4.9.)

features

A hexadecimal encoding of the feature bits for this image.
Expand Down Expand Up @@ -92,6 +111,10 @@ current_snap

The current snapshot for which the device is mapped.

snap_id

The current snapshot's id. (August 2016, since 4.9.)

parent

Information identifying the chain of parent images in a layered rbd
Expand Down
3 changes: 2 additions & 1 deletion Documentation/ABI/testing/sysfs-class-led
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ Description:
of led events.
You can change triggers in a similar manner to the way an IO
scheduler is chosen. Trigger specific parameters can appear in
/sys/class/leds/<led> once a given trigger is selected.
/sys/class/leds/<led> once a given trigger is selected. For
their documentation see sysfs-class-led-trigger-*.

What: /sys/class/leds/<led>/inverted
Date: January 2011
Expand Down
36 changes: 36 additions & 0 deletions Documentation/ABI/testing/sysfs-class-led-trigger-oneshot
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
What: /sys/class/leds/<led>/delay_on
Date: Jun 2012
KernelVersion: 3.6
Contact: linux-leds@vger.kernel.org
Description:
Specifies for how many milliseconds the LED has to stay at
LED_FULL brightness after it has been armed.
Defaults to 100 ms.

What: /sys/class/leds/<led>/delay_off
Date: Jun 2012
KernelVersion: 3.6
Contact: linux-leds@vger.kernel.org
Description:
Specifies for how many milliseconds the LED has to stay at
LED_OFF brightness after it has been armed.
Defaults to 100 ms.

What: /sys/class/leds/<led>/invert
Date: Jun 2012
KernelVersion: 3.6
Contact: linux-leds@vger.kernel.org
Description:
Reverse the blink logic. If set to 0 (default) blink on for
delay_on ms, then blink off for delay_off ms, leaving the LED
normally off. If set to 1, blink off for delay_off ms, then
blink on for delay_on ms, leaving the LED normally on.
Setting this value also immediately changes the LED state.

What: /sys/class/leds/<led>/shot
Date: Jun 2012
KernelVersion: 3.6
Contact: linux-leds@vger.kernel.org
Description:
Write any non-empty string to signal an events, this starts a
blink sequence if not already running.
2 changes: 1 addition & 1 deletion Documentation/ABI/testing/sysfs-class-mic.txt
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ Description:

What: /sys/class/mic/mic(x)/heartbeat_enable
Date: March 2015
KernelVersion: 3.20
KernelVersion: 4.4
Contact: Ashutosh Dixit <ashutosh.dixit@intel.com>
Description:
The MIC drivers detect and inform user space about card crashes
Expand Down
8 changes: 4 additions & 4 deletions Documentation/ABI/testing/sysfs-class-power
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Description:
What: /sys/class/power_supply/max14577-charger/device/fast_charge_timer
Date: October 2014
KernelVersion: 3.18.0
Contact: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Contact: Krzysztof Kozlowski <krzk@kernel.org>
Description:
This entry shows and sets the maximum time the max14577
charger operates in fast-charge mode. When the timer expires
Expand All @@ -36,7 +36,7 @@ Description:
What: /sys/class/power_supply/max77693-charger/device/fast_charge_timer
Date: January 2015
KernelVersion: 3.19.0
Contact: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Contact: Krzysztof Kozlowski <krzk@kernel.org>
Description:
This entry shows and sets the maximum time the max77693
charger operates in fast-charge mode. When the timer expires
Expand All @@ -50,7 +50,7 @@ Description:
What: /sys/class/power_supply/max77693-charger/device/top_off_threshold_current
Date: January 2015
KernelVersion: 3.19.0
Contact: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Contact: Krzysztof Kozlowski <krzk@kernel.org>
Description:
This entry shows and sets the charging current threshold for
entering top-off charging mode. When charging current in fast
Expand All @@ -65,7 +65,7 @@ Description:
What: /sys/class/power_supply/max77693-charger/device/top_off_timer
Date: January 2015
KernelVersion: 3.19.0
Contact: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Contact: Krzysztof Kozlowski <krzk@kernel.org>
Description:
This entry shows and sets the maximum time the max77693
charger operates in top-off charge mode. When the timer expires
Expand Down
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
31 changes: 0 additions & 31 deletions Documentation/ABI/testing/sysfs-i2c-bmp085

This file was deleted.

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
8 changes: 8 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 @@ -66,6 +72,7 @@ installmandocs: mandocs

# no-op for the DocBook toolchain
epubdocs:
latexdocs:

###
#External programs used
Expand Down Expand Up @@ -221,6 +228,7 @@ silent_gen_xml = :
echo "</programlisting>") > $@

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

###
# Help targets as used by the top-level makefile
Expand Down
Loading

0 comments on commit adcc945

Please sign in to comment.