Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1166143lqp; Fri, 22 Mar 2024 07:25:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUo2RF2iv+o1vTnK8ZWLtqSQRIZkgfCakC23PqSO0V1wJLXtJFtwk0A+/93R8lhXJ2MGZk3cp3IDNTH0pz/wbj16woglzQ+7kFBHD4HFg== X-Google-Smtp-Source: AGHT+IGt5uRjycbxbp4VDMGPCJSWriC5dI2VxhkdNLah1c5L5GR6m8Cg15V/t3+ciINLFYToc1pk X-Received: by 2002:a17:902:8d83:b0:1e0:3b86:34ca with SMTP id v3-20020a1709028d8300b001e03b8634camr2375989plo.38.1711117527674; Fri, 22 Mar 2024 07:25:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711117527; cv=pass; d=google.com; s=arc-20160816; b=ocPpF1XBUMXA7sTVuVjqmWc0F1qwlLvzATBGNGLtJGPPpNGMaAXWhIfUbI2GunOCT3 XnE8A2e68xH2qcgfPVgbBmNNmnY3myleK/Bcr7b7nUE6qhO6U2Z7SiPI1IawHszC/Kcp WLlQiMTiZpKdIvHFFj1PEBojcDlV+G7WGHKLO+hhLDzP5kku3epqVhEhjcvgo6jrkSwg iLI+ZU1A6n1JOL7e7y4s9DcA1momCsp1ZkT13rRDxiitryJ8fGcKoIxpR7MQe3KeLp7w 2lypVr6E5vu/vF4qmx+FmvsdYMUSQXiTfGcafoVMFcHISrYWb0uVtYc2PYBXRu4d7wsp ot/Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=jImGbcoc8775uDBhTmW35Rn3vJzg6StSct/QW9VpdpI=; fh=griWeWyYtBxKmetTmVBu8CFUJVE6XRNCAsjR7nYzLbo=; b=IY+ruw+5SbR7HnbBIWX8kH0s79Ry6ZskzYc6iggBj4sYjCPMJksOWwG/qQBGNQCdQD rRJj6X6GCloElgZ3xR2CKBLUJViovd/d2HyEAWuQw5CtcFfzceqS+AcM5OiH81eWw9V4 BhJv2ssJx8gXdtGAz7PV2YeqzjgbmiJlmecEuE5ouXJZPzb1dzKVWdHbjjUdDEdUoF4K VO9VAbpiByZihoPiK4+caTXnrlEDhb/ulvKNo1kkC/o37c96Y7uoyusk3bfe7v/Su2A/ 2l1FUojSP+rV9Fentdh6tW8dCcfinuU56piU6SHKHrEI6ozZybOZ6Z5UV7zmUeWvrUHV ecjA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=p9C1X74a; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-111605-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111605-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id p13-20020a170902e74d00b001dd678149d2si2122419plf.253.2024.03.22.07.25.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 07:25:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-111605-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=p9C1X74a; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-111605-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111605-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id C3908282410 for ; Fri, 22 Mar 2024 14:25:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A7EE147A7A; Fri, 22 Mar 2024 14:24:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="p9C1X74a" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C61A5481D1; Fri, 22 Mar 2024 14:24:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711117496; cv=none; b=JcVDK/iimSHb7LHmyWOfxQxot6NDER+mLPIKPVlDiSo08rjyyAvLPpnkuyT5PhGaZiWWLfCuUFv5JH4vS52pP8rZJDzSzjfU6nuQZGzcj/d1ESXRdSDQNfuLLQ/4yxy8BGNrEWx9SCaMnMNFMrvLZ5JHclxmGfiIdrCICbKoKjY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711117496; c=relaxed/simple; bh=RVI/efteQCKqZjTG1IpZpoRWMwJCgqrfbqKi4jhZC4o=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=S1q6prOZ+eNJ2fBFMly9NzNQsr3GbzILWi0Bxc33xRkVHF5wqPtFnOYdZVUlMtHwTgP9lPVCtkRpBCdGEYKrUbvCGdYgRI4O+Nq0HActcdtvUATDFRXFH7cUh63OucwRZBC2Gc1HWq+DI61XeP4EVaCKOEK5a6m+DZyg+1Bamhs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=p9C1X74a; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3BEC5C433C7; Fri, 22 Mar 2024 14:24:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711117496; bh=RVI/efteQCKqZjTG1IpZpoRWMwJCgqrfbqKi4jhZC4o=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=p9C1X74a1jnG3XpxuajooWGojIDix6bmT6uqBE8l2HkAY9omVA4O1B0byql0SKdyH CYi7jeSkQf46LxgR1Ni0T0njDfeLKT7xiNS3gA/3cdGTKGCdel/QpQJQVI7ZeITY/T TCw3b5WDMwKKCqqSwoAgcF9kMlW0e7JE77y8nv80k2qYxUuWvRffrtI2EoaSJBWKpy UBpTPQohevNnSMe9JV+y1Isxz+8TjQCDi+uY05tQ+wtO1KCYBP0nQ8Xp4t7aO1LI0/ 6Iq4d3j/s4EMcrA3RgzpLv1icIZZFUVxdgMvffPcfwtVNw6BLtFLnHk8e3rdHIXAKm nzpFs27W6mSdQ== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1rnfpQ-000000001yB-3TGf; Fri, 22 Mar 2024 15:25:05 +0100 Date: Fri, 22 Mar 2024 15:25:04 +0100 From: Johan Hovold To: Abel Vesa , Dmitry Baryshkov Cc: Rob Clark , Abhinav Kumar , Sean Paul , Marijn Suijten , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Kuogee Hsieh , Bjorn Andersson , Konrad Dybcio , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 1/2] drm/msm/dp: Add support for determining the eDP/DP mode from DT Message-ID: References: <20240322-x1e80100-display-refactor-connector-v3-0-af14c29af665@linaro.org> <20240322-x1e80100-display-refactor-connector-v3-1-af14c29af665@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Fri, Mar 22, 2024 at 04:15:23PM +0200, Abel Vesa wrote: > On 24-03-22 15:38:03, Dmitry Baryshkov wrote: > > On Fri, 22 Mar 2024 at 15:36, Abel Vesa wrote: > > > On 24-03-22 15:30:54, Dmitry Baryshkov wrote: > > > > On Fri, 22 Mar 2024 at 15:22, Abel Vesa wrote: > > > > > +static int dp_display_get_connector_type(struct platform_device *pdev, > > > > > + const struct msm_dp_desc *desc) > > > > > +{ > > > > > + struct device *dev = &pdev->dev; > > > > > + struct device_node *aux_bus; > > > > > + struct device_node *panel; > > > > > + int ret = DRM_MODE_CONNECTOR_DisplayPort; > > > > > + > > > > > + /* legacy platforms specify connector type in match data */ > > > > > + if (desc->connector_type == DRM_MODE_CONNECTOR_eDP || > > > > > + desc->connector_type == DRM_MODE_CONNECTOR_DisplayPort) > > > > > > > > misaligned > > > > > > > > > > Sure, will fix. > > > > > > > > + return desc->connector_type; > > > > > > > > Can we drop this part completely? > > > > > > > > > > You mean the whole if clause? How should we handle the legacy approach > > > then? > > > > Legacy platforms still have the aux-bus/panel. so they should be > > handled by the check below. > > > > Oh, in that case we can drop the connector_type from every desc for all > platforms. Guys, please trim your replies! Johan