Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7713c0f1 authored by Leo Li's avatar Leo Li Committed by Harry Wentland
Browse files

drm/nouveau: Use connector kdev as aux device parent



Set the connector's kernel device as the parent for the aux kernel
device. This allows udev rules to access connector attributes when
creating symlinks to aux devices.

Cc: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: default avatarLeo Li <sunpeng.li@amd.com>
Reviewed-by: default avatarLyude Paul <lyude@redhat.com>
Signed-off-by: default avatarHarry Wentland <harry.wentland@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190723232808.28128-4-sunpeng.li@amd.com
parent 562836a2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1349,7 +1349,7 @@ nouveau_connector_create(struct drm_device *dev,
		break;
	case DRM_MODE_CONNECTOR_DisplayPort:
	case DRM_MODE_CONNECTOR_eDP:
		nv_connector->aux.dev = dev->dev;
		nv_connector->aux.dev = connector->kdev;
		nv_connector->aux.transfer = nouveau_connector_aux_xfer;
		snprintf(aux_name, sizeof(aux_name), "sor-%04x-%04x",
			 dcbe->hasht, dcbe->hashm);