Skip to content

Commit 64420d2

Browse files
Dr. David Alan GilbertAndi Shyti
authored andcommitted
drm/i915: Remove unused intel_huc_suspend
intel_huc_suspend() was added in 2022 by commit 27536e0 ("drm/i915/huc: track delayed HuC load with a fence") but hasn't been used. Remove it. Signed-off-by: Dr. David Alan Gilbert <[email protected]> Signed-off-by: Tvrtko Ursulin <[email protected]> Reviewed-by: Andi Shyti <[email protected]> Signed-off-by: Andi Shyti <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent bc6b027 commit 64420d2

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

drivers/gpu/drm/i915/gt/uc/intel_huc.c

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -427,19 +427,6 @@ void intel_huc_fini(struct intel_huc *huc)
427427
intel_uc_fw_fini(&huc->fw);
428428
}
429429

430-
void intel_huc_suspend(struct intel_huc *huc)
431-
{
432-
if (!intel_uc_fw_is_loadable(&huc->fw))
433-
return;
434-
435-
/*
436-
* in the unlikely case that we're suspending before the GSC has
437-
* completed its loading sequence, just stop waiting. We'll restart
438-
* on resume.
439-
*/
440-
delayed_huc_load_complete(huc);
441-
}
442-
443430
static const char *auth_mode_string(struct intel_huc *huc,
444431
enum intel_huc_authentication_type type)
445432
{

drivers/gpu/drm/i915/gt/uc/intel_huc.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ int intel_huc_sanitize(struct intel_huc *huc);
5757
void intel_huc_init_early(struct intel_huc *huc);
5858
int intel_huc_init(struct intel_huc *huc);
5959
void intel_huc_fini(struct intel_huc *huc);
60-
void intel_huc_suspend(struct intel_huc *huc);
6160
int intel_huc_auth(struct intel_huc *huc, enum intel_huc_authentication_type type);
6261
int intel_huc_wait_for_auth_complete(struct intel_huc *huc,
6362
enum intel_huc_authentication_type type);

0 commit comments

Comments
 (0)