Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3083679rwb; Mon, 15 Aug 2022 17:43:45 -0700 (PDT) X-Google-Smtp-Source: AA6agR4wryeXaOXn9kGc/H/B+eczEcBVk6Gp61/6USAAtjkPe5HmxNgLtImb9bUpAZCrzlqiGKdU X-Received: by 2002:a17:907:97cd:b0:731:5d0:4434 with SMTP id js13-20020a17090797cd00b0073105d04434mr11031575ejc.603.1660610625588; Mon, 15 Aug 2022 17:43:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660610625; cv=none; d=google.com; s=arc-20160816; b=Yrp9vw2mJnI+6NeFgiIfRfkXjQW5SJDgpC7S5Qct5YiR89gqyTKSpbb3Wb/p4sKBVl Bk0EHf87lsBFswOKpFz0zPa3FRNslFz2m4zY0Mf0JTcVMFUkRJmo1MggnjcTQH+7Z5tN 8BMU0Wbay1WjV/hJ2XcbxK2kteksSome3mt9+BRGocSnUkVTDz25X2YbPlwtTZqyWSwT FQXRHVxWjIFwgienHglvMo1xPeLS5w3eb8TgN4oClXviDasXIaFJTUM0+U8VDtDWDZtA 7kzqIX8cCK47RCYx5MsGJT+xrUG+F3794FIcGECsgABADwzzDIKPatrHqltfDdIcwK+O Df+Q== 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=e7B8MyhCqzVSV6TMl/1bD828vLMB+faRlpMZWiRicAo=; b=Er+3v9TA+CymKkakjibAav7E/7GgMjsfMsCg85ILNSZXpgx+Nzv/KDZjVlWkUrusN4 wZEjB3EhqsdGnnkqDXJb8xQwSbjDRh6dVfO8krkFJLBT4VgDDO00wKH6FOziZ7kv9A2c pNh2/imiUh4ht2zZO9Yqz4mQG52z1qnj7pJwgYE01AHVuNcpCBICN+D/0RIuVtvq8Wxg QXU4SwzqCo1bRX215mjfFMHPNVU31iJXMSZCJzWGmXmHjvrgPI2HNIDrtKRfEss4v+qI AaKDfFq21qn/TW56GOMpfys4wzg3WtCKK8ZAIeMEPKErEEPKeou1gObLM9U9WHOs0J7f 7M4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=qFTbN+G7; 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 a68-20020a509eca000000b0043d67b88ac6si9217356edf.163.2022.08.15.17.43.19; Mon, 15 Aug 2022 17:43:45 -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=qFTbN+G7; 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 S1354676AbiHOXt2 (ORCPT + 99 others); Mon, 15 Aug 2022 19:49:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354067AbiHOXnB (ORCPT ); Mon, 15 Aug 2022 19:43:01 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB1D585F9D; Mon, 15 Aug 2022 13:13:52 -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 dfw.source.kernel.org (Postfix) with ESMTPS id CF8BD60B9B; Mon, 15 Aug 2022 20:13:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D5CF7C433D6; Mon, 15 Aug 2022 20:13:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660594431; bh=DifRuWLDUKTF16Tjj2WmuoGaULdZ8SmwCsUER15xP5Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qFTbN+G7pUukMEC1vD5HnWfCXcoCgv/G4nGBs0F4CcjuXGs4siZa7wOoNbV159D8N hHKr3KezNZOcceJg9tVk1mue30FTr3dQp5qYNmrxU6Vuda2BhKznfmmM0/osnkBCih LcPH11X6WCBTZBY4TAWyFPdHOzArcul4V4gPGAOo= 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.18 1087/1095] drm/bridge: tc358767: Fix (e)DP bridge endpoint parsing in dedicated function Date: Mon, 15 Aug 2022 20:08:06 +0200 Message-Id: <20220815180514.002598256@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180429.240518113@linuxfoundation.org> References: <20220815180429.240518113@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 void tc_clk_disable(void *data)