[PATCH] video: fbconsole: implement non-fullscreen fbconsole

2023-04-05 Thread Philipp Zabel
Let fbconsole cover only part of the screen. Configurable via margin.{left,top,right,bottom} device parameters. Signed-off-by: Philipp Zabel --- drivers/video/fbconsole.c | 115 +- 1 file changed, 101 insertions(+), 14 deletions(-) diff --git a/drivers/video

[PATCH v2 2/3] graphic_utils: add optional damage tracking

2023-04-05 Thread Philipp Zabel
Annotate framebuffer updates with damage rectangles so drivers may implement partial updates for displays with an integrated framebuffer. This can speed up fbconsole. Signed-off-by: Philipp Zabel --- v2: call fb_damage() in graphic_utils instead of fbconsole --- lib/gui/graphic_utils.c | 16

[PATCH v2 3/3] video: mipi_dbi: add damage tracking and partial updates

2023-04-05 Thread Philipp Zabel
Track framebuffer damage with a simple rectangle that can be used to issue partial updates during fb_flush. This speeds up fbconsole. Signed-off-by: Philipp Zabel --- v2: make rect parameter to fb_damage const --- drivers/video/mipi_dbi.c | 83 -- drivers

[PATCH v2 1/3] video: fb: add optional damage tracking

2023-04-05 Thread Philipp Zabel
Add an optional fb_damage operation that drivers may use to accumulate damage on the framebuffer until fb_flush is called. The accumulated damage can be used to support partial updates for displays with an integrated framebuffer. Signed-off-by: Philipp Zabel --- v2: make rect parameter

Re: [PATCH 2/3] video: fbconsole: add optional damage tracking

2023-04-05 Thread Philipp Zabel
On Mi, 2023-04-05 at 13:13 +0200, Sascha Hauer wrote: > On Mon, Apr 03, 2023 at 02:18:43PM +0200, Philipp Zabel wrote: [...] > > + gu_screen_blit_area(priv->sc, rect.x1, rect.y1, > >   priv->font->width, priv->font->height); > > + fb_d

Re: [PATCH 1/3] video: fb: add optional damage tracking

2023-04-05 Thread Philipp Zabel
On Di, 2023-04-04 at 14:24 +0200, Ahmad Fatoum wrote: > On 03.04.23 14:18, Philipp Zabel wrote: > > Add an optional fb_damage operation that drivers may use to accumulate > > damage on the framebuffer until fb_flush is called. The accumulated > > damage can be used to su

[PATCH 1/3] video: fb: add optional damage tracking

2023-04-03 Thread Philipp Zabel
Add an optional fb_damage operation that drivers may use to accumulate damage on the framebuffer until fb_flush is called. The accumulated damage can be used to support partial updates for displays with an integrated framebuffer. Signed-off-by: Philipp Zabel --- drivers/video/fb.c | 6

[PATCH 2/3] video: fbconsole: add optional damage tracking

2023-04-03 Thread Philipp Zabel
Annotate framebuffer updates with damage rectangles so drivers may implement partial updates for displays with an integrated framebuffer. Signed-off-by: Philipp Zabel --- drivers/video/fbconsole.c | 32 1 file changed, 28 insertions(+), 4 deletions(-) diff

[PATCH 3/3] video: mipi_dbi: add damage tracking and partial updates

2023-04-03 Thread Philipp Zabel
Track framebuffer damage with a simple rectangle that can be used to issue partial updates during fb_flush. This speeds up fbconsole. Signed-off-by: Philipp Zabel --- drivers/video/mipi_dbi.c | 83 -- drivers/video/panel-mipi-dbi.c | 1 + include/video

[PATCH v2 2/4] spi: stm32: support per-transfer bits per word switching

2023-04-03 Thread Philipp Zabel
Allow dynamically switching data size between transfers. Signed-off-by: Philipp Zabel --- v2: query max bits-per-word after clk_enable() and device_reset() --- drivers/spi/stm32_spi.c | 50 - 1 file changed, 39 insertions(+), 11 deletions(-) diff --git

[PATCH v2 3/4] video: mipi_dbi: disable byte swapping if 16-bit SPI transfers are supported

2023-04-03 Thread Philipp Zabel
If the SPI controller supports switching to 16-bit transfers, there is no need to swap bytes on little-endian architectures. This also allows to transfer directly from the 16-bit framebuffer. Signed-off-by: Philipp Zabel --- drivers/video/mipi_dbi.c | 3 +-- 1 file changed, 1 insertion(+), 2

[PATCH v2 4/4] spi: update spi_board_info FIXME comment

2023-04-03 Thread Philipp Zabel
The spi-stm32 driver now supports the spi_transfer.bits_per_word override. Signed-off-by: Philipp Zabel --- include/spi/spi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/spi/spi.h b/include/spi/spi.h index 809ebd8df1a8..d479e4f34f0c 100644 --- a/include/spi/spi.h

[PATCH v2 1/4] spi: add per-driver bits-per-word mask

2023-04-03 Thread Philipp Zabel
Allow SPI hosts to signal per-transfer bits-per-word switching support and drivers to query it with spi_is_bpw_supported(). Signed-off-by: Philipp Zabel --- include/spi/spi.h | 31 +++ 1 file changed, 31 insertions(+) diff --git a/include/spi/spi.h b/include/spi

Re: [PATCH 2/4] spi: stm32: support per-transfer bits per word switching

2023-03-30 Thread Philipp Zabel
On Thu, Mar 30, 2023 at 12:33:57PM +0200, Philipp Zabel wrote: > Allow dynamically switching data size between transfers. > > Signed-off-by: Philipp Zabel > --- > drivers/spi/stm32_spi.c | 50 - > 1 file changed, 39 insertion

[PATCH v2 1/4] firmware: Add request/release_firmware() calls

2023-03-30 Thread Philipp Zabel
Add request_firmware() and release_firmware() calls that allow drivers to load a firmware file. Also move the struct firmware definition from remoteproc.h into firmware.h. Signed-off-by: Philipp Zabel Reviewed-by: Ahmad Fatoum --- v2: - let request_firmware() stub return -EINVAL instead

[PATCH v2 2/4] video: Add of_get_display_timing

2023-03-30 Thread Philipp Zabel
Add a port of the kernel of_get_display_timing() that writes a struct fb_videomode instead of struct display_timing, which we don't have. Signed-off-by: Philipp Zabel Reviewed-by: Ahmad Fatoum --- drivers/video/of_display_timing.c | 22 ++ include/fb.h

[PATCH v2 4/4] video: Add MIPI DBI compatible SPI driver

2023-03-30 Thread Philipp Zabel
a firmware file that contains the controller configuration. Example (driver will load sainsmart18.bin): display@0 { compatible = "sainsmart18", "panel-mipi-dbi-spi"; ... }; Signed-off-by: Philipp Zabel Reviewed-by: Ahmad Fatoum --- drivers/video/Kconfig | 12 ++ dr

[PATCH v2 3/4] video: add MIPI DBI framebuffer helpers

2023-03-30 Thread Philipp Zabel
Port helper functions for the panel-mipi-dbi driver from the Linux kernel. Signed-off-by: Philipp Zabel --- v2: - Remove superfluous empty line - Fix mipi_dbi_enable_flush() comment - Remove unnecessary regulator checks - Avoid memcpy to tx_buf if byte swapping can be avoided - Allocate

Re: [PATCH 3/4] video: add MIPI DBI framebuffer helpers

2023-03-30 Thread Philipp Zabel
Hi Ahmad, thank you for the review. On Thu, Mar 30, 2023 at 10:43:54AM +0200, Ahmad Fatoum wrote: > On 29.03.23 12:56, Philipp Zabel wrote: [...] > > +static void mipi_dbi_buf_copy(void *dst, struct fb_info *info, bool swap) > > +{ > > + u16 *src = (u16 *)info->screen_

[PATCH 3/4] video: mipi_dbi: disable byte swapping if 16-bit SPI transfers are supported

2023-03-30 Thread Philipp Zabel
If the SPI controller supports switching to 16-bit transfers, there is no need to swap bytes on little-endian architectures. This also allows to transfer directly from the 16-bit framebuffer. Signed-off-by: Philipp Zabel --- drivers/video/mipi_dbi.c | 3 +-- 1 file changed, 1 insertion(+), 2

[PATCH 1/4] spi: add per-driver bits-per-word mask

2023-03-30 Thread Philipp Zabel
Allow SPI hosts to signal per-transfer bits-per-word switching support and drivers to query it with spi_is_bpw_supported(). Signed-off-by: Philipp Zabel --- include/spi/spi.h | 31 +++ 1 file changed, 31 insertions(+) diff --git a/include/spi/spi.h b/include/spi

[PATCH 4/4] spi: update spi_board_info FIXME comment

2023-03-30 Thread Philipp Zabel
The spi-stm32 driver now supports the spi_transfer.bits_per_word override. Signed-off-by: Philipp Zabel --- include/spi/spi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/spi/spi.h b/include/spi/spi.h index 809ebd8df1a8..d479e4f34f0c 100644 --- a/include/spi/spi.h

[PATCH 2/4] spi: stm32: support per-transfer bits per word switching

2023-03-30 Thread Philipp Zabel
Allow dynamically switching data size between transfers. Signed-off-by: Philipp Zabel --- drivers/spi/stm32_spi.c | 50 - 1 file changed, 39 insertions(+), 11 deletions(-) diff --git a/drivers/spi/stm32_spi.c b/drivers/spi/stm32_spi.c index 0d7407c279a2

[PATCH 1/4] firmware: Add request/release_firmware() calls

2023-03-29 Thread Philipp Zabel
Add request_firmware() and release_firmware() calls that allow drivers to load a firmware file. Also move the struct firmware definition from remoteproc.h into firmware.h. Signed-off-by: Philipp Zabel --- common/firmware.c | 33 + include/firmware.h

[PATCH 3/4] video: add MIPI DBI framebuffer helpers

2023-03-29 Thread Philipp Zabel
Port helper functions for the panel-mipi-dbi driver from the Linux kernel. Signed-off-by: Philipp Zabel --- drivers/video/mipi_dbi.c | 242 +++ include/video/mipi_dbi.h | 63 ++ 2 files changed, 305 insertions(+) diff --git a/drivers/video

[PATCH 2/4] video: Add of_get_display_timing

2023-03-29 Thread Philipp Zabel
Add a port of the kernel of_get_display_timing() that writes a struct fb_videomode instead of struct display_timing, which we don't have. Signed-off-by: Philipp Zabel --- drivers/video/of_display_timing.c | 22 ++ include/fb.h | 2 ++ 2 files changed

[PATCH 4/4] video: Add MIPI DBI compatible SPI driver

2023-03-29 Thread Philipp Zabel
a firmware file that contains the controller configuration. Example (driver will load sainsmart18.bin): display@0 { compatible = "sainsmart18", "panel-mipi-dbi-spi"; ... }; Signed-off-by: Philipp Zabel --- drivers/video/Kconfig | 12 ++ drivers/video/Makefile

Re: [PATCH 02/10] driver: consult feature controller prior to device probe

2022-08-18 Thread Philipp Zabel
Hi Ahmad, On Do, 2022-08-18 at 07:19 +0200, Ahmad Fatoum wrote: > The newly added feature controller framework has two goals: Avoid > probing device in barebox that aren't indeed available This specific wording makes me wonder why this isn't implemented inside of_device_is_available(). This

Re: [PATCH] RISC-V: virt: riscvemu: add interactive tutorial

2022-02-24 Thread Philipp Zabel
Hi Ahmad, On Do, 2022-02-24 at 14:52 +0100, Ahmad Fatoum wrote: [...] diff --git a/arch/riscv/boards/riscvemu/defaultenv- riscvemu/data/tutorial/04-cs0 b/arch/riscv/boards/riscvemu/defaultenv- riscvemu/data/tutorial/04-cs0 new file mode 100644 index ..0ac452d1b3b5 --- /dev/null +++

[PATCH] efi: skip devices without driver in efi_pause/continue_devices()

2022-01-18 Thread Philipp Zabel
Skip devices on the EFI bus that do not have a driver assigned. Fixes: f68a547deebd ("efi: add efi_device hook to be called before an image is started") Signed-off-by: Philipp Zabel --- drivers/efi/efi-device.c | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-)

Re: [PATCH master] mci: dw_mmc: make reset control optional again

2021-11-02 Thread Philipp Zabel
On Tue, 2021-11-02 at 09:06 +0100, Sascha Hauer wrote: > On Mon, Nov 01, 2021 at 06:52:07PM +0100, Ahmad Fatoum wrote: > > As documented in 90bdf1e5d1e4 ("mci: dw_mmc: match against StarFive MMC > > compatibles"), it was intended for the reset to remain optional as to > > not break existing users.

[PATCH] Documentation: efi: update SnpDxe build instructions

2020-10-07 Thread Philipp Zabel
Some sources have been moved into git submodules and SnpDxe was moved from MdeModulePkg to NetworkPkg. Signed-off-by: Philipp Zabel --- Documentation/boards/efi.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Documentation/boards/efi.rst b/Documentation/boards

Re: [PATCH v2 5/5] clk: imx6: define an enum for ldb mux inputs

2019-05-23 Thread Philipp Zabel
ned-off-by: Ahmad Fatoum Is this something that should be proposed for the Linux kernel as well? Reviewed-by: Philipp Zabel regards Philipp ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox

Re: [PATCH v2 4/5] clk: imx6: Fix procedure to switch the parent of LDB_DI_CLK

2019-05-23 Thread Philipp Zabel
}; > > The issue is explained in detail in EB821 ("LDB Clock Switch Procedure & > i.MX6 Asynchronous Clock Switching Guidelines") [1]. > > [1] http://www.nxp.com/files/32bit/doc/eng_bulletin/EB821.pdf > > Signed-off-by: Ranjani Vaidyanathan > S

Re: [PATCH v2 2/5] clk: imx6: Make the LDB_DI0 and LDB_DI1 clocks read-only

2019-05-23 Thread Philipp Zabel
On Tue, 2019-05-21 at 17:56 +0200, Ahmad Fatoum wrote: > From: Philipp Zabel > > Due to incorrect placement of the clock gate cell in the ldb_di[x]_clk > tree, the glitchy parent mux of ldb_di[x]_clk can cause a glitch to > enter the ldb_di_ipu_div divider. If the divider

Re: [PATCH v2 3/5] clk: imx6: Mask mmdc_ch1 handshake for periph2_sel and mmdc_ch1_axi_podf

2019-05-23 Thread Philipp Zabel
On Tue, 2019-05-21 at 17:56 +0200, Ahmad Fatoum wrote: > From: Philipp Zabel > > MMDC CH1 is not used on i.MX6Q, so the handshake needed to change the > parent of periph2_sel or the divider of mmdc_ch1_axi_podf will never > succeed. > Disable the handshake mechanism

Re: [PATCH v2 1/5] clk: imx6: remove quirky clk_set_parent(LDB_diN_sel, pll5_video_div)

2019-05-23 Thread Philipp Zabel
dy changed from reset value: 0 > This warning is safe to ignore. > > Cc: Andrey Smirnov > Cc: Raphael Poggi > Cc: Sascha Hauer > Cc: Lucas Stach > Cc: Jean-Christophe PLAGNIOL-VILLARD > Signed-off-by: Ahmad Fatoum Apart from that, Reviewed-by: Philipp Zabel regards Philipp ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox

[PATCH] ARM: nitrogen6x: remove conflicting upstream SPI NOR partitions

2019-01-10 Thread Philipp Zabel
artition sizes"). Signed-off-by: Philipp Zabel --- arch/arm/dts/imx6qdl-nitrogen6x.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/dts/imx6qdl-nitrogen6x.dtsi b/arch/arm/dts/imx6qdl-nitrogen6x.dtsi index 53fdb722d01a..5c43b16ab168 100644 --- a/arch/arm/dts/imx6qdl-nitr

[PATCH] ARM: imx6qp: fix NoC QoS passthrough for new cpu type functions.

2018-06-28 Thread Philipp Zabel
On i.MX6QP/DP cpu_mx6_is_mx6q/d do not return true anymore. Use the new cpu_mx6_is_mx6qp/dp to reenable NoC regulator bypass. Fixes: d4c05d29d484 ("ARM: i.MX6: Add cpu type for 'plus' variants") Signed-off-by: Philipp Zabel --- arch/arm/mach-imx/imx6.c | 3 +-- 1 file changed, 1 inser

Re: [PATCH 18/19] fs: tftp: Switch to dcache implementation

2018-05-22 Thread Philipp Zabel
On Tue, 2018-05-22 at 09:12 +0200, Sascha Hauer wrote: > On Fri, May 18, 2018 at 01:54:13PM +0200, Philipp Zabel wrote: > > Hi Sascha, > > > > On Tue, 2018-04-03 at 09:48 +0200, Sascha Hauer wrote: > > [...] > > > -static int tftp_stat(struct device_

Re: [PATCH 18/19] fs: tftp: Switch to dcache implementation

2018-05-18 Thread Philipp Zabel
Hi Sascha, On Tue, 2018-04-03 at 09:48 +0200, Sascha Hauer wrote: [...] > -static int tftp_stat(struct device_d *dev, const char *filename, struct stat > *s) > +static struct dentry *tftp_lookup(struct inode *dir, struct dentry *dentry, > + unsigned int flags) > { > -

Re: [PATCH 02/10] ARM: i.MX: Add infrastructure to record SoC reset reason

2018-04-18 Thread Philipp Zabel
On Sat, 2018-04-14 at 10:50 -0700, Andrey Smirnov wrote: > Signed-off-by: Andrey Smirnov > --- > arch/arm/mach-imx/imx.c | 49 > +++ > arch/arm/mach-imx/include/mach/reset-reason.h | 17 ++ > 2 files changed, 66

[PATCH] of: partition: fix typo when writing #address-cells

2018-03-26 Thread Philipp Zabel
xes: a2fa18f9f483 ("mtd: of: Make used partition binding configurable") Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- drivers/of/partition.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/of/partition.c b/drivers/of/partition.c index 6f9651a9e4

[PATCH] reset-source: pass reset reason to kernel via device tree

2018-03-19 Thread Philipp Zabel
Add a device tree fixup that adds a /chosen/barebox-reset-reason string property to the device tree chosen node. It can be read under Linux in /sys/firmware/devicetree/base/chosen/barebox-reset-reason. Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- Documentation/user/reset-reas

[PATCH] improve soc revision calculation

2018-02-06 Thread Philipp Zabel
c22dee6e3c16 ("ARM: imx: Improve the soc revision calculation flow"). Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- arch/arm/mach-imx/include/mach/imx6.h | 24 1 file changed, 4 insertions(+), 20 deletions(-) diff --git a/arch/arm/mach-imx/inc

Re: [PATCH 3/4] lib: Add zstd modules

2018-02-01 Thread Philipp Zabel
On Thu, 2018-02-01 at 11:46 +0100, Philipp Zabel wrote: > Based on kernel commit 73f3d1b48f50 ("lib: Add zstd modules"). > > Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> Please disregard this one in favor of [PATCH 3/4] lib: Add zstd decompression module

[PATCH 4/4] squashfs: Add zstd support

2018-02-01 Thread Philipp Zabel
Based on kernel commit 87bf54bb43dd ("squashfs: Add zstd support"). Creating zstd compressed squashfs images is supported by squashfs-tools newer than commit e38956b92f73 ("squashfs-tools: Add zstd support"). Signed-off-by: Philipp Zabel <p.za...@pengutronix.de>

[PATCH 2/4] lib: Add xxhash module

2018-02-01 Thread Philipp Zabel
Based on kernel commit 5d2405227a9e ("lib: Add xxhash module"). Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- include/linux/xxhash.h | 236 +++ lib/Kconfig| 3 + lib/Makefile | 1 + lib/xxhash.c

[PATCH 1/4] include linux/compiler.h in linux/unaligned/generic.h

2018-02-01 Thread Philipp Zabel
Without this include, the __force macro used in this header may be undefined. Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- include/linux/unaligned/generic.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/unaligned/generic.h b/include/linux/unaligned/gen

[PATCH 3/3] fs: add support loop mount offset

2018-02-01 Thread Philipp Zabel
When loop mounting, allow to specify an offset into the file, similarly to the losetup offset option. Multiplicative suffixes are supported. Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- fs/devfs-core.c | 8 fs/fs.c | 12 +--- include/driver.h | 2

[PATCH 1/3] fs/parseopt: Add parseopt_llu_suffix

2018-02-01 Thread Philipp Zabel
Add an option parser using strtoull_suffix that can be used to parse a loop mount offset option. Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- include/parseopt.h | 2 ++ lib/parseopt.c | 30 ++ 2 files changed, 32 insertions(+) diff --git a/i

[PATCH 2/3] filetype: Add type detection at an offset

2018-02-01 Thread Philipp Zabel
Add file_name_detect_type_offset to allow file system detection for loop mounts at an offset. Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- common/filetype.c | 10 -- include/filetype.h | 1 + 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/common/file

[PATCH] blspec: fix crash when trying to boot from loop mounts

2018-01-18 Thread Philipp Zabel
x1d/0x34) from [<4fe42a75>] (do_exception+0xd/0x10) [<4fe42a75>] (do_exception+0xd/0x10) from [<4fe42ad5>] (do_data_abort+0x21/0x2c) [<4fe42ad5>] (do_data_abort+0x21/0x2c) from [<4fe42394>] (do_abort_6+0x48/0x54) Fix this by checking cdev->dev as well as cdev

[PATCH] ARM: imx: imx6ull-evk: select ARCH_IMX6UL instead of ARCH_IMX6ULL

2017-10-12 Thread Philipp Zabel
There is no need for a separate ARCH_IMX6ULL Kconfig symbol, and the shared clock driver is only enabled with ARCH_IMX6UL. Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- arch/arm/mach-imx/Kconfig | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/arch/ar

Re: [PATCH 2/2] i.MX6ull evk support

2017-10-10 Thread Philipp Zabel
On Thu, 2017-09-28 at 12:13 +0200, Sascha Hauer wrote: > On Thu, Sep 28, 2017 at 11:33:32AM +0200, Lucas Stach wrote: > > Am Donnerstag, den 28.09.2017, 11:26 +0200 schrieb Sascha Hauer: > > > On Thu, Sep 28, 2017 at 11:16:15AM +0200, Lucas Stach wrote: > > > > Am Mittwoch, den 27.09.2017, 14:16

[PATCH] mmc: allow skipping SD card initialization

2017-09-20 Thread Philipp Zabel
This patch allows to skip SD card initialization for eMMCs by setting the "no-sd" property in the host controller device tree node. Avoiding two SD command timeouts speeds up detection time by well over 200 ms. Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- drivers/mci

[PATCH] state: backend_storage: remove unreachable error message

2017-07-18 Thread Philipp Zabel
This looks like a leftover. Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- common/state/backend_storage.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/common/state/backend_storage.c b/common/state/backend_storage.c index 8d24f7053..1abf8c866 100644 --- a/common

[PATCH] state: backend_bucket_circular: promote old state debug message to info

2017-07-18 Thread Philipp Zabel
A report about the changed on-storage state format might be interesting to the user. Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- common/state/backend_bucket_circular.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/state/backend_bucket_circula

[PATCH] state: backend_bucket_circular: fix old state reads

2017-07-18 Thread Philipp Zabel
ion will fail: state: Error, invalid data_len 16 in header, have data of len 24 Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- common/state/backend_bucket_circular.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common/state/backend_bucket_circular.c

Re: [PATCH] i.MX: clk-pllv3: Initially disable PLL_BYPASS bit

2017-07-12 Thread Philipp Zabel
On Wed, 2017-07-12 at 11:52 +0200, Philipp Zabel wrote: > On Wed, 2017-07-12 at 10:56 +0200, Lucas Stach wrote: > > Am Dienstag, den 11.07.2017, 12:41 -0500 schrieb Andrey Smirnov: > > > On Tue, Jul 11, 2017 at 4:30 AM, Philipp Zabel <p.za...@pengutronix.de> >

Re: [PATCH] i.MX: clk-pllv3: Initially disable PLL_BYPASS bit

2017-07-12 Thread Philipp Zabel
On Wed, 2017-07-12 at 10:56 +0200, Lucas Stach wrote: > Am Dienstag, den 11.07.2017, 12:41 -0500 schrieb Andrey Smirnov: > > On Tue, Jul 11, 2017 at 4:30 AM, Philipp Zabel <p.za...@pengutronix.de> > > wrote: > > > Commit cbff8031b491 ("i.MX: clk

[PATCH] i.MX: clk-pllv3: Initially disable PLL_BYPASS bit

2017-07-11 Thread Philipp Zabel
MX: clk-pllv3: Do not touch PLL_BYPASS bit") Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- drivers/clk/imx/clk-pllv3.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/clk/imx/clk-pllv3.c b/drivers/clk/imx/clk-pllv3.c index 0e55a63e9..44642e88f 100644 --- a/dri

[PATCH v3 1/3] fs: add parseopt_b for loop mount option

2017-06-01 Thread Philipp Zabel
Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- No changes since v2. --- fs/parseopt.c | 26 ++ fs/parseopt.h | 1 + 2 files changed, 27 insertions(+) diff --git a/fs/parseopt.c b/fs/parseopt.c index 12dbe1813c..8ff83019a7 100644 --- a/fs/parseopt.c ++

[PATCH v3 3/3] commands: mount: mention file loop mounts in the help text

2017-06-01 Thread Philipp Zabel
Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- No changes since v2. --- commands/mount.c | 1 + 1 file changed, 1 insertion(+) diff --git a/commands/mount.c b/commands/mount.c index f05e23b227..4cf1179b7b 100644 --- a/commands/mount.c +++ b/commands/mount.c @@ -117,6

[PATCH v3 2/3] fs: add cdev_create_loop and cdev_remove_loop for loop mount option

2017-06-01 Thread Philipp Zabel
Allow to create a loopback cdev from a file. Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- Changes since v1: - Renamed cdev_create_from_file to cdev_create_loop - Added cdev_remove_loop, which replaces cdev_close and also removes the cdev and frees its memories. - Ac

Re: [PATCH 4/5] fs: add cdev_create_from_file for loop mount option

2017-06-01 Thread Philipp Zabel
On Thu, 2017-06-01 at 08:31 +0200, Sascha Hauer wrote: > Hi Philipp, > > On Tue, May 30, 2017 at 04:09:46PM +0200, Philipp Zabel wrote: > > Allow to create a loopback cdev from a file. > > > > Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> &

[PATCH v2 1/3] fs: add parseopt_b for loop mount option

2017-06-01 Thread Philipp Zabel
Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- No changes since v1. --- fs/parseopt.c | 26 ++ fs/parseopt.h | 1 + 2 files changed, 27 insertions(+) diff --git a/fs/parseopt.c b/fs/parseopt.c index 12dbe1813c..8ff83019a7 100644 --- a/fs/parseopt.c ++

[PATCH v2 3/3] commands: mount: mention file loop mounts in the help text

2017-06-01 Thread Philipp Zabel
Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- No changes since v1. --- commands/mount.c | 1 + 1 file changed, 1 insertion(+) diff --git a/commands/mount.c b/commands/mount.c index f05e23b227..4cf1179b7b 100644 --- a/commands/mount.c +++ b/commands/mount.c @@ -117,6

[PATCH v2 2/3] fs: add cdev_create_from_file for loop mount option

2017-06-01 Thread Philipp Zabel
Allow to create a loopback cdev from a file. Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- Changes since v1: - Add cdev file operation to close the backing file descriptor on umount. --- fs/devfs-core.c | 89 f

[PATCH 3/5] fs: add parseopt_b for loop mount option

2017-05-30 Thread Philipp Zabel
Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- fs/parseopt.c | 26 ++ fs/parseopt.h | 1 + 2 files changed, 27 insertions(+) diff --git a/fs/parseopt.c b/fs/parseopt.c index 12dbe1813c..8ff83019a7 100644 --- a/fs/parseopt.c +++ b/fs/parseopt.c @@ -2,6

[PATCH 5/5] commands: mount: mention file loop mounts in the help text

2017-05-30 Thread Philipp Zabel
Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- commands/mount.c | 1 + 1 file changed, 1 insertion(+) diff --git a/commands/mount.c b/commands/mount.c index f05e23b227..4cf1179b7b 100644 --- a/commands/mount.c +++ b/commands/mount.c @@ -117,6 +117,7 @@ BAREBOX_CMD_HEL

[PATCH 4/5] fs: add cdev_create_from_file for loop mount option

2017-05-30 Thread Philipp Zabel
Allow to create a loopback cdev from a file. Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- fs/devfs-core.c | 81 fs/fs.c | 21 --- include/driver.h | 1 + 3 files changed, 99 insertions(+), 4 del

[PATCH 2/5] commands: mount: combine dev and devstr, which are the same

2017-05-30 Thread Philipp Zabel
Unify the device path used by the default mount and mount with specified mount point paths. Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- commands/mount.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/commands/mount.c b/commands/mount.c

[PATCH 1/5] cdev: make file operations const

2017-05-30 Thread Philipp Zabel
gt;ops. Since there is no reason to modify the contents of cdev->ops after probing, make it const. Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- include/driver.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/driver.h b/include/driver.h index 52e06f7

[PATCH] of: base: add chosen node if it does not exist when adding initrd

2016-12-08 Thread Philipp Zabel
If the chosen node does not exist, of_add_initrd fails to pass the initrd to the kernel. Instead it should create the chosen node, just like of_fixup_bootargs does. Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- drivers/of/base.c | 4 ++-- 1 file changed, 2 insertions(+), 2 del

[PATCH 3/3] video: tc358767: add eDP video encoder driver

2016-08-24 Thread Philipp Zabel
From: Andrey Gusakov <andrey.gusa...@cogentembedded.com> This patch adds support for the Toshiba TC358767 eDP bridge, connected via DPI. Signed-off-by: Andrey Gusakov <andrey.gusa...@cogentembedded.com> Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- drivers/video

[PATCH 2/3] video: add VPL ioctl to get bus format

2016-08-24 Thread Philipp Zabel
The i.MX specific DI_MODE VPL ioctl already allows to query the encoder input bus format. This patch also allows non-i.MX specific encoder drivers to report their input bus format. Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- drivers/video/imx-ipu-v3/ipufb.c | 8 ++-- i

[PATCH 1/3] video: switch to media bus formats

2016-08-24 Thread Philipp Zabel
V4L2 pixel formats are supposed to describe video frames in memory. To describe the pixel format on the hardware bus between display interface and encoders, use media bus formats, which are more expressive. This allows to get rid of the custom GBR24 and LVDS666 fourccs. Signed-off-by: Philipp

Re: phytec-som-imx6: DCD setup: PLL reduction and video core settings

2016-03-03 Thread Philipp Zabel
Am Freitag, den 19.02.2016, 20:28 +0100 schrieb Andreas Pretzsch: > While looking into a maybe boarderline RAM setup on one specific piece > of hardware, I took a closer look at the i.MX6 DDR setup of the Phytec > i.MX6 modules in barebox. > And came across two things that look ... somewhat

[PATCH] Documentation: usb: fix otg mode parameter description

2016-02-16 Thread Philipp Zabel
Replace ``device`` otg.mode option with the correct ``peripheral``. Signed-off-by: Philipp Zabel <philipp.za...@gmail.com> --- Documentation/user/usb.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/user/usb.rst b/Documentation/user/usb.rst index 9

Re: [PATCH 6/6] net: phy: micrel: errata for KSZ9031

2016-02-02 Thread Philipp Zabel
Am Dienstag, den 02.02.2016, 12:17 +0100 schrieb Philipp Zabel: > The KSZ9031 erratum #2 stats: > The 125MHz reference clock (CLK125_NDO pin) output > has duty cycle variation when the KSZ9031 links up in > 1000Base-T Slave mode, resulting in wide variation on > th

[PATCH 3/6] net: phy: micrel: Be more const correct

2016-02-02 Thread Philipp Zabel
9031_config_init() to be not only const, but also static. Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- drivers/net/phy/micrel.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/net/phy/micrel.c b/drivers/net/phy/micrel.c index 0

[PATCH 2/6] net: phy: micrel: use BIT macro

2016-02-02 Thread Philipp Zabel
Based on kernel commit 00aee095000c ("net: phy: micrel: use BIT macro") by Johan Hovold <jo...@kernel.org>. Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- drivers/net/phy/micrel.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff -

[PATCH 6/6] net: phy: micrel: errata for KSZ9031

2016-02-02 Thread Philipp Zabel
Markus Niebel <markus.nie...@tqs.de> Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- drivers/net/phy/micrel.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/net/phy/micrel.c b/drivers/net/phy/micrel.c index e8a566d..5227dfb 100644 --- a/drivers/net/

[PATCH 5/6] net: phy: micrel: Add workaround for bad autoneg

2016-02-02 Thread Philipp Zabel
error count will read 0xFF after autonegotiation completes. Reset the PHY when in that state. Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- drivers/net/phy/micrel.c | 23 ++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/drivers/net/phy/micr

[PATCH 1/6] net: phy: micrel: Staticise ksz8873mll_read_status()

2016-02-02 Thread Philipp Zabel
warning: symbol 'ksz8873mll_read_status' was not declared. Should it be static? Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- drivers/net/phy/micrel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/phy/micrel.c b/drivers/net/phy/micrel.c index 095563a..2f31906 10

[PATCH 4/6] net: phy: micrel: Center FLP timing at 16ms

2016-02-02 Thread Philipp Zabel
Based on kernel commit 6270e1ae804a ("net/phy: micrel: Center FLP timing at 16ms") by Jaeden Amero <jaeden.am...@ni.com>: Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- drivers/net/phy/micrel.c | 17 - 1 file changed, 16 insertions(+), 1 d

[PATCH] ARM: cm-fx6: set proper hostname

2016-01-21 Thread Philipp Zabel
Set the hostname to "utilite" or "cm-fx6". Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- arch/arm/boards/cm-fx6/board.c | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boards/cm-fx6/board.c b/arch/arm/boards/cm-fx6/board.c index edef18f.

[PATCH 1/2] ARM: pfla02: align with and include mainline DT

2015-08-18 Thread Philipp Zabel
Align with the mainline device tree, include it, and remove all unchanged nodes and properties. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- arch/arm/dts/imx6dl-phytec-pfla02.dtsi | 4 - arch/arm/dts/imx6q-phytec-pfla02.dtsi | 4 - arch/arm/dts/imx6qdl-phytec-pfla02.dtsi | 136

[PATCH 2/2] ARM: pbab01: align with and include mainline DT

2015-08-18 Thread Philipp Zabel
Align with the mainline device tree, include it, and remove all unchanged nodes and properties. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- arch/arm/dts/imx6q-phytec-pbab01.dts| 4 arch/arm/dts/imx6qdl-phytec-pbab01.dtsi | 16 +--- 2 files changed, 1 insertion

[PATCH] ARM: imx6: rename SPI NOR device to /dev/spinor0

2015-07-20 Thread Philipp Zabel
Barebox currently names the SPI NOR device /dev/sst25vf016b, but the barebox update handler still points to /dev/m25p80, causing barebox_update to fail. Choose a descriptive name instead. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- arch/arm/boards/freescale-mx6-sabrelite/board.c | 4

[PATCH] ARM: imx6: fix GK802 DT

2015-07-07 Thread Philipp Zabel
From: Philipp Zabel philipp.za...@gmail.com Including imx6q.dtsi after arm/imx6q-gk802.dts also includes arm/imx6ql.dtsi again, disabling all peripherals, including the serial console uart. We can't include it first either, because arm/imx6q-gk802.dts contains the /dts-v1/ header. This patch

[PATCH] ARM: imx6: do not include arm/imx6q.dtsi from barebox imx6q.dtsi

2015-07-07 Thread Philipp Zabel
Instead, let each board dts file that needs it include arm/imx6q.dtsi manually before imx6q.dtsi. This way board dts files that include the original board dts and include imxq6.dtsi on top of that without disabling all peripherals. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- arch/arm

[RFC PATCH] ARM: i.MX6: Add workaround for glitchy LDB_DI mux

2014-12-03 Thread Philipp Zabel
= clks IMX6QDL_CLK_MMDC_CH1_AXI, clks IMX6QDL_CLK_PLL5_VIDEO_DIV; }; Signed-off-by: Ranjani Vaidyanathan ranjani.vaidyanat...@freescale.com Signed-off-by: Fabio Estevam fabio.este...@freescale.com Signed-off-by: Philipp Zabel p.za...@pengutronix.de

[PATCH] Fix barebox metadata

2014-09-04 Thread Philipp Zabel
Patch 97e81f2d78f3 (Add support for metadata in barebox images) writes the wrong length for the model tag in the barebox metadata. Fix this to use the correct value. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- scripts/gen-dtb-s | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH] serial: imx: Fix for non-devicetree boards

2014-08-15 Thread Philipp Zabel
Commit 3843bfd0ab77eaf125ca617922927b61fc8ded74 serial: imx: Determine device name from device tree broke this driver for non-devicetree boards, since of_alias_get may not be called with a NULL pointer as first argument. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/serial

[PATCH] ARM: AM335x: Beaglebone: Fix memory setup for Beaglebone black

2014-06-16 Thread Philipp Zabel
From: Philipp Zabel philipp.za...@gmail.com Commit 0d6392de4ad824a6553c0e3e3e18edef689a7c85 introduced a stripped down device tree used for both white and black Beaglebone variants that included the 256 MiB memory node from am335x-bone-common.dtsi. This leads to the following error in the MLO

[PATCH] mtd: ubi: avoid NULL pointer dereference in ubi_get_device

2014-03-19 Thread Philipp Zabel
If the ubidetach command is given a number that passes the range check in ubi_detach_mtd_dev, but at which index the ubi_devices array contains a NULL pointer, ubi_get_device tries to dereference this NULL pointer to increment the ubi device reference count. Signed-off-by: Philipp Zabel p.za

[PATCH] ARM i.MX6: Gate clocks to graphics processing units

2014-02-21 Thread Philipp Zabel
This patch gates the clocks to GPU, IPU, and VPU units by default, significantly reducing the VDDSOC power draw while barebox is running. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- arch/arm/mach-imx/clk-imx6.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

[PATCH 3/4] net usb asix: read MAC from EEPROM on AX88772B

2014-01-28 Thread Philipp Zabel
Signed-off-by: Philipp Zabel philipp.za...@gmail.com --- drivers/net/usb/asix.c | 18 +++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/drivers/net/usb/asix.c b/drivers/net/usb/asix.c index 003ebba..085d728 100644 --- a/drivers/net/usb/asix.c +++ b/drivers/net/usb

  1   2   >