On Sat, Apr 06, 2013 at 10:11:32PM +0200, Wolfram Sang wrote: > Hi, > > > Very interesting discussion, especially the argument that "we already shipped" > > would not be a convincing argument. > > > > I had senior kernel maintainers tell me and the company I work for that we should > > submit _all_ our platform specific kernel code and drivers for inclusion into > > the upstream kernel. > > Yes, great. Really! > Yes, though, thinking about it, it was "submit" and didn't say anything about potential for acceptance. > > This exchange suggests that "it is a shipping product" does not count for such > > submissions, and that "Benefit for the kernel" would be the deciding factor > > instead. Which of course is a very vague statement - if code supporting > > Chromebookis is of no benefit for the kernel, support for my company's products > > for sure is much less so. > > First, let me state that I did not intend to say that the arbitrator > muxer here has NO benefit for the kernel. I was aware there might be > arguments for that and I wanted some more discussion to make that > clearer to me. Simon's mail was very helpful in that regard and I will > comment on that somewhen later. > > Still, I do have problems with "we already shipped it". If the driver is > bad or the underlying concept is fragile, I want the freedom to reject a > patch, product shipped or not. I will be supportive to find a proper > solution, promised. If all fails, there is still staging/ or the > possibility of out-of-tree patches. > I think there is a difference between a bad driver or underlying hardware. To me, "shipped" applies to hardware or firmware which can not be upgraded, not to the software running on it. > > Which kind of leaves me in a bind. On one side I promote that we should submit > > all our kernel code, on the other side there is a very compelling case to be > > made that it won't be accepted anyway. That doesn't make my life easier - > > Concentrate on argumenting why the driver is useful and it will be fine. > "we already shipped this" feels a bit like blackmailing to me. And since > most drivers do have well thought reasons for their existance, I'd > primarily like to hear about those. > > > essentially since it supports those who say that we should not submit anything > > in the first place. And believe me, there are many of those. > > > > Just to give some examples: > > - I2C multiplexers. We have a bunch of those. Looking at this exchange, > > it doesn't look good to get that code included. > > Multiplexers should be easy going, it is the arbitration which is discussed here. > I am open to consider some generic arbitration schemes. What I am reluctant to > do is to allow every board to have its own arbitration scheme. This > would be board support hosted in the I2C directory. Meh. > "board support hosted in the I2C directory". But that is exactly what I am talking about, isn't it ? I have board specific multiplexers and a board specific I2C controller, and that is just talking about the I2C code. > > It would be nice have to get some well defined guidelines for "acceptable" > > contributions. "Benefit for the kernel" sure isn't one. > > I don't think it is possible to write down concrete guidelines for this. > "According to rule 4a) of the guidelines you have to accept my patch"? > That would be a mess, I think. > Looking at it from a maintainer perspective, I agree. Where it gets murky is really the hardware part. The (in my opinion) philosophical arguments around not permitting device-tree based instantiation of uio devices is one example. Another practical example I had to deal with in my previous company is VGA memory space. Some hw geniuses decided to re-use the VGA memory space in an embedded x86 device for an EEPROM. Guess what - the x86 kernel writes into that space no matter what. A patch to address that problem was rejected because "you should not re-use VGA memory space". As if I had a choice. A better example might be Kontron board support. They implement gpio, I2C mux, and a watchdog in a PLD. They too have an access arbitration scheme where one has to acquire a hardware mutex before accessing the pld, if I understand correctly because some microcontroller might need to access it as well. Leaving the actual code aside, would you reject that too if you don't like the arbitration scheme, or because you don't want to have board support in the i2c directory ? Thanks, Guenter -- To unsubscribe from this list: send the line "unsubscribe linux-doc" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html