diff options
| author | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2011-06-21 09:24:26 -0400 |
|---|---|---|
| committer | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2011-07-09 11:12:08 -0400 |
| commit | b14c369d87d7fbf120ad21919d34a8f1290290f1 (patch) | |
| tree | 37947e2121f1c205ee4295c8c8c559d9f7693f87 | |
| parent | 9ef28ccd59a23d219c4660f55a11ac06ca91f632 (diff) | |
firewire: ohci: add a comment on PHY reg access serialization
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
| -rw-r--r-- | drivers/firewire/ohci.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/firewire/ohci.c b/drivers/firewire/ohci.c index 3b6f3429fb4a..a818dc834690 100644 --- a/drivers/firewire/ohci.c +++ b/drivers/firewire/ohci.c | |||
| @@ -513,6 +513,12 @@ static inline void flush_writes(const struct fw_ohci *ohci) | |||
| 513 | reg_read(ohci, OHCI1394_Version); | 513 | reg_read(ohci, OHCI1394_Version); |
| 514 | } | 514 | } |
| 515 | 515 | ||
| 516 | /* | ||
| 517 | * Beware! read_phy_reg(), write_phy_reg(), update_phy_reg(), and | ||
| 518 | * read_paged_phy_reg() require the caller to hold ohci->phy_reg_mutex. | ||
| 519 | * In other words, only use ohci_read_phy_reg() and ohci_update_phy_reg() | ||
| 520 | * directly. Exceptions are intrinsically serialized contexts like pci_probe. | ||
| 521 | */ | ||
| 516 | static int read_phy_reg(struct fw_ohci *ohci, int addr) | 522 | static int read_phy_reg(struct fw_ohci *ohci, int addr) |
| 517 | { | 523 | { |
| 518 | u32 val; | 524 | u32 val; |
