Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp3010682rwb; Fri, 20 Jan 2023 10:01:38 -0800 (PST) X-Google-Smtp-Source: AMrXdXuUIjafi6l/J/KoF7cqjloTaYHCeMrxkIQ4x2KznyxjtqABg1LcY7brywYrUWIiPoLTrlCa X-Received: by 2002:a17:90b:3b90:b0:22b:af24:f7b7 with SMTP id pc16-20020a17090b3b9000b0022baf24f7b7mr3153943pjb.14.1674237698326; Fri, 20 Jan 2023 10:01:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674237698; cv=none; d=google.com; s=arc-20160816; b=n2hzwHfMRIORXKw0Tz+nY3vyR7uEgmvvi8PCe0QEHBAVqW5OJq8dYBm7LjMLUMpoVc Ds2ZPSsAIAJDxojfbdy2SbkVsGd4fb1K6SUUf+VSuGwhWikJb5zbejOyJhg1zT/dkgZg jJWvqLTKt7OXzSmkWYqK8xGQ2ifKHbukQ/5bA6FIr05B0I5RzHg22rnPahD/WexyAOas T/d0Px0iwj0rYvKBRn/amPqV8hrCEwaiWE/vUrNr65cp5EIcKQd9ZVwQcVi+43ReqEhw t/xrL+6Luh3EU3P/5P5vM4jwJK4Jp2ckvY1KIrGu+gBdnh+Mj6XYbclEBPi7mc9SSzET uH8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=87t+oUf+a0Dntkm1neH5VXJkrRsI/op4lJUax3qjibo=; b=efEIQwiqmlP0FbcuZNGby3FxIbbLV5vM4HWSVoTE44xcYG9lPgAz1vNhYsY3lmQxb/ gjgxoY9PNQYGxjfWndsk7CZG0FKZDZ/a14uhLt1cP6FDVB870lu6rzAB9SE4AWvnzT5O ZDHy5JQA6/Isv4PCOCm6bTkeXgk0tOlCYQMm1yZsfdnz70+B3DTPoSN3cDPXQD0n40oi x+gHv1DlfI/1we0V4Fn7YBCxHeeHbgIDLnJCQsR+6F3sINWlIyMjj1GiTUTSwdkhwfIc 11H3g2t4UfvtyrbaqqRq3PUL5Oz7hY8H1ysrd0ROjlVcrok0j2tVH1sfNdgnTYWHMpoU AQ2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=C11141WG; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bo4-20020a17090b090400b0021bc843908esi3020871pjb.119.2023.01.20.10.01.32; Fri, 20 Jan 2023 10:01:38 -0800 (PST) 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=@gmail.com header.s=20210112 header.b=C11141WG; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230184AbjATRda (ORCPT + 52 others); Fri, 20 Jan 2023 12:33:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49870 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230215AbjATRd3 (ORCPT ); Fri, 20 Jan 2023 12:33:29 -0500 Received: from mail-oi1-x22a.google.com (mail-oi1-x22a.google.com [IPv6:2607:f8b0:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2FFFDCB507 for ; Fri, 20 Jan 2023 09:32:57 -0800 (PST) Received: by mail-oi1-x22a.google.com with SMTP id s124so5034705oif.1 for ; Fri, 20 Jan 2023 09:32:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=87t+oUf+a0Dntkm1neH5VXJkrRsI/op4lJUax3qjibo=; b=C11141WGDsrnqbvFx18+o4BqFM9T5uzgu0a9bCtay8eJiafXb5ICVY922ub5/qLDah ksS3XsCN7F9xF6+eDXHHtozZjAq2Q2yg1Br5q4PspU+33c5btcapDYnRoBfGozvMs8xB ej/M2h86SQGaj6x+pUobn/yPXfV2EANiLb2MsHJlXMvUoDg8zxRRgClQgAaOVM0nWMiQ pMgarJMIeI6mpiNKd35zAGAm9GydqW7tGeAfQDwBJDyNBer2x6N7+5cwXxk6w+4JZxse AYPPaewMvXfaeqjXr/zkeCNwTejY8ljAqKBhSYEviFnMpnOVlga5XZBHp8ISiu3e8t5Q AeCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=87t+oUf+a0Dntkm1neH5VXJkrRsI/op4lJUax3qjibo=; b=IP9a9qoRyFrV91stQMv0arKIhNW+P5h/S6u19ljdFW5eM/fR1C9/ZIgT1GdctkXqUr 5UmtOLOcyK6ZaN2OKUKY0xCSQsvgjmcyP0RPjX5wfLKK43rGyImAbXQG87TX0CYvXht2 i+dVtxciZiDtHLsuX43e5arvK6uny9eUkir0JG2Vaz2OWhPLIp9PKF2h1CYSM91yL2QA Ie6M3iUCzsRMOBv1of3QU5gZXtZhy4n2VHQmZdXbNMa3gPPAqydpwz+S8mzLLjQt9rBx ToKWdgP5JnNUVKtkixz+zWNr+nQYsTWFTcNHijdb2cHz6TVhLv6rkWGOaslnUOL2h8JN C74A== X-Gm-Message-State: AFqh2krdfOpz4hhN+AyIjCfLwjpOfPiUsoAXl7rXntCAZWshzQRDrxNH y1Timy0NvHnMMV3r2AZ+0op2nkw/HbMH2R973HLvqVHC X-Received: by 2002:a05:6808:4387:b0:35b:d93f:cbc4 with SMTP id dz7-20020a056808438700b0035bd93fcbc4mr886518oib.96.1674235972772; Fri, 20 Jan 2023 09:32:52 -0800 (PST) MIME-Version: 1.0 References: <20230120173226.98569-1-hamza.mahfooz@amd.com> In-Reply-To: <20230120173226.98569-1-hamza.mahfooz@amd.com> From: Alex Deucher Date: Fri, 20 Jan 2023 12:32:40 -0500 Message-ID: Subject: Re: [PATCH] drm/amd/display: use a more appropriate return value in dp_retrieve_lttpr_cap() To: Hamza Mahfooz Cc: amd-gfx@lists.freedesktop.org, Arnd Bergmann , Leo Li , Wenjing Liu , "Pan, Xinhui" , Rodrigo Siqueira , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Daniel Vetter , Alex Deucher , David Airlie , Harry Wentland , =?UTF-8?Q?Christian_K=C3=B6nig?= Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 Acked-by: Alex Deucher On Fri, Jan 20, 2023 at 12:31 PM Hamza Mahfooz wrote: > > Not all ASICs support LTTPR, however if they don't it doesn't mean that > we have encountered unexpected behaviour. So, use DC_NOT_SUPPORTED > instead of DC_ERROR_UNEXPECTED. > > Reviewed-by: Wenjing Liu > Signed-off-by: Hamza Mahfooz > --- > drivers/gpu/drm/amd/display/dc/link/link_dp_capability.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/amd/display/dc/link/link_dp_capability.c b/drivers/gpu/drm/amd/display/dc/link/link_dp_capability.c > index e72ad1b8330f..21fd9275ae4c 100644 > --- a/drivers/gpu/drm/amd/display/dc/link/link_dp_capability.c > +++ b/drivers/gpu/drm/amd/display/dc/link/link_dp_capability.c > @@ -1462,7 +1462,7 @@ enum dc_status dp_retrieve_lttpr_cap(struct dc_link *link) > bool vbios_lttpr_interop = link->dc->caps.vbios_lttpr_aware; > > if (!vbios_lttpr_interop || !link->dc->caps.extended_aux_timeout_support) > - return DC_ERROR_UNEXPECTED; > + return DC_NOT_SUPPORTED; > > /* By reading LTTPR capability, RX assumes that we will enable > * LTTPR extended aux timeout if LTTPR is present. > -- > 2.39.0 >