Commit 3348acc
maple: Fix race between driver attach and vblank irq
The device at unit 0 is probed using a shared frame dedicated to device
detection; devices at unit > 0 are probed using the frame of the unit 0.
This means that as soon as a unit 0 device is registered, its frame can
be used to auto-detect itself (if previously unplugged) or its children.
Therefore, prior to registering a unit 0 device into the device table,
we must ensure that all fields have been properly initialized, or we
will race with the vblank interrupt handler.
Signed-off-by: Paul Cercueil <[email protected]>1 parent 0e0205c commit 3348acc
1 file changed
+9
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
76 | 77 | | |
77 | 78 | | |
78 | 79 | | |
| |||
89 | 90 | | |
90 | 91 | | |
91 | 92 | | |
92 | | - | |
93 | | - | |
94 | 93 | | |
95 | 94 | | |
96 | 95 | | |
97 | 96 | | |
| 97 | + | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
106 | 108 | | |
| 109 | + | |
107 | 110 | | |
108 | 111 | | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
109 | 115 | | |
110 | 116 | | |
111 | 117 | | |
| |||
0 commit comments