Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp631896imm; Thu, 13 Sep 2018 05:31:23 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdby3sAKSLxzr3yc0cnWG/X/R1jEbUFTNR1DfCOyfPZsORWbODhuEP+ywjRLvzbQPefsGtHy X-Received: by 2002:a17:902:7c96:: with SMTP id y22-v6mr7191069pll.332.1536841883798; Thu, 13 Sep 2018 05:31:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536841883; cv=none; d=google.com; s=arc-20160816; b=pN6t+5ilNPNyBn11t4VvcLMlRvlGHCM6ekYk8ZP/kqGSTJtzPabMCqMnjsGccpwNuC reaXvLR7pVHv4+z1yQoTaHyrNCu24YvuF7YhQNddN6V1J/UV8MjL6DWqCv+G3W1VbQx6 nd3JGw6euHQL+FJQ/zBw802KMG4BzLj7b9ERv5tnLwkPusDjRHuKP/+XUFBbHSEyhqIZ fTNOfj1s9lfzKr3vRXLetdNuj9B/eLQYmdYEY3+GkA1ZWvYo47uFQFEP19yxyvYC2ffE 0/rQojzJpxnScHMh7FCbMkLmNArHYIb8pUoYtFahEHe+QbaonzhPx3PJtM62qOLFJfG8 sZqQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=/cL1klRFi83km/yHJkofj2A46U7N8AqVa+xwzEpgNeE=; b=EZi23f/QfJG71tnaxCApLS+b1eCFujsCAcD7hslQedzUeeWwMX9NKrh/bjCoJW/H6y wz3NvTzF2Cy/nZS+X5cADqehJfHBv9Dlvzi7JIOSWb3rZ8+bhWPpwojFWUZ38SeSaqvt xf9DkqLMwusmGOkOcyctUNQm7rQWXqBRbm7Bgiz6yGcCyyLiBsd46SriVUTtSCtdtTMp uKk1c8ryzpckzZKorUY21zPeGOWEnUek7Ez5qnxjrcIH70BisnldkCsI+fVeFPpuaNW4 HOEP+3hYsDG9AbEHriXK9uZVBmB+uJ7IRuG75mDhIBFDHr80aACan2KfWNxE62L+mrdR /tWQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e21-v6si3895644pgb.131.2018.09.13.05.31.02; Thu, 13 Sep 2018 05:31:23 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727127AbeIMRjx (ORCPT + 99 others); Thu, 13 Sep 2018 13:39:53 -0400 Received: from gloria.sntech.de ([185.11.138.130]:36750 "EHLO gloria.sntech.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726741AbeIMRjx (ORCPT ); Thu, 13 Sep 2018 13:39:53 -0400 Received: from wd0459.dip.tu-dresden.de ([141.76.109.203] helo=phil.localnet) by gloria.sntech.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1g0QlG-0002vR-J5; Thu, 13 Sep 2018 14:30:18 +0200 From: Heiko Stuebner To: Damian Kos Cc: David Airlie , Rob Herring , Mark Rutland , Archit Taneja , Andrzej Hajda , Laurent Pinchart , Gustavo Padovan , Maarten Lankhorst , Sean Paul , Sandy Huang , Quentin Schulz , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, pgaj@cadence.com, ltyrala@cadence.com, stelford@cadence.com, jartur@cadence.com, piotrs@cadence.com Subject: Re: [PATCH v3 5/5] drm/bridge: add preliminary driver for cadence dpi/dp bridge Date: Thu, 13 Sep 2018 14:30:17 +0200 Message-ID: <1794131.JE1BxD2NGT@phil> In-Reply-To: <1535451894-2518-6-git-send-email-dkos@cadence.com> References: <1535451894-2518-1-git-send-email-dkos@cadence.com> <1535451894-2518-6-git-send-email-dkos@cadence.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Dienstag, 28. August 2018, 12:24:48 CEST schrieb Damian Kos: > From: Quentin Schulz > > This patch finally adds the preliminary driver for Cadence MHDP DPI/DP bridge. > > Changes made in the low level driver (cdn-dp-reg.*): > - moved it to from drivers/gpu/drm/rockchip to > drivers/gpu/drm/bridge/cdns-mhdp-common.* > - functions for sending/receiving commands are now public > - added functions for reading registers and link training > adjustment > > Changes made in RK's driver (cdn-dp-core.*): > - Moved audio_info and audio_pdev fields from cdn_dp_device to > cdns_mhdp_device structure. > > Signed-off-by: Damian Kos > --- > drivers/gpu/drm/bridge/Kconfig | 9 + > drivers/gpu/drm/bridge/Makefile | 3 + > .../cdns-mhdp-common.c} | 137 +- > .../cdns-mhdp-common.h} | 21 +- > drivers/gpu/drm/bridge/cdns-mhdp.c | 1308 +++++++++++++++++ > drivers/gpu/drm/rockchip/Kconfig | 1 + > drivers/gpu/drm/rockchip/Makefile | 4 +- > drivers/gpu/drm/rockchip/cdn-dp-core.c | 16 +- > drivers/gpu/drm/rockchip/cdn-dp-core.h | 4 +- > 9 files changed, 1484 insertions(+), 19 deletions(-) > rename drivers/gpu/drm/{rockchip/cdn-dp-reg.c => bridge/cdns-mhdp-common.c} (87%) > rename drivers/gpu/drm/{rockchip/cdn-dp-reg.h => bridge/cdns-mhdp-common.h} (95%) > create mode 100644 drivers/gpu/drm/bridge/cdns-mhdp.c > > diff --git a/drivers/gpu/drm/bridge/Kconfig b/drivers/gpu/drm/bridge/Kconfig > index 9eeb8ef0b174..90a4810a8c96 100644 > --- a/drivers/gpu/drm/bridge/Kconfig > +++ b/drivers/gpu/drm/bridge/Kconfig > @@ -35,6 +35,15 @@ config DRM_CDNS_DSI > Support Cadence DPI to DSI bridge. This is an internal > bridge and is meant to be directly embedded in a SoC. > > +config DRM_CDNS_MHDP > + tristate "Cadence DPI/DP bridge" > + select DRM_KMS_HELPER > + select DRM_PANEL_BRIDGE > + depends on OF > + help > + Support Cadence DPI to DP bridge. This is an internal > + bridge and is meant to be directly embedded in a SoC. > + This ends up with a Kconfig error on my kernel, with: scripts/kconfig/conf --oldconfig Kconfig drivers/i2c/Kconfig:7:error: recursive dependency detected! drivers/i2c/Kconfig:7: symbol I2C is selected by FB_DDC drivers/video/fbdev/Kconfig:63: symbol FB_DDC depends on FB drivers/video/fbdev/Kconfig:5: symbol FB is selected by DRM_KMS_FB_HELPER drivers/gpu/drm/Kconfig:74: symbol DRM_KMS_FB_HELPER depends on DRM_KMS_HELPER drivers/gpu/drm/Kconfig:68: symbol DRM_KMS_HELPER is selected by DRM_CDNS_MHDP drivers/gpu/drm/bridge/Kconfig:38: symbol DRM_CDNS_MHDP is selected by ROCKCHIP_CDN_DP drivers/gpu/drm/rockchip/Kconfig:29: symbol ROCKCHIP_CDN_DP depends on EXTCON drivers/extcon/Kconfig:1: symbol EXTCON is selected by CHARGER_MANAGER drivers/power/supply/Kconfig:467: symbol CHARGER_MANAGER depends on POWER_SUPPLY drivers/power/supply/Kconfig:1: symbol POWER_SUPPLY is selected by HID_BATTERY_STRENGTH drivers/hid/Kconfig:28: symbol HID_BATTERY_STRENGTH depends on HID drivers/hid/Kconfig:7: symbol HID is selected by I2C_HID drivers/hid/i2c-hid/Kconfig:4: symbol I2C_HID depends on I2C For a resolution refer to Documentation/kbuild/kconfig-language.txt subsection "Kconfig recursive dependency limitations" The culprit being the dependency on EXTCON in the Rockchip cdn-dp driver. Moving to "select EXTCON" seems to fix the issue, but I'm not sure yet if that is the correct solution. Heiko