Re: [PATCH v2 36/60] drm/omap: dss: Extend omapdss_of_find_source_for_first_ep() to sinks

2018-06-10 Thread Sebastian Reichel
rdingly. > > Signed-off-by: Laurent Pinchart > --- Reviewed-by: Sebastian Reichel -- Sebastian > drivers/gpu/drm/omapdrm/displays/connector-analog-tv.c | 6 +++--- > drivers/gpu/drm/omapdrm/displays/connector-dvi.c | 6 +++--- > drivers/gpu/drm/omapdrm/displays/c

Re: [PATCH v2 37/60] drm/omap: displays: Don't cast dssdev to panel data unnecessarily

2018-06-10 Thread Sebastian Reichel
t; > Signed-off-by: Laurent Pinchart > --- Reviewed-by: Sebastian Reichel -- Sebastian > drivers/gpu/drm/omapdrm/displays/connector-analog-tv.c | 5 ++--- > drivers/gpu/drm/omapdrm/displays/connector-hdmi.c | 5 ++--- > 2 files changed, 4 insertions(+), 6 deletions(-) &g

Re: [PATCH v2 38/60] drm/omap: dss: Cleanup error paths in output init functions

2018-06-10 Thread Sebastian Reichel
gt; > Signed-off-by: Laurent Pinchart > --- Reviewed-by: Sebastian Reichel -- Sebastian > drivers/gpu/drm/omapdrm/dss/dpi.c | 10 ++ > drivers/gpu/drm/omapdrm/dss/dsi.c | 9 - > drivers/gpu/drm/omapdrm/dss/hdmi4.c | 7 --- > drivers/gpu/drm/omapdrm/

Re: [PATCH v2 39/60] drm/omap: dss: dsi: Move initialization code from bind to probe

2018-06-10 Thread Sebastian Reichel
t probe > time, initializing at bind time only the parts that depends on the DSS. > The cleanup code is moved from unbind to remove in a similar way. > > Signed-off-by: Laurent Pinchart > --- Reviewed-by: Sebastian Reichel -- Sebastian > drivers

Re: [PATCH v2 40/60] drm/omap: dss: hdmi4: Move initialization code from bind to probe

2018-06-10 Thread Sebastian Reichel
t probe > time, initializing at bind time only the parts that depends on the DSS. > The cleanup code is moved from unbind to remove in a similar way. > > Signed-off-by: Laurent Pinchart > --- Reviewed-by: Sebastian Reichel -- Sebastian > drivers/g

Re: [PATCH v2 41/60] drm/omap: dss: hdmi5: Move initialization code from bind to probe

2018-06-10 Thread Sebastian Reichel
t probe > time, initializing at bind time only the parts that depends on the DSS. > The cleanup code is moved from unbind to remove in a similar way. > > Signed-off-by: Laurent Pinchart > --- Reviewed-by: Sebastian Reichel -- Sebastian > drivers/g

Re: [PATCH v2 42/60] drm/omap: dss: venc: Move initialization code from bind to probe

2018-06-10 Thread Sebastian Reichel
t probe > time, initializing at bind time only the parts that depends on the DSS. > The cleanup code is moved from unbind to remove in a similar way. > > Signed-off-by: Laurent Pinchart > --- Reviewed-by: Sebastian Reichel -- Sebastian > drivers/

Re: [PATCH v2 46/60] drm/omap: dss: Remove duplicated parameter to dss_mgr_(dis)connect()

2018-06-10 Thread Sebastian Reichel
uct omap_dss_device *dssdev, > diff --git a/drivers/gpu/drm/omapdrm/dss/output.c > b/drivers/gpu/drm/omapdrm/dss/output.c > index 191b2e801257..2f7a019d059e 100644 > --- a/drivers/gpu/drm/omapdrm/dss/output.c > +++ b/drivers/gpu/drm/omapdrm/dss/output.c > @@ -109,18 +109,17 @@ void dss_uninsta

Re: [PATCH v2 45/60] drm/omap: dss: Add function to retrieve display for an output

2018-06-10 Thread Sebastian Reichel
aurent Pinchart > --- Reviewed-by: Sebastian Reichel -- Sebastian > drivers/gpu/drm/omapdrm/dss/display.c | 9 + > drivers/gpu/drm/omapdrm/dss/omapdss.h | 1 + > 2 files changed, 10 insertions(+) > > diff --git a/drivers/gpu/drm/omapdrm/dss/display.c > b/drivers/g

Re: [PATCH v2 43/60] drm/omap: dss: Acquire next dssdev at probe time

2018-06-10 Thread Sebastian Reichel
off-by: Laurent Pinchart > --- Reviewed-by: Sebastian Reichel -- Sebastian > drivers/gpu/drm/omapdrm/displays/encoder-opa362.c| 9 + > drivers/gpu/drm/omapdrm/displays/encoder-tfp410.c| 9 + > drivers/gpu/drm/omapdrm/displays/encoder-tpd12s015.c | 9 +

Re: [PATCH v2 44/60] drm/omap: dss: Add for_each_dss_output() macro

2018-06-10 Thread Sebastian Reichel
On Sat, May 26, 2018 at 08:25:02PM +0300, Laurent Pinchart wrote: > Similarly to for_each_dss_display(), the for_each_dss_output() macro > iterates over all the DSS connected outputs. > > Signed-off-by: Laurent Pinchart > --- > drivers/gpu/drm/omapdrm/dss/base.c| 20 ++-- > d

Re: [PATCH v2 47/60] drm/omap: dss: Get regulators at probe time

2018-06-10 Thread Sebastian Reichel
e. > > Signed-off-by: Laurent Pinchart > --- Reviewed-by: Sebastian Reichel -- Sebastian > drivers/gpu/drm/omapdrm/dss/dpi.c | 69 > ++--- > drivers/gpu/drm/omapdrm/dss/dsi.c | 36 --- > drive

Re: [PATCH v2 48/60] drm/omap: Remove unneeded variable assignments in omap_modeset_init

2018-06-10 Thread Sebastian Reichel
> --- Reviewed-by: Sebastian Reichel -- Sebastian > drivers/gpu/drm/omapdrm/omap_drv.c | 18 +- > 1 file changed, 5 insertions(+), 13 deletions(-) > > diff --git a/drivers/gpu/drm/omapdrm/omap_drv.c > b/drivers/gpu/drm/omapdrm/omap_drv.c > index 9b33859e9ac6..0d

Re: [PATCH v2 49/60] drm/omap: Create all planes before CRTCs

2018-06-10 Thread Sebastian Reichel
Hi, On Sat, May 26, 2018 at 08:25:07PM +0300, Laurent Pinchart wrote: > Creating all the planes in a single location instead of creating them > per-CRTC with remaining planes then created in a second step simplifies > the logic. > > Signed-off-by: Laurent Pinchart > --- Revi

Re: [PATCHv2 01/17] drm/omap: fix omap_fbdev_free() when omap_fbdev_create() wasn't called

2018-06-11 Thread Sebastian Reichel
to handle the NULL case. > > Signed-off-by: Tomi Valkeinen > Reviewed-by: Laurent Pinchart > --- Reviewed-by: Sebastian Reichel -- Sebastian > drivers/gpu/drm/omapdrm/omap_fbdev.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/gpu

Re: [PATCH v2 04/60] drm/omap: dss: Remove display ordering from dss/display.c

2018-06-11 Thread Sebastian Reichel
f-by: Laurent Pinchart > --- Reviewed-by: Sebastian Reichel -- Sebastian > Changes since v0: > > - Use %u to format display ID > --- > drivers/gpu/drm/omapdrm/dss/display.c | 15 +++ > drivers/gpu/drm/omapdrm/dss/omapdss.h | 2 -- > 2 files changed, 3 insertions

Re: [PATCH v2 50/60] drm/omap: Group CRTC, encoder, connector and dssdev in a structure

2018-06-11 Thread Sebastian Reichel
independent arrays and thus improves code readability. > > Signed-off-by: Laurent Pinchart > --- Reviewed-by: Sebastian Reichel -- Sebastian > drivers/gpu/drm/omapdrm/omap_crtc.c | 4 +- > drivers/gpu/drm/omapdrm/omap_drv.c | 144 > +---

Re: [PATCH v2 51/60] drm/omap: Reverse direction of DSS device (dis)connect operations

2018-06-11 Thread Sebastian Reichel
m_disable(dssdev); > - dsicm_disconnect(dssdev); > + dsicm_disconnect(NULL, dssdev); ^^^ calling dsicm_disconnect() with src=NULL This will execute dsi_release_vc(NULL, channel), which will try to dereference NULL. -- Sebastian signature.asc Description: PGP signatu

Re: [PATCH v2 52/60] drm/omap: dss: Move connection checks to omapdss_device_(dis)connect

2018-06-11 Thread Sebastian Reichel
check. > > Signed-off-by: Laurent Pinchart > --- Reviewed-by: Sebastian Reichel -- Sebastian > drivers/gpu/drm/omapdrm/dss/base.c | 1 + > drivers/gpu/drm/omapdrm/dss/output.c | 29 ++--- > 2 files changed, 3 insertions(+), 27 deletions(-) > &g

Re: [PATCH v2 53/60] drm/omap: dss: Move display type validation to initialization time

2018-06-11 Thread Sebastian Reichel
zation to > simplify pipeline connection handling. > > Signed-off-by: Laurent Pinchart > --- Reviewed-by: Sebastian Reichel -- Sebastian > drivers/gpu/drm/omapdrm/dss/dpi.c | 25 +++-- > drivers/gpu/drm/omapdrm/dss/dsi.c | 25 +++-- >

Re: [PATCH v2 55/60] drm/omap: Pass pipe pointer to omap_crtc_init()

2018-06-11 Thread Sebastian Reichel
c_channel() > function that is now unneeded. > > Signed-off-by: Laurent Pinchart > --- Reviewed-by: Sebastian Reichel -- Sebastian > drivers/gpu/drm/omapdrm/dss/base.c| 9 - > drivers/gpu/drm/omapdrm/dss/omapdss.h | 1 - > drivers/gpu/drm/omapdrm/omap_crtc.c | 7

Re: [PATCH v2 54/60] drm/omap: dss: Merge two disconnection helpers

2018-06-11 Thread Sebastian Reichel
s_output_unset_device() is never checked in the current > code for that reason). > > Signed-off-by: Laurent Pinchart > --- Reviewed-by: Sebastian Reichel -- Sebastian > drivers/gpu/drm/omapdrm/dss/base.c| 2 ++ > drivers/gpu/drm/omapdrm/dss/dpi.c | 1 - > drivers/gp

Re: [PATCH v2 56/60] drm/omap: Store CRTC lookup by channel table in omap_drm_private

2018-06-11 Thread Sebastian Reichel
gt; the form of an array of omap_drm_pipeline pointers. > > Signed-off-by: Laurent Pinchart > --- Reviewed-by: Sebastian Reichel -- Sebastian > drivers/gpu/drm/omapdrm/omap_crtc.c | 22 +- > drivers/gpu/drm/omapdrm/omap_drv.c | 19 +++

Re: [PATCH v2 57/60] drm/omap: Remove omap_crtc_output global array

2018-06-11 Thread Sebastian Reichel
> Signed-off-by: Laurent Pinchart > --- Reviewed-by: Sebastian Reichel -- Sebastian > drivers/gpu/drm/omapdrm/omap_crtc.c | 12 +++- > 1 file changed, 3 insertions(+), 9 deletions(-) > > diff --git a/drivers/gpu/drm/omapdrm/omap_crtc.c > b/drivers/gpu/drm/omapdrm/omap_

Re: [PATCH v2 58/60] drm/omap: Remove supported output check in CRTC connect handler

2018-06-11 Thread Sebastian Reichel
gt; bug. All the output drivers have been verified and they are always > assigned a DISPC channel that is supported on the SoC they run on. The > check can thus be removed. > > Signed-off-by: Laurent Pinchart > --- Reviewed-by: Sebastian Reichel -- Sebastian > drivers/gpu

Re: [PATCH v2 59/60] drm/omap: Set dispc_channel_connect from DSS output connect handlers

2018-06-11 Thread Sebastian Reichel
ead of > going through the CRTC dss_mgr operations. > > Signed-off-by: Laurent Pinchart > --- Reviewed-by: Sebastian Reichel -- Sebastian > drivers/gpu/drm/omapdrm/dss/dpi.c | 3 +++ > drivers/gpu/drm/omapdrm/dss/dsi.c | 3 +++ > drivers/gpu/drm/omapdrm/dss/hdmi4.c | 3

Re: [PATCH v2 60/60] drm/omap: dss: Remove the dss_mgr_(dis)connect() operations

2018-06-11 Thread Sebastian Reichel
Hi, On Sat, May 26, 2018 at 08:25:18PM +0300, Laurent Pinchart wrote: > The dss_mgr .connect() and .disconnect() are implemented as no-op in > omapdrm. The operations are unneeded, remove them. > > Signed-off-by: Laurent Pinchart > --- Reviewed-by: Sebastian Reichel -- Sebast

Re: [PATCH 01/21] drm/omap: dss: Remove unused omap_dss_driver operations

2018-06-11 Thread Sebastian Reichel
Hi, On Wed, Jun 06, 2018 at 12:36:30PM +0300, Laurent Pinchart wrote: > The .probe(), .remove(), .run_test(), .get_rotate() and .set_rotate() > omap_dss_driver operations are not used. Remove them. > > Signed-off-by: Laurent Pinchart > --- Reviewed-by: Sebastian Reichel

Re: [PATCH 02/21] drm/omap: dss: Remove omap_dss_driver .[gs]et_mirror operations

2018-06-11 Thread Sebastian Reichel
Hi, On Wed, Jun 06, 2018 at 12:36:31PM +0300, Laurent Pinchart wrote: > The .get_mirror() and .set_mirror() omap_dss_driver operations are > implemented by the panel-tpo-td043mtea1 driver but are never used. > Remove them. > > Signed-off-by: Laurent Pinchart > --- Revi

Re: [PATCH 03/21] drm/omap: Remove unnecessary display output sanity checks

2018-06-11 Thread Sebastian Reichel
() macro it uses to iterate > over displays locates the displays by checking the driver field > internally. > > As those checks are unnecessary, remove them. > > Signed-off-by: Laurent Pinchart > --- Reviewed-by: Sebastian Reichel -- Sebastian > drivers/gpu/drm/om

Re: [PATCH 05/21] drm/omap: connector-hdmi: Convert to the GPIO descriptors API

2018-06-11 Thread Sebastian Reichel
Hi, On Wed, Jun 06, 2018 at 12:36:34PM +0300, Laurent Pinchart wrote: > The GPIO descriptor API is favoured over the plain GPIO API for consumer > drivers. Using it simplifies the driver code. > > Signed-off-by: Laurent Pinchart > --- Reviewed-by: Sebastian Reichel -- Sebast

Re: [PATCH 06/21] drm/omap: encoder-tfp410: Convert to the GPIO descriptors API

2018-06-11 Thread Sebastian Reichel
the polarity of all GPIO operations in the driver. > > Signed-off-by: Laurent Pinchart > --- Reviewed-by: Sebastian Reichel -- Sebastian > drivers/gpu/drm/omapdrm/displays/encoder-tfp410.c | 51 > ++- > 1 file changed, 13 insertions(+), 38 deletions(-)

Re: [PATCH 07/21] drm/omap: panel-nec-nl8048hl11: Convert to the GPIO descriptors API

2018-06-11 Thread Sebastian Reichel
he qvga GPIO is unused, so drop it completely. > > Signed-off-by: Laurent Pinchart > --- Reviewed-by: Sebastian Reichel -- Sebastian > .../drm/omapdrm/displays/panel-nec-nl8048hl11.c| 54 > +- > 1 file changed, 11 insertions(+), 43 deletions(-) > &g

Re: [PATCH 08/21] drm/omap: panel-sony-acx565akm: Convert to the GPIO descriptors API

2018-06-11 Thread Sebastian Reichel
Hi, On Wed, Jun 06, 2018 at 12:36:37PM +0300, Laurent Pinchart wrote: > The GPIO descriptor API is favoured over the plain GPIO API for consumer > drivers. Using it simplifies the driver code. > > Signed-off-by: Laurent Pinchart > --- Reviewed-by: Sebastian Reichel -- Sebast

Re: [PATCH 09/21] drm/omap: panel-tpo-td028ttec1: Drop unneeded linux/gpio.h header

2018-06-11 Thread Sebastian Reichel
Hi, On Wed, Jun 06, 2018 at 12:36:38PM +0300, Laurent Pinchart wrote: > The driver doesn't use GPIOs and thus doesn't need to include the > linux/gpio.h header. > > Signed-off-by: Laurent Pinchart > --- Reviewed-by: Sebastian Reichel -- Sebastian > drivers/gp

Re: [PATCH 10/21] drm/omap: panel-tpo-td043mtea1: Convert to the GPIO descriptors API

2018-06-11 Thread Sebastian Reichel
the polarity of all GPIO operations in the driver. Rename the > nreset_gpio field to reset_gpio to reflect that. > > The reset GPIO is mandatory, so drop conditional tests through the > driver. > > Signed-off-by: Laurent Pinchart > --- Reviewed-by: Sebastian Reichel -- Se

Re: [PATCH 11/21] drm/omap: Move most omap_dss_driver operations to omap_dss_device_ops

2018-06-11 Thread Sebastian Reichel
m recursive operations. To > simplify current and future code, move all operations that are not > specific to the display device to the omap_dss_device_ops. > > Signed-off-by: Laurent Pinchart > --- Reviewed-by: Sebastian Reichel -- Sebastian > .../gpu/drm/omapdrm/displays/c

Re: [PATCH 12/21] drm/omap: dss: Add device operations flags

2018-06-11 Thread Sebastian Reichel
; drivers to signal support for operations. > > Signed-off-by: Laurent Pinchart > --- Reviewed-by: Sebastian Reichel -- Sebastian > drivers/gpu/drm/omapdrm/dss/omapdss.h | 13 + > 1 file changed, 13 insertions(+) > > diff --git a/drivers/gpu/drm/omapdrm/dss/omap

Re: [PATCH 13/21] drm/omap: Don't call .detect() operation recursively

2018-06-11 Thread Sebastian Reichel
> .detect() implementation. This moves the complexity to a single central > location and simplifies the logic in omap_dss_device drivers. > > Signed-off-by: Laurent Pinchart > --- Reviewed-by: Sebastian Reichel -- Sebastian > drivers/gpu/drm/omapdrm/displays/connector-dvi.c | 2 ++

Re: [PATCH v2 46/60] drm/omap: dss: Remove duplicated parameter to dss_mgr_(dis)connect()

2018-06-11 Thread Sebastian Reichel
Hi, On Mon, Jun 11, 2018 at 08:16:24PM +0300, Laurent Pinchart wrote: > Hi Sebastian, > > On Monday, 11 June 2018 02:48:45 EEST Sebastian Reichel wrote: > > On Sat, May 26, 2018 at 08:25:04PM +0300, Laurent Pinchart wrote: > > > The dss_mgr_connect() and dss_mgr_disconn

Re: [PATCH v2 44/60] drm/omap: dss: Add for_each_dss_output() macro

2018-06-11 Thread Sebastian Reichel
Hi, On Mon, Jun 11, 2018 at 08:11:09PM +0300, Laurent Pinchart wrote: > Hi Sebastian, > > On Monday, 11 June 2018 02:52:44 EEST Sebastian Reichel wrote: > > On Sat, May 26, 2018 at 08:25:02PM +0300, Laurent Pinchart wrote: > > > Similarly to for_each_dss_display(),

Re: [PATCH 14/21] drm/omap: Don't call HPD registration operations recursively

2018-06-11 Thread Sebastian Reichel
t; detection support, iterate over the devices manually in the DRM > connector code. This moves the complexity to a single central location > and simplifies the logic in omap_dss_device drivers. > > Signed-off-by: Laurent Pinchart > --- Reviewed-by: Sebastian Reichel -- Sebastian

Re: [PATCH 15/21] drm/omap: Remove unneeded safety checks in the HPD operations

2018-06-11 Thread Sebastian Reichel
a > result be turned into a void operation. > > Signed-off-by: Laurent Pinchart > --- Reviewed-by: Sebastian Reichel -- Sebastian > drivers/gpu/drm/omapdrm/displays/connector-dvi.c | 9 + > drivers/gpu/drm/omapdrm/displays/connector-hdmi.c| 14 +++--

Re: [PATCH 16/21] drm/omap: Merge HPD enable operation with HPD callback registration

2018-06-11 Thread Sebastian Reichel
= priv->pipes[i].display; > - > - if (display->ops->disable_hpd) > - display->ops->disable_hpd(display); > - } > + for (i = 0; i < priv->num_pipes; i++) > + omap_connector_enable_hpd(priv->pipes[i].connecto

Re: [PATCH 17/21] drm/omap: Move HPD disconnection handling to omap_connector

2018-06-11 Thread Sebastian Reichel
AP4 internal HDMI encoder. > > Knowledge of the DSS internals need to be removed from the > omap_dss_device instances in order to migrate to drm_bridge. To do so, > move HPD handling for CEC to the omap_connector. > > Signed-off-by: Laurent Pinchart > --- Reviewed-by:

Re: [PATCH 18/21] drm/omap: Don't call EDID read operation recursively

2018-06-11 Thread Sebastian Reichel
e. > This moves the complexity to a single central location and simplifies > the logic in omap_dss_device drivers. > > Signed-off-by: Laurent Pinchart > --- Reviewed-by: Sebastian Reichel -- Sebastian > drivers/gpu/drm/omapdrm/displays/connector-dvi.c | 15 +-- > dr

Re: [PATCH 04/21] drm/omap: Check omap_dss_device type based on the output_type field

2018-06-11 Thread Sebastian Reichel
t; This gets in the way of the omap_dss_device operations refactoring. > Replace that with a check based on the output_type field which is set > for all omap_dss_device instances but displays. > > Signed-off-by: Laurent Pinchart > --- Reviewed-by: Sebastian Reichel -- Sebastian

Re: [PATCH 19/21] drm/omap: Get from CRTC to display device directly

2018-06-11 Thread Sebastian Reichel
aurent Pinchart > --- Reviewed-by: Sebastian Reichel -- Sebastian > drivers/gpu/drm/omapdrm/omap_crtc.c| 25 - > drivers/gpu/drm/omapdrm/omap_encoder.c | 7 --- > drivers/gpu/drm/omapdrm/omap_encoder.h | 3 --- > 3 files changed, 4 insertions(+), 31 dele

Re: [PATCH 21/21] drm/omap: Don't call HDMI mode and infoframe operations recursively

2018-06-11 Thread Sebastian Reichel
HDMI > encoder just forward the operation to the previous component in the > chain. Call the operations directly on the HDMI encoder. > > Signed-off-by: Laurent Pinchart > --- Reviewed-by: Sebastian Reichel -- Sebastian > drivers/gpu/drm/omapdrm/displays/connector-hdmi.c | 20

Re: [PATCH 20/21] drm/omap: Pass both output and display omap_dss_device to encoder init

2018-06-11 Thread Sebastian Reichel
gt; handling will require access to the output omap_dss_device. To prepare > for that, pass it to the encoder initialization function and store it > internally as well. > > Signed-off-by: Laurent Pinchart > --- Reviewed-by: Sebastian Reichel -- Sebastian > drivers/gpu/d

Re: [PATCH 00/23] omapdrm: Rework the timing-related operations

2018-06-12 Thread Sebastian Reichel
reworking the .check_timings() operation by > making use of the bus flags. Patches 11/23 to 13/23 rework the .get_timings() > operation, and patches 14/23 to 21/23 complete the .check_timings() rework. > Patches 22/23 and 23/23 finally rework the .set_timings() operation.

Re: [PATCH] drm/omap: dsi: Fix missing of_platform_depopulate()

2018-11-08 Thread Sebastian Reichel
Hi, On Tue, Nov 06, 2018 at 07:28:02AM -0800, Tony Lindgren wrote: > We're missing a call to of_platform_depopulate() on errors for dsi. > Looks like dss is already doing this. > > Signed-off-by: Tony Lindgren > --- Reviewed-by: Sebastian Reichel -- Sebastian > driv

Re: [PATCH v3 1/4] drm/omap: Populate DSS children in omapdss driver

2018-11-10 Thread Sebastian Reichel
t; Fixes: 27d624527d99 ("drm/omap: dss: Acquire next dssdev at probe time") > Signed-off-by: Laurent Pinchart > Acked-by: Tony Lindgren > --- Reviewed-by: Sebastian Reichel -- Sebastian > arch/arm/mach-omap2/display.c | 111 ++ &g

Re: [PATCH v3 2/4] drm/omap: hdmi4: Ensure the device is active during bind

2018-11-10 Thread Sebastian Reichel
gt; > Fixes: 27d624527d99 ("drm/omap: dss: Acquire next dssdev at probe time") > Signed-off-by: Laurent Pinchart > --- Reviewed-by: Sebastian Reichel -- Sebastian > Changes since v2: > > - Call hdmi_runtime_put() instead of hdmi_runtime_get() in error path > ---

Re: [PATCH v3 3/4] drm/omap: dsi: Ensure the device is active during probe

2018-11-10 Thread Sebastian Reichel
_runtime_get() and dsi_runtime_put() calls. > > Fixes: edb715dffdee ("drm/omap: dss: dsi: Move initialization code from bind > to probe") > Signed-off-by: Laurent Pinchart > Acked-by: Tony Lindgren > --- Reviewed-by: Sebastian Reichel -- Sebastian > drivers

Re: [PATCH v3 4/4] drm/omap: Move DISPC runtime PM handling to omapdrm

2018-11-10 Thread Sebastian Reichel
erred, or at remove time du to the > DISPC being already removed). > > Fixes: edb715dffdee ("drm/omap: dss: dsi: Move initialization code from bind > to probe") > Signed-off-by: Laurent Pinchart > --- +1 for writing fixes, that cleanup the code at the same time :) D

[PATCHv4 6/6] drm/omap: add support for manually updated displays

2018-11-16 Thread Sebastian Reichel
trigger a display refresh and seems to work as expected. Signed-off-by: Sebastian Reichel --- drivers/gpu/drm/omapdrm/omap_crtc.c | 116 ++-- drivers/gpu/drm/omapdrm/omap_crtc.h | 1 + drivers/gpu/drm/omapdrm/omap_fb.c | 41 ++ 3 files changed, 153 insert

[PATCHv4 5/6] drm/omap: add framedone interrupt support

2018-11-16 Thread Sebastian Reichel
This prepares framedone interrupt handling for manual display update support. Signed-off-by: Sebastian Reichel --- drivers/gpu/drm/omapdrm/omap_crtc.c | 50 + drivers/gpu/drm/omapdrm/omap_crtc.h | 1 + drivers/gpu/drm/omapdrm/omap_irq.c | 25

[PATCHv4 3/6] drm/omap: don't check dispc timings for DSI

2018-11-16 Thread Sebastian Reichel
PC VM for DSI here. Fixes: 7c27fa57ef31 ("drm/omap: Call dispc timings check operation directly") Signed-off-by: Sebastian Reichel --- drivers/gpu/drm/omapdrm/omap_connector.c | 8 +--- drivers/gpu/drm/omapdrm/omap_encoder.c | 8 +--- 2 files changed, 10 insertions(+), 6 del

[PATCHv4 1/6] drm/omap: use DRM_DEBUG_DRIVER instead of CORE

2018-11-16 Thread Sebastian Reichel
This macro is only used by omapdrm, which should print debug messages using the DRIVER category instead of the default CORE category. Signed-off-by: Sebastian Reichel --- drivers/gpu/drm/omapdrm/omap_drv.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm

[PATCHv4 2/6] drm/omap: populate DSI platform bus earlier

2018-11-16 Thread Sebastian Reichel
dsi_init_output(). Fixes: 27d624527d992 ("drm/omap: dss: Acquire next dssdev at probe time") Signed-off-by: Sebastian Reichel --- drivers/gpu/drm/omapdrm/dss/dsi.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/omapdrm/ds

[PATCHv4 0/6] omapdrm: DSI command mode panel support

2018-11-16 Thread Sebastian Reichel
erty to set DRM orientation hint * Add Tested-by from Tony Changes since PATCHv1: * Drop patches, that were queued by Tomi * Rebase to current master * Rework the omap3 workaround patch to only affect omap3 * Add orientation DRM property support -- Sebastian Sebastian Reichel (6): drm/omap: use D

[PATCHv4 4/6] drm/omap: fix incorrect union usage

2018-11-16 Thread Sebastian Reichel
ssue by exiting early if the output type definitely has no hdmi_set operations. Fixes: 83910ad3f51fb ("drm/omap: Move most omap_dss_driver operations to omap_dss_device_ops") Signed-off-by: Sebastian Reichel --- drivers/gpu/drm/omapdrm/omap_encoder.c | 8 1 file changed, 8 inser

Re: [PATCHv4 4/6] drm/omap: fix incorrect union usage

2018-11-16 Thread Sebastian Reichel
Hi Tomi, On Fri, Nov 16, 2018 at 03:41:24PM +0200, Tomi Valkeinen wrote: > On 16/11/18 01:06, Sebastian Reichel wrote: > > The DSI encoder sets dssdev->ops->dsi.set_config, which is stored at the > > same offset as dssdev->ops->hdmi.set_hdmi_mode. The code in omap

Re: [PATCHv4 5/6] drm/omap: add framedone interrupt support

2018-11-20 Thread Sebastian Reichel
Hi, On Sat, Nov 17, 2018 at 10:08:40PM +0100, Pavel Machek wrote: > > This prepares framedone interrupt handling for > > manual display update support. > > > > Signed-off-by: Sebastian Reichel > > Acked-by: Pavel Machek Thanks. > > @@ -217,6 +239,9 @@ sta

[PATCHv5 5/6] drm/omap: add framedone interrupt support

2018-11-22 Thread Sebastian Reichel
This prepares framedone interrupt handling for manual display update support. Acked-by: Pavel Machek Tested-by: Tony Lindgren Tested-by: Pavel Machek Signed-off-by: Sebastian Reichel --- drivers/gpu/drm/omapdrm/omap_crtc.c | 50 + drivers/gpu/drm/omapdrm

[PATCHv5 0/6] omapdrm: DSI command mode panel support

2018-11-22 Thread Sebastian Reichel
existing 'rotation' DT property to set DRM orientation hint * Add Tested-by from Tony Changes since PATCHv1: * Drop patches, that were queued by Tomi * Rebase to current master * Rework the omap3 workaround patch to only affect omap3 * Add orientation DRM property support --

[PATCHv5 2/6] drm/omap: populate DSI platform bus earlier

2018-11-22 Thread Sebastian Reichel
dsi_init_output(). Fixes: 27d624527d992 ("drm/omap: dss: Acquire next dssdev at probe time") Acked-by: Pavel Machek Tested-by: Tony Lindgren Tested-by: Pavel Machek Signed-off-by: Sebastian Reichel --- drivers/gpu/drm/omapdrm/dss/dsi.c | 20 ++-- 1 file changed, 10

[PATCHv5 1/6] drm/omap: use DRM_DEBUG_DRIVER instead of CORE

2018-11-22 Thread Sebastian Reichel
This macro is only used by omapdrm, which should print debug messages using the DRIVER category instead of the default CORE category. Acked-by: Pavel Machek Tested-by: Tony Lindgren Tested-by: Pavel Machek Signed-off-by: Sebastian Reichel --- drivers/gpu/drm/omapdrm/omap_drv.h | 4 ++-- 1

[PATCHv5 4/6] drm/omap: fix incorrect union usage

2018-11-22 Thread Sebastian Reichel
ove most omap_dss_driver operations to omap_dss_device_ops") Signed-off-by: Sebastian Reichel --- drivers/gpu/drm/omapdrm/omap_encoder.c | 62 +++--- 1 file changed, 37 insertions(+), 25 deletions(-) diff --git a/drivers/gpu/drm/omapdrm/omap_encoder.c b/drivers/gpu/drm/omapdrm/omap

[PATCHv5 6/6] drm/omap: add support for manually updated displays

2018-11-22 Thread Sebastian Reichel
trigger a display refresh and seems to work as expected. Acked-by: Pavel Machek Tested-by: Tony Lindgren Tested-by: Pavel Machek Signed-off-by: Sebastian Reichel --- drivers/gpu/drm/omapdrm/omap_crtc.c | 117 ++-- drivers/gpu/drm/omapdrm/omap_crtc.h | 1 + drivers/gpu/d

[PATCHv5 3/6] drm/omap: don't check dispc timings for DSI

2018-11-22 Thread Sebastian Reichel
e DISPC VM for DSI here. Fixes: 7c27fa57ef31 ("drm/omap: Call dispc timings check operation directly") Acked-by: Pavel Machek Tested-by: Tony Lindgren Tested-by: Pavel Machek Signed-off-by: Sebastian Reichel --- drivers/gpu/drm/omapdrm/omap_connector.c | 8 +--- drivers/gpu/drm/om

Re: [PATCHv5 0/6] omapdrm: DSI command mode panel support

2018-11-27 Thread Sebastian Reichel
Hi, On Mon, Nov 26, 2018 at 11:34:30AM +0200, Tomi Valkeinen wrote: > On 21/11/18 18:09, Sebastian Reichel wrote: > > Here is another round of the DSI command mode panel patchset > > integrating the feedback from PATCHv4. The patches are based > > on 4.20-rc1 + fixes fro

Re: [PATCH v2 00/22] omapdrm: Rework the timing-related operations

2018-08-13 Thread Sebastian Reichel
> for all three serieses: > > Reviewed-by: Tomi Valkeinen > > Good work! And a special thanks for Sebastian for doing review. > > Sebastian, did you happen to test these with the DSI command mode > patches on top? No, I did not test this on Droid 4. I only reviewed them. I&#

Re: [PATCH 28/29] drm/omap: Simplify OF lookup of DSS devices

2018-12-09 Thread Sebastian Reichel
> look them up by node only. > > Signed-off-by: Laurent Pinchart > --- Reviewed-by: Sebastian Reichel -- Sebastian > drivers/gpu/drm/omapdrm/dss/base.c| 5 +-- > drivers/gpu/drm/omapdrm/dss/dss-of.c | 60 --- > drivers/gpu/drm/omapdrm/dss/o

Re: [PATCH 18/29] drm/omap: Don't store display pointer in omap_connector structure

2018-12-10 Thread Sebastian Reichel
s to the end of the > pipeline. > > Signed-off-by: Laurent Pinchart > --- Reviewed-by: Sebastian Reichel -- Sebastian > drivers/gpu/drm/omapdrm/omap_connector.c | 31 ++-- > 1 file changed, 13 insertions(+), 18 deletions(-) > > diff --git a/drivers/gpu/

Re: [PATCH 11/29] drm/omap: Factor out common init/cleanup code for output devices

2018-12-10 Thread Sebastian Reichel
Hi, On Wed, Dec 05, 2018 at 05:00:04PM +0200, Laurent Pinchart wrote: > All the internal encoders share common init and cleanup code. Factor it > out to separate functions. > > Signed-off-by: Laurent Pinchart > --- Reviewed-by: Sebastian Reichel -- Sebastian > drivers/g

Re: [PATCH v1.1 26/29] drm/omap: venc: Use drm_display_mode natively

2018-12-10 Thread Sebastian Reichel
nce v1: > > - Set mode.crtc_* fields and mode name in venc_check_timings() > --- Reviewed-by: Sebastian Reichel -- Sebastian > drivers/gpu/drm/omapdrm/dss/venc.c | 90 +++--- > 1 file changed, 44 insertions(+), 46 deletions(-) > > diff --git a/drivers/gpu/

Re: [PATCH 03/29] drm/omap: venc: Remove wss_data field from venc_device structure

2018-12-10 Thread Sebastian Reichel
On Wed, Dec 05, 2018 at 04:59:56PM +0200, Laurent Pinchart wrote: > The venc_device structure wss_data field is set to 0 and never otherwise > modified, remove it. > > Signed-off-by: Laurent Pinchart > --- Reviewed-by: Sebastian Reichel -- Sebastian > drivers/gpu/drm/omapd

Re: [PATCH 04/29] drm/omap: Use atomic suspend/resume helpers

2018-12-10 Thread Sebastian Reichel
gt; > Signed-off-by: Laurent Pinchart > --- Documentation/gpu/todo.rst says, that this should be converted to drm_mode_config_helper_suspend, but at least it's no longer open coded after your change. Reviewed-by: Sebastian Reichel -- Sebastian > drivers/gpu/drm/omapdrm/dss/o

Re: [PATCH 24/29] drm/omap: Factor out common mode validation code

2018-12-10 Thread Sebastian Reichel
gt; function. > > Signed-off-by: Laurent Pinchart > --- This is a bit tricky to review. It would probably be easier to review, if the changes were split into two commits: 1. introduce common function 2. move drm_display_mode/videomode conversion further up the stack Anyways: Reviewed-

Re: [PATCH 21/29] drm/omap: Remove src field from omap_dss_device structure

2018-12-10 Thread Sebastian Reichel
Hi, On Wed, Dec 05, 2018 at 05:00:14PM +0200, Laurent Pinchart wrote: > The field is only used to check whether the device is connected, and we > can do so by checking the dss field instead. Remove the src field. > > Signed-off-by: Laurent Pinchart > --- Reviewed-by: Se

Re: [PATCH 01/29] drm/omap: Remove declaration of nonexisting function

2018-12-10 Thread Sebastian Reichel
Hi, On Wed, Dec 05, 2018 at 04:59:54PM +0200, Laurent Pinchart wrote: > The omap_connector_attached_encoder() doesn't exist anymore, remove its > declaration from omap_connector.h. > > Signed-off-by: Laurent Pinchart > --- Reviewed-by: Sebastian Reichel -- Sebastian

Re: [PATCH 09/29] drm/omap: Reverse direction of the DSS device enable/disable operations

2018-12-10 Thread Sebastian Reichel
otable exception of the DSI pipelines that will require more > work. > > Signed-off-by: Laurent Pinchart > --- Reviewed-by: Sebastian Reichel -- Sebastian > .../omapdrm/displays/connector-analog-tv.c| 21 > .../gpu/drm/omapdrm/displays/connector-dvi.c | 21 -

Re: [PATCH 02/29] drm/omap: Remove unused kobj field from struct omap_dss_device

2018-12-10 Thread Sebastian Reichel
On Wed, Dec 05, 2018 at 04:59:55PM +0200, Laurent Pinchart wrote: > The kobj field from struct omap_dss_device is not used. Remove it. > > Signed-off-by: Laurent Pinchart > --- Reviewed-by: Sebastian Reichel -- Sebastian > drivers/gpu/drm/omapdrm/dss/omapdss.h | 2 -- >

Re: [PATCH 07/29] drm/omap: Remove connection checks from display .enable() and .remove()

2018-12-10 Thread Sebastian Reichel
the safety checks. > > Signed-off-by: Laurent Pinchart > --- Reviewed-by: Sebastian Reichel -- Sebastian > .../gpu/drm/omapdrm/displays/encoder-opa362.c | 7 --- > .../gpu/drm/omapdrm/displays/encoder-tfp410.c | 7 --- > .../drm/omapdrm/displays/encoder-tpd12s

Re: [PATCH 12/29] drm/omap: Expose DRM modes instead of timings in display devices

2018-12-10 Thread Sebastian Reichel
M > modes directly to the connector. > > As this puts more burden on display devices, we also create a helper > function for panels to add a single DRM mode from the panel video > timings. > > Signed-off-by: Laurent Pinchart > --- Reviewed-by: Sebastian Reichel -- Sebastian &g

Re: [PATCH 10/29] drm/omap: Remove omap_dss_device dst field

2018-12-10 Thread Sebastian Reichel
Hi, On Wed, Dec 05, 2018 at 05:00:03PM +0200, Laurent Pinchart wrote: > The field is only used in a safety check during device > connection/disconnection, where the src field can be easily used > instead. Remove it and use src. > > Signed-off-by: Laurent Pinchart > --- Revi

Re: [PATCH 25/29] drm/omap: Pass drm_display_mode to .check_timings() and .set_timings()

2018-12-10 Thread Sebastian Reichel
k_timings(dssdev, adjusted_mode); > if (ret) > return MODE_BAD; > } > > - if (adjusted_mode) > - drm_display_mode_from_videomode(&vm, adjusted_mode); > - > return MODE_OK; > } Old code assumed,

Re: [PATCH 29/29] drm/omap: Refactor initialization sequence

2018-12-10 Thread Sebastian Reichel
before getting aliases and sorting the pipelines. > > Signed-off-by: Laurent Pinchart > --- Reviewed-by: Sebastian Reichel -- Sebastian > drivers/gpu/drm/omapdrm/omap_drv.c | 123 + > 1 file changed, 56 insertions(+), 67 deletions(-) > > diff

Re: [PATCH 16/29] drm/omap: Don't pass display pointer to encoder init function

2018-12-10 Thread Sebastian Reichel
Hi, On Wed, Dec 05, 2018 at 05:00:09PM +0200, Laurent Pinchart wrote: > The display isn't used by the encoder implementation, don't pass it to > the initialization function and store it internally needlessly. > > Signed-off-by: Laurent Pinchart > --- Revie

Re: [PATCH 23/29] drm/omap: venc: Simplify mode setting by caching configuration

2018-12-10 Thread Sebastian Reichel
> instead. > > Signed-off-by: Laurent Pinchart > --- Reviewed-by: Sebastian Reichel -- Sebastian > drivers/gpu/drm/omapdrm/dss/venc.c | 68 +++--- > 1 file changed, 34 insertions(+), 34 deletions(-) > > diff --git a/drivers/gpu/drm/omapdrm/dss/ve

Re: [PATCH 22/29] drm/omap: Move DISPC timing checks to CRTC .mode_valid() operation

2018-12-10 Thread Sebastian Reichel
gned-off-by: Laurent Pinchart > --- Reviewed-by: Sebastian Reichel This should also fix the issue with DSI in a less ugly way: https://lists.freedesktop.org/archives/dri-devel/2018-November/196622.html -- Sebastian > drivers/gpu/drm/omapdrm/omap_connector.c | 6 -- > drivers/gpu/drm

Re: [PATCH 27/29] drm/omap: Store pixel clock instead of full mode in DPI and SDI encoders

2018-12-10 Thread Sebastian Reichel
off-by: Laurent Pinchart > --- Reviewed-by: Sebastian Reichel -- Sebastian > drivers/gpu/drm/omapdrm/dss/dpi.c | 9 - > drivers/gpu/drm/omapdrm/dss/sdi.c | 6 +++--- > 2 files changed, 7 insertions(+), 8 deletions(-) > > diff --git a/drivers/gpu/drm/omapdrm/dss/dpi.c >

Re: [PATCH 15/29] drm/omap: venc: List both PAL and NTSC modes

2018-12-10 Thread Sebastian Reichel
; Signed-off-by: Laurent Pinchart > --- Reviewed-by: Sebastian Reichel -- Sebastian > drivers/gpu/drm/omapdrm/dss/venc.c | 25 +++-- > 1 file changed, 19 insertions(+), 6 deletions(-) > > diff --git a/drivers/gpu/drm/omapdrm/dss/venc.c > b/drivers/g

Re: [PATCH 17/29] drm/omap: Move display alias ID to omap_drm_pipeline

2018-12-10 Thread Sebastian Reichel
nection time and store > it in the pipeline structure instead to keep the feature. > > Signed-off-by: Laurent Pinchart > --- Reviewed-by: Sebastian Reichel -- Sebastian > drivers/gpu/drm/omapdrm/dss/display.c | 2 -- > drivers/gpu/drm/omapdrm/dss/omapdss.h | 2 --

Re: [PATCH 05/29] drm/omap: Move common display enable/disable code to encoder

2018-12-10 Thread Sebastian Reichel
ncoder_disable() > handlers. > > The enabled check in the .disable() handler is left untouched, it will > be addressed separately. > > Signed-off-by: Laurent Pinchart > --- Reviewed-by: Sebastian Reichel -- Sebastian > .../omapdrm/displays/connector-analog-tv.c| 23 +---

Re: [PATCH 06/29] drm/omap: Remove connection checks from internal encoders .enable()

2018-12-10 Thread Sebastian Reichel
gt; > The safety check is thus not needed, remove it. > > Signed-off-by: Laurent Pinchart > --- Reviewed-by: Sebastian Reichel -- Sebastian > drivers/gpu/drm/omapdrm/dss/dpi.c | 17 + > drivers/gpu/drm/omapdrm/dss/dsi.c | 20 ++---

Re: [PATCH 20/29] drm/omap: Notify all devices in the pipeline of output disconnection

2018-12-10 Thread Sebastian Reichel
gt; pipeline. > > Signed-off-by: Laurent Pinchart > --- Reviewed-by: Sebastian Reichel -- Sebastian > drivers/gpu/drm/omapdrm/omap_connector.c | 28 ++-- > 1 file changed, 16 insertions(+), 12 deletions(-) > > diff --git a/drivers/gpu/drm/omapdrm/omap

Re: [PATCH 13/29] drm/omap: Merge display .get_modes() and .get_size() operations

2018-12-10 Thread Sebastian Reichel
; Signed-off-by: Laurent Pinchart > --- Reviewed-by: Sebastian Reichel -- Sebastian > drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c | 14 +++--- > drivers/gpu/drm/omapdrm/dss/omapdss.h | 3 --- > drivers/gpu/drm/omapdrm/omap_connector.c| 15 ++

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