On Wed, Jul 17, 2019 at 01:58:08PM +0200, Noralf Trønnes wrote: > tinydrm drivers announce DRM_MODE_CONNECTOR_VIRTUAL for its SPI drivers. > Stop lying and add a SPI connector type > > Cc: David Lechner <david@xxxxxxxxxxxxxx> > Signed-off-by: Noralf Trønnes <noralf@xxxxxxxxxxx> Note this will break X (and probably a pile of others), which is why we tried hard to avoid adding new connector types. Or did this all get fixed by now? -Daniel > --- > drivers/gpu/drm/drm_connector.c | 1 + > drivers/gpu/drm/tinydrm/mipi-dbi.c | 3 +-- > drivers/gpu/drm/tinydrm/repaper.c | 2 +- > drivers/gpu/drm/tinydrm/st7586.c | 2 +- > include/uapi/drm/drm_mode.h | 1 + > 5 files changed, 5 insertions(+), 4 deletions(-) > > diff --git a/drivers/gpu/drm/drm_connector.c b/drivers/gpu/drm/drm_connector.c > index 068d4b05f1be..cbb548b3708f 100644 > --- a/drivers/gpu/drm/drm_connector.c > +++ b/drivers/gpu/drm/drm_connector.c > @@ -92,6 +92,7 @@ static struct drm_conn_prop_enum_list drm_connector_enum_list[] = { > { DRM_MODE_CONNECTOR_DSI, "DSI" }, > { DRM_MODE_CONNECTOR_DPI, "DPI" }, > { DRM_MODE_CONNECTOR_WRITEBACK, "Writeback" }, > + { DRM_MODE_CONNECTOR_SPI, "SPI" }, > }; > > void drm_connector_ida_init(void) > diff --git a/drivers/gpu/drm/tinydrm/mipi-dbi.c b/drivers/gpu/drm/tinydrm/mipi-dbi.c > index ca9da654fc6f..791a0b43beef 100644 > --- a/drivers/gpu/drm/tinydrm/mipi-dbi.c > +++ b/drivers/gpu/drm/tinydrm/mipi-dbi.c > @@ -445,9 +445,8 @@ int mipi_dbi_init(struct mipi_dbi *mipi, > if (!mipi->tx_buf) > return -ENOMEM; > > - /* TODO: Maybe add DRM_MODE_CONNECTOR_SPI */ > ret = tinydrm_display_pipe_init(drm, &mipi->pipe, funcs, > - DRM_MODE_CONNECTOR_VIRTUAL, > + DRM_MODE_CONNECTOR_SPI, > mipi_dbi_formats, > ARRAY_SIZE(mipi_dbi_formats), mode, > rotation); > diff --git a/drivers/gpu/drm/tinydrm/repaper.c b/drivers/gpu/drm/tinydrm/repaper.c > index 85acfccefcdb..40afa66107e5 100644 > --- a/drivers/gpu/drm/tinydrm/repaper.c > +++ b/drivers/gpu/drm/tinydrm/repaper.c > @@ -1110,7 +1110,7 @@ static int repaper_probe(struct spi_device *spi) > return -ENOMEM; > > ret = tinydrm_display_pipe_init(drm, &epd->pipe, &repaper_pipe_funcs, > - DRM_MODE_CONNECTOR_VIRTUAL, > + DRM_MODE_CONNECTOR_SPI, > repaper_formats, > ARRAY_SIZE(repaper_formats), mode, 0); > if (ret) > diff --git a/drivers/gpu/drm/tinydrm/st7586.c b/drivers/gpu/drm/tinydrm/st7586.c > index 204face7b311..7ae39004aa88 100644 > --- a/drivers/gpu/drm/tinydrm/st7586.c > +++ b/drivers/gpu/drm/tinydrm/st7586.c > @@ -384,7 +384,7 @@ static int st7586_probe(struct spi_device *spi) > mipi->swap_bytes = true; > > ret = tinydrm_display_pipe_init(drm, &mipi->pipe, &st7586_pipe_funcs, > - DRM_MODE_CONNECTOR_VIRTUAL, > + DRM_MODE_CONNECTOR_SPI, > st7586_formats, ARRAY_SIZE(st7586_formats), > &st7586_mode, rotation); > if (ret) > diff --git a/include/uapi/drm/drm_mode.h b/include/uapi/drm/drm_mode.h > index 5ab331e5dc23..735c8cfdaaa1 100644 > --- a/include/uapi/drm/drm_mode.h > +++ b/include/uapi/drm/drm_mode.h > @@ -361,6 +361,7 @@ enum drm_mode_subconnector { > #define DRM_MODE_CONNECTOR_DSI 16 > #define DRM_MODE_CONNECTOR_DPI 17 > #define DRM_MODE_CONNECTOR_WRITEBACK 18 > +#define DRM_MODE_CONNECTOR_SPI 19 > > struct drm_mode_get_connector { > > -- > 2.20.1 > > _______________________________________________ > dri-devel mailing list > dri-devel@xxxxxxxxxxxxxxxxxxxxx > https://lists.freedesktop.org/mailman/listinfo/dri-devel -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ dri-devel mailing list dri-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/dri-devel