1. 31 10月, 2016 1 次提交
    • F
      usb: add helper to extract bits 12:11 of wMaxPacketSize · 541b6fe6
      Felipe Balbi 提交于
      According to USB Specification 2.0 table 9-4,
      wMaxPacketSize is a bitfield. Endpoint's maxpacket
      is laid out in bits 10:0. For high-speed,
      high-bandwidth isochronous endpoints, bits 12:11
      contain a multiplier to tell us how many
      transactions we want to try per uframe.
      
      This means that if we want an isochronous endpoint
      to issue 3 transfers of 1024 bytes per uframe,
      wMaxPacketSize should contain the value:
      
      	1024 | (2 << 11)
      
      or 5120 (0x1400). In order to make Host and
      Peripheral controller drivers' life easier, we're
      adding a helper which returns bits 12:11. Note that
      no care is made WRT to checking endpoint type and
      gadget's speed. That's left for drivers to handle.
      Signed-off-by: NFelipe Balbi <felipe.balbi@linux.intel.com>
      541b6fe6
  2. 18 10月, 2016 1 次提交
    • D
      generic syscalls: kill cruft from removed pkey syscalls · 71757904
      Dave Hansen 提交于
      pkey_set() and pkey_get() were syscalls present in older versions
      of the protection keys patches.  They were fully excised from the
      x86 code, but some cruft was left in the generic syscall code.  The
      C++ comments were intended to help to make it more glaring to me to
      fix them before actually submitting them.  That technique worked,
      but later than I would have liked.
      
      I test-compiled this for arm64.
      
      Fixes: a60f7b69 ("generic syscalls: Wire up memory protection keys syscalls")
      Signed-off-by: NDave Hansen <dave.hansen@linux.intel.com>
      Acked-by: NArnd Bergmann <arnd@arndb.de>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: x86@kernel.org
      Cc: linux-arch@vger.kernel.org
      Cc: mgorman@techsingularity.net
      Cc: linux-api@vger.kernel.org
      Cc: linux-mm@kvack.org
      Cc: luto@kernel.org
      Cc: akpm@linux-foundation.org
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      71757904
  3. 15 10月, 2016 4 次提交
  4. 12 10月, 2016 2 次提交
  5. 08 10月, 2016 10 次提交
  6. 04 10月, 2016 4 次提交
  7. 01 10月, 2016 2 次提交
  8. 30 9月, 2016 8 次提交
  9. 28 9月, 2016 1 次提交
  10. 27 9月, 2016 2 次提交
  11. 26 9月, 2016 4 次提交
    • J
      cfg80211: add checks for beacon rate, extend to mesh · 8564e382
      Johannes Berg 提交于
      The previous commit added support for specifying the beacon rate
      for AP mode. Add features checks to this, and extend it to also
      support the rate configuration for mesh networks. For IBSS it's
      not as simple due to joining etc., so that's not yet supported.
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      8564e382
    • L
      netfilter: nft_log: complete NFTA_LOG_FLAGS attr support · ff107d27
      Liping Zhang 提交于
      NFTA_LOG_FLAGS attribute is already supported, but the related
      NF_LOG_XXX flags are not exposed to the userspace. So we cannot
      explicitly enable log flags to log uid, tcp sequence, ip options
      and so on, i.e. such rule "nft add rule filter output log uid"
      is not supported yet.
      
      So move NF_LOG_XXX macro definitions to the uapi/../nf_log.h. In
      order to keep consistent with other modules, change NF_LOG_MASK to
      refer to all supported log flags. On the other hand, add a new
      NF_LOG_DEFAULT_MASK to refer to the original default log flags.
      
      Finally, if user specify the unsupported log flags or NFTA_LOG_GROUP
      and NFTA_LOG_FLAGS are set at the same time, report EINVAL to the
      userspace.
      Signed-off-by: NLiping Zhang <liping.zhang@spreadtrum.com>
      Signed-off-by: NPablo Neira Ayuso <pablo@netfilter.org>
      ff107d27
    • P
      netfilter: nf_tables: add range expression · 0f3cd9b3
      Pablo Neira Ayuso 提交于
      Inverse ranges != [a,b] are not currently possible because rules are
      composites of && operations, and we need to express this:
      
      	data < a || data > b
      
      This patch adds a new range expression. Positive ranges can be already
      through two cmp expressions:
      
      	cmp(sreg, data, >=)
      	cmp(sreg, data, <=)
      
      This new range expression provides an alternative way to express this.
      Signed-off-by: NPablo Neira Ayuso <pablo@netfilter.org>
      0f3cd9b3
    • T
      ALSA: control: cage TLV_DB_RANGE_HEAD in kernel land because it was obsoleted · 318824d3
      Takashi Sakamoto 提交于
      In commit bf1d1c9b ("ALSA: tlv: add DECLARE_TLV_DB_RANGE()"), the new
      macro was added so that "dB range information can be specified without
      having to count the items manually for TLV_DB_RANGE_HEAD()". In short,
      TLV_DB_RANGE_HEAD macro was obsoleted.
      
      In commit 46e860f7 ("ALSA: rename TLV-related macros so that they're
      friendly to user applications"), TLV-related macros are exposed for
      applications in user land to get content of data structured by
      Type/Length/Value shape. The commit managed to expose TLV-related macros
      as many as possible, while obsoleted TLV_DB_RANGE_HEAD() was included to
      the list of exposed macros.
      
      This situation brings some confusions to application developers because
      they might think all exposed macros have their own purpose and useful for
      applications.
      
      For the reason, this commit moves TLV_DB_RANGE_HEAD macro from UAPI header
      to a header for kernel land, again. The above commit is done within the
      same development period for kernel 4.9, thus not published yet. This
      commit might certainly brings no confusions to user land.
      
      Reference: commit bf1d1c9b ("ALSA: tlv: add DECLARE_TLV_DB_RANGE()")
      Reference: commit 46e860f7 ("ALSA: rename TLV-related macros so that they're friendly to user applications")
      Signed-off-by: NTakashi Sakamoto <o-takashi@sakamocchi.jp>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      318824d3
  12. 25 9月, 2016 1 次提交