Skip to contentSkip to conversation

drm/dp-helper: Deprecate old i2c-over-dp_aux heleprs

PATCH In review Daniel Vetter 5 participants 6 messages May 7, 2014 – May 13, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/dp-helper: Deprecate old i2c-over-dp_aux heleprs

Only gma500 is still using this, once that's converted we can kill all this code. If that conversion doesn't happen soonish I think we should just move this helper code into the gma500 driver itself to avoid abuse from new drivers.

Cc Patrik Jakobsson <[email protected]>
Cc Alan Cox <[email protected]>
Cc Thierry Reding <[email protected]>
---
 drivers/gpu/drm/drm_dp_helper.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/gpu/drm/drm_dp_helper.c +4 -0
index a13f1f51f68e..494219ccdf96 100644
@@ -213,6 +213,10 @@ i2c_dp_aux_prepare_bus(struct i2c_adapter *adapter)
  *
  * RETURNS:
  * 0 on success, -ERRNO on failure.
+ *
+ * IMPORTANT:
+ * This interface is deprecated, please switch to the new dp aux helpers and
+ * drm_dp_aux_register_i2c_bus().
  */
 int
 i2c_dp_aux_add_bus(struct i2c_adapter *adapter)
Signature · 1 line
1.9.2
#1 lore raw
Quoted 4 lines · Daniel Vetter

Only gma500 is still using this, once that's converted we can kill all this code. If that conversion doesn't happen soonish I think we should just move this helper code into the gma500 driver itself to avoid abuse from new drivers.

I'll try to find some time to convert gma500 this weekend. If that fails, I'm ok with moving it into gma500.

Thanks for reminding me
Patrik

Quoted 26 lines
Cc Patrik Jakobsson <[email protected]>
Cc Alan Cox <[email protected]>
Cc Thierry Reding <[email protected]>
---
 drivers/gpu/drm/drm_dp_helper.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/gpu/drm/drm_dp_helper.c +4 -1
index a13f1f51f68e..494219ccdf96 100644
@@ -213,6 +213,10 @@ i2c_dp_aux_prepare_bus(struct i2c_adapter *adapter)
  *
  * RETURNS:
  * 0 on success, -ERRNO on failure.
+ *
+ * IMPORTANT:
+ * This interface is deprecated, please switch to the new dp aux helpers and
+ * drm_dp_aux_register_i2c_bus().
  */
 int
 i2c_dp_aux_add_bus(struct i2c_adapter *adapter)
--

1.9.2

#2 lore raw
Quoted 8 lines · Patrik Jakobsson
Quoted 4 lines · Daniel Vetter

Only gma500 is still using this, once that's converted we can kill all this code. If that conversion doesn't happen soonish I think we should just move this helper code into the gma500 driver itself to avoid abuse from new drivers.

I'll try to find some time to convert gma500 this weekend. If that fails, I'm ok with moving it into gma500.

I don't think there's a need to rush things. In my opinion it's fine if this stays around for another couple of releases, as long as it's removed eventually.

Thierry

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw
Quoted 7 lines · Thierry Reding
Quoted 6 lines · Patrik Jakobsson
Quoted 4 lines · Daniel Vetter

Only gma500 is still using this, once that's converted we can kill all this code. If that conversion doesn't happen soonish I think we should just move this helper code into the gma500 driver itself to avoid abuse from new drivers.

Quoted 6 lines
Quoted 2 lines

I'll try to find some time to convert gma500 this weekend. If that fails, I'm ok with moving it into gma500.

I don't think there's a need to rush things. In my opinion it's fine if this stays around for another couple of releases, as long as it's removed eventually.

I agree with your opinion. Within few releases, it can be changed and removed. Actually, marking it as deprecated looks more urgent. Thanks.

Best regards,
Jingoo Han

Quoted 2 lines

Thierry

Acked-by on v1 1/1
#4 lore raw
In reply to Daniel Vetter
Quoted 5 lines · Daniel Vetter

Only gma500 is still using this, once that's converted we can kill all this code. If that conversion doesn't happen soonish I think we should just move this helper code into the gma500 driver itself to avoid abuse from new drivers.

Quoted 7 lines
Cc Patrik Jakobsson <[email protected]>
Cc Alan Cox <[email protected]>
Cc Thierry Reding <[email protected]>
---
 drivers/gpu/drm/drm_dp_helper.c | 4 ++++
 1 file changed, 4 insertions(+)

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#5 lore raw
In reply to Daniel Vetter

Typo in the subject bugs my OCD, otherwise agreed.

Jani.

Quoted 35 lines · Daniel Vetter

Only gma500 is still using this, once that's converted we can kill all this code. If that conversion doesn't happen soonish I think we should just move this helper code into the gma500 driver itself to avoid abuse from new drivers.

Cc Patrik Jakobsson <[email protected]>
Cc Alan Cox <[email protected]>
Cc Thierry Reding <[email protected]>
---
 drivers/gpu/drm/drm_dp_helper.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/gpu/drm/drm_dp_helper.c +4 -0
index a13f1f51f68e..494219ccdf96 100644
@@ -213,6 +213,10 @@ i2c_dp_aux_prepare_bus(struct i2c_adapter *adapter)
  *
  * RETURNS:
  * 0 on success, -ERRNO on failure.
+ *
+ * IMPORTANT:
+ * This interface is deprecated, please switch to the new dp aux helpers and
+ * drm_dp_aux_register_i2c_bus().
  */
 int
 i2c_dp_aux_add_bus(struct i2c_adapter *adapter)
Signature · 6 lines
1.9.2

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Signature · 1 line
Jani Nikula, Intel Open Source Technology Center