Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3284048pxf; Mon, 22 Mar 2021 02:39:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzFjXiHAGqihIbmFHzyiCmqv3ysSiAKlu+dypBECD5N9ArruPCRN8ARII26Z8hsIK3MDqkZ X-Received: by 2002:a05:6402:4301:: with SMTP id m1mr25404270edc.210.1616405940666; Mon, 22 Mar 2021 02:39:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616405940; cv=none; d=google.com; s=arc-20160816; b=tKPK+hdBSDliZfBbHPygZaBC+4mlhIcGgBw+xEqBALBqMlIssrcGMoO/k+pXJpStTl WX+kHZHOAjTVXvSfmHyqSr7vwMZz/VYPKHr2Z3Bu+FgVh5mVa5towhDxRnp+o10NPJC7 NZDLDvHQ6ifWeqjQQpOWMc8aIDPaaVq/Fi8a3buHxzPO2bJIrQo6RlvTU4GxRYJEnju1 q4VD4I2MVoMgnZC8RqAgJhkmyggwncP1hNLOHgJQ3jvrNlsmJDnv6yWSyEkDX9jmc/Y4 BzYVxQZygCHfwNZPvL6N/HoMApN9eN6NdEPSwSemRY6SV8Ang5uewEW8AilZq1Nslwme /55g== 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=NwUM0uQxUqhm1YVIReKtCkfGLNGPmzKidaPgCqb8BBE=; b=0+F16K0lIc8GvdMkWlskT0hgXUnItnTCnwkqZT5zeL3KfY1ZP6+RhQuKt3MEhTaoZd Wt+HRXMUpztg+mZKFTRIBX4+W68+knRDQ4P6ldYT0o5xspZyH12EK9YNzRF4olMF+8ZB KUCjsPHbBcvPXJ8+Xw4HQNOHKxwqT2f83+4fD6MxipZgfIaUDy9NV+Q9jDh37BxyvOpf xTAHr/BqQKXxtUojCNCcCpl0lujEKA8ZHYxtVuwpQAJZOYYcp6H4Jv6tnsrGkbVfFr0M apCJCgIGOV8Usd1NAPGR2jkormeoOe8DuCbek7gcqTWdKo9eZ3CU9ZL2jFRgUtreKUdN XeVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gXbh9UMf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j9si11119457edw.509.2021.03.22.02.38.37; Mon, 22 Mar 2021 02:39:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gXbh9UMf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229905AbhCVJh2 (ORCPT + 99 others); Mon, 22 Mar 2021 05:37:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229893AbhCVJhI (ORCPT ); Mon, 22 Mar 2021 05:37:08 -0400 Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22BEAC061574 for ; Mon, 22 Mar 2021 02:37:08 -0700 (PDT) Received: by mail-pl1-x636.google.com with SMTP id v23so6235215ple.9 for ; Mon, 22 Mar 2021 02:37:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=NwUM0uQxUqhm1YVIReKtCkfGLNGPmzKidaPgCqb8BBE=; b=gXbh9UMfvUZZiaSKPj0kATlaIUUP7yHi/S4AuIprB1LM1sL3NBD2ibBMw5jhAHgzf9 Ql66huAzH35AmvpUP3mfQgwNfNL4TYfMotCgXSF/Uk6vSmPfRCWofSCmilHmrg/ie2nw GmoBoItlOUdNUdEPYcCY1V1z+lYshyYviRoX6H21LLNR/KFNbds2/uFFKQHdWSrZiRD2 X78CC9qcZ03bvcUXRclDKKICbYzm4Ey36b7kzC4uf8qqmpmec0/sd3I1yWCrQlmQ47LU ca/0OgJgC1owGu3qKZtNtgf1p+Dss+gCs0PkDbm1m6gfFT3auF4SjXPv3rJy6Za2Xgbv wQRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=NwUM0uQxUqhm1YVIReKtCkfGLNGPmzKidaPgCqb8BBE=; b=d7J5+MlJv2Oq/ldm52FrapuZs0AKv89FHEe+6xGLRoijz7l4MW9NmU6+YJrC25znx9 bpJw/9Qc5AAAaQQdiNy/x3SuE0g7WmQhlQpwxeDaVyYYoKD6dYK1IDhOha4s2oiHkeXm Gq7e2vtwdspHqiv6LJMp51gpmkE+vnno/dT6MUDmi99GdHjbs3bGSEAKJcdFMnICnbKi RHW/CcSStDS7YOQOr3acXtW/nnPksJYFd61FRF4Cy4qlbyFvpxzdmWkxw2RrQpCH6JDI uTC4W7iq+HigunfXIZn6lO2P9upc3eP1g1FSuFET42sW/96QLrBp/Auzbly8qzUFru23 B6Xw== X-Gm-Message-State: AOAM531wMIqWhfttHjmDUPzMe3buVhbOSNg7NYuQuw0PCuq6ZtTmTFOK WlT8YFibudff85XYIPr7lfAXqXMLSJS6Jpej1KRo0w== X-Received: by 2002:a17:902:7d8d:b029:e6:4061:b767 with SMTP id a13-20020a1709027d8db02900e64061b767mr26216108plm.32.1616405827745; Mon, 22 Mar 2021 02:37:07 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Robert Foss Date: Mon, 22 Mar 2021 10:36:56 +0100 Message-ID: Subject: Re: [PATCH v6 2/5] drm/bridge: anx7625: fix not correct return value To: Xin Ji Cc: Nicolas Boichat , Andrzej Hajda , Neil Armstrong , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Dan Carpenter , David Airlie , Daniel Vetter , Boris Brezillon , Sam Ravnborg , Hsin-Yi Wang , Torsten Duwe , Vasily Khoruzhick , Marek Szyprowski , Sheng Pan , Bernie Liang , Zhen Li , dri-devel , linux-kernel , devel@driverdev.osuosl.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hey Xin, This patch looks good to me. Reviewed-by: Robert Foss On Fri, 19 Mar 2021 at 07:33, Xin Ji wrote: > > At some time, the original code may return non zero value, force return 0 > if operation finished. > > Signed-off-by: Xin Ji > --- > drivers/gpu/drm/bridge/analogix/anx7625.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/bridge/analogix/anx7625.c b/drivers/gpu/drm/bridge/analogix/anx7625.c > index 65cc05982f82..04536cc7afe7 100644 > --- a/drivers/gpu/drm/bridge/analogix/anx7625.c > +++ b/drivers/gpu/drm/bridge/analogix/anx7625.c > @@ -189,10 +189,10 @@ static int wait_aux_op_finish(struct anx7625_data *ctx) > AP_AUX_CTRL_STATUS); > if (val < 0 || (val & 0x0F)) { > DRM_DEV_ERROR(dev, "aux status %02x\n", val); > - val = -EIO; > + return -EIO; > } > > - return val; > + return 0; > } > > static int anx7625_video_mute_control(struct anx7625_data *ctx, > -- > 2.25.1 >