[PATCH 3/4] drm/dp/mst: Clear port->pdt when tearing down the i2c adapter

2016-10-26 Thread Ville Syrjälä
On Wed, Oct 26, 2016 at 02:53:01PM +0200, Daniel Vetter wrote: > On Wed, Oct 26, 2016 at 12:05:54PM +0300, ville.syrjala at linux.intel.com > wrote: > > From: Ville Syrjälä > > > > The i2c adapter is only relevant for some peer device types, so > > let's clear the pdt if it's still the same as

[PATCH 3/4] drm/dp/mst: Clear port->pdt when tearing down the i2c adapter

2016-10-26 Thread Daniel Vetter
On Wed, Oct 26, 2016 at 12:05:54PM +0300, ville.syrjala at linux.intel.com wrote: > From: Ville Syrjälä > > The i2c adapter is only relevant for some peer device types, so > let's clear the pdt if it's still the same as the old_pdt when we > tear down the i2c adapter. > > I don't really like

[PATCH 3/4] drm/dp/mst: Clear port->pdt when tearing down the i2c adapter

2016-10-26 Thread ville.syrj...@linux.intel.com
From: Ville Syrjälä The i2c adapter is only relevant for some peer device types, so let's clear the pdt if it's still the same as the old_pdt when we tear down the i2c adapter. I don't really like this design pattern of updating port->whatever before doing the accompanying changes and passing