From patchwork Thu Oct 24 16:45:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 11210319 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 295C313B1 for ; Thu, 24 Oct 2019 16:47:02 +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 10D5B20659 for ; Thu, 24 Oct 2019 16:47:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 10D5B20659 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 2EB586E524; Thu, 24 Oct 2019 16:46:53 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by gabe.freedesktop.org (Postfix) with ESMTPS id 713CC6E503 for ; Thu, 24 Oct 2019 16:46:42 +0000 (UTC) Received: by mail-wm1-x341.google.com with SMTP id v6so3289234wmj.0 for ; Thu, 24 Oct 2019 09:46:42 -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=EliCwXDq96B71gmhKQIK2pDZL6FbkUlF5g2UJEA6lCE=; b=Nn6Sfe6aI9sZEzlyl0DRsE4Inx+POW2GciiNjYyuFqAYqYEf/XwviPk/bnAzHOUARE eboGyXbRDBihNY8mbkFAn6a5yQv1VMDIWW/Ty36xBfhjR4e005NjKUg8aLnMggzTb+ec RXiVvdT8kGm2/OPpHIkRsk8T4gfA2teuYQV6EjVMENTSbP4Qvu3Inys+KY2x6LSdstAB 3xlM/N6hIDtFL4DkCYLEHQd0fcKrf4xqUpchBt+2+mS1qFFHN+cfIGqgRg9E/Sp4EYzz S1oEf9B/TNMmcjiKhC4ExTcdH6Ko0yp3KepRATHiTsPteaxF6nAnKQwM5qhx/PuCUEpc LYYg== X-Gm-Message-State: APjAAAVtmm2ccSp3atV8mrtTK5DkqkcxpPSJ5wkaNHc5fsywUt19HBTD ADUSZT5n59qV3Nq0p2La2R8= X-Google-Smtp-Source: APXvYqwvFzod6odWZC+ZmX9rjALdXrLhxe4c2LgwHcJSi6yumP8jY8dCeixhDvAyg/9tgA+Bhh6qzg== X-Received: by 2002:a1c:e08a:: with SMTP id x132mr5862809wmg.146.1571935600543; Thu, 24 Oct 2019 09:46:40 -0700 (PDT) Received: from localhost (p2E5BE2CE.dip0.t-ipconnect.de. [46.91.226.206]) by smtp.gmail.com with ESMTPSA id 143sm5358801wmb.33.2019.10.24.09.46.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Oct 2019 09:46:39 -0700 (PDT) From: Thierry Reding To: Thierry Reding Subject: [PATCH 28/32] drm/tegra: sor: Use correct I/O pad for DP Date: Thu, 24 Oct 2019 18:45:30 +0200 Message-Id: <20191024164534.132764-29-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=EliCwXDq96B71gmhKQIK2pDZL6FbkUlF5g2UJEA6lCE=; b=EXVxiQWenKVljq3++zs0suyTVv1WnZwcrxL5rHKCjfrrgrf5CqxDirTPmTTi+ULB1e u6+vZmJTzqtn2bHsHMufIYmo8CrifZYgx3Xc4kPjhHIhDuCoYP9xaiwKULZK6J5XZSIT 4TljH/sABEl9N63xWXUhv1v4SyCwOZahkWRKabR9HLn+MKveU2JKCagUFycYfNgTtJDr fIwuNY/jPUf3n+bsAETT3/YJWa6IHPqCSRyWvxkrIEuB8db3wm4a6bd7q1n+0pm3i617 pH7NKBw/HKcZpT/9i0oNnpCbxxEd5uyMPicCsmbiC0IX5FuU8xmhCwF0jbXJIV1I/mCV mPYw== 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 The correct I/O pad needs to be powered up before DP can be used. Make sure the correct default is set for Tegra generations where the I/O pad cannot be derived from the SOR instance. Signed-off-by: Thierry Reding --- drivers/gpu/drm/tegra/sor.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/tegra/sor.c b/drivers/gpu/drm/tegra/sor.c index a245bbbd638a..bf2e31199166 100644 --- a/drivers/gpu/drm/tegra/sor.c +++ b/drivers/gpu/drm/tegra/sor.c @@ -3934,6 +3934,7 @@ static int tegra_sor_probe(struct platform_device *pdev) sor->pad = TEGRA_IO_PAD_LVDS; } else if (sor->soc->supports_dp) { sor->ops = &tegra_sor_dp_ops; + sor->pad = TEGRA_IO_PAD_LVDS; } else { dev_err(&pdev->dev, "unknown (DP) support\n"); return -ENODEV;