USB charging, part 2: implementation
USB charging, part 2: implementation
Posted Aug 3, 2016 10:51 UTC (Wed) by nix (subscriber, #2304)In reply to: USB charging, part 2: implementation by ras
Parent article: USB charging, part 2: implementation
I do wonder how much of this is because the 'new' API is almost entirely undocumented. How can you expect anyone to use your API right if you don't document it or its proper use at all? "grep for driver uses" only works if all the drivers are exploiting every corner-case of the API, or at the very least if none are using it wrong. This requires every future driver implementor to produce perfect bug-free code: one mistake and people will copy the buggy driver and soon you have this mess. But of course 100% bug-free code is a reasonable minimum requirement, right? It's much easier than spending five minutes writing a few comments describing the interface in more detail, and means that Neil gets to spend countless hours trying to read your mind across time, which is no doubt much more fun for him than reading docs would be!
(Really, I *cannot* understand what goes through kernel developers' heads when they decide to design an API for general use, like this one, and then not document it at all. Surely it's not "I can't be bothered"? Maybe they're all non-native-English speakers and the language barrier is just too high?)
The LWN site is currently under high scraper load, so comment display has been suppressed for anonymous users. If you are a human, you may read the comments by clicking the button below:
Note: you can avoid this step in the future by logging into your LWN account.
