1. 27 5月, 2017 1 次提交
  2. 26 5月, 2017 1 次提交
    • P
      kobject: support passing in variables for synthetic uevents · f36776fa
      Peter Rajnoha 提交于
      This patch makes it possible to pass additional arguments in addition
      to uevent action name when writing /sys/.../uevent attribute. These
      additional arguments are then inserted into generated synthetic uevent
      as additional environment variables.
      
      Before, we were not able to pass any additional uevent environment
      variables for synthetic uevents. This made it hard to identify such uevents
      properly in userspace to make proper distinction between genuine uevents
      originating from kernel and synthetic uevents triggered from userspace.
      Also, it was not possible to pass any additional information which would
      make it possible to optimize and change the way the synthetic uevents are
      processed back in userspace based on the originating environment of the
      triggering action in userspace. With the extra additional variables, we are
      able to pass through this extra information needed and also it makes it
      possible to synchronize with such synthetic uevents as they can be clearly
      identified back in userspace.
      
      The format for writing the uevent attribute is following:
      
          ACTION [UUID [KEY=VALUE ...]
      
      There's no change in how "ACTION" is recognized - it stays the same
      ("add", "change", "remove"). The "ACTION" is the only argument required
      to generate synthetic uevent, the rest of arguments, that this patch
      adds support for, are optional.
      
      The "UUID" is considered as transaction identifier so it's possible to
      use the same UUID value for one or more synthetic uevents in which case
      we logically group these uevents together for any userspace listeners.
      The "UUID" is expected to be in "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
      format where "x" is a hex digit. The value appears in uevent as
      "SYNTH_UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" environment variable.
      
      The "KEY=VALUE" pairs can contain alphanumeric characters only. It's
      possible to define zero or more more pairs - each pair is then delimited
      by a space character " ". Each pair appears in synthetic uevents as
      "SYNTH_ARG_KEY=VALUE" environment variable. That means the KEY name gains
      "SYNTH_ARG_" prefix to avoid possible collisions with existing variables.
      To pass the "KEY=VALUE" pairs, it's also required to pass in the "UUID"
      part for the synthetic uevent first.
      
      If "UUID" is not passed in, the generated synthetic uevent gains
      "SYNTH_UUID=0" environment variable automatically so it's possible to
      identify this situation in userspace when reading generated uevent and so
      we can still make a difference between genuine and synthetic uevents.
      Signed-off-by: NPeter Rajnoha <prajnoha@redhat.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      f36776fa
  3. 19 5月, 2017 1 次提交
    • P
      iTCO_wdt: all versions count down twice · 1fccb730
      Paolo Bonzini 提交于
      The ICH9 is listed as having TCO v2, and indeed the behavior in the
      datasheet corresponds to v2 (for example the NO_REBOOT flag is
      accessible via the 16KiB-aligned Root Complex Base Address).
      
      However, the TCO counts twice just like in v1; the documentation
      of the SECOND_TO_STS bit says: "ICH9 sets this bit to 1 to indicate
      that the TIMEOUT bit had been (or is currently) set and a second
      timeout occurred before the TCO_RLD register was written. If this
      bit is set and the NO_REBOOT config bit is 0, then the ICH9 will
      reboot the system after the second timeout.  The same can be found
      in the BayTrail (Atom E3800) datasheet, and even HOWTOs around
      the Internet say that it will reboot after _twice_ the specified
      heartbeat.
      
      I did not find the Apollo Lake datasheet, but because v4/v5 has
      a SECOND_TO_STS bit just like the previous version I'm enabling
      this for Apollo Lake as well.
      
      Cc: linux-watchdog@vger.kernel.org
      Reviewed-by: NAndy Shevchenko <andy.shevchenko@gmail.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      Reviewed-by: NGuenter Roeck <linux@roeck-us.net>
      Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
      Signed-off-by: NWim Van Sebroeck <wim@iguana.be>
      1fccb730
  4. 17 5月, 2017 1 次提交
    • M
      doc-rst: fixed kernel-doc directives in usb/typec.rst · 5383fae7
      Markus Heiser 提交于
      Even if this file is not yet included in any toctree, it is parsed by
      Sphinx since it is named '.rst'. This patch fixes the following two
      ERRORs from Sphinx build:
      
      Documentation/usb/typec.rst:116: ERROR: Error in "kernel-doc" directive:
      invalid option block.
      
      .. kernel-doc:: drivers/usb/typec/typec.c
         :functions: typec_register_cable typec_unregister_cable typec_register_plug
         typec_unregister_plug
      
      Documentation/usb/typec.rst:139: ERROR: Error in "kernel-doc" directive:
      invalid option block.
      
      .. kernel-doc:: drivers/usb/typec/typec.c
         :functions: typec_set_data_role typec_set_pwr_role typec_set_vconn_role
         typec_set_pwr_opmode
      Signed-off-by: NMarkus Heiser <markus.heiser@darmarit.de>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      5383fae7
  5. 15 5月, 2017 1 次提交
  6. 13 5月, 2017 2 次提交
  7. 12 5月, 2017 1 次提交
  8. 11 5月, 2017 1 次提交
  9. 10 5月, 2017 8 次提交
  10. 09 5月, 2017 6 次提交
  11. 08 5月, 2017 2 次提交
  12. 07 5月, 2017 2 次提交
    • M
      docs: complete bumping minimal GNU Make version to 3.81 · 13e09881
      Max Filippov 提交于
      Commit 37d69ee3 ("docs: bump minimal GNU Make version to 3.81")
      changes one entry of GNU make version in the changes.rst, there's still
      one more entry saying that one need version 3.80.  Fix that.
      Signed-off-by: NMax Filippov <jcmvbkbc@gmail.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      13e09881
    • M
      docs: bump minimal GNU Make version to 3.81 · 37d69ee3
      Masahiro Yamada 提交于
      Since 2014, you can't successfully build kernels with GNU Make version
      3.80. Example errors:
      
        $ git describe
        v4.11
        $ make --version | head -1
        GNU Make 3.80
        $ make defconfig
          HOSTCC  scripts/basic/fixdep
        scripts/Makefile.host:135: *** missing separator.  Stop.
        make: *** [defconfig] Error 2
        $ make ARCH=arm64 help
        arch/arm64/Makefile:43: *** unterminated call to function `warning': missing `)'.  Stop.
        $ make help >/dev/null
        ./Documentation/Makefile.sphinx:25: Extraneous text after `else' directive
        ./Documentation/Makefile.sphinx:31: *** only one `else' per conditional.  Stop.
        make: *** [help] Error 2
      
      The first breakage was introduced by commit c8589d1e ("kbuild:
      handle multi-objs dependency appropriately").  Since then (i.e. v3.18),
      GNU Make 3.80 has not been able to compile the kernel, but nobody has
      ever complained aboutt (or noticed) it.
      
      Even GNU Make 3.81 is more than 10 years old.  It would not hurt to
      match the documentation with reality instead of fixing makefiles.
      Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      37d69ee3
  13. 05 5月, 2017 3 次提交
  14. 04 5月, 2017 3 次提交
  15. 03 5月, 2017 1 次提交
    • C
      powerpc/8xx: Adding support of IRQ in MPC8xx GPIO · 726bd223
      Christophe Leroy 提交于
      This patch allows the use of IRQ to notify the change of GPIO status
      on MPC8xx CPM IO ports. This then allows to associate IRQs to GPIOs
      in the Device Tree.
      
      Ex:
      	CPM1_PIO_C: gpio-controller@960 {
      		#gpio-cells = <2>;
      		compatible = "fsl,cpm1-pario-bank-c";
      		reg = <0x960 0x10>;
      		fsl,cpm1-gpio-irq-mask = <0x0fff>;
      		interrupts = <1 2 6 9 10 11 14 15 23 24 26 31>;
      		interrupt-parent = <&CPM_PIC>;
      		gpio-controller;
      	};
      
      The property 'fsl,cpm1-gpio-irq-mask' defines which of the 16 GPIOs
      have the associated interrupts defined in the 'interrupts' property.
      Signed-off-by: NChristophe Leroy <christophe.leroy@c-s.fr>
      Signed-off-by: NScott Wood <oss@buserror.net>
      726bd223
  16. 02 5月, 2017 3 次提交
  17. 01 5月, 2017 2 次提交
  18. 29 4月, 2017 1 次提交