Skip to contentSkip to conversation

V2 API

DISCUSSION David Goodenough 2 participants 5 messages Sep 28, 2011 – Sep 30, 2011 4 messages not in the archive I2C subsystem host drivers

lore
Share & tools
lore
#0 lore raw

Doing a Google search looking to see if there was userland support for SMBALERT messages I saw references to the V2 API which last year was "being developed". Did this happen, and is it defined anywhere?

David

#2 lore raw
In reply to a message not in the archive
Quoted 9 lines · David Goodenough

Doing a Google search looking to see if there was userland support for SMBALERT messages I saw references to the V2 API which last year was "being developed". Did this happen, and is it defined anywhere?

David
--
To unsubscribe from this list: send the line "unsubscribe linux-i2c" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

I take it from the fact that no-one has replied, that the V2 API is not being worked on or has stalled. Is there any way using the existing API for userland code to be notified of an incomming SMBALERT?

David

#4 lore raw
In reply to a message not in the archive
Quoted 7 lines · David Goodenough
Quoted 3 lines · David Goodenough

Doing a Google search looking to see if there was userland support for SMBALERT messages I saw references to the V2 API which last year was "being developed". Did this happen, and is it defined anywhere?

I take it from the fact that no-one has replied, that the V2 API is not being worked on or has stalled.

I take it from the fact that no-one has replied, that "V2 API" is an awfully vague subject line, so odds are that nobody read your post in the first place. Try to come up with a better subject line next time.

Quoted 3 lines

Is there any way using the
existing API for userland code to be notified of an incomming SMBALERT?

Not that I know of, and I wasn't even aware that efforts had ever been ongoing to achieve this.

Signature · 1 line
Jean Delvare
#6 lore raw
In reply to a message not in the archive
Quoted 6 lines · Jean Delvare
Quoted 5 lines · David Goodenough
Quoted 3 lines · David Goodenough

Doing a Google search looking to see if there was userland support for SMBALERT messages I saw references to the V2 API which last year was "being developed". Did this happen, and is it defined anywhere?

Quoted 6 lines
Quoted 2 lines

I take it from the fact that no-one has replied, that the V2 API is not being worked on or has stalled.

I take it from the fact that no-one has replied, that "V2 API" is an awfully vague subject line, so odds are that nobody read your post in the first place. Try to come up with a better subject line next time.

It was the only name I found for any effort to address this problem. And that was from a message which I think was on this mailing list about a year ago.

Quoted 7 lines
Quoted 4 lines

Is there any way using the
existing API for userland code to be notified of an incomming SMBALERT?

Not that I know of, and I wasn't even aware that efforts had ever been ongoing to achieve this.

So I take it that the only way to do this would be to write a kernel driver?

David

#8 lore raw
In reply to a message not in the archive
Quoted 7 lines · David Goodenough
Quoted 6 lines · Jean Delvare
Quoted 5 lines · David Goodenough
Quoted 3 lines · David Goodenough

Doing a Google search looking to see if there was userland support for SMBALERT messages I saw references to the V2 API which last year was "being developed". Did this happen, and is it defined anywhere?

Quoted 7 lines
Quoted 6 lines
Quoted 2 lines

I take it from the fact that no-one has replied, that the V2 API is not being worked on or has stalled.

I take it from the fact that no-one has replied, that "V2 API" is an awfully vague subject line, so odds are that nobody read your post in the first place. Try to come up with a better subject line next time.

It was the only name I found for any effort to address this problem.

And...? You couldn't come up with a subject line at least mentioning "SMBus" and/or "alert"?

Quoted 11 lines

And that was from a message which I think was on this mailing list about a year ago.

Quoted 7 lines
Quoted 4 lines

Is there any way using the
existing API for userland code to be notified of an incomming SMBALERT?

Not that I know of, and I wasn't even aware that efforts had ever been ongoing to achieve this.

So I take it that the only way to do this would be to write a kernel driver?

At the moment, yes. It would technically be possible to do it in user-space, I presume, by extending the i2c-dev driver to register a proper driver with alert callback. But this would require a significant redesign of the i2c-dev driver, which I am not up to for the time being. An alternative would be a simple sysfs attribute in the i2c adapter's directory in the device tree, which user-space could poll until an event triggers. I don't know what the plan was.

Signature · 1 line
Jean Delvare