Re: [PATCH] gpu: ipu-v3: wait_for_completion_timeout does not return negativ status

2015-01-19 Thread Philipp Zabel
Hi Nicholas, thank you for the patch. Am Freitag, den 16.01.2015, 11:48 +0100 schrieb Nicholas Mc Guire: > Signed-off-by: Nicholas Mc Guire > --- > > Patch is against 3.19.0-rc3 -next-20150109 > > This patch was compiletested with imx_v6_v7_defconfig + > CONFIG_RESET_CONTROLLER=y, CONFIG_IMX_

Re: [PATCH] mfd: syscon: allow to register syscon with a device

2015-04-24 Thread Philipp Zabel
Am Dienstag, den 17.03.2015, 11:24 +0100 schrieb Philipp Zabel: > Commit bdb0066df96e ("mfd: syscon: Decouple syscon interface from platform > devices") > added the possibility to register syscon devices without associated platform > device. This also removed regmap deb

Re: linux-next: manual merge of the drm tree with the v4l-dvb tree

2015-04-15 Thread Philipp Zabel
Am Mittwoch, den 15.04.2015, 13:49 +1000 schrieb Stephen Rothwell: > Hi Dave, > > Today's linux-next merge of the drm tree got a conflict in > include/uapi/linux/media-bus-format.h between commits 7b0fd4568bee > ("[media] v4l: Add RBG and RGB 8:8:8 media bus formats on 24 and 32 bit > busses"), e8

Re: linux-next: manual merge of the drm tree with the v4l-dvb tree

2015-04-15 Thread Philipp Zabel
Am Mittwoch, den 15.04.2015, 13:33 +1000 schrieb Stephen Rothwell: > Hi Dave, > > Today's linux-next merge of the drm tree got a conflict in > Documentation/DocBook/media/v4l/subdev-formats.xml between commit > 7b0fd4568bee ("[media] v4l: Add RBG and RGB 8:8:8 media bus formats on > 24 and 32 bit

Re: [PATCH 3/6] clk: mediatek: Add reset controller support

2015-03-31 Thread Philipp Zabel
ines. > > Signed-off-by: Sascha Hauer Acked-by: Philipp Zabel regards Philipp -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH v4 06/15] drivers: reset: Add STM32 reset driver

2015-04-01 Thread Philipp Zabel
f-by: Maxime Coquelin Acked-by: Philipp Zabel regards Philipp -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH v4 05/15] dt-bindings: Document the STM32 reset bindings

2015-04-01 Thread Philipp Zabel
RCC IP is both a reset and a clock controller. This documentation only > +document the reset part. documents? Otherwise, Acked-by: Philipp Zabel regards Philipp -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kerne

[PATCH] Fixup RGB444_1X12, RGB565_1X16, and YUV8_1X24 media bus format

2015-04-17 Thread Philipp Zabel
Change the constant values for RGB444_1X12, RGB565_1X16, and YUV8_1X24 media bus formats in anticipation of a merge conflict with the media tree, where the old values are already taken by RBG888_1X24, RGB888_1X32_PADHI, and VUY8_1X24, respectively. Signed-off-by: Philipp Zabel --- Documentation

Re: linux-next: manual merge of the drm tree with the v4l-dvb tree

2015-04-17 Thread Philipp Zabel
Am Freitag, den 17.04.2015, 04:07 +0100 schrieb Dave Airlie: > > Am Mittwoch, den 15.04.2015, 13:33 +1000 schrieb Stephen Rothwell: > > > Hi Dave, > > > > > > Today's linux-next merge of the drm tree got a conflict in > > > Documentation/DocBook/media/v4l/subdev-formats.xml between commit > > > 7b

Re: linux-next: manual merge of the v4l-dvb tree with Linus' tree

2015-04-21 Thread Philipp Zabel
Am Dienstag, den 21.04.2015, 10:12 -0300 schrieb Mauro Carvalho Chehab: > Em Tue, 21 Apr 2015 15:38:02 +0300 > Laurent Pinchart escreveu: > > > Hi Mauro, > > > > On Tuesday 21 April 2015 06:56:40 Mauro Carvalho Chehab wrote: > > > Em Tue, 21 Apr 2015 18:02:43 +1000 Stephen Rothwell escreveu: > >

[PATCH] gpio: generic: add get_direction support

2015-06-12 Thread Philipp Zabel
Allow to determine the current direction configuration by reading back from the direction register. Signed-off-by: Philipp Zabel --- drivers/gpio/gpio-generic.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/drivers/gpio/gpio-generic.c b/drivers/gpio/gpio-generic.c

[PATCH] pwm-backlight: Avoid backlight flicker when probed from DT

2015-06-12 Thread Philipp Zabel
backlight at the appropriate time. Signed-off-by: Philipp Zabel --- I have seen the thread at https://lkml.org/lkml/2014/7/31/259, but I'm not sure if it has come to a resolution. This is what I think could be useful to keep the current default behaviour of enabling the backlight while at the same

Re: [PATCH v3 1/9] misc: sram: fix enabled clock leak on error path

2015-05-29 Thread Philipp Zabel
Hi Vladimir, Am Freitag, den 29.05.2015, 14:31 +0300 schrieb Vladimir Zapolskiy: [...] > > res->start is of type phys_addr_t (well, resource_size_t) already. > > block->start/size and cur_start/size are just offsets added to it. > > I agree. > > > I wonder if it wouldn't be more appropriate to u

Re: [PATCH] mfd: syscon: allow to register syscon with a device

2015-06-09 Thread Philipp Zabel
Hi Arnd, any thought on this? Am Dienstag, den 28.04.2015, 16:19 +0530 schrieb Pankaj Dubey: > +To: Arnd Bergmann > > Hi Philipp, > > On Friday 24 April 2015 02:02 PM, Philipp Zabel wrote: > > Am Dienstag, den 17.03.2015, 11:24 +0100 schrieb Philipp Zabel: > >

Re: [reset-control] How to initialize hardware state with the shared reset line?

2018-05-22 Thread Philipp Zabel
Hi Masahiro, On Thu, 2018-05-10 at 18:16 +0900, Masahiro Yamada wrote: > Hi. > > > The previous thread was: > "usb: dwc3: support clocks and resets for DWC3 core" > https://patchwork.kernel.org/patch/10349623/ > > > I changed the subject because > I think this is rather reset-control topic tha

Re: [reset-control] How to initialize hardware state with the shared reset line?

2018-05-22 Thread Philipp Zabel
Hi Martin, On Mon, 2018-05-21 at 12:40 +0200, Martin Blumenstingl wrote: > Hello, > > On Mon, May 21, 2018 at 3:27 AM, Masahiro Yamada > wrote: > > Hi. > > > > > > 2018-05-20 19:57 GMT+09:00 Martin Blumenstingl > > : > > > Hi, > > > > > > On Thu, May 10, 2018 at 11:16 AM, Masahiro Yamada > >

Re: [PATCH v5] reset: add support for non-DT systems

2018-02-28 Thread Philipp Zabel
On Tue, 2018-02-27 at 19:07 +0100, Bartosz Golaszewski wrote: > 2018-02-27 17:10 GMT+01:00 Philipp Zabel : > > Hi Bartosz, > > > > thank you for the update. > > > > On Fri, 2018-02-23 at 12:39 +0100, Bartosz Golaszewski wrote: > > > From: Bartosz Gol

Re: [PATCH v6] reset: add support for non-DT systems

2018-02-28 Thread Philipp Zabel
On Wed, 2018-02-28 at 14:08 +0100, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > The reset framework only supports device-tree. There are some platforms > however, which need to use it even in legacy, board-file based mode. > > An example of such architecture is the DaVinci family o

Re: [PATCH] staging/imx: Fix inconsistent IS_ERR and PTR_ERR

2018-03-01 Thread Philipp Zabel
gt;dev->of_node = pdata->of_node; > pinctrl = devm_pinctrl_get_select_default(priv->dev); > if (IS_ERR(pinctrl)) { > - ret = PTR_ERR(priv->vdev); > + ret = PTR_ERR(pinctrl); > goto free; > } Thanks, Acked-by: Philipp Zabel regards Philipp

Re: [PATCH] staging/imx: Fix inconsistent IS_ERR and PTR_ERR

2018-03-01 Thread Philipp Zabel
On Thu, 2018-03-01 at 13:02 -0300, Fabio Estevam wrote: > On Thu, Mar 1, 2018 at 1:09 AM, Gustavo A. R. Silva > wrote: > > Fix inconsistent IS_ERR and PTR_ERR in imx_csi_probe. > > The proper pointer to be passed as argument is pinctrl > > instead of priv->vdev. > > > > This issue was detected wi

Re: [PATCH] usb: dwc3: of-simple: use managed and shared reset control

2018-04-03 Thread Philipp Zabel
On Tue, 2018-04-03 at 17:30 +0900, Masahiro Yamada wrote: > 2018-04-03 17:00 GMT+09:00 Philipp Zabel : > > On Thu, 2018-03-29 at 15:07 +0900, Masahiro Yamada wrote: > > > This driver handles the reset control in a common manner; deassert > > > resets before use, assert t

Re: [PATCH 2/2] reset: uniphier: add SATA reset control support and change SATA-PHY ID

2018-04-03 Thread Philipp Zabel
On Tue, 2018-04-03 at 17:35 +0900, Masahiro Yamada wrote: > 2018-04-03 17:18 GMT+09:00 Philipp Zabel : > > On Fri, 2018-03-30 at 18:44 +0900, Kunihiko Hayashi wrote: > > > Add reset lines for SATA controller on UniPhier SoCs. > > > This adds support for Pro4 a

Re: [PATCH] usb: dwc3: of-simple: use managed and shared reset control

2018-04-04 Thread Philipp Zabel
On Wed, 2018-04-04 at 10:25 +0900, Masahiro Yamada wrote: > 2018-04-03 19:35 GMT+09:00 Vivek Gautam : > > > > > > On 4/3/2018 3:49 PM, Masahiro Yamada wrote: > > > > > > 2018-04-03 17:46 GMT+09:00 Philipp Zabel : > > > > > > >

Re: [PATCH] drm/imx: Remove last traces of struct imx_drm_crtc

2018-04-04 Thread Philipp Zabel
On Tue, 2018-04-03 at 20:56 -0300, Fabio Estevam wrote: > On Tue, Mar 27, 2018 at 6:39 PM, Leonard Crestez > wrote: > > When the definition of this struct was removed a forward declaration and an > > unused struct member were still left around. Remove them because they serve > > no purpose. > > >

Re: [PATCH] reset: uniphier: add LD11/LD20 stream demux system reset control

2018-04-27 Thread Philipp Zabel
On Fri, 2018-04-27 at 12:13 +0900, Masahiro Yamada wrote: > 2018-04-27 9:41 GMT+09:00 Katsuhiro Suzuki : > > Add reset lines for MPEG2 transport stream I/O and demux system (HSC) > > on UniPhier LD11/LD20 SoCs. > > > > Signed-off-by: Katsuhiro Suzuki > Acked-by: Masahiro Yamada Thank you, appli

Re: [PATCH] reset: uniphier: fix USB clock line for LD20

2018-04-27 Thread Philipp Zabel
On Fri, 2018-04-27 at 18:42 +0900, Masahiro Yamada wrote: > Philipp, > > 2018-04-12 11:16 GMT+09:00 Masahiro Yamada : > > For LD20, the bit 5 of the offset 0x200c turned out to be a USB3 > > reset. The hardware document says it is the GIO reset despite LD20 > > has no GIO bus, confusingly. > > >

Re: [PATCH v4 1/5] dt-bindings: reset: Add AOSS reset bindings for SDM845 SoCs

2018-04-27 Thread Philipp Zabel
Hi Sibi, On Wed, 2018-04-25 at 20:38 +0530, Sibi Sankar wrote: > Add SDM845 AOSS (always on subsystem) reset controller binding > > Signed-off-by: Sibi Sankar > --- > .../bindings/reset/qcom,aoss-reset.txt| 52 +++ > include/dt-bindings/reset/qcom,sdm845-aoss.h | 17 +++

Re: [PATCH v4 2/5] reset: qcom: AOSS (always on subsystem) reset controller

2018-04-27 Thread Philipp Zabel
On Wed, 2018-04-25 at 20:38 +0530, Sibi Sankar wrote: > Add reset controller driver for Qualcomm SDM845 SoC to > control reset signals provided by AOSS for Modem, Venus > ADSP, GPU, Camera, Wireless, Display subsystem > > Signed-off-by: Sibi Sankar > --- > drivers/reset/Kconfig | 9 +

Re: [PATCH v4 2/5] reset: qcom: AOSS (always on subsystem) reset controller

2018-04-27 Thread Philipp Zabel
Hi Sibi, On Fri, 2018-04-27 at 16:45 +0530, Sibi S wrote: [...] > > > + /* Wait 6 32kHz sleep cycles for reset */ > > > + usleep_range(200, 210); > > > > 6 32 kHz cycles are about 188 µs (184 µs for 32.768 kHz). > > Just out of curiosity, is the minimum increased to 200 µs on purpose, or > > to h

Re: [reset-control] How to initialize hardware state with the shared reset line?

2018-06-05 Thread Philipp Zabel
Hi Masahiro, On Wed, 2018-05-30 at 14:57 +0900, Masahiro Yamada wrote: > One more thing. > > I want to remove reset_control_reset() entirely. reset_control_reset is for those cases where "the reset controller knows" how to reset us. There are hardware reset controllers that can control a bunch o

Re: [RFC PATCH 1/2] media: docs-rst: Add decoder UAPI specification to Codec Interfaces

2018-06-05 Thread Philipp Zabel
Hi Tomasz, On Tue, 2018-06-05 at 19:33 +0900, Tomasz Figa wrote: > Due to complexity of the video decoding process, the V4L2 drivers of > stateful decoder hardware require specific sequencies of V4L2 API calls > to be followed. These include capability enumeration, initialization, > decoding, seek

Re: [RFC PATCH 2/2] media: docs-rst: Add encoder UAPI specification to Codec Interfaces

2018-06-06 Thread Philipp Zabel
On Wed, 2018-06-06 at 18:17 +0900, Tomasz Figa wrote: > On Tue, Jun 5, 2018 at 11:23 PM Philipp Zabel wrote: > > > > On Tue, 2018-06-05 at 21:31 +0900, Tomasz Figa wrote: > > [...] > > > +Initialization > > > > > +-- > > > >

Re: [PATCH v3 20/26] drm/mediatek: hdmi: provide an owner .odev device for the bridge

2018-05-16 Thread Philipp Zabel
On Wed, 2018-05-16 at 12:15 +0200, Peter Rosin wrote: > The .of_node member is going away. > > Signed-off-by: Peter Rosin Acked-by: Philipp Zabel regards Philipp > --- > drivers/gpu/drm/mediatek/mtk_hdmi.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >

Re: [PATCH v7 5/7] clk: meson-axg: Add AO Clock and Reset controller driver

2018-04-26 Thread Philipp Zabel
On Thu, 2018-04-26 at 16:44 +0800, Yixun Lan wrote: > From: Qiufang Dai > > Adds a Clock and Reset controller driver for the Always-On part > of the Amlogic Meson-AXG SoC. > > Acked-by: Philipp Zabel Wrong patch, I have not formed an opinion on this one. regards Philipp

Re: [PATCH v7 4/7] dt-bindings: clock: reset: Add AXG AO Clock and Reset Bindings

2018-04-26 Thread Philipp Zabel
On Thu, 2018-04-26 at 16:44 +0800, Yixun Lan wrote: > Add dt-bindings headers for the Meson-AXG's AO clock and > reset controller. > > Reviewed-by: Rob Herring > Signed-off-by: Yixun Lan This one is Acked-by: Philipp Zabel regards Philipp

Re: [PATCH] reset: Don't WARN if trying to get a used reset control

2019-02-05 Thread Philipp Zabel
Hi Thierry, On Fri, 2019-02-01 at 15:00 +0100, Thierry Reding wrote: [...] > It sounds pretty good and elegant actually. Let me try to restate to see > if I understand correctly: > > So basically what you're saying is that we would be changing the > definition of exclusive resets to make them exc

Re: [PATCH] reset: Don't WARN if trying to get a used reset control

2019-02-06 Thread Philipp Zabel
On Tue, 2019-02-05 at 23:13 +0100, Thierry Reding wrote: [...] > > Drivers that never call _acquire()/_release() must continue to work as > > they are, so exclusive reset controls have to be acquired by default. > > I don't think they have to. See below. Currently the API makes guarantees about t

Re: [PATCH] reset: Don't WARN if trying to get a used reset control

2019-02-06 Thread Philipp Zabel
control user has called deassert, there is no sane way to explicitly assert the reset from another driver. We'd have to build some kind of notification framework for reset requests and then argue about whether to give other drivers veto power or force them to store internal state and cease all o

Re: [PATCH] reset: Don't WARN if trying to get a used reset control

2019-02-06 Thread Philipp Zabel
On Wed, 2019-02-06 at 17:00 +0100, Thierry Reding wrote: [...] > > reset_control_get_exclusive() // implicitly acquires, may fail > > reset_control_acquire() // optional, just makes acquire explicit (no-op) > > reset_control_assert/deassert() > > reset_control_release() > > I don't think we can do

Re: [PATCH v5 3/3] reset: imx7: Add support for i.MX8MQ IP block variant

2019-01-28 Thread Philipp Zabel
Hi Andrey, On Thu, 2019-01-24 at 16:21 -0800, Andrey Smirnov wrote: > > Thank you, applied all three to reset/next with a small whitespace > > alignment fix. > > > > Thanks again for applying this stuff. If that's not too much to ask, > would you mind creating an immutable branch, so I could sta

Re: [PATCH] reset: Don't WARN if trying to get a used reset control

2019-01-28 Thread Philipp Zabel
Hi Thierry, On Fri, 2019-01-25 at 11:15 +0100, Thierry Reding wrote: > From: Thierry Reding > > When requesting a reset control for exclusive use that's already in use, > an -EBUSY error code is returned. Users can react accordingly when they > receive that error code, so there is no need to lou

Re: drivers/media/platform/imx-pxp.c:683: possible cut''n'paste error ?

2019-01-28 Thread Philipp Zabel
On Sun, 2019-01-27 at 08:17 +, David Binderman wrote: > Hello there, > > drivers/media/platform/imx-pxp.c:683:24: warning: duplicated ‘if’ condition > [-Wd > uplicated-cond] > > Source code is > >} else if (ycbcr_enc == V4L2_YCBCR_ENC_709) { > if (qua

Re: [PATCH] dt-bindings: reset: meson-g12a: Add missing USB2 PHY resets

2019-03-26 Thread Philipp Zabel
Hi Kevin, On Fri, 2019-03-22 at 15:53 -0700, Kevin Hilman wrote: [...] > Could ou make a immtable tag for this in your tree? This is needed for > some upcoming DT users we'd like to queue for the next cycle. I have just sent a reset/fixes pull request including this patch. Once that gets merged,

Re: [PATCH -next] reset: fix linux/reset.h errors

2019-04-02 Thread Philipp Zabel
On Tue, 2019-04-02 at 08:20 -0700, Randy Dunlap wrote: > From: Randy Dunlap > > The header file uses errno constant(s) and the > ERR_PTR() macro but does not #include the appropriate header files > that provide those facilities, so add 2 header files to fix > build errors. Thank you, applied to

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 02/15] ahci_brcm: fix use of BCM7216 reset controller

2020-05-20 Thread Philipp Zabel
Hi Jim, On Tue, May 19, 2020 at 04:34:00PM -0400, Jim Quinlan wrote: > From: Jim Quinlan > > A reset controller "rescal" is shared between the AHCI driver > and the PCIe driver for the BrcmSTB 7216 chip. The code is > modified to allow this sharing and to deassert() properly. > > Signed-off-by

Re: [PATCH 07/15] PCI: brcmstb: Add control of rescal reset

2020-05-20 Thread Philipp Zabel
Hi Jim, On Tue, May 19, 2020 at 04:34:05PM -0400, Jim Quinlan wrote: > From: Jim Quinlan > > Some STB chips have a special purpose reset controller named > RESCAL (reset calibration). This commit adds the control > of RESCAL as well as the ability to start and stop its > operation for PCIe HW.

Re: [PATCH 11/17] clk: imx: Add blk_ctrl combo driver

2020-07-29 Thread Philipp Zabel
Hi Abel, On Wed, 2020-07-29 at 15:07 +0300, Abel Vesa wrote: > On i.MX8MP, there is a new type of IP which is called BLK_CTRL in > RM and usually is comprised of some GPRs that are considered too > generic to be part of any dedicated IP from that specific subsystem. > > In general, some of the GP

Re: [PATCH V3 1/3] reset: imx7: Support module build

2020-07-29 Thread Philipp Zabel
On Tue, 2020-07-28 at 11:53 +0100, Lorenzo Pieralisi wrote: > On Fri, Jul 24, 2020 at 10:03:11AM +0200, Philipp Zabel wrote: > > On Mon, 2020-07-20 at 22:21 +0800, Anson Huang wrote: > > > Use module_platform_driver(), add module device table, author, > > > descrip

Re: [PATCH V3 3/3] pci: imx: Select RESET_IMX7 by default

2020-07-29 Thread Philipp Zabel
On Wed, 2020-07-29 at 09:26 -0600, Rob Herring wrote: > On Mon, Jul 20, 2020 at 8:26 AM Anson Huang wrote: > > i.MX7 reset driver now supports module build and it is no longer > > built in by default, so i.MX PCI driver needs to select it explicitly > > due to it is NOT supporting loadable module

Re: [PATCH V3 3/3] pci: imx: Select RESET_IMX7 by default

2020-07-30 Thread Philipp Zabel
Hi Anson, On Thu, 2020-07-30 at 02:11 +, Anson Huang wrote: > Hi, Philipp/Rob > > > Subject: Re: [PATCH V3 3/3] pci: imx: Select RESET_IMX7 by default > > > > On Wed, 2020-07-29 at 09:26 -0600, Rob Herring wrote: > > > On Mon, Jul 20, 2020 at 8:26 AM Anson Huang > > wrote: > > > > i.MX7 res

Re: [PATCH 11/17] clk: imx: Add blk_ctrl combo driver

2020-07-30 Thread Philipp Zabel
On Thu, 2020-07-30 at 11:55 +0300, Abel Vesa wrote: > On 20-07-29 14:46:28, Philipp Zabel wrote: > > Hi Abel, > > > > On Wed, 2020-07-29 at 15:07 +0300, Abel Vesa wrote: > > > On i.MX8MP, there is a new type of IP which is called BLK_CTRL in > >

Re: [PATCH 1/3] mmc: dt-bindings: Add resets/reset-names for Mediatek MMC bindings

2020-08-12 Thread Philipp Zabel
On Wed, 2020-08-12 at 17:37 +0800, Wenbin Mei wrote: > Add description for resets/reset-names. > > Signed-off-by: Wenbin Mei > --- > Documentation/devicetree/bindings/mmc/mtk-sd.txt | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/Documentation/devicetree/bindings/mmc/mtk-sd.txt > b/

Re: [PATCH 3/3] mmc: mediatek: add optional module reset property

2020-08-12 Thread Philipp Zabel
, "hrst"); if (IS_ERR(host->reset)) return PTR_ERR(host->reset); If the reset is configured in DT then it should be used, even if the reset driver is loaded later. If the DT does not contain the reset-names = "hrst" property at all, devm_reset_control_get_optional_*() will return NULL. With these two changes, Reviewed-by: Philipp Zabel regards Philipp

Re: [PATCH 2/2] reset: imx7: add the cm4 reset for i.MX8MQ

2020-08-03 Thread Philipp Zabel
On Thu, 2020-07-30 at 14:46 +0800, peng@nxp.com wrote: > From: Peng Fan > > Add the cm4 reset used by the remoteproc driver > > Signed-off-by: Peng Fan Thank you, both applied to reset/next. regards Philipp

Re: [PATCH 2/7] media: coda: no need to check return value of debugfs_create functions

2020-08-18 Thread Philipp Zabel
On Tue, 2020-08-18 at 15:36 +0200, Greg Kroah-Hartman wrote: > When calling debugfs functions, there is no need to ever check the > return value. The function can work or not, but the code logic should > never do something different based on this. > > Cc: Philipp Zabel >

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 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 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: [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 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 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: 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 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 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 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 >

[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] 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] 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] [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 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 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 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 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: [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: [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

[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

[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: 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: 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: 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: 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: 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: 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

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

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 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

[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 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

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 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 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 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 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 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 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 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 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 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 -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

<    1   2   3   4   5   6   7   8   9   10   >