Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3666944ybb; Mon, 6 Apr 2020 13:09:19 -0700 (PDT) X-Google-Smtp-Source: APiQypJPlumo+rFfxY3ndmbvprbTm7suZ0dsWmYriSCL7QDWlvo6nInO81/GBUIuCT9dZ8W8sT5Q X-Received: by 2002:aca:f491:: with SMTP id s139mr841443oih.128.1586203759672; Mon, 06 Apr 2020 13:09:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586203759; cv=none; d=google.com; s=arc-20160816; b=rsHVCKBp83hTforJ8/iuFQ0jxoya3OPK+uWo25kR3Xk197nzJbmUvg4Ttwh5QCVN5M sbcU49lwABVCVoEMJ5+Vy44dWACfw7NM86twgwhecY/CDGK+M/YJmgLbQfeTo8IZJvCM EbZ7oo27+d6QBi1kLi0oHGq6zgPeoW56Y3xZwmjOUWJEwLCcMXnzLgsx9zpdtrja7FN1 3RmjgXeMhXq2T9ZBI5mOp/5bTjGanxiNTaeFtrQJLEgLQKTWbTB/3BErXD1MwEpaW4Lx CRi/h20jTptmHFZ0fqrV3S7O7DV0FJgRYF8zDBID7fgmWNwtYYAqEJ3t5X5BDITXrJy8 DdBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=rXIYebum9QchqOrGhXWLQLLK7a5E49kIN0en0Oaf2sg=; b=tUrYhzBhRPQ0eF1EaYhL5glQvpRelWPO0hdvrVOsDehQQHryGWwaWZQWxwurjKOgbV jrG53jcKOd0DLQ2CxN03gYxpKsdhHOwc9KFYNTw9lsnyMb2wUSzdoRFBD9Hw7O0aLrg0 NdpFGX1bAhWXvBIrCj3uQtFSVHIkrjLhkx97QtT5RBTwN2Tm/EeZS/AG2lIwhc9diE0V umvJ+jbjcchPFgYw0bFKb/DAi4ogD3U/sMkAzHKYepVOhIcrfJD64kjkqS6LIllqDAiS qmkvb4BQikW3W+1AwED89P5nORkkz0QyhL7Sqjk40jgkessiWZEkyQp7q+KQT4QwkKPO Bnpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=XkdZPW+c; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w1si301610otl.238.2020.04.06.13.09.06; Mon, 06 Apr 2020 13:09:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=XkdZPW+c; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726269AbgDFUHD (ORCPT + 99 others); Mon, 6 Apr 2020 16:07:03 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:23264 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725895AbgDFUHD (ORCPT ); Mon, 6 Apr 2020 16:07:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1586203621; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=rXIYebum9QchqOrGhXWLQLLK7a5E49kIN0en0Oaf2sg=; b=XkdZPW+cOYVR/p/jcsaObVQnUWcCpht90Uq+FhrlHYaQVWn+K/v4brznu4rpEJy6SB/Byt 1aZQMY5uQGn+qhfsPucsKiF/nzouvSP077xD5Zmkbi/C7o11Jv8PH7V6FZD1/oNz0CVTIT GI+zmvluXWRIn57RdAwkbhMrZTMCdAs= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-35-KCzBsCLTMzuH58e91jJXyQ-1; Mon, 06 Apr 2020 16:06:59 -0400 X-MC-Unique: KCzBsCLTMzuH58e91jJXyQ-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 80ED88018A6; Mon, 6 Apr 2020 20:06:57 +0000 (UTC) Received: from Ruby.redhat.com (ovpn-117-12.rdu2.redhat.com [10.10.117.12]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1572B6EF97; Mon, 6 Apr 2020 20:06:54 +0000 (UTC) From: Lyude Paul To: intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Cc: Sean Paul , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , David Airlie , Daniel Vetter , Chris Wilson , =?UTF-8?q?Ville=20Syrj=C3=A4l=C3=A4?= , Imre Deak , Maarten Lankhorst , linux-kernel@vger.kernel.org Subject: [PATCH v2 1/2] drm/i915/dp_mst: Cast intel_connector->port as drm_dp_mst_port Date: Mon, 6 Apr 2020 16:06:41 -0400 Message-Id: <20200406200646.1263435-1-lyude@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The only reason for having this cast as void * before was because we originally needed to use drm_dp_mst_get_port_validated() and friends in order to (attempt to) safely access MST ports. However, we've since improved how reference counting works with ports and mstbs such that we can now rely on drm_dp_mst_port structs remaining in memory for as long as the driver needs. This means we don't really need to cast this as void* anymore, and can just access the struct directly. We'll also need this for the next commit, so that we can remove drm_dp_mst_port_has_audio(). Signed-off-by: Lyude Paul Reviewed-by: Sean Paul --- drivers/gpu/drm/i915/display/intel_display_types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/display/intel_display_types.h b/drivers= /gpu/drm/i915/display/intel_display_types.h index 5a0adf14ebef..0ddc98afe252 100644 --- a/drivers/gpu/drm/i915/display/intel_display_types.h +++ b/drivers/gpu/drm/i915/display/intel_display_types.h @@ -438,7 +438,7 @@ struct intel_connector { state of connector->polled in case hotplug storm detection changes i= t */ u8 polled; =20 - void *port; /* store this opaque as its illegal to dereference it */ + struct drm_dp_mst_port *port; =20 struct intel_dp *mst_port; =20 --=20 2.25.1