From patchwork Thu Oct 24 16:45:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 11210299 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id AEB5F1747 for ; Thu, 24 Oct 2019 16:46:39 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 94ECB21906 for ; Thu, 24 Oct 2019 16:46:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 94ECB21906 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9EB386E4FE; Thu, 24 Oct 2019 16:46:32 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2E5DA6E4FE for ; Thu, 24 Oct 2019 16:46:20 +0000 (UTC) Received: by mail-wm1-x344.google.com with SMTP id w9so2096684wmm.5 for ; Thu, 24 Oct 2019 09:46:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=t2AaSAVqpbDL04En9DdcntuJXoHrsGRIQaneDm/xPB8=; b=eUGJRvaVMU4fnfKAX1ADCYyF1Ym+ysrjQOqayqDW7n+cWySvHX7+JB+8GLu9nl72Al my3+HWjfY8g/B7PZW/NCqzaY7wY/Aa/HJdpTeBGTbHNMYDMXcfRgbGnt/tam2Tt4G7qW wZuAHUn0W47jse/low4P4xalriN1EuLq8OpPZ5o1KM7ErbimMEj5yPfzdfqyDxUGD+cG xrviF3RKKE8HvFFcyhvediIgJOdN/fcm70bBqNEgHs5JCC4D92omxjElkRxl4jSBwYG0 StkBf8pfoBBZnd7IrNMXdHyTfIK3mNMMICHBzsFsYjJg1+AtFlJof37biCHqZ7vfC/Z4 ZIdg== X-Gm-Message-State: APjAAAWNyW3pIjEauBLHCgyxxYEVQ2KVDCCcOMuZ4ABflfh5iPFD1trc Vvzg57aXXtsHu0udS67QL8g= X-Google-Smtp-Source: APXvYqy7rcaOm0vrlMBYNbbmx6UJLakTaiIUDoQkKpFg2C2Z5vcT45qLo+YnNhjrRvUuuqbrqKh7Cg== X-Received: by 2002:a7b:cb03:: with SMTP id u3mr5674271wmj.126.1571935578299; Thu, 24 Oct 2019 09:46:18 -0700 (PDT) Received: from localhost (p2E5BE2CE.dip0.t-ipconnect.de. [46.91.226.206]) by smtp.gmail.com with ESMTPSA id q12sm2627267wrj.87.2019.10.24.09.46.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Oct 2019 09:46:17 -0700 (PDT) From: Thierry Reding To: Thierry Reding Subject: [PATCH 18/32] drm/tegra: sor: Hook up I2C-over-AUX to output Date: Thu, 24 Oct 2019 18:45:20 +0200 Message-Id: <20191024164534.132764-19-thierry.reding@gmail.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191024164534.132764-1-thierry.reding@gmail.com> References: <20191024164534.132764-1-thierry.reding@gmail.com> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=t2AaSAVqpbDL04En9DdcntuJXoHrsGRIQaneDm/xPB8=; b=G3twkFZ2mXV/rLLmlkVA04C7g/kJioutmqx7VJWaFEkPh7Bx/z+g3/63gG12vQEYzL lrnuPYLxPkqmK6V8+gRewfRtZgJ5VZQZtE9tNGh77vt3V8wbrL2ZMyTvyyegG9R0a77F TRWbHZp5dfpzBbLZmS3i+g6538kXX2GM08zAM4WQi/tq4JMrmczCA6obAJXlAiMEl/WG olE9mhDzBhdETOOjZHo9ZzvAohsQRKWEGC1L4xaTPH64/LRw1OzvVXbduQSxcyCHUSuX CVhRUUtBFDBSNLjnYEglPnxBO05n27n+jFGpp226y91XKVwas3/7rFq9SgbIgm/yCQ6I 8+sA== X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-tegra@vger.kernel.org, dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Thierry Reding This is necessary for the output abstraction to retrieve a list of valid modes from the EDID of a connected panel/monitor. This will be useful in conjunction with DisplayPort support that will be added in a subsequent patch, so that the driver can read EDID via the AUX channel. Signed-off-by: Thierry Reding --- drivers/gpu/drm/tegra/sor.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/tegra/sor.c b/drivers/gpu/drm/tegra/sor.c index 636807e047f0..6f979c5fff7b 100644 --- a/drivers/gpu/drm/tegra/sor.c +++ b/drivers/gpu/drm/tegra/sor.c @@ -3524,6 +3524,8 @@ static int tegra_sor_probe(struct platform_device *pdev) if (!sor->aux) return -EPROBE_DEFER; + + sor->output.ddc = &sor->aux->ddc; } if (!sor->aux) {