[PATCH] Patch to fix bootm barebox load address alignment to acomodate ADRP instruction

2024-02-06 Thread Thaison Phan
Hi, The aarch64 bootm image handler for barebox can choose a load address that is not 4KB aligned. This can result in unexpected behavior with the ADRP instruction that is available in 64 bit ARM architectures. ADRP forms a PC-relative address to a 4KB page where the bottom 12 bits of the current

[PATCH] decompress: change length arguments to long

2024-02-06 Thread Sascha Hauer
In order to support decompression of files > 2GiB Linux has changed the prototypes of decompression functions from int uncompress(unsigned char *inbuf, int len, int(*fill)(void*, unsigned int), int(*flush)(void*, unsigned int), unsigned char *output,

Re: [PATCH] decompress: change length arguments to long

2024-02-06 Thread Marco Felsch
On 24-02-06, Sascha Hauer wrote: > On Tue, Feb 06, 2024 at 12:16:28PM +0100, Marco Felsch wrote: > > On 24-02-06, Sascha Hauer wrote: > > > In order to support decompression of files > 2GiB Linux has changed > > > the prototypes of decompression functions from > > > > > > int uncompress(unsigned

Re: [PATCH] decompress: change length arguments to long

2024-02-06 Thread Marco Felsch
On 24-02-06, Sascha Hauer wrote: > In order to support decompression of files > 2GiB Linux has changed > the prototypes of decompression functions from > > int uncompress(unsigned char *inbuf, int len, > int(*fill)(void*, unsigned int), > int(*flush)(void*, unsigned

Re: [PATCH] decompress: change length arguments to long

2024-02-06 Thread Sascha Hauer
On Tue, Feb 06, 2024 at 12:16:28PM +0100, Marco Felsch wrote: > On 24-02-06, Sascha Hauer wrote: > > In order to support decompression of files > 2GiB Linux has changed > > the prototypes of decompression functions from > > > > int uncompress(unsigned char *inbuf, int len, > >

[PATCH 2/2] serial: ns16550: add support for half duplex rs485

2024-02-06 Thread Pierre-Olivier Huard
Some RS485 serial interfaces does not use correctly RTS as Receiver Enable and Data Enable, the internal receiver of the ns16550 must be disabled during transmit to avoid loopback. By default the option is enabled (when the property 'linux,rs485-enabled-at-boot-time' is present), and can be

[PATCH 1/2] serial: ns16550: add basic support for rs485

2024-02-06 Thread Pierre-Olivier Huard
Add possibility to use RTS signal as a Data Enable signal on RS485 transceivers. Signed-off-by: Pierre-Olivier Huard --- drivers/serial/serial_ns16550.c | 33 +++-- drivers/serial/serial_ns16550.h | 3 +++ 2 files changed, 34 insertions(+), 2 deletions(-) diff

[PATCH 0/2] serial: ns16550: support half duplex rs485

2024-02-06 Thread Pierre-Olivier Huard
The default ns16550 driver does not support rs485. This patchset adds support for half duplex rs485 to the ns16550 driver. Basic handling of the RTS signal is done to enable the rs485 transceivers. Some properties are now parsed from the device tree: - 'linux,rs485-enabled-at-boot-time', enabling

Re: [PATCH] decompress: change length arguments to long

2024-02-06 Thread Sascha Hauer
On Tue, 06 Feb 2024 10:48:38 +0100, Sascha Hauer wrote: > In order to support decompression of files > 2GiB Linux has changed > the prototypes of decompression functions from > > int uncompress(unsigned char *inbuf, int len, > int(*fill)(void*, unsigned int), >