Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2849701pxb; Mon, 19 Apr 2021 16:01:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyTcjpq1SyxoF122UuPXivXu2Ijwv/9P9X7wJd2h5XSo7P/0CbqU3o2vHqNcFU5y0sj+nph X-Received: by 2002:aa7:c2d4:: with SMTP id m20mr27945716edp.193.1618873268527; Mon, 19 Apr 2021 16:01:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618873268; cv=none; d=google.com; s=arc-20160816; b=WBKnQl7qrrJGsyytiooJW+gWmjmhFU23vn9T4uN5PY8zgvKPgXxbi9sHoqMhLOzNWF RM7cAPZlqqW91/RxWNtFJ4B4lzRvvQCwRLPh80ZO/DBvdJxFkH3ryVC7pZ5uDuMSV0i9 nIr/p7Drv8y0dLb8vvnmtCMn2IWwAcsoihln02c8jlKzPgt3uLs67gnwJ6Yl7z/gcBJM frcsJCtya2o5QJf/chj6EjLD/0jLjTXO3/nJL4b+mehdoMstzPTyLQ9mNPSznOtxhi+u xYWgGyIR0mGbhIc6UaLtg+F3GVLl010FtVD3ASYkEyeOKiQhSAZz7XftWkncTBTabS3c reuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=bcsMGtj1LuRlLRRf+NneAzyPaC62wDCq434F0KB8s/o=; b=eHVBquBPXfU6bFdBDkB90SamowEsd53oUPouxFecXmC3XVGB2BoKLqXj/QW2gP9qVt Q4WxCs3M2pFEGzPlIHU5wK7jmD+T33OCxy6RUdl/jp7+W83rYgEHcM6pJBQiHgD7Ondj 3dMlHruiTqnP9GGfirSyunP4OhTh7ZB8kOS1tZzrGRVrCD+ueyaJysvP32PAnH34kCG5 EDio2oYeWkw2NKg5uHL1KBSTvgYkcXwWurgfsomX0/muq3sjGFzGPDnpboQFj4NSqClN dMZh/v9TrgINCqT34Lg/eI7sm+MQ8ilTXQltaL5rU1DrmfdHfVTj6XC1TijFZDTx3F3P CzNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=D42rfqeK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id jz7si13081228ejc.96.2021.04.19.16.00.45; Mon, 19 Apr 2021 16:01:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=D42rfqeK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S231434AbhDSW6M (ORCPT + 99 others); Mon, 19 Apr 2021 18:58:12 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:22015 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232302AbhDSW6B (ORCPT ); Mon, 19 Apr 2021 18:58:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1618873050; 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: in-reply-to:in-reply-to:references:references; bh=bcsMGtj1LuRlLRRf+NneAzyPaC62wDCq434F0KB8s/o=; b=D42rfqeKaKfQHBqUP+FzOdmT48ynkEsCRae56MBDnZdU+USdhYG6DeihAEtiZgxaNT612p FMkh0NOUeSwDd/PQsR4GN1MlKcZzZyCc7T2nIqiTNLSaJNRri2JyTBUaZm+SUiQJMZ11J2 dPsWsMDjmvwqgeU0aBH+mor712SQbvg= 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-38-GPfXr6X6N4CLZZtdXdcuag-1; Mon, 19 Apr 2021 18:57:28 -0400 X-MC-Unique: GPfXr6X6N4CLZZtdXdcuag-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 3F7A8107ACCA; Mon, 19 Apr 2021 22:57:26 +0000 (UTC) Received: from Ruby.lyude.net (ovpn-119-153.rdu2.redhat.com [10.10.119.153]) by smtp.corp.redhat.com (Postfix) with ESMTP id F04945C1C4; Mon, 19 Apr 2021 22:57:23 +0000 (UTC) From: Lyude Paul To: dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, nouveau@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, =?UTF-8?q?Ville=20Syrj=C3=A4l=C3=A4?= , Jani Nikula , Rodrigo Vivi , Thomas Zimmermann , Thierry Reding Cc: Maarten Lankhorst , Maxime Ripard , David Airlie , Daniel Vetter , Joonas Lahtinen , Ramalingam C , Uma Shankar , Matt Roper , Sean Paul , Ankit Nautiyal , Lucas De Marchi , linux-kernel@vger.kernel.org (open list) Subject: [PATCH v3 12/20] drm/dp_dual_mode: Pass drm_device to drm_dp_dual_mode_set_tmds_output() Date: Mon, 19 Apr 2021 18:55:14 -0400 Message-Id: <20210419225523.184856-13-lyude@redhat.com> In-Reply-To: <20210419225523.184856-1-lyude@redhat.com> References: <20210419225523.184856-1-lyude@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Another function that we'll need to pass a drm_device (and not drm_dp_aux) down to so that we can move over to using drm_dbg_*(). Signed-off-by: Lyude Paul --- drivers/gpu/drm/drm_dp_dual_mode_helper.c | 3 ++- drivers/gpu/drm/i915/display/intel_hdmi.c | 3 +-- include/drm/drm_dp_dual_mode_helper.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/drm_dp_dual_mode_helper.c b/drivers/gpu/drm/drm_dp_dual_mode_helper.c index 9ee75c568c37..a63d7de85309 100644 --- a/drivers/gpu/drm/drm_dp_dual_mode_helper.c +++ b/drivers/gpu/drm/drm_dp_dual_mode_helper.c @@ -336,6 +336,7 @@ EXPORT_SYMBOL(drm_dp_dual_mode_get_tmds_output); /** * drm_dp_dual_mode_set_tmds_output - Enable/disable TMDS output buffers in the DP dual mode adaptor + * @dev: &drm_device to use * @type: DP dual mode adaptor type * @adapter: I2C adapter for the DDC bus * @enable: enable (as opposed to disable) the TMDS output buffers @@ -349,7 +350,7 @@ EXPORT_SYMBOL(drm_dp_dual_mode_get_tmds_output); * Returns: * 0 on success, negative error code on failure */ -int drm_dp_dual_mode_set_tmds_output(enum drm_dp_dual_mode_type type, +int drm_dp_dual_mode_set_tmds_output(const struct drm_device *dev, enum drm_dp_dual_mode_type type, struct i2c_adapter *adapter, bool enable) { uint8_t tmds_oen = enable ? 0 : DP_DUAL_MODE_TMDS_DISABLE; diff --git a/drivers/gpu/drm/i915/display/intel_hdmi.c b/drivers/gpu/drm/i915/display/intel_hdmi.c index 08fb98dac169..fc3e7a9396b5 100644 --- a/drivers/gpu/drm/i915/display/intel_hdmi.c +++ b/drivers/gpu/drm/i915/display/intel_hdmi.c @@ -1251,8 +1251,7 @@ void intel_dp_dual_mode_set_tmds_output(struct intel_hdmi *hdmi, bool enable) drm_dbg_kms(&dev_priv->drm, "%s DP dual mode adaptor TMDS output\n", enable ? "Enabling" : "Disabling"); - drm_dp_dual_mode_set_tmds_output(hdmi->dp_dual_mode.type, - adapter, enable); + drm_dp_dual_mode_set_tmds_output(&dev_priv->drm, hdmi->dp_dual_mode.type, adapter, enable); } static int intel_hdmi_hdcp_read(struct intel_digital_port *dig_port, diff --git a/include/drm/drm_dp_dual_mode_helper.h b/include/drm/drm_dp_dual_mode_helper.h index 23ce849152f3..8cb0dcd98a99 100644 --- a/include/drm/drm_dp_dual_mode_helper.h +++ b/include/drm/drm_dp_dual_mode_helper.h @@ -110,7 +110,7 @@ int drm_dp_dual_mode_max_tmds_clock(enum drm_dp_dual_mode_type type, struct i2c_adapter *adapter); int drm_dp_dual_mode_get_tmds_output(enum drm_dp_dual_mode_type type, struct i2c_adapter *adapter, bool *enabled); -int drm_dp_dual_mode_set_tmds_output(enum drm_dp_dual_mode_type type, +int drm_dp_dual_mode_set_tmds_output(const struct drm_device *dev, enum drm_dp_dual_mode_type type, struct i2c_adapter *adapter, bool enable); const char *drm_dp_get_dual_mode_type_name(enum drm_dp_dual_mode_type type); -- 2.30.2