Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2887665rwb; Mon, 15 Aug 2022 13:20:42 -0700 (PDT) X-Google-Smtp-Source: AA6agR4x+ixxpHXYEvYOxAhHscVke+XGV7lfUY30a1Gb5M5IHbe3PRo8CRSVhCvL94xtKJIzK3hw X-Received: by 2002:a17:906:8474:b0:730:7f7f:e49 with SMTP id hx20-20020a170906847400b007307f7f0e49mr11180515ejc.164.1660594842566; Mon, 15 Aug 2022 13:20:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660594842; cv=none; d=google.com; s=arc-20160816; b=rhCPYGzN2daFADa0mfghO+1obCwNBaVeZSoCWJfbdgWI/3DDP5TjjHYIqx5FRFxtFz yUC3/pNNZIK4yO+Ee6l73kn8gk9jjxh+XAnAxR2q3/i10wkTAHdRjPNFP65YB8YYOQl4 QnZmk4cGjxEVyLE0fm7LnZMFZzFM0lVoaVFnYLhq4fwmh01cF7+PnSHAowceQLkKmJTc hcZNqcqSwqqbqWrQEDvq6aUl/BDOkQ9jC/o7LdYLQonmbge55FNx7mt7DDS+XvvX7jFR 2f64ZhxTq/7T1h3aNjpBFTHgr/KPB3ydlGUIpQWI1Fkbx4D2Bu2azYVLBzYFcUtng+mt golQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=P3kaTifanvd+TCwh7d0HqWKFei4ROOW9AGxzCoAefjk=; b=MlS/0KPdBLRL2EOx1x6XTrGVrxQ2o/ku1s6DVQEaIMuaSNVyJ0bk7S6U17xKfAqyaV c7YNpyFqqLSsD3knXVjxL1BP1Qfd4uKZ0H9OzyBA/ILFL0N3fChuldeBdQJkWU/j7fIz cn1hbAQQapLJST3iNQGazXlnfffam+ifZ0SNJ18aD4ePgbNOkhXPOMiZZPpnj75RVq8U c1Y/AnzDicHd6mT33B9kfRCRCbpzT4Z1cam/YSo7Q1ObnifsYLH+IBNjG7YomAa4d+MI 024M6iaAT2h1I34Pld8TbEFLpmUEFh/PCCwx0xjp/FAtmCxLwC4hkBlJqU6ZoEK6UW4c kM1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=qQk2OtTc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u5-20020a170906124500b0073113a19ca6si7918264eja.219.2022.08.15.13.20.12; Mon, 15 Aug 2022 13:20:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=qQk2OtTc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244627AbiHOUEC (ORCPT + 99 others); Mon, 15 Aug 2022 16:04:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344447AbiHOUDH (ORCPT ); Mon, 15 Aug 2022 16:03:07 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95C4B7D793; Mon, 15 Aug 2022 11:54:11 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 9FF6DB810A5; Mon, 15 Aug 2022 18:54:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D9FF6C433C1; Mon, 15 Aug 2022 18:54:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660589645; bh=MezgPMKIrRoCLy1vw1mfpOkaaDTLL/QVc33MHS2Qw4A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qQk2OtTc48bVVtKB22m2abV7/WebA6acXid06RoVWs8WFxxQW+AYTKLw4Al5wR1LL QrA00C/9TjSqEQMDD8SUYIHqsC6nyYImzLzXv31E6Y9Kz90RDQRyIgEV43RqEboUdh W4tvBvYC8wvsDozTXM1+eHzOSTfhPsg6GphbnF9o= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Marek Vasut , Jonas Karlman , Laurent Pinchart , Lucas Stach , Maxime Ripard , Neil Armstrong , Robert Foss , Sam Ravnborg Subject: [PATCH 5.15 767/779] drm/bridge: tc358767: Fix (e)DP bridge endpoint parsing in dedicated function Date: Mon, 15 Aug 2022 20:06:51 +0200 Message-Id: <20220815180410.180744819@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180337.130757997@linuxfoundation.org> References: <20220815180337.130757997@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Marek Vasut commit 9030a9e571b3ba250d3d450a98310e3c74ecaff4 upstream. Per toshiba,tc358767.yaml DT binding document, port@2 the output (e)DP port is optional. In case this port is not described in DT, the bridge driver operates in DPI-to-DP mode. The drm_of_find_panel_or_bridge() call in tc_probe_edp_bridge_endpoint() returns -ENODEV in case port@2 is not present in DT and this specific return value is incorrectly propagated outside of tc_probe_edp_bridge_endpoint() function. All other error values must be propagated and are propagated correctly. Return 0 in case the port@2 is missing instead, that reinstates the original behavior before the commit this patch fixes. Fixes: 8478095a8c4b ("drm/bridge: tc358767: Move (e)DP bridge endpoint parsing into dedicated function") Signed-off-by: Marek Vasut Cc: Jonas Karlman Cc: Laurent Pinchart Cc: Lucas Stach Cc: Marek Vasut Cc: Maxime Ripard Cc: Neil Armstrong Cc: Robert Foss Cc: Sam Ravnborg Reviewed-by: Lucas Stach Link: https://patchwork.freedesktop.org/patch/msgid/20220428213132.447890-1-marex@denx.de Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/bridge/tc358767.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/gpu/drm/bridge/tc358767.c +++ b/drivers/gpu/drm/bridge/tc358767.c @@ -1573,7 +1573,7 @@ static int tc_probe_edp_bridge_endpoint( tc->bridge.type = DRM_MODE_CONNECTOR_DisplayPort; } - return ret; + return 0; } static int tc_probe(struct i2c_client *client, const struct i2c_device_id *id)