1. 14 7月, 2020 2 次提交
  2. 25 6月, 2020 3 次提交
  3. 02 6月, 2020 1 次提交
  4. 29 5月, 2020 1 次提交
  5. 06 5月, 2020 1 次提交
  6. 05 5月, 2020 1 次提交
  7. 14 3月, 2020 2 次提交
  8. 12 3月, 2020 1 次提交
  9. 06 3月, 2020 1 次提交
  10. 13 2月, 2020 1 次提交
  11. 07 1月, 2020 2 次提交
  12. 18 12月, 2019 1 次提交
  13. 10 10月, 2019 2 次提交
  14. 04 9月, 2019 3 次提交
  15. 19 3月, 2019 1 次提交
  16. 22 1月, 2019 1 次提交
  17. 08 1月, 2019 4 次提交
  18. 20 12月, 2018 2 次提交
  19. 17 12月, 2018 1 次提交
  20. 05 12月, 2018 1 次提交
  21. 10 11月, 2018 5 次提交
  22. 06 10月, 2018 1 次提交
    • K
      treewide: Replace more open-coded allocation size multiplications · 329e0989
      Kees Cook 提交于
      As done treewide earlier, this catches several more open-coded
      allocation size calculations that were added to the kernel during the
      merge window. This performs the following mechanical transformations
      using Coccinelle:
      
      	kvmalloc(a * b, ...) -> kvmalloc_array(a, b, ...)
      	kvzalloc(a * b, ...) -> kvcalloc(a, b, ...)
      	devm_kzalloc(..., a * b, ...) -> devm_kcalloc(..., a, b, ...)
      Signed-off-by: NKees Cook <keescook@chromium.org>
      329e0989
  23. 18 9月, 2018 2 次提交
    • D
      tty: serial: qcom_geni_serial: Fix serial when not used as console · c362272b
      Douglas Anderson 提交于
      If you've got the "console" serial port setup to use just as a UART
      (AKA there is no "console=ttyMSMX" on the kernel command line) then
      certain initialization is skipped.  When userspace later tries to do
      something with the port then things go boom (specifically, on my
      system, some sort of exception hit that caused the system to reboot
      itself w/ no error messages).
      
      Let's cleanup / refactor the init so that we always run the same init
      code regardless of whether we're using the console.
      
      To make this work, we make rely on qcom_geni_serial_pm doing its job
      to turn resources on.
      
      For the record, here is a trace of the order of things (after this
      patch) when console= is specified on the command line and we have an
      agetty on the port:
        qcom_geni_serial_pm: 4 (undefined) => 0 (on)
        qcom_geni_console_setup
        qcom_geni_serial_port_setup
        qcom_geni_serial_console_write
        qcom_geni_serial_startup
        qcom_geni_serial_start_tx
      
      ...and here is the order of things (after this patch) when console= is
      _NOT_ specified on the command line and we have an agetty port:
        qcom_geni_serial_pm: 4 => 0
        qcom_geni_serial_pm: 0 => 3
        qcom_geni_serial_pm: 3 => 0
        qcom_geni_serial_startup
        qcom_geni_serial_port_setup
        qcom_geni_serial_pm: 0 => 3
        qcom_geni_serial_pm: 3 => 0
        qcom_geni_serial_startup
        qcom_geni_serial_start_tx
      
      Fixes: c4f52879 ("tty: serial: msm_geni_serial: Add serial driver support for GENI based QUP")
      Signed-off-by: NDouglas Anderson <dianders@chromium.org>
      Reviewed-by: NMatthias Kaehlcke <mka@chromium.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      c362272b
    • G
      tty: serial: qcom_geni_serial: Drop useless check for dev.of_node · 2843cbb5
      Geert Uytterhoeven 提交于
      With gcc 4.1.2:
      
          drivers/tty/serial/qcom_geni_serial.c: In function ‘qcom_geni_serial_probe’:
          drivers/tty/serial/qcom_geni_serial.c:1261: warning: ‘drv’ may be used uninitialized in this function
      
      Indeed, if dev.of_node is NULL, drv will be used uninitialized, and
      dereferenced in uart_add_one_port().  However, as this driver supports
      DT only, dev.of_node will always be valid.
      
      Hence remove the useless check for dev.of_node, killing the warning as a
      side effect.
      
      Fixes: 8a8a66a1 ("tty: serial: qcom_geni_serial: Add support for flow control")
      Signed-off-by: NGeert Uytterhoeven <geert@linux-m68k.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      2843cbb5