Skip to contentSkip to conversation

i2c: schedule legacy gpio driver removal

patch/rfc 2.6.26-rc5 David Brownell 2 participants 3 messages Jun 11, 2008 – Jun 12, 2008 2 messages not in the archive

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

Just sending this as an RFC ... clearly it shouldn't merge until the GPIO_SYSFS code merges, which I'm assuming is 2.6.27. And presumably Jean will want to be the "who removes this"?

I think the only other blocking issue would be a way to configure such new-style drivers from sysfs, primarily for one-off hardware hacking usage (in at least this case). Teaching the two new-style drivers to use dynamic GPIO number allocation when there's no platform_data is trivial, and not otherwise desirable.

- Dave

=========== CUT HERE

Documentation/feature-removal-schedule.txt +18 -0
@@ -312,3 +312,21 @@ When:	2.6.26
 Why:	Implementation became generic; users should now include
 	linux/semaphore.h instead.
 Who:	Matthew Wilcox <willy-VuQAYsv1563Yd54FQh9/[email protected]>
+
+---------------------------
+
+What:	drivers/i2c/chips/{pca9539,pcf8574,pcf8575}.c
+When:	January 2010
+Why:	replaced by gpiolib and GPIO_SYSFS with
+	drivers/gpio/{pca953x,pcf857x}.c
+
+	The gpiolib I2C adapter drivers support more chips and moved
+	away from legacy driver binding.  From the embedded systems
+	perspective, they provide a critical capability missing in
+	those now-obsoleted drivers:  GPIOs are now accessible to
+	in-kernel code for common uses like LED control, switching
+	power domains, and chip configuration.
+
+	With GPIO_SYSFS the userspace interface is a bit different,
+	but is more generic and is available for use with all GPIO
+	controllers.

_______________________________________________
i2c mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/i2c

#2 lore raw
In reply to a message not in the archive

Hi David,

Quoted 2 lines · David Brownell

Just sending this as an RFC ... clearly it shouldn't merge until the GPIO_SYSFS code merges, which I'm assuming is 2.6.27.

Certainly.

Quoted 1 line

And presumably Jean will want to be the "who removes this"?

Not necessarily.

Quoted 3 lines

I think the only other blocking issue would be a way to configure such new-style drivers from sysfs, primarily for one-off hardware hacking usage (in at least this case).

This is the problem. Until there is a way to instantiate new-style drivers from user-space, we just can't remove the deprecated drivers. Even tagging it as deprecated is dishonest to some extent. So I see no point in adding these drivers to the feature removal list for now. We can do that later, when we really offer an alternative with the same features.

You shouldn't fear that we forget to remove these drivers. They are the dust in my eye, I can't forget them.

Quoted 3 lines

Teaching the two new-style
drivers to use dynamic GPIO number allocation when there's no platform_data is trivial,

Good to know...

Quoted 1 line

and not otherwise desirable.

I'm confused now.

Signature · 6 lines
Jean Delvare

_______________________________________________
i2c mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/i2c
#4 lore raw
In reply to a message not in the archive
Quoted 7 lines · Jean Delvare
Quoted 3 lines

I think the only other blocking issue would be a way to configure such new-style drivers from sysfs, primarily for one-off hardware hacking usage (in at least this case).

This is the problem. Until there is a way to instantiate new-style drivers from user-space, we just can't remove the deprecated drivers. Even tagging it as deprecated is dishonest to some extent.

Not really; anyone who *can* use the newer stuff should do so. If they can't, the older stuff is still there.

Quoted 7 lines

So I see no
point in adding these drivers to the feature removal list for now. We can do that later, when we really offer an alternative with the same features.

You shouldn't fear that we forget to remove these drivers. They are the dust in my eye, I can't forget them.

OK. :)

Quoted 9 lines
Quoted 3 lines

Teaching the two new-style
drivers to use dynamic GPIO number allocation when there's no platform_data is trivial,

Good to know...

Quoted 1 line

and not otherwise desirable.

I'm confused now.

The GPIOs can't really be used in-kernel without platform data.

_______________________________________________
i2c mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/i2c