1. 11 9月, 2017 1 次提交
  2. 09 9月, 2017 14 次提交
  3. 08 9月, 2017 4 次提交
    • I
      brcmfmac: feature check for multi-scheduled scan fails on bcm4345 devices · f957dd3c
      Ian W MORRISON 提交于
      The firmware feature check introduced for multi-scheduled scan is also
      failing for bcm4345 devices resulting in a firmware crash.
      The reason for this crash has not yet been root cause so this patch avoids
      the feature check for those device as a short-term fix.
      
      Fixes: 9fe929aa ("brcmfmac: add firmware feature detection for gscan feature")
      Cc: <stable@vger.kernel.org> # v4.13
      Signed-off-by: NIan W MORRISON <ianwmorrison@gmail.com>
      Acked-by: NArend van Spriel <arend.vanspriel@broadcom.com>
      Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
      f957dd3c
    • A
      isdn: isdnloop: fix logic error in isdnloop_sendbuf · eef5a7cc
      Arnd Bergmann 提交于
      gcc-7 found an ancient bug in the loop driver, leading to a condition that
      is always false, meaning we ignore the contents of 'card->flags' here:
      
      drivers/isdn/isdnloop/isdnloop.c:412:37: error: ?: using integer constants in boolean context, the expression will always evaluate to 'true' [-Werror=int-in-bool-context]
      
      This changes the braces in the expression to ensure we actually
      compare the flag bits, rather than comparing a constant. As Joe Perches
      pointed out, an earlier patch of mine incorrectly assumed this was a
      false-positive warning.
      
      Cc: Joe Perches <joe@perches.com>
      Link: https://patchwork.kernel.org/patch/9840289/Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      eef5a7cc
    • T
      bcache: initialize dirty stripes in flash_dev_run() · 175206cf
      Tang Junhui 提交于
      bcache uses a Proportion-Differentiation Controller algorithm to control
      writeback rate to cached devices. In the PD controller algorithm, dirty
      stripes of thin flash device should not be counted in, because flash only
      volumes never write back dirty data.
      
      Currently dirty stripe counter for thin flash device is not initialized
      when the thin flash device starts. Which means the following calculation
      in PD controller will reference an undefined dirty stripes number, and
      all cached devices attached to the same cache set where the thin flash
      device lies on may have an inaccurate writeback rate.
      
      This patch calles bch_sectors_dirty_init() in flash_dev_run(), to
      correctly initialize dirty stripe counter when the thin flash device
      starts to run. This patch also does following parameter data type change,
       -void bch_sectors_dirty_init(struct cached_dev *dc);
       +void bch_sectors_dirty_init(struct bcache_device *);
      to call this function conveniently in flash_dev_run().
      
      (Commit log is composed by Coly Li)
      Signed-off-by: NTang Junhui <tang.junhui@zte.com.cn>
      Reviewed-by: NColy Li <colyli@suse.de>
      Cc: stable@vger.kernel.org
      Signed-off-by: NJens Axboe <axboe@kernel.dk>
      175206cf
    • L
      iwlwifi: mvm: only send LEDS_CMD when the FW supports it · 2eabc84d
      Luca Coelho 提交于
      The LEDS_CMD command is only supported in some newer FW versions
      (e.g. iwlwifi-8000C-31.ucode), so we can't send it to older versions
      (such as iwlwifi-8000C-27.ucode).
      
      To fix this, check for a new bit in the FW capabilities TLV that tells
      when the command is supported.
      
      Note that the current version of -31.ucode in linux-firmware.git
      (31.532993.0) does not have this capability bit set, so the LED won't
      work, even though this version should support it.  But we will update
      this firmware soon, so it won't be a problem anymore.
      
      Fixes: 7089ae63 ("iwlwifi: mvm: use firmware LED command where applicable")
      Reported-by: NLinus Torvalds <torvalds@linux-foundation.org>
      Signed-off-by: NLuca Coelho <luciano.coelho@intel.com>
      Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
      2eabc84d
  4. 07 9月, 2017 21 次提交