diff options
Diffstat (limited to 'drivers/misc/mei/hw-txe.c')
-rw-r--r-- | drivers/misc/mei/hw-txe.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/misc/mei/hw-txe.c b/drivers/misc/mei/hw-txe.c index 1cd223c96864..bae680c648ff 100644 --- a/drivers/misc/mei/hw-txe.c +++ b/drivers/misc/mei/hw-txe.c | |||
@@ -302,6 +302,18 @@ int mei_txe_aliveness_set_sync(struct mei_device *dev, u32 req) | |||
302 | } | 302 | } |
303 | 303 | ||
304 | /** | 304 | /** |
305 | * mei_txe_pg_in_transition - is device now in pg transition | ||
306 | * | ||
307 | * @dev: the device structure | ||
308 | * | ||
309 | * Return: true if in pg transition, false otherwise | ||
310 | */ | ||
311 | static bool mei_txe_pg_in_transition(struct mei_device *dev) | ||
312 | { | ||
313 | return dev->pg_event == MEI_PG_EVENT_WAIT; | ||
314 | } | ||
315 | |||
316 | /** | ||
305 | * mei_txe_pg_is_enabled - detect if PG is supported by HW | 317 | * mei_txe_pg_is_enabled - detect if PG is supported by HW |
306 | * | 318 | * |
307 | * @dev: the device structure | 319 | * @dev: the device structure |
@@ -1138,6 +1150,7 @@ static const struct mei_hw_ops mei_txe_hw_ops = { | |||
1138 | .hw_config = mei_txe_hw_config, | 1150 | .hw_config = mei_txe_hw_config, |
1139 | .hw_start = mei_txe_hw_start, | 1151 | .hw_start = mei_txe_hw_start, |
1140 | 1152 | ||
1153 | .pg_in_transition = mei_txe_pg_in_transition, | ||
1141 | .pg_is_enabled = mei_txe_pg_is_enabled, | 1154 | .pg_is_enabled = mei_txe_pg_is_enabled, |
1142 | 1155 | ||
1143 | .intr_clear = mei_txe_intr_clear, | 1156 | .intr_clear = mei_txe_intr_clear, |