mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-18 02:46:06 +00:00
9c3f72a342
Instead of allowing the driver to load with incomplete sysfs entries in case of sysfs creation failure, we should terminate the driver loading. This change ensures that the status of all gt associated sysfs entries creation is relayed to xe_gt_init, leading to a driver load abort if any sysfs creation failures occur. -v2 use err_force_wake label instead of new. (Lucas) Avoid unnecessary warn/error messages. (Lucas) Cc: Rodrigo Vivi <rodrigo.vivi@intel.com> Cc: Lucas De Marchi <lucas.demarchi@intel.com> Signed-off-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com> Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240412181211.1155732-6-himal.prasad.ghimiray@intel.com Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
20 lines
354 B
C
20 lines
354 B
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2022 Intel Corporation
|
|
*/
|
|
|
|
#ifndef _XE_GT_SYSFS_H_
|
|
#define _XE_GT_SYSFS_H_
|
|
|
|
#include "xe_gt_sysfs_types.h"
|
|
|
|
int xe_gt_sysfs_init(struct xe_gt *gt);
|
|
|
|
static inline struct xe_gt *
|
|
kobj_to_gt(struct kobject *kobj)
|
|
{
|
|
return container_of(kobj, struct kobj_gt, base)->gt;
|
|
}
|
|
|
|
#endif /* _XE_GT_SYSFS_H_ */
|