Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2437596pxu; Sat, 28 Nov 2020 14:07:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJx+kU6/4yGJvPF0wxIrk1HrM4jVKX/M7Ol3c5dF3iEvnillGYJMekUy3gFH1gzb+wmey2tn X-Received: by 2002:a17:906:6414:: with SMTP id d20mr14118380ejm.82.1606601242431; Sat, 28 Nov 2020 14:07:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606601242; cv=none; d=google.com; s=arc-20160816; b=shms9mechXRYkeoJNWokr656qj5Vug5LErTtUxk1BEYzq3gMdmZTmESFEgcGE1GefQ LiabMo3nc02GG6oxPhOzBKmB5f7FhWrIFcopMbiJHLpYJR0Lx8zR+AMBmQH5FPD/OslI byfdoXN4/Ldi/9UGtYr4HBB4fe8xqmSulOg7Bi77O1A3IqvZIrndP1NdX6L5EAxAOW+J BPfGKUjXbCAfPXxNZtPnDIkLdHfMZfb42uvsVRcd08XUiRNiOwSSU4vxzX9N7Oe4IqNY 4y2ZFnjftPLTbr7eDAAbVY2LgixA5OwPI9o7yeYpXNsIkXBbARtiFkvNjhyktOQineDO fGgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=Pg/nt8j3UsZLPLuK400Pi+qxlfumMxN5pMJ4xzsHKD0=; b=nNE0cjLScpLoIpHVHaYfnxIrQ3A27Ckt1U5enhs0jDG3dH0wvgzVYPSaV5Vks9UQS+ ea25YhnpHPX6Vd5X6WAWksAj+I7BShli7otOJN0cMgReX5n4j7mgjAmRvqO26DOtQIDh fZ3V+ztXUV2uektSQz0pJIBKYYEgo3CIudN2DKG4/pVFMcj8ZLm5IStuZVbFcwqt4Txe /aGElhM+UnqZWM570YYwHvy1grFnmgaHRe12pcRJH6ZGUhP6YHQfqsq0csgQVz6BKcFc ksdl+wqHsBCPggKxIukIfcv0IMvYnol9dzAsD+xN6UYydMzO0mCxMJHw5V5JzpYn1xKO uYnQ== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h8si8020608edf.565.2020.11.28.14.07.00; Sat, 28 Nov 2020 14:07:22 -0800 (PST) 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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733263AbgK1VuY (ORCPT + 99 others); Sat, 28 Nov 2020 16:50:24 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:40397 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733260AbgK1SOz (ORCPT ); Sat, 28 Nov 2020 13:14:55 -0500 Received: by mail-wm1-f66.google.com with SMTP id a3so9996792wmb.5; Sat, 28 Nov 2020 10:14:32 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=Pg/nt8j3UsZLPLuK400Pi+qxlfumMxN5pMJ4xzsHKD0=; b=C4DZWlgYO5BMiHy2j75e5hBXaieD6pWYNGLV6hqIPpVOdZACjPqVTWqiiDoN78y+eJ 14h/x9XxWX5WzIOUdjbIAdRAUu6u8D236w9XprO+LiK67wfrImach1NSg3exjCtMEuBh LAKrfvW8kUT6+ofzye8GDdtE6fRHT7vY8QlsPf+M39XuukQw/sh0nyVARm/8v0tTyur4 YCfowVmS/mbCma5bguSTs3VIyraRUw3k1sFyCIlMrFHUAMtd+sV4Q9x+goqGQGcaNVuL MGb2rWWt6dDS7Ur6TDzNxAZbtTKNjlRGVKcz+HO9DOhyGRIcb1P/PnXexjkoztARe8XN btKg== X-Gm-Message-State: AOAM531TQ/Vn89oGX7L/ldQbqxFKdba+0lh0xFDoyAhBsYEt4R192gxi O31Zw4GYekS65wXH9rGWkkDzS4v0Xkw= X-Received: by 2002:a7b:c0c9:: with SMTP id s9mr1761933wmh.175.1606563134029; Sat, 28 Nov 2020 03:32:14 -0800 (PST) Received: from kozik-lap (adsl-84-226-167-205.adslplus.ch. [84.226.167.205]) by smtp.googlemail.com with ESMTPSA id o4sm16925991wmh.33.2020.11.28.03.32.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Nov 2020 03:32:12 -0800 (PST) Date: Sat, 28 Nov 2020 12:32:11 +0100 From: Krzysztof Kozlowski To: Lad Prabhakar Cc: Sergei Shtylyov , Philipp Zabel , Jiri Kosina , Mark Brown , linux-renesas-soc@vger.kernel.org, Pavel Machek , Geert Uytterhoeven , linux-kernel@vger.kernel.org, Prabhakar , stable@vger.kernel.org Subject: Re: [PATCH v2 1/5] memory: renesas-rpc-if: Return correct value to the caller of rpcif_manual_xfer() Message-ID: <20201128113211.GA4761@kozik-lap> References: <20201126191146.8753-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20201126191146.8753-2-prabhakar.mahadev-lad.rj@bp.renesas.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20201126191146.8753-2-prabhakar.mahadev-lad.rj@bp.renesas.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 26, 2020 at 07:11:42PM +0000, Lad Prabhakar wrote: > In the error path of rpcif_manual_xfer() the value of ret is overwritten > by value returned by reset_control_reset() function and thus returning > incorrect value to the caller. > > This patch makes sure the correct value is returned to the caller of > rpcif_manual_xfer() by dropping the overwrite of ret in error path. > Also now we ignore the value returned by reset_control_reset() in the > error path and instead print a error message when it fails. > > Fixes: ca7d8b980b67f ("memory: add Renesas RPC-IF driver") > Reported-by: Pavel Machek > Signed-off-by: Lad Prabhakar > Cc: stable@vger.kernel.org > Reviewed-by: Sergei Shtylyov > --- > drivers/memory/renesas-rpc-if.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) Thanks, applied to mem-ctrl tree. Best regards, Krzysztof