Hi, Oliver Neukum <oneukum@xxxxxxxx> writes: >> Oliver Neukum <oneukum@xxxxxxxx> writes: >> >> > The API to user space. That is the point. We cannot break user space. >> >> > Once this sysfs API is upstream we are stuck with it. >> >> >> >> yeah, in fact I have been wondering if sysfs is the best interface to >> > >> > That is the discussion we must have. >> > >> >> userspace. I talked with Heikki a few days back about this; I was >> >> wondering if something like what the NFC folks did with netlink would be >> >> better here. >> > >> > I doubt that, because the main user is likely to be udev scripts. >> >> I'm entirely sure about this. I think it's not too far-fetched to think > > What exactly are you sure about about? heh, missed a NOT there :-) >> that, eventually, we will need an actual stack exposed for the CC pin. > > The raw CC pin? What about the timing requirement? well, not the _raw_ CC pin, but a situation where the microcontroller handling CC pin is "dumb", in the sense that it provides an interface for us to request/start arbitrary transactions. That will, in turn, shift the actual bits on the CC pin. Or something along these lines. An example would be the alternate mode thing. CC microcontroller doesn't have to know what are the available alternate modes, but it needs to be able to tell processor what request is coming from the other end. I guess what I'm trying to say is that CC microcontroller might not be the one controlling the multiplexer which switches USB pins to another function. IOW: Change to alternate mode X message CC microcontroller interrupts CPU read status to get X change multiplexer -- balbi
Attachment:
signature.asc
Description: PGP signature