RE: [PATCH] drm/bridge/sii902x: Fix EDID readback

2018-11-06 Thread Fabrizio Castro
Hello Peter, Thank you for your feedback! The changes you have suggested seem to be working just fine, I have tested them this morning. Thanks, Fab > Subject: Re: [PATCH] drm/bridge/sii902x: Fix EDID readback > > On 2018-11-02 13:13, Fabrizio Castro wrote: > > While adding SiI9

RE: [PATCH] drm/bridge/sii902x: Fix EDID readback

2018-11-06 Thread Fabrizio Castro
Hello Peter, Thank you for your feedback! > Subject: Re: [PATCH] drm/bridge/sii902x: Fix EDID readback > snip > > If the things you write about the bits are true (haven't looked closely), I > wouldn't > add any regmap coordination. But if I was the maintainer, I'

RE: [PATCH] drm/bridge/sii902x: Fix EDID readback

2018-11-03 Thread Fabrizio Castro
> > Here (and also in sii902x_i2c_bypass_deselect) you do a rmw access to the > > SII902X_SYS_CTRL_DATA register without coordinating with regmap. Regmap is > > also doing rmw accesses to that register in other parts of the driver. I > > think you need to either add comment as to why that is safe (

Re: [PATCH] drm/bridge/sii902x: Fix EDID readback

2018-11-03 Thread Peter Rosin
On 2018-11-02 13:13, Fabrizio Castro wrote: > While adding SiI9022A support to the iwg23s board, it came > up that when the HDMI transmitter is in pass through mode the > device is not compliant with the I2C specification anymore, > as it requires a far bigger tbuf, due to a delay the HDMI > transm

Re: [PATCH] drm/bridge/sii902x: Fix EDID readback

2018-11-03 Thread Peter Rosin
On 2018-11-02 17:16, Fabrizio Castro wrote: >>> Here (and also in sii902x_i2c_bypass_deselect) you do a rmw access to the >>> SII902X_SYS_CTRL_DATA register without coordinating with regmap. Regmap is >>> also doing rmw accesses to that register in other parts of the driver. I >>> think you need to

Re: [PATCH] drm/bridge/sii902x: Fix EDID readback

2018-11-02 Thread Peter Rosin
On 2018-11-02 13:13, Fabrizio Castro wrote: > While adding SiI9022A support to the iwg23s board, it came > up that when the HDMI transmitter is in pass through mode the > device is not compliant with the I2C specification anymore, > as it requires a far bigger tbuf, due to a delay the HDMI > transm

RE: [PATCH] drm/bridge/sii902x: Fix EDID readback

2018-11-02 Thread Fabrizio Castro
Hello Peter, Thank you for your feedback! > > +static int sii902x_i2c_bypass_select(struct i2c_mux_core *mux, u32 chan_id) > > +{ > > +struct sii902x *sii902x = i2c_mux_priv(mux); > > +struct device *dev = &sii902x->i2c->dev; > > +unsigned long timeout; > > +u8 status; > > +int ret; > > + > > +re