Commit e4732b5
drm/mediatek: dsi: Register DSI host after acquiring clocks and PHY
Registering the dsi host with its ops before getting dsi->regs is
simply wrong: even though there's nothing (for now) asynchronously
calling those ops before the end of the probe function, installing
ops that are using iospace(s) and clocks before even initializing
those is too fragile.
Register the DSI host after getting clocks, iospace and PHY.
This wil also allow to simplify the error paths in a later commit.
Reviewed-by: Alexandre Mergnat <amergnat@baylibre.com>
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: CK Hu <ck.hu@mediatek.com>
Link: https://patchwork.kernel.org/project/dri-devel/patch/20240215085316.56835-7-angelogioacchino.delregno@collabora.com/
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>1 parent ff4e452 commit e4732b5
1 file changed
Lines changed: 14 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1114 | 1114 | | |
1115 | 1115 | | |
1116 | 1116 | | |
1117 | | - | |
1118 | | - | |
1119 | | - | |
1120 | | - | |
1121 | | - | |
1122 | | - | |
1123 | | - | |
1124 | | - | |
1125 | 1117 | | |
1126 | 1118 | | |
1127 | 1119 | | |
| |||
1130 | 1122 | | |
1131 | 1123 | | |
1132 | 1124 | | |
1133 | | - | |
| 1125 | + | |
1134 | 1126 | | |
1135 | 1127 | | |
1136 | 1128 | | |
| |||
1139 | 1131 | | |
1140 | 1132 | | |
1141 | 1133 | | |
1142 | | - | |
| 1134 | + | |
1143 | 1135 | | |
1144 | 1136 | | |
1145 | 1137 | | |
1146 | 1138 | | |
1147 | 1139 | | |
1148 | 1140 | | |
1149 | | - | |
| 1141 | + | |
1150 | 1142 | | |
1151 | 1143 | | |
1152 | 1144 | | |
1153 | 1145 | | |
1154 | 1146 | | |
1155 | 1147 | | |
1156 | 1148 | | |
1157 | | - | |
| 1149 | + | |
1158 | 1150 | | |
1159 | 1151 | | |
1160 | 1152 | | |
1161 | 1153 | | |
1162 | 1154 | | |
1163 | 1155 | | |
1164 | | - | |
| 1156 | + | |
1165 | 1157 | | |
1166 | 1158 | | |
1167 | 1159 | | |
1168 | 1160 | | |
1169 | 1161 | | |
1170 | | - | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
1171 | 1171 | | |
1172 | 1172 | | |
1173 | 1173 | | |
| |||
0 commit comments