Re: [PATCH v5 5/8] reset: imx8mp-audiomix: Prepare the code for more reset bits

2025-03-13 Thread Philipp Zabel
Reviewed-by: Peng Fan > Reviewed-by: Frank Li > Signed-off-by: Daniel Baluta Reviewed-by: Philipp Zabel regards Philipp

Re: [PATCH v5 0/8] imx8mp: Add support to Run/Stall DSP via reset API

2025-03-13 Thread Philipp Zabel
Hi Mathieu, On Di, 2025-03-11 at 10:27 -0600, Mathieu Poirier wrote: > Thanks for the re-spin. I will wait for Shawn and Sascha to review their > respective bits before picking up this set. Acked-by: Philipp Zabel for merging the whole series via rproc. regards Philipp

Re: [PATCH v5 7/8] reset: imx8mp-audiomix: Add support for DSP run/stall

2025-03-13 Thread Philipp Zabel
Frank Li > Signed-off-by: Daniel Baluta Reviewed-by: Philipp Zabel regards Philipp

Re: [PATCH v3 2/8] dt-bindings: dsp: fsl,dsp: Add resets property

2025-02-25 Thread Philipp Zabel
Hi Daniel, On Di, 2025-02-25 at 15:41 +0200, Daniel Baluta wrote: > Hello Philipp, > > Thanks for your comments! > > > The DAP core reset is mentioned in the commit message. Why is it > > missing here? After reading the discussion in [1], I'd expect both the > > stall and the (core) reset signal

Re: [PATCH v3 1/8] dt-bindings: reset: audiomix: Add reset ids for EARC and DSP

2025-02-25 Thread Philipp Zabel
On Di, 2025-02-25 at 12:19 +0200, Daniel Baluta wrote: > Add reset ids used for EARC and DSP on i.MX8MP platform. > > Signed-off-by: Daniel Baluta > Acked-by: Rob Herring (Arm) > Reviewed-by: Frank Li > --- > include/dt-bindings/reset/imx8mp-reset-audiomix.h | 13 + > 1 file change

Re: [PATCH v3 2/8] dt-bindings: dsp: fsl,dsp: Add resets property

2025-02-25 Thread Philipp Zabel
On Di, 2025-02-25 at 12:19 +0200, Daniel Baluta wrote: > Assert and deassert functionality of the DSP found on i.MX8MP is > realized by combining control bits from two modules: Audio Block > Control and Debug Access Port. > > Audio block control bits are used to for Run/Stall the DSP core > while

Re: [PATCH 5/5] imx_dsp_rproc: Use reset controller API to control the DSP

2025-02-18 Thread Philipp Zabel
On Di, 2025-02-18 at 10:57 +0200, Daniel Baluta wrote: > Use the reset controller API to control the DSP on i.MX8MP. This way > we can have a better control of the resources and avoid using a syscon > to access the audiomix bits. > > Signed-off-by: Daniel Baluta > --- > drivers/remoteproc/imx_ds

Re: [PATCH 2/5] reset: imx8mp-audiomix: Prepare the code for more reset bits

2025-02-18 Thread Philipp Zabel
Hi Daniel, On Di, 2025-02-18 at 10:57 +0200, Daniel Baluta wrote: > Current code supports EARC PHY Software Reset and EARCSoftware > Reset but it is not easily extensible to more reset bits. > > So, refactor the code in order to easily allow more reset bits > in the future. > > Signed-of

Re: [PATCH 4/5] reset: imx8mp-audiomix: Add support for DSP run/stall

2025-02-18 Thread Philipp Zabel
e, > }, > - This belongs in patch 2. > + [IMX8MP_AUDIOMIX_DSP] = { > + .offset = IMX8MP_AUDIOMIX_DSP_OFFSET, > + .mask = IMX8MP_AUDIOMIX_DSP_RUNSTALL_MASK, > + .active_low = false, > + }, > }; > > struct imx8mp_audiomix_reset { Otherwise, Reviewed-by: Philipp Zabel regards Philipp

Re: [PATCH 1/5] reset: imx8mp-audiomix: Add prefix for internal macro

2025-02-18 Thread Philipp Zabel
On Di, 2025-02-18 at 10:57 +0200, Daniel Baluta wrote: > This adds IMX8MP_AUDIOMIX_ prefix to internal macros > in order to show that specific macros are related to > audiomix. > > Signed-off-by: Daniel Baluta Reviewed-by: Philipp Zabel regards Philipp

Re: [PATCH 3/5] reset: imx8mp-audiomix: Introduce active_low configuration option

2025-02-18 Thread Philipp Zabel
ned int mask, offset, reg; > - unsigned long flags; > + unsigned int mask, offset, active_low; > + unsigned long reg, flags; Nitpick, I would make active_low bool, like assert. Otherwise, Reviewed-by: Philipp Zabel regards Philipp

Re: [PATCH v2 2/3] drivers: char: ipmi: Add Aspeed SSIF BMC driver

2021-04-02 Thread Philipp Zabel
Hi Quan, On Tue, Mar 30, 2021 at 09:10:28PM +0700, Quan Nguyen wrote: > The SMBus system interface (SSIF) IPMI BMC driver can be used to perform > in-band IPMI communication with their host in management (BMC) side. > > This commits adds support specifically for Aspeed AST2500 which commonly > us

Re: [PATCH -next] media: imx-pxp: remove redundant dev_err call in pxp_probe()

2021-04-01 Thread Philipp Zabel
On Thu, Apr 01, 2021 at 06:26:07PM +0800, Yang Yingliang wrote: > There is an error message within devm_ioremap_resource > already, so remove the dev_err call to avoid redundant > error message. > > Reported-by: Hulk Robot > Signed-off-by: Yang Yingliang Thank you, Reviewed

Re: [PATCH v6 02/13] dt-bindings: media: nxp,imx8mq-vpu: Update the bindings for G2 support

2021-03-26 Thread Philipp Zabel
On Fri, Mar 26, 2021 at 03:26:15PM +0100, Benjamin Gaignard wrote: > > Le 26/03/2021 à 15:11, Philipp Zabel a écrit : > > On Thu, Mar 18, 2021 at 09:20:35AM +0100, Benjamin Gaignard wrote: > > > Introducing G2 hevc video decoder lead to modify the bindings to allow > >

Re: [PATCH v6 13/13] arm64: dts: imx8mq: Add node to G2 hardware

2021-03-26 Thread Philipp Zabel
On Thu, Mar 18, 2021 at 09:20:46AM +0100, Benjamin Gaignard wrote: > Split VPU node in two: one for G1 and one for G2 since they are > different hardware blocks. > Add syscon for hardware control block. > Remove reg-names property that is useless. > Each VPU node only need one interrupt. > > Signe

Re: [PATCH v6 12/13] media: hantro: IMX8M: add variant for G2/HEVC codec

2021-03-26 Thread Philipp Zabel
f-by: Benjamin Gaignard Reviewed-by: Philipp Zabel regards Philipp

Re: [PATCH v6 03/13] media: hantro: Use syscon instead of 'ctrl' register

2021-03-26 Thread Philipp Zabel
_unprepare(vpu->variant->num_clocks, vpu->clocks); > > @@ -150,8 +149,22 @@ static irqreturn_t imx8m_vpu_g1_irq(int irq, void > *dev_id) > > static int imx8mq_vpu_hw_init(struct hantro_dev *vpu) > { > - vpu->dec_base = vpu->reg_bases[0]; > - vpu->ctrl_base = vpu->reg_bases[vpu->variant->num_regs - 1]; > + struct device_node *np = vpu->dev->of_node; > + > + vpu->ctrl_base = syscon_regmap_lookup_by_phandle(np, > "nxp,imx8mq-vpu-ctrl"); I think calling this nxp,imx8m-vpu-ctrl would allow to share this with i.MX8MM later. Otherwise, Reviewed-by: Philipp Zabel thanks Philipp

Re: [PATCH v6 02/13] dt-bindings: media: nxp,imx8mq-vpu: Update the bindings for G2 support

2021-03-26 Thread Philipp Zabel
On Thu, Mar 18, 2021 at 09:20:35AM +0100, Benjamin Gaignard wrote: > Introducing G2 hevc video decoder lead to modify the bindings to allow > to get one node per VPUs. > VPUs share one hardware control block which is provided as a phandle on > an syscon. > Each node got now one reg and one interrup

Re: [PATCH] [v3] drm/imx: imx-ldb: fix out of bounds array access warning

2021-03-25 Thread Philipp Zabel
On Thu, Mar 25, 2021 at 10:03:23AM +0800, Liu Ying wrote: > On Wed, 2021-03-24 at 17:47 +0100, Arnd Bergmann wrote: > > From: Arnd Bergmann > > > > When CONFIG_OF is disabled, building with 'make W=1' produces warnings > > about out of bounds array access: > > > > drivers/gpu/drm/imx/imx-ldb.c:

Re: [PATCH] drm/imx: imx-ldb: Register LDB channel1 when it is the only channel to be used

2021-03-25 Thread Philipp Zabel
On Mon, Mar 22, 2021 at 10:56:40AM +0800, Liu Ying wrote: > LDB channel1 should be registered if it is the only channel to be used. > Without this patch, imx_ldb_bind() would skip registering LDB channel1 > if LDB channel0 is not used, no matter LDB channel1 needs to be used or > not. > > Fixes: 8

Re: [PATCH] drm/imx: fix memory leak when fails to init

2021-03-25 Thread Philipp Zabel
On Wed, Jan 20, 2021 at 01:16:08AM -0800, Pan Bian wrote: > Put DRM device on initialization failure path rather than directly > return error code. > > Fixes: a67d5088ceb8 ("drm/imx: drop explicit drm_mode_config_cleanup") > Signed-off-by: Pan Bian Thank you, applied to imx-drm/fixes. regards P

Re: [PATCH 2/3] net: ethernet: actions: Add Actions Semi Owl Ethernet MAC driver

2021-03-10 Thread Philipp Zabel
Hi Cristian, On Thu, Mar 11, 2021 at 03:20:13AM +0200, Cristian Ciocaltea wrote: > Add new driver for the Ethernet MAC used on the Actions Semi Owl > family of SoCs. > > Currently this has been tested only on the Actions Semi S500 SoC > variant. > > Signed-off-by: Cristian Ciocaltea > --- [...]

Re: [PATCH] reset: zynqmp: replace spaces with tabs

2021-03-05 Thread Philipp Zabel
On Thu, 2021-03-04 at 17:03 +0100, Michal Simek wrote: > > On 3/4/21 5:00 PM, Philipp Zabel wrote: > > Fixes checkpatch issues: > > > > ERROR: code indent should use tabs where possible > > #86: FILE: drivers/reset/reset-zynqmp.c:86: > > +.reset

Re: [PATCH v6 3/3] hwrng: bcm2835: add reset support

2021-03-05 Thread Philipp Zabel
FIPS 140-2(2001-10-10) Continuous run: 0 > rngtest: input channel speed: (min=37.253; avg=320.827; max=635.783)Mibits/s > rngtest: FIPS tests speed: (min=12.141; avg=15.034; max=16.428)Mibits/s > rngtest: Program run time: 1336176 microseconds > > Signed-off-by: Álvaro Fernández Rojas

[PATCH] reset: axs10x: Replace GPLv2 boilerplate/reference with SPDX

2021-03-04 Thread Philipp Zabel
reset-axs10x is GPL-2.0-only, add a SPDX-License-Identifier. Signed-off-by: Philipp Zabel --- drivers/reset/reset-axs10x.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/reset/reset-axs10x.c b/drivers/reset/reset-axs10x.c index a854ef41364d..ca78b859936c 100644

[PATCH] reset: oxnas: replace file name with short description

2021-03-04 Thread Philipp Zabel
Fixes a checkpatch warning: WARNING: It's generally not useful to have the filename in the file #3: FILE: drivers/reset/reset-oxnas.c:3: + * drivers/reset/reset-oxnas.c Signed-off-by: Philipp Zabel --- drivers/reset/reset-oxnas.c | 2 +- 1 file changed, 1 insertion(+), 1 del

[PATCH] reset: ti-syscon: fix to_ti_syscon_reset_data macro

2021-03-04 Thread Philipp Zabel
con_reset_data(rcdev) \ + container_of(rcdev, struct ti_syscon_reset_data, rcdev) Signed-off-by: Philipp Zabel --- drivers/reset/reset-ti-syscon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/reset/reset-ti-syscon.c b/drivers/reset/reset-ti-syscon.

[PATCH] reset: uniphier: enclose UNIPHIER_RESET_ID_END value in parentheses

2021-03-04 Thread Philipp Zabel
Fixes a checkpatch error: ERROR: Macros with complex values should be enclosed in parentheses #23: FILE: drivers/reset/reset-uniphier.c:23: +#define UNIPHIER_RESET_ID_END(unsigned int)(-1) Signed-off-by: Philipp Zabel --- drivers/reset/reset-uniphier.c | 2 +- 1 file

[PATCH] reset: sti/syscfg: replace comma with semicolon

2021-03-04 Thread Philipp Zabel
Fixes a checkpatch warning: WARNING: Possible comma where semicolon could be used #156: FILE: drivers/reset/sti/reset-syscfg.c:156: + rc->rst.ops = &syscfg_reset_ops, + rc->rst.of_node = dev->of_node; Signed-off-by: Philipp Zabel --- drivers/reset/sti/reset-syscf

[PATCH] reset: zynqmp: replace spaces with tabs

2021-03-04 Thread Philipp Zabel
should use tabs where possible #87: FILE: drivers/reset/reset-zynqmp.c:87: +.num_resets = VERSAL_NR_RESETS,$ WARNING: please, no spaces at the start of a line #87: FILE: drivers/reset/reset-zynqmp.c:87: +.num_resets = VERSAL_NR_RESETS,$ Signed-off-by: Philipp Zabel

[PATCH] reset: berlin: replace unsigned with unsigned int

2021-03-04 Thread Philipp Zabel
Fixes a checkpatch warning: WARNING: Prefer 'unsigned int' to bare use of 'unsigned' #55: FILE: drivers/reset/reset-berlin.c:55: + unsigned offset, bit; Signed-off-by: Philipp Zabel --- drivers/reset/reset-berlin.c | 2 +- 1 file changed, 1 insertion(+), 1 delet

[PATCH] reset: whitespace fixes

2021-03-04 Thread Philipp Zabel
node *node, + const char *id, int index, bool shared, CHECK: Alignment should match open parenthesis #781: FILE: drivers/reset/core.c:781: +struct reset_control *__devm_reset_control_get(struct device *dev, + const char *id, int index, bool shared, Signed-off-b

Re: [RFC PATCH 5/6] PCI: designware: Add SiFive FU740 PCIe host controller driver

2021-03-04 Thread Philipp Zabel
On Tue, 2021-03-02 at 18:59 +0800, Greentime Hu wrote: [...] > +static int fu740_pcie_probe(struct platform_device *pdev) > +{ [...] > + /* Fetch reset */ > + afp->rst = devm_reset_control_get(dev, NULL); Please use afp->rst = devm_reset_control_get_exclusive(dev, NULL); rega

Re: [RFC PATCH 2/6] clk: sifive: Use reset-simple in prci driver for PCIe driver

2021-03-04 Thread Philipp Zabel
pd->reset.membase = pd->va + PRCI_DEVICESRESETREG_OFFSET; > + spin_lock_init(&pd->reset.lock); > + > + r = devm_reset_controller_register(&pdev->dev, &pd->reset.rcdev); > + if (r) { > + dev_err(dev, "could not register reset controller: %d\n", r); > + return r; > + } > r = __prci_register_clocks(dev, pd, desc); > + Accidental whitespace? Otherwise, Reviewed-by: Philipp Zabel regards Philipp

Re: [PATCH v4 01/13] phy: cadence: Sierra: Fix PHY power_on sequence

2021-03-04 Thread Philipp Zabel
onfigurations has been initialized, instead of de-asserting > in probe. Fix it here. > > Fixes: 44d30d622821d ("phy: cadence: Add driver for Sierra PHY") > Signed-off-by: Kishon Vijay Abraham I > Cc: # v5.4+ Reviewed-by: Philipp Zabel regards Philipp

Re: [PATCH v4 07/13] phy: cadence: cadence-sierra: Explicitly request exclusive reset control

2021-03-04 Thread Philipp Zabel
set_control_get_optional(dev, "sierra_apb"); > + rst = devm_reset_control_get_optional_exclusive(dev, "sierra_apb"); > if (IS_ERR(rst)) { > dev_err(dev, "failed to get apb reset\n"); > return PTR_ERR(rst); Oh, nevermind my comment on the previous patch. Reviewed-by: Philipp Zabel regards Philipp

Re: [PATCH v4 06/13] phy: cadence: cadence-sierra: Move all reset_control_get*() to a separate function

2021-03-04 Thread Philipp Zabel
(dev, "failed to get reset\n"); > + return PTR_ERR(rst); > + } > + sp->phy_rst = rst; > + > + rst = devm_reset_control_get_optional(dev, "sierra_apb"); ... and rst = devm_reset_control_get_optional_exclusive(dev, "sierra_apb"); here (no functional change). With that, Reviewed-by: Philipp Zabel regards Philipp

Re: [PATCH v5 2/2] hwrng: bcm2835: add reset support

2021-03-04 Thread Philipp Zabel
nández Rojas > --- > v5: remove reset_control_rearm(). Reviewed-by: Philipp Zabel regards Philipp

Re: [PATCH v3 0/5] Reset driver for IMX8MQ VPU hardware block

2021-03-03 Thread Philipp Zabel
On Wed, 2021-03-03 at 16:20 +0100, Benjamin Gaignard wrote: > Le 03/03/2021 à 15:17, Philipp Zabel a écrit : > > Hi Benjamin, > > > > On Mon, 2021-03-01 at 16:17 +0100, Benjamin Gaignard wrote: > > > The two VPUs inside IMX8MQ share the same control block whi

Re: [PATCH v3 3/5] reset: Add reset driver for IMX8MQ VPU block

2021-03-03 Thread Philipp Zabel
On Mon, 2021-03-01 at 16:17 +0100, Benjamin Gaignard wrote: > IMX8MQ SoC got a dedicated hardware block to reset the video processor > units (G1 and G2). > > Signed-off-by: Benjamin Gaignard > --- > drivers/reset/Kconfig| 8 ++ > drivers/reset/Makefile | 1 + > drivers/

Re: [PATCH v6 22/37] reset: reset-scmi: port driver to the new scmi_reset_proto_ops interface

2021-03-03 Thread Philipp Zabel
On Tue, 2021-02-02 at 22:15 +, Cristian Marussi wrote: > Port driver to the new SCMI Reset interface based on protocol handles > and common devm_get_ops(). > > Cc: Philipp Zabel > Signed-off-by: Cristian Marussi Acked-by: Philipp Zabel regards Philipp

Re: [PATCH v3 4/5] media: hantro: Use reset driver

2021-03-03 Thread Philipp Zabel
On Mon, 2021-03-01 at 16:17 +0100, Benjamin Gaignard wrote: > Rather use a reset like feature inside the driver use the reset > controller API to get the same result. > > Signed-off-by: Benjamin Gaignard > --- > drivers/staging/media/hantro/Kconfig| 1 + > drivers/staging/media/hantro/i

Re: [PATCH v3 0/5] Reset driver for IMX8MQ VPU hardware block

2021-03-03 Thread Philipp Zabel
Hi Benjamin, On Mon, 2021-03-01 at 16:17 +0100, Benjamin Gaignard wrote: > The two VPUs inside IMX8MQ share the same control block which can be see > as a reset hardware block. This isn't a reset controller though. The control block also contains clock gates of some sort and a filter register for

Re: [PATCH v4 2/2] hwrng: bcm2835: add reset support

2021-03-03 Thread Philipp Zabel
Hi Álvaro, On Wed, 2021-02-24 at 09:22 +0100, Álvaro Fernández Rojas wrote: [...] > @@ -115,6 +121,8 @@ static void bcm2835_rng_cleanup(struct hwrng *rng) > /* disable rng hardware */ > rng_writel(priv, 0, RNG_CTRL); > > + reset_control_rearm(priv->reset); > + > if (!IS_ERR

[RFC] reset: add reset_control_bulk API

2021-03-03 Thread Philipp Zabel
Follow the clock and regulator subsystems' lead and add a bulk API for reset controls. Signed-off-by: Philipp Zabel --- drivers/reset/core.c | 213 + include/linux/reset.h | 238 ++ 2 files changed, 451 inser

Re: [PATCH v1 5/5] ASoC: tegra30: i2s: Add reset control

2021-03-03 Thread Philipp Zabel
Hi Dmitry, On Wed, 2021-03-03 at 11:28 +0300, Dmitry Osipenko wrote: > 02.03.2021 14:21, Dmitry Osipenko пишет: > > The I2S reset may be asserted at a boot time. Tegra30 I2S driver doesn't > > manage the reset control and currently it happens to work because reset > > is implicitly deasserted by t

Re: [BUG REPORT] media: coda: mpeg4 decode corruption on i.MX6qp only

2021-02-11 Thread Philipp Zabel
Hi Sven, On Wed, Feb 10, 2021 at 01:29:29PM -0500, Sven Van Asbroeck wrote: > Found it! > > The i.MX6QuadPlus has two pairs of PREs, which use the extended > section of the iRAM. The Classic does not have any PREs or extended > iRAM: > > pre1: pre@21c8000 { >compatible = "fsl,imx6qp-pre"; >

Re: [PATCH v1] reset: Add devm_reset_control_get_optional_exclusive_released()

2021-01-25 Thread Philipp Zabel
Hi Dmitry, On Sat, 2021-01-23 at 19:34 +0300, Dmitry Osipenko wrote: > NVIDIA Tegra DRM and media drivers will need a resource-managed-optional > variant of reset_control_get_exclusive_released() in order to switch away > from a legacy Tegra-specific PD API to a GENPD API without much hassle. > Ad

[PATCH] reset: bcm6345: Make reset_control_ops const

2021-01-14 Thread Philipp Zabel
The bcm6345_reset_ops structure is never modified. Make it const. Signed-off-by: Philipp Zabel --- drivers/reset/reset-bcm6345.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/reset/reset-bcm6345.c b/drivers/reset/reset-bcm6345.c index 737e4e81f6b7..ac6c7ad1deda

Re: [PATCH 1/3] dt-bindings: reset: microchip sparx5 reset driver bindings

2021-01-14 Thread Philipp Zabel
Hi Steen, On Wed, 2021-01-13 at 21:19 +0100, Steen Hegelund wrote: > Signed-off-by: Steen Hegelund > --- > .../bindings/reset/microchip,rst.yaml | 52 +++ > 1 file changed, 52 insertions(+) > create mode 100644 Documentation/devicetree/bindings/reset/microchip,rst.yaml >

Re: [PATCH 2/3] reset: mchp: sparx5: add switch reset driver

2021-01-14 Thread Philipp Zabel
Hi Steen, thank you for the patch. In addition to Andrew's comments, I have a few more below: On Wed, 2021-01-13 at 21:19 +0100, Steen Hegelund wrote: > Signed-off-by: Steen Hegelund > --- > drivers/reset/Kconfig | 8 ++ > drivers/reset/Makefile | 1 + > dri

Re: [PATCH v6 14/16] reset: core: fix a kernel-doc markup

2021-01-14 Thread Philipp Zabel
Hi Mauro, On Thu, 2021-01-14 at 09:04 +0100, Mauro Carvalho Chehab wrote: > A function has a different name between their prototype > and its kernel-doc markup: > > ../drivers/reset/core.c:888: warning: expecting prototype for > device_reset(). Prototype was for __device_reset() instead >

Re: [PATCH v7 9/9] media: imx-jpeg: Use v4l2 jpeg helpers in mxc-jpeg

2021-01-12 Thread Philipp Zabel
th < MXC_JPEG_MIN_WIDTH || > + header.frame.height < MXC_JPEG_MIN_HEIGHT) { > dev_err(dev, "JPEG width or height should be > 64: %dx%d\n", > - sof.width, sof.height); > + header.frame.width, header.frame.height); > return -EINVAL; > } > - if (sof.components_no > MXC_JPEG_MAX_COMPONENTS) { > + if (header.frame.num_components > V4L2_JPEG_MAX_COMPONENTS) { > dev_err(dev, "JPEG number of components should be <=%d", > - MXC_JPEG_MAX_COMPONENTS); > + V4L2_JPEG_MAX_COMPONENTS); > return -EINVAL; > } > /* check and, if necessary, patch component IDs*/ > + psof = (struct mxc_jpeg_sof *)header.sof.start; > + psos = (struct mxc_jpeg_sos *)header.sos.start; > if (!mxc_jpeg_valid_comp_id(dev, psof, psos)) > dev_warn(dev, "JPEG component ids should be 0-3 or 1-4"); > > - img_fmt = mxc_jpeg_get_image_format(dev, &sof); > - if (img_fmt == MXC_JPEG_INVALID) > + fourcc = mxc_jpeg_get_image_format(dev, header); > + if (fourcc == 0) > return -EINVAL; > > /* > @@ -1413,12 +1282,11 @@ static int mxc_jpeg_parse(struct mxc_jpeg_ctx *ctx, >* encoded with 3 components have RGB colorspace, see Recommendation >* ITU-T T.872 chapter 6.5.3 APP14 marker segment for colour encoding >*/ > - if (img_fmt == MXC_JPEG_YUV444 && app14 && app14_transform == 0) > - img_fmt = MXC_JPEG_RGB; > - > - if (mxc_jpeg_imgfmt_to_fourcc(img_fmt, &fourcc)) { > - dev_err(dev, "Fourcc not found for %d", img_fmt); > - return -EINVAL; > + if (fourcc == V4L2_PIX_FMT_YUV24 || fourcc == V4L2_PIX_FMT_RGB24) { > + if (header.app14_tf == V4L2_JPEG_APP14_TF_CMYK_RGB) > + fourcc = V4L2_PIX_FMT_RGB24; > + else > + fourcc = V4L2_PIX_FMT_YUV24; > } See above, this fixup could be moved into mxc_jpeg_get_image_format(). With that, Reviewed-by: Philipp Zabel regards Philipp

Re: [PATCH v7 6/9] media: Add parsing for APP14 data segment in jpeg helpers

2021-01-12 Thread Philipp Zabel
+ *tf = ret; > + > + skip = lp - 2 - 11; > + ret = jpeg_skip(stream, skip); > + if (ret < 0) > + return ret; > + > + return 0; This could be simplified to return jpeg_skip(stream, skip); although it would be better style to move the *tf = ... assignment down past the last error return instead. Either way, Reviewed-by: Philipp Zabel regards Philipp

Re: linux-next: Tree for Jan 7 (drivers/gpu/drm/imx/parallel-display.o)

2021-01-08 Thread Philipp Zabel
On Fri, 2021-01-08 at 10:03 +0100, Daniel Vetter wrote: > On Fri, Jan 8, 2021 at 9:55 AM Randy Dunlap wrote: > > On 1/6/21 7:01 PM, Stephen Rothwell wrote: > > > Hi all, > > > > > > Changes since 20210106: > > > > > > > on x86_64: > > > > ld: drivers/gpu/drm/imx/parallel-display.o: in function

Re: [PATCH v2 -next] media: hantro: convert comma to semicolon

2021-01-08 Thread Philipp Zabel
DEFAULT; > fmt->quantization = V4L2_QUANTIZATION_DEFAULT; > fmt->xfer_func = V4L2_XFER_FUNC_DEFAULT; Thank you, Reviewed-by: Philipp Zabel regards Philipp

Re: [PATCH 3/5] dt-bindings: media: rockchip-vpu: Add PX30 compatible

2021-01-07 Thread Philipp Zabel
Hi Paul, On Thu, 2021-01-07 at 14:40 +0100, Paul Kocialkowski wrote: > The Rockchip PX30 SoC has a Hantro VPU that features a decoder (VDPU2) > and an encoder (VEPU2). It is similar to the RK3399's VPU but takes an > extra clock (SCLK). > > Signed-off-by: Paul Kocialkowski > --- > .../bindings/

Re: [PATCH -next] media: hantro: use resource_size

2021-01-06 Thread Philipp Zabel
Hi Zheng, On Wed, 2021-01-06 at 21:18 +0800, Zheng Yongjun wrote: > Use resource_size rather than a verbose computation on > the end and start fields. > > Signed-off-by: Zheng Yongjun > --- > drivers/staging/media/hantro/hantro_v4l2.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >

Re: [PATCH v6 8/9] media: Avoid parsing quantization and huffman tables

2021-01-04 Thread Philipp Zabel
ret = jpeg_skip_segment(&stream); > + break; > + } > ret = jpeg_parse_quantization_tables(&stream, > out->frame.precision, > out->quantization_tables); Reviewed-by: Philipp Zabel regards Philipp

Re: [PATCH v6 6/9] media: Add parsing for APP14 data segment in jpeg helpers

2021-01-04 Thread Philipp Zabel
he uninitialized / error state. > /* loop through marker segments */ > while ((marker = jpeg_next_marker(&stream)) >= 0) { > switch (marker) { > @@ -519,7 +556,9 @@ int v4l2_jpeg_parse_header(void *buf, size_t len, struct > v4l2_jpeg_header *out) >

Re: [PATCH -next] media/platform/coda: convert comma to semicolon

2021-01-04 Thread Philipp Zabel
, > + vfd->release= video_device_release_empty; > vfd->lock = &dev->dev_mutex; > vfd->v4l2_dev = &dev->v4l2_dev; > vfd->vfl_dir= VFL_DIR_M2M; Thank you, Reviewed-by: Philipp Zabel regards Philipp

Re: [PATCH -next] gpu: drm: imx: convert comma to semicolon

2020-12-11 Thread Philipp Zabel
On Fri, 2020-12-11 at 16:58 +0800, Zheng Yongjun wrote: > Replace a comma between expression statements by a semicolon. > > Signed-off-by: Zheng Yongjun > --- > drivers/gpu/drm/imx/parallel-display.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/imx/pa

Re: [PATCH v3 0/4] dt-bindings: reset: convert Hisilicon reset controller bindings to json-schema

2020-12-10 Thread Philipp Zabel
On Tue, 2020-12-08 at 20:46 +0800, Zhen Lei wrote: > v2 --> v3: > 1. Keep device tree patches and reset driver patch separate, as they were in > v1. >That is, revert v2. > 2. When the new compatible match failed, fall back to the deprecated > compatible. > 3. Fix a typo, correct "hi3660,rst-s

Re: [PATCH 1/2] dt-bindings: reset: document Broadcom's BCM4908 PCIe reset binding

2020-12-09 Thread Philipp Zabel
On Fri, 2020-11-27 at 12:14 +0100, Rafał Miłecki wrote: > From: Rafał Miłecki > > BCM4908 was built using older PCIe hardware block that requires using > external reset block controlling PERST# signals. > > Signed-off-by: Rafał Miłecki Thank you, both applied to reset/next. regards Philipp

Re: [PATCH v2 1/3] reset: hisilicon: correct vendor prefix

2020-12-08 Thread Philipp Zabel
Hi Zhen, On Fri, 2020-12-04 at 09:42 +0800, Zhen Lei wrote: > The vendor prefix of "Hisilicon Limited" is "hisilicon", it is clearly > stated in "vendor-prefixes.yaml". > > Fixes: 1527058736fa ("reset: hisilicon: add reset-hi3660") > Fixes: 35ca8168133c ("arm64: dts: Add dts files for Hisilicon H

Re: [PATCH] staging:hantro: Fixed "replace comma with semicolon" Warning:

2020-12-06 Thread Philipp Zabel
gt; + fmt->colorspace = V4L2_COLORSPACE_JPEG; > fmt->ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT; > fmt->quantization = V4L2_QUANTIZATION_DEFAULT; > fmt->xfer_func = V4L2_XFER_FUNC_DEFAULT; Thank you, Reviewed-by: Philipp Zabel regards Philipp

Re: [PATCH 2/2] reset: bcm4908-usb: add driver for BCM4908 USB reset controller

2020-12-04 Thread Philipp Zabel
Hi Rafał, On Fri, 2020-12-04 at 10:37 +0100, Rafał Miłecki wrote: > From: Rafał Miłecki > > This controller is responsible for OHCI, EHCI, XHCI and PHYs setup that > has to be handled in the proper order. > > One unusual thing about this controller is that is provides access to > the MDIO bus.

Re: [EXT] Re: [PATCH v5 07/10] media: Add parsing for APP14 data segment in jpeg helpers

2020-12-04 Thread Philipp Zabel
On Fri, 2020-12-04 at 14:13 +, Mirela Rabulea (OSS) wrote: > Hi Phipipp, > > On Wed, 2020-12-02 at 16:18 +0100, Philipp Zabel wrote: > > Hi Mirela, > > > > On Thu, 2020-11-12 at 05:05 +0200, Mirela Rabulea (OSS) wrote: > > > From: Mirela Rabulea > >

Re: [PATCH 1/5] media: dt-bindings: add the required property 'additionalProperties'

2020-12-04 Thread Philipp Zabel
On Fri, 2020-12-04 at 17:38 +0800, Zhen Lei wrote: > When I do dt_binding_check for any YAML file, below wanring is always > reported: > > xxx/media/coda.yaml: 'additionalProperties' is a required property > xxx/media/coda.yaml: ignoring, error in schema: > warning: no schema found in file: xxx/me

Re: [PATCH 1/4] reset: hisilicon: correct vendor prefix

2020-12-03 Thread Philipp Zabel
On Thu, 2020-12-03 at 20:02 +0800, Zhen Lei wrote: > The vendor prefix of "Hisilicon Limited" is "hisilicon", it is clearly > stated in "vendor-prefixes.yaml". > > Fixes: 1527058736fa ("reset: hisilicon: add reset-hi3660") > Signed-off-by: Zhen Lei > Cc: Zhangfei Gao > --- > drivers/reset/hisil

Re: [v6,3/3] reset-controller: ti: force the write operation when assert or deassert

2020-12-02 Thread Philipp Zabel
On Wed, 2020-09-30 at 10:21 +0800, Crystal Guo wrote: > Force the write operation in case the read already happens > to return the correct value. > > Signed-off-by: Crystal Guo > --- > drivers/reset/reset-ti-syscon.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/d

Re: [v6,1/3] dt-binding: reset-controller: mediatek: add YAML schemas

2020-12-02 Thread Philipp Zabel
Hi, On Wed, 2020-09-30 at 10:21 +0800, Crystal Guo wrote: > Add a YAML documentation for Mediatek, which uses ti reset-controller > driver directly. The TI reset controller provides a common reset > management, and is suitable for Mediatek SoCs. > > Signed-off-by: Crystal Guo > --- > .../bindin

Re: [PATCH v4] media: coda: Convert the driver to DT-only

2020-12-02 Thread Philipp Zabel
On Wed, 2020-12-02 at 11:13 -0300, Fabio Estevam wrote: > Since 5.10-rc1 i.MX is a devicetree-only platform, so simplify the code > by removing the unused non-DT support. > > Signed-off-by: Fabio Estevam Thank you, this looks fine to me now. Reviewed-by: Philipp Zabel regards Philipp

Re: [PATCH v5 10/10] media: imx-jpeg: Use v4l2 jpeg helpers in mxc-jpeg

2020-12-02 Thread Philipp Zabel
On Thu, 2020-11-12 at 05:05 +0200, Mirela Rabulea (OSS) wrote: > From: Mirela Rabulea > > Use v4l2_jpeg_parse_header in mxc_jpeg_parse, remove the old > parsing way, which was duplicated in other jpeg drivers. > > Signed-off-by: Mirela Rabulea > --- > Changes in v5: > This was patch 11 in previ

Re: [PATCH v5 09/10] media: Avoid parsing quantization and huffman tables

2020-12-02 Thread Philipp Zabel
On Wed, 2020-12-02 at 13:12 +0100, Hans Verkuil wrote: > On 12/11/2020 04:05, Mirela Rabulea (OSS) wrote: > > From: Mirela Rabulea > > > > These are optional in struct v4l2_jpeg_header, so do not parse if > > not requested, save some time. > > > > Signed-off-by: Mirela Rabulea > > --- > > driv

Re: [PATCH v5 09/10] media: Avoid parsing quantization and huffman tables

2020-12-02 Thread Philipp Zabel
Hi Mirela, On Thu, 2020-11-12 at 05:05 +0200, Mirela Rabulea (OSS) wrote: > From: Mirela Rabulea > > These are optional in struct v4l2_jpeg_header, so do not parse if > not requested, save some time. > > Signed-off-by: Mirela Rabulea > --- > drivers/media/v4l2-core/v4l2-jpeg.c | 6 ++ > 1

Re: [PATCH v5 08/10] media: Quit parsing stream if doesn't start with SOI

2020-12-02 Thread Philipp Zabel
/* the first bytes must be SOI, B.2.1 High-level syntax */ > + if (jpeg_get_word_be(&stream) != SOI) > return -EINVAL; > > /* init value to signal if this marker is not present */ Yes, shorter, potentially faster code, and it adheres to the specification more strictly. Reviewed-by: Philipp Zabel regards Philipp

Re: [PATCH v5 07/10] media: Add parsing for APP14 data segment in jpeg helpers

2020-12-02 Thread Philipp Zabel
Hi Mirela, On Thu, 2020-11-12 at 05:05 +0200, Mirela Rabulea (OSS) wrote: > From: Mirela Rabulea > > According to Rec. ITU-T T.872 (06/2012) 6.5.3 > APP14 segment is for color encoding, it contains a transform flag, which > may have values of 0, 1 and 2 and are interpreted as follows: > 0 - CMYK

[PATCH v2] docs: add a reset controller chapter to the driver API docs

2020-12-01 Thread Philipp Zabel
Add initial reset controller API documentation. This is mostly intended to describe the concepts to users of the consumer API, and to tie the kerneldoc comments we already have into the driver API documentation. Signed-off-by: Philipp Zabel Reviewed-by: Randy Dunlap Reviewed-by: Amjad Ouled

Re: [PATCHv2] reset: socfpga: add error handling and release mem-region

2020-12-01 Thread Philipp Zabel
On Mon, 2020-11-09 at 13:21 -0600, Dinh Nguyen wrote: > In case of an error, call release_mem_region when an error happens > during allocation of resources. Also add error handling for the case > that reset_controller_register fails. > > Reported-by: kernel test robot > Reported-by: Dan Carpenter

Re: [PATCH] phy: amlogic: replace devm_reset_control_array_get()

2020-11-18 Thread Philipp Zabel
rr_disable_clk_ref; > > - priv->reset = devm_reset_control_array_get(dev, false, false); > + priv->reset = devm_reset_control_array_get_exclusive(dev); > if (IS_ERR(priv->reset)) > return PTR_ERR(priv->reset); > Reviewed-by: Philipp Zabel regards Philipp

Re: [PATCH] soc: amlogic: replace devm_reset_control_array_get()

2020-11-18 Thread Philipp Zabel
static int meson_gx_pwrc_vpu_probe(struct platform_device > *pdev) > return PTR_ERR(regmap_hhi); > } > > - rstc = devm_reset_control_array_get(&pdev->dev, false, false); > + rstc = devm_reset_control_array_get_exclusive(&pdev->dev); > i

Re: [PATCH v2] drm/imx: depend on COMMON_CLK to fix compile tests

2020-11-18 Thread Philipp Zabel
Hi Krzysztof, On Tue, 2020-11-17 at 19:24 +0100, Krzysztof Kozlowski wrote: > The iMX DRM LVDS driver uses Common Clock Framework thus it cannot be > built on platforms without it (e.g. compile test on MIPS with RALINK and > SOC_RT305X): > > /usr/bin/mips-linux-gnu-ld: drivers/gpu/drm/imx/imx

Re: [PATCH 41/42] gpu/ipu-v3/ipu-di: Strip out 2 unused 'di_sync_config' entries

2020-11-17 Thread Philipp Zabel
i.c:391:1: warning: the frame size of 1064 bytes is > larger than 1024 bytes [-Wframe-larger-than=] > > Cc: Philipp Zabel > Cc: Sascha Hauer > Cc: dri-de...@lists.freedesktop.org > Signed-off-by: Lee Jones > --- > drivers/gpu/ipu-v3/ipu-di.c | 4 > 1 file changed

Re: [PATCH] drm/imx: depend on COMMON_CLK to fix compile tests

2020-11-17 Thread Philipp Zabel
On Mon, 2020-11-16 at 19:14 +0100, Krzysztof Kozlowski wrote: > The iMX DRM drivers use Common Clock Framework thus they cannot be built > on platforms without it (e.g. compile test on MIPS with RALINK and > SOC_RT305X): > > /usr/bin/mips-linux-gnu-ld: drivers/gpu/drm/imx/imx-ldb.o: in functio

[PATCH] docs: add a reset controller chapter to the driver API docs

2020-11-17 Thread Philipp Zabel
Add initial reset controller API documentation. This is mostly intended to describe the concepts to users of the consumer API, and to tie the kerneldoc comments we already have into the driver API documentation. Signed-off-by: Philipp Zabel --- Changes since the RFC [1]: - Replaced all :c:func

Re: [PATCH v2] reset: make shared pulsed reset controls re-triggerable

2020-11-16 Thread Philipp Zabel
On Fri, 2020-11-13 at 16:13 +0100, Jerome Brunet wrote: > On Fri 13 Nov 2020 at 16:04, Philipp Zabel wrote: > > > On Fri, 2020-11-13 at 00:00 +0100, Amjad Ouled-Ameur wrote: > > > The current reset framework API does not allow to release what is done by > > > reset_

Re: [PATCH v2] spi: cadence-quadspi: Fix error return code in cqspi_probe

2020-11-16 Thread Philipp Zabel
Hulk Robot > Signed-off-by: Zhihao Cheng Thank you, Reviewed-by: Philipp Zabel regards Philipp

Re: [PATCH] spi: cadence-quadspi: Fix error return code in cqspi_probe

2020-11-16 Thread Philipp Zabel
Hi Zhihao, On Mon, 2020-11-16 at 22:10 +0800, Zhihao Cheng wrote: > Fix to return the error code from > devm_reset_control_get_optional_exclusive() instaed of 0 > in cqspi_probe(). > > Fixes: 31fb632b5d43ca ("spi: Move cadence-quadspi driver to drivers/spi/") > Reported-by: Hulk Robot > Signed-of

Re: [PATCH v2] reset: make shared pulsed reset controls re-triggerable

2020-11-13 Thread Philipp Zabel
On Fri, 2020-11-13 at 00:00 +0100, Amjad Ouled-Ameur wrote: > The current reset framework API does not allow to release what is done by > reset_control_reset(), IOW decrement triggered_count. Add the new > reset_control_rearm() call to do so. > > When reset_control_reset() has been called once, th

Re: [PATCH v2 1/2] reset: brcmstb rescal: implement {de}assert() instead of reset()

2020-11-09 Thread Philipp Zabel
On Mon, 2020-11-09 at 11:21 -0500, Jim Quinlan wrote: > On Mon, Nov 9, 2020 at 5:05 AM Philipp Zabel wrote: > > Hi Jim, > > > > On Fri, 2020-11-06 at 14:17 -0500, Jim Quinlan wrote: > > > Before, only control_reset() was implemented. However, the reset

Re: [PATCH] staging: media: imx: Split config option in 2

2020-11-09 Thread Philipp Zabel
On Mon, 2020-11-09 at 10:46 +0100, Martin Kepplinger wrote: > As described in NXPs' linux tree, the imx8m SoC includes the same > CSI bridge hardware that is part of imx7d. We should be able to > use the "fsl,imx7-csi" driver for imx8m directly. > > Since ipuv3 is not relevant for imx8m we create

Re: [PATCH] reset: socfpga: add error handling and release mem-region

2020-11-09 Thread Philipp Zabel
On Mon, 2020-11-02 at 13:57 -0600, Dinh Nguyen wrote: > In case of an error, call release_mem_region when an error happens > during allocation of resources. Also add error handling for the case > that reset_controller_register fails. > > Reported-by: kernel test robot > Reported-by: Dan Carpenter

Re: [PATCH v2 1/2] reset: brcmstb rescal: implement {de}assert() instead of reset()

2020-11-09 Thread Philipp Zabel
Hi Jim, On Fri, 2020-11-06 at 14:17 -0500, Jim Quinlan wrote: > Before, only control_reset() was implemented. However, the reset core only > invokes control_reset() once in its lifetime. Because we need it to invoke > control_reset() again after resume out of S2 or S3, we have switched to > putt

Re: [PATCH] staging: media: imx: drop dependency on ipuv3

2020-11-09 Thread Philipp Zabel
Hi Martin, On Mon, 2020-11-09 at 10:13 +0100, Martin Kepplinger wrote: > As described in NXPs' linux tree, the imx8m SoC includes the same > CSI bridge hardware that is part of imx7d. We should be able to > use the "fsl,imx7-csi" driver for imx8m directly. > > Since ipuv3 is not relevant for imx8

Re: [PATCH 6/9] phy: cadence: sierra: Don't configure if any plls are already locked

2020-11-09 Thread Philipp Zabel
On Tue, 2020-11-03 at 09:25 +0530, Kishon Vijay Abraham I wrote: > From: Faiz Abbas > > Serdes lanes might be shared between multiple cores in some usecases > and its not possible to lock PLLs for both the lanes independently > by the two cores. This requires a bootloader to configure both the >

Re: [PATCH 2/4] drm/imx: tve remove extraneous type qualifier

2020-10-27 Thread Philipp Zabel
On Mon, 2020-10-26 at 20:41 +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > clang warns about functions returning a 'const int' result: > > drivers/gpu/drm/imx/imx-tve.c:487:8: warning: type qualifiers ignored on > function return type [-Wignored-qualifiers] > > Remove the extraneous 'co

Re: [PATCH 9/9] remoteproc/wkup_m3: Use reset control driver if available

2020-10-26 Thread Philipp Zabel
rn Andersson > Cc: Dave Gerlach > Cc: Philipp Zabel > Cc: Suman Anna > Signed-off-by: Tony Lindgren > --- > > Please review and ack if no issues. If you guys instead want to set up an > immutable remoteproc branch with just this patch in it against v5.10-rc1 > that

Re: [PATCH v2] reset: meson: make it possible to build as a module

2020-10-22 Thread Philipp Zabel
Hi Neil, thank you for the patch. On Mon, 2020-10-19 at 16:48 +0200, Neil Armstrong wrote: > In order to reduce the kernel Image size on multi-platform distributions, > make it possible to build the reset controller driver as a module. > > This partially reverts 8290924e ("reset: meson: make it

Re: [PATCH v4 08/15] Documentation: of: Convert graph bindings to json-schema

2020-10-20 Thread Philipp Zabel
Hi Sameer, Rob, On Mon, 2020-10-19 at 16:56 -0500, Rob Herring wrote: > On Fri, Oct 16, 2020 at 08:12:55PM +0530, Sameer Pujar wrote: > > Convert device tree bindings of graph to YAML format. > > Thanks for doing this. Seconded. > > Signed-off-by: Sameer Pujar

  1   2   3   4   5   6   7   8   9   10   >