Re: [PATCH] drm/bridge: ti-sn65dsi86: Fix multiple instances

2024-10-31 Thread Dmitry Baryshkov
On Wed, Oct 30, 2024 at 12:28:46PM +0200, Laurent Pinchart wrote: > On Wed, Oct 30, 2024 at 11:25:40AM +0100, Geert Uytterhoeven wrote: > > On Mon, Oct 28, 2024 at 2:34 PM Dmitry Baryshkov wrote: > > > On Tue, Oct 22, 2024 at 07:37:01AM -0700, Doug Anderson wrote: > > > > On Tue, Oct 22, 2024 at 12

Re: [PATCH] drm/bridge: ti-sn65dsi86: Fix multiple instances

2024-10-30 Thread Laurent Pinchart
On Wed, Oct 30, 2024 at 11:25:40AM +0100, Geert Uytterhoeven wrote: > On Mon, Oct 28, 2024 at 2:34 PM Dmitry Baryshkov wrote: > > On Tue, Oct 22, 2024 at 07:37:01AM -0700, Doug Anderson wrote: > > > On Tue, Oct 22, 2024 at 12:12 AM Geert Uytterhoeven wrote: > > > > > > > > > However, using i2c_clie

Re: [PATCH] drm/bridge: ti-sn65dsi86: Fix multiple instances

2024-10-30 Thread Geert Uytterhoeven
Hi Dmitry, On Mon, Oct 28, 2024 at 2:34 PM Dmitry Baryshkov wrote: > On Tue, Oct 22, 2024 at 07:37:01AM -0700, Doug Anderson wrote: > > On Tue, Oct 22, 2024 at 12:12 AM Geert Uytterhoeven > > wrote: > > > > > > > > However, using i2c_client->adapter->nr instead of ida_alloc() > > > > > > > > in

Re: [PATCH] drm/bridge: ti-sn65dsi86: Fix multiple instances

2024-10-28 Thread Dmitry Baryshkov
On Tue, Oct 22, 2024 at 07:37:01AM -0700, Doug Anderson wrote: > Hi, > > On Tue, Oct 22, 2024 at 12:12 AM Geert Uytterhoeven > wrote: > > > > > > > > > However, using i2c_client->adapter->nr instead of ida_alloc() > > > > > > > in the TI driver does sound like a good idea to me... > > > > > > > >

Re: [PATCH] drm/bridge: ti-sn65dsi86: Fix multiple instances

2024-10-22 Thread Doug Anderson
Hi, On Tue, Oct 22, 2024 at 12:12 AM Geert Uytterhoeven wrote: > > > > > > > However, using i2c_client->adapter->nr instead of ida_alloc() > > > > > > in the TI driver does sound like a good idea to me... > > > > > > > > > > Great! > > > > > > > With the I2C adapter numbers, that becomes: > > > >

Re: [PATCH] drm/bridge: ti-sn65dsi86: Fix multiple instances

2024-10-22 Thread Geert Uytterhoeven
Hi Doug, On Tue, Oct 22, 2024 at 2:28 AM Doug Anderson wrote: > On Mon, Oct 21, 2024 at 1:48 AM Geert Uytterhoeven > wrote: > > On Mon, Oct 21, 2024 at 10:23 AM Geert Uytterhoeven > > wrote: > > > On Mon, Oct 21, 2024 at 9:27 AM Greg KH > > > wrote: > > > > On Mon, Oct 21, 2024 at 08:58:30AM

Re: [PATCH] drm/bridge: ti-sn65dsi86: Fix multiple instances

2024-10-21 Thread Doug Anderson
Hi, On Mon, Oct 21, 2024 at 1:48 AM Geert Uytterhoeven wrote: > > Hi Greg, > > On Mon, Oct 21, 2024 at 10:23 AM Geert Uytterhoeven > wrote: > > On Mon, Oct 21, 2024 at 9:27 AM Greg KH wrote: > > > On Mon, Oct 21, 2024 at 08:58:30AM +0200, Geert Uytterhoeven wrote: > > > > On Mon, Oct 21, 2024 a

Re: [PATCH] drm/bridge: ti-sn65dsi86: Fix multiple instances

2024-10-21 Thread Geert Uytterhoeven
Hi Greg, On Mon, Oct 21, 2024 at 10:23 AM Geert Uytterhoeven wrote: > On Mon, Oct 21, 2024 at 9:27 AM Greg KH wrote: > > On Mon, Oct 21, 2024 at 08:58:30AM +0200, Geert Uytterhoeven wrote: > > > On Mon, Oct 21, 2024 at 8:39 AM Greg KH > > > wrote: > > > > On Sun, Oct 20, 2024 at 05:36:29PM +03

Re: [PATCH] drm/bridge: ti-sn65dsi86: Fix multiple instances

2024-10-21 Thread Laurent Pinchart
On Mon, Oct 21, 2024 at 10:23:26AM +0200, Geert Uytterhoeven wrote: > On Mon, Oct 21, 2024 at 9:27 AM Greg KH wrote: > > On Mon, Oct 21, 2024 at 08:58:30AM +0200, Geert Uytterhoeven wrote: > > > On Mon, Oct 21, 2024 at 8:39 AM Greg KH > > > wrote: > > > > On Sun, Oct 20, 2024 at 05:36:29PM +0300

Re: [PATCH] drm/bridge: ti-sn65dsi86: Fix multiple instances

2024-10-21 Thread Geert Uytterhoeven
Hi Greg, On Mon, Oct 21, 2024 at 9:27 AM Greg KH wrote: > On Mon, Oct 21, 2024 at 08:58:30AM +0200, Geert Uytterhoeven wrote: > > On Mon, Oct 21, 2024 at 8:39 AM Greg KH wrote: > > > On Sun, Oct 20, 2024 at 05:36:29PM +0300, Laurent Pinchart wrote: > > > > On Fri, Oct 18, 2024 at 04:31:21PM +020

Re: [PATCH] drm/bridge: ti-sn65dsi86: Fix multiple instances

2024-10-21 Thread Greg KH
On Mon, Oct 21, 2024 at 08:58:30AM +0200, Geert Uytterhoeven wrote: > Hi Greg, > > On Mon, Oct 21, 2024 at 8:39 AM Greg KH wrote: > > On Sun, Oct 20, 2024 at 05:36:29PM +0300, Laurent Pinchart wrote: > > > On Fri, Oct 18, 2024 at 04:31:21PM +0200, Greg KH wrote: > > > > On Fri, Oct 18, 2024 at 05

Re: [PATCH] drm/bridge: ti-sn65dsi86: Fix multiple instances

2024-10-20 Thread Geert Uytterhoeven
Hi Greg, On Mon, Oct 21, 2024 at 8:39 AM Greg KH wrote: > On Sun, Oct 20, 2024 at 05:36:29PM +0300, Laurent Pinchart wrote: > > On Fri, Oct 18, 2024 at 04:31:21PM +0200, Greg KH wrote: > > > On Fri, Oct 18, 2024 at 05:25:22PM +0300, Laurent Pinchart wrote: > > > > On Fri, Oct 18, 2024 at 04:09:26

Re: [PATCH] drm/bridge: ti-sn65dsi86: Fix multiple instances

2024-10-20 Thread Greg KH
On Sun, Oct 20, 2024 at 05:36:29PM +0300, Laurent Pinchart wrote: > On Fri, Oct 18, 2024 at 04:31:21PM +0200, Greg KH wrote: > > On Fri, Oct 18, 2024 at 05:25:22PM +0300, Laurent Pinchart wrote: > > > On Fri, Oct 18, 2024 at 04:09:26PM +0200, Greg KH wrote: > > > > On Fri, Oct 18, 2024 at 03:36:48P

Re: [PATCH] drm/bridge: ti-sn65dsi86: Fix multiple instances

2024-10-20 Thread Laurent Pinchart
On Fri, Oct 18, 2024 at 04:31:21PM +0200, Greg KH wrote: > On Fri, Oct 18, 2024 at 05:25:22PM +0300, Laurent Pinchart wrote: > > On Fri, Oct 18, 2024 at 04:09:26PM +0200, Greg KH wrote: > > > On Fri, Oct 18, 2024 at 03:36:48PM +0200, Geert Uytterhoeven wrote: > > > > On Fri, Oct 18, 2024 at 3:10 PM

Re: [PATCH] drm/bridge: ti-sn65dsi86: Fix multiple instances

2024-10-18 Thread Greg KH
On Fri, Oct 18, 2024 at 05:25:22PM +0300, Laurent Pinchart wrote: > Hi Greg, > > On Fri, Oct 18, 2024 at 04:09:26PM +0200, Greg KH wrote: > > On Fri, Oct 18, 2024 at 03:36:48PM +0200, Geert Uytterhoeven wrote: > > > On Fri, Oct 18, 2024 at 3:10 PM Laurent Pinchart wrote: > > > > On Fri, Oct 18, 20

Re: [PATCH] drm/bridge: ti-sn65dsi86: Fix multiple instances

2024-10-18 Thread Greg KH
On Fri, Oct 18, 2024 at 03:36:48PM +0200, Geert Uytterhoeven wrote: > Hi Laurent, > > CC GregKH > > On Fri, Oct 18, 2024 at 3:10 PM Laurent Pinchart > wrote: > > On Fri, Oct 18, 2024 at 09:45:52AM +0200, Geert Uytterhoeven wrote: > > > Each bridge instance creates up to four auxiliary devices wi

Re: [PATCH] drm/bridge: ti-sn65dsi86: Fix multiple instances

2024-10-18 Thread Laurent Pinchart
Hi Greg, On Fri, Oct 18, 2024 at 04:09:26PM +0200, Greg KH wrote: > On Fri, Oct 18, 2024 at 03:36:48PM +0200, Geert Uytterhoeven wrote: > > On Fri, Oct 18, 2024 at 3:10 PM Laurent Pinchart wrote: > > > On Fri, Oct 18, 2024 at 09:45:52AM +0200, Geert Uytterhoeven wrote: > > > > Each bridge instance

Re: [PATCH] drm/bridge: ti-sn65dsi86: Fix multiple instances

2024-10-18 Thread Geert Uytterhoeven
Hi Laurent, CC GregKH On Fri, Oct 18, 2024 at 3:10 PM Laurent Pinchart wrote: > On Fri, Oct 18, 2024 at 09:45:52AM +0200, Geert Uytterhoeven wrote: > > Each bridge instance creates up to four auxiliary devices with different > > names. However, their IDs are always zero, causing duplicate filen

Re: [PATCH] drm/bridge: ti-sn65dsi86: Fix multiple instances

2024-10-18 Thread Laurent Pinchart
Hi Geert, Thank you for the patch. On Fri, Oct 18, 2024 at 09:45:52AM +0200, Geert Uytterhoeven wrote: > Each bridge instance creates up to four auxiliary devices with different > names. However, their IDs are always zero, causing duplicate filename > errors when a system has multiple bridges: >

[PATCH] drm/bridge: ti-sn65dsi86: Fix multiple instances

2024-10-18 Thread Geert Uytterhoeven
Each bridge instance creates up to four auxiliary devices with different names. However, their IDs are always zero, causing duplicate filename errors when a system has multiple bridges: sysfs: cannot create duplicate filename '/bus/auxiliary/devices/ti_sn65dsi86.gpio.0' Fix this by using a