All of lore.kernel.org
 help / color / mirror / Atom feed
* how to perform i2c transaction with disabled irq?
@ 2020-04-30 11:11 Tomek The Messenger
  2020-04-30 11:20 ` Greg KH
  0 siblings, 1 reply; 3+ messages in thread
From: Tomek The Messenger @ 2020-04-30 11:11 UTC (permalink / raw)
  To: kernelnewbies


[-- Attachment #1.1: Type: text/plain, Size: 647 bytes --]

Hi
If I don't have disabled irqs I can use API i2c_smbus_write_byte in order
to perform i2c transaction.
But how to make i2c transaction if I have disabled irq? Is any built-in
function which lets such operation, where there is some polling implemented?
The background is that I do i2c transaction in restart handler (some i2c
transaction to hot swap controller) in order to reset board.  And linux
before entering restart handler list disable interrupts. There is a
function to enable back interrupts but in company in which I am working
engineers reviewed it and said "it is not allowed, restart must be
performed when interrupts are disabled".

[-- Attachment #1.2: Type: text/html, Size: 729 bytes --]

[-- Attachment #2: Type: text/plain, Size: 170 bytes --]

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-04-30 14:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-30 11:11 how to perform i2c transaction with disabled irq? Tomek The Messenger
2020-04-30 11:20 ` Greg KH
2020-04-30 14:13   ` Tomek The Messenger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.