1. 18 Mar, 2022 17 commits
  2. 03 Mar, 2022 2 commits
    • Woody Lin's avatar
      serial: samsung: Add samsung_early_read to support early kgdboc · 3631e48d
      Woody Lin authored
      The 'kgdboc_earlycon_init' looks for boot console that has both .read
      and .write callbacks. Adds 'samsung_early_read' to samsung_tty.c's early
      console to support kgdboc.
      Reviewed-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
      Signed-off-by: default avatarWoody Lin <woodylin@google.com>
      Link: https://lore.kernel.org/r/20220302114923.144523-1-woodylin@google.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      3631e48d
    • Jiri Slaby's avatar
      serial: make uart_console_write->putchar()'s character an unsigned char · 3f8bab17
      Jiri Slaby authored
      Currently, uart_console_write->putchar's second parameter (the
      character) is of type int. It makes little sense, provided uart_console_write()
      accepts the input string as "const char *s" and passes its content -- the
      characters -- to putchar(). So switch the character's type to unsigned
      char.
      
      We don't use char as that is signed on some platforms. That would cause
      troubles for drivers which (implicitly) cast the char to u16 when
      writing to the device. Sign extension would happen in that case and the
      value written would be completely different to the provided char. DZ is
      an example of such a driver -- on MIPS, it uses u16 for dz_out in
      dz_console_putchar().
      
      Note we do the char -> uchar conversion implicitly in
      uart_console_write(). Provided we do not change size of the data type,
      sign extension does not happen there, so the problem is void.
      
      This makes the types consistent and unified with the rest of the uart
      layer, which uses unsigned char in most places already. One exception is
      xmit_buf, but that is going to be converted later.
      
      Cc: Paul Cercueil <paul@crapouillou.net>
      Cc: Tobias Klauser <tklauser@distanz.ch>
      Cc: Russell King <linux@armlinux.org.uk>
      Cc: Vineet Gupta <vgupta@kernel.org>
      Cc: Nicolas Ferre <nicolas.ferre@microchip.com>
      Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>
      Cc: Ludovic Desroches <ludovic.desroches@microchip.com>
      Cc: Florian Fainelli <f.fainelli@gmail.com>
      Cc: bcm-kernel-feedback-list@broadcom.com
      Cc: Alexander Shiyan <shc_work@mail.ru>
      Cc: Baruch Siach <baruch@tkos.co.il>
      Cc: "Maciej W. Rozycki" <macro@orcam.me.uk>
      Cc: Paul Walmsley <paul.walmsley@sifive.com>
      Cc: Palmer Dabbelt <palmer@dabbelt.com>
      Cc: Albert Ou <aou@eecs.berkeley.edu>
      Cc: Shawn Guo <shawnguo@kernel.org>
      Cc: Sascha Hauer <s.hauer@pengutronix.de>
      Cc: Pengutronix Kernel Team <kernel@pengutronix.de>
      Cc: Fabio Estevam <festevam@gmail.com>
      Cc: NXP Linux Team <linux-imx@nxp.com>
      Cc: Karol Gugala <kgugala@antmicro.com>
      Cc: Mateusz Holenko <mholenko@antmicro.com>
      Cc: Vladimir Zapolskiy <vz@mleia.com>
      Cc: Neil Armstrong <narmstrong@baylibre.com>
      Cc: Kevin Hilman <khilman@baylibre.com>
      Cc: Jerome Brunet <jbrunet@baylibre.com>
      Cc: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
      Cc: Taichi Sugaya <sugaya.taichi@socionext.com>
      Cc: Takao Orito <orito.takao@socionext.com>
      Cc: Liviu Dudau <liviu.dudau@arm.com>
      Cc: Sudeep Holla <sudeep.holla@arm.com>
      Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
      Cc: "Andreas Färber" <afaerber@suse.de>
      Cc: Manivannan Sadhasivam <mani@kernel.org>
      Cc: Michael Ellerman <mpe@ellerman.id.au>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Andy Gross <agross@kernel.org>
      Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
      Cc: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
      Cc: Orson Zhai <orsonzhai@gmail.com>
      Cc: Baolin Wang <baolin.wang7@gmail.com>
      Cc: Chunyan Zhang <zhang.lyra@gmail.com>
      Cc: Patrice Chotard <patrice.chotard@foss.st.com>
      Cc: Maxime Coquelin <mcoquelin.stm32@gmail.com>
      Cc: Alexandre Torgue <alexandre.torgue@foss.st.com>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Peter Korsgaard <peter@korsgaard.com>
      Cc: Michal Simek <michal.simek@xilinx.com>
      Acked-by: Richard Genoud <richard.genoud@gmail.com> [atmel_serial]
      Acked-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
      Acked-by: default avatarPaul Cercueil <paul@crapouillou.net>
      Acked-by: Neil Armstrong <narmstrong@baylibre.com> # meson_serial
      Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
      Link: https://lore.kernel.org/r/20220303080831.21783-1-jslaby@suse.czSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      3f8bab17
  3. 01 Mar, 2022 6 commits
  4. 28 Feb, 2022 7 commits
  5. 27 Feb, 2022 4 commits
  6. 26 Feb, 2022 4 commits
    • Linus Torvalds's avatar
      Merge tag 'trace-v5.17-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace · 2293be58
      Linus Torvalds authored
      Pull tracing fixes from Steven Rostedt:
      
       - rtla (Real-Time Linux Analysis tool):
          - fix typo in man page
          - Update API -e to -E before it is released
          - Error message fix and memory leak fix
      
       - Partially uninline trace event soft disable to shrink text
      
       - Fix function graph start up test
      
       - Have triggers affect the trace instance they are in and not top level
      
       - Have osnoise sleep in the units it says it uses
      
       - Remove unused ftrace stub function
      
       - Remove event probe redundant info from event in the buffer
      
       - Fix group ownership setting in tracefs
      
       - Ensure trace buffer is minimum size to prevent crashes
      
      * tag 'trace-v5.17-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace:
        rtla/osnoise: Fix error message when failing to enable trace instance
        rtla/osnoise: Free params at the exit
        rtla/hist: Make -E the short version of --entries
        tracing: Fix selftest config check for function graph start up test
        tracefs: Set the group ownership in apply_options() not parse_options()
        tracing/osnoise: Make osnoise_main to sleep for microseconds
        ftrace: Remove unused ftrace_startup_enable() stub
        tracing: Ensure trace buffer is at least 4096 bytes large
        tracing: Uninline trace_trigger_soft_disabled() partly
        eprobes: Remove redundant event type information
        tracing: Have traceon and traceoff trigger honor the instance
        tracing: Dump stacktrace trigger to the corresponding instance
        rtla: Fix systme -> system typo on man page
      2293be58
    • Linus Torvalds's avatar
      Merge tag 'fixes-2022-02-26' of git://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock · e41898d2
      Linus Torvalds authored
      Pull memblock fix from Mike Rapoport:
       "Use kfree() to release kmalloced memblock regions
      
        memblock.{reserved,memory}.regions may be allocated using kmalloc()
        in memblock_double_array(). Use kfree() to release these kmalloced
        regions"
      
      * tag 'fixes-2022-02-26' of git://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock:
        memblock: use kfree() to release kmalloced memblock regions
      e41898d2
    • Linus Torvalds's avatar
      Merge branch 'akpm' (patches from Andrew) · 086ee11b
      Linus Torvalds authored
      Merge misc fixes from Andrew Morton:
       "12 patches.
      
        Subsystems affected by this patch series: MAINTAINERS, mailmap, memfd,
        and mm (hugetlb, kasan, hugetlbfs, pagemap, selftests, memcg, and
        slab)"
      
      * emailed patches from Andrew Morton <akpm@linux-foundation.org>:
        selftests/memfd: clean up mapping in mfd_fail_write
        mailmap: update Roman Gushchin's email
        MAINTAINERS, SLAB: add Roman as reviewer, git tree
        MAINTAINERS: add Shakeel as a memcg co-maintainer
        MAINTAINERS: remove Vladimir from memcg maintainers
        MAINTAINERS: add Roman as a memcg co-maintainer
        selftest/vm: fix map_fixed_noreplace test failure
        mm: fix use-after-free bug when mm->mmap is reused after being freed
        hugetlbfs: fix a truncation issue in hugepages parameter
        kasan: test: prevent cache merging in kmem_cache_double_destroy
        mm/hugetlb: fix kernel crash with hugetlb mremap
        MAINTAINERS: add sysctl-next git tree
      086ee11b
    • Linus Torvalds's avatar
      Merge tag 'riscv-for-linus-5.17-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux · 2c8c230e
      Linus Torvalds authored
      Pull RISC-V fixes from Palmer Dabbelt:
      
       - A fix for the K210 sdcard defconfig, to avoid using a
         fixed delay for the root FS
      
       - A fix to make sure there's a proper call frame for
         trace_hardirqs_{on,off}().
      
      * tag 'riscv-for-linus-5.17-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux:
        riscv: fix oops caused by irqsoff latency tracer
        riscv: fix nommu_k210_sdcard_defconfig
      2c8c230e