Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp214543pxu; Wed, 25 Nov 2020 00:50:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJxmOMNvtFkgAtMxAgqGk65c6htf4IMZzIZtqUi20bhQKPv1Q7Kok0ZqB2jupxZzxBcG8d7P X-Received: by 2002:a17:906:b292:: with SMTP id q18mr2238713ejz.93.1606294237919; Wed, 25 Nov 2020 00:50:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606294237; cv=none; d=google.com; s=arc-20160816; b=STRen411jwMvUoTlx9w4Dx2f+twPT4upk93rYC/BBXp79AMjyVrDDd3KKV4tpwCGeg ehAN5PP/e2gm9AYCTTMgHlE4nFrZ7KBF+ly5Rvkrtq8T5pveRneUQR6lXeuiEEkQSWgN kbbXDLAkrQcqAHHy1CK822QRwe8Qg/w2QbWS5RUHrQeU/7Bk0OBTi9bLAFRB/o2plz2A ttmnX/+SCWxCAkYAG/lwQPVIo4UJBmbEZ+VonDxUk7fCBvtMfDMMyNPWb6V0KZHb85ry CGLT/qptvxJL5NbbAjSgzYg+h3Ca9p5mJB4YU6tf4CrDIeQ4QJgrOUtZbZ6rXbxv/5XL wsyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:organization :from:references:cc:to:subject:dkim-signature; bh=1CiFGI+zAQ3sbdgy5ohjyQFrwpN9S9lbEbuqLPPcRrc=; b=iSPXMXViBb3QiZkLyCDfFONlfsmNq2RKtwCkiC+52qBXZ3nVB3sMvnIFA4IyOxQZDP o27Dkg77oDo2jHKXjwYQB6Hh8xfIsp0i1TGw8Uo1+4br+DZ5vLsBkPxGzKuyykhyr/97 DQmnXeaPUVH1Q++f868ZF6RqTk+PxZfLQcWS5eWi2IFJ/iSaGYwymFb2wSIkNmBgpYY6 8LB9/lhxoceNxekX7wQFpSdkfyM03CniVsu62P5r0C1lGbx8KJNcnZfSe/vwyTWbfPhI mfZxSAfXJ/vtl0ARx8ummwRyQkhU3d7IQlL1u3qWF7gbs60An7AvV+V9By7UwFQhiDHo x0vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="sIrmXlu/"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h8si871982ejj.161.2020.11.25.00.50.14; Wed, 25 Nov 2020 00:50:37 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b="sIrmXlu/"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726651AbgKYIsz (ORCPT + 99 others); Wed, 25 Nov 2020 03:48:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725921AbgKYIsy (ORCPT ); Wed, 25 Nov 2020 03:48:54 -0500 Received: from mail-lj1-x241.google.com (mail-lj1-x241.google.com [IPv6:2a00:1450:4864:20::241]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6EED7C0613D4; Wed, 25 Nov 2020 00:48:54 -0800 (PST) Received: by mail-lj1-x241.google.com with SMTP id b17so1402940ljf.12; Wed, 25 Nov 2020 00:48:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:organization:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=1CiFGI+zAQ3sbdgy5ohjyQFrwpN9S9lbEbuqLPPcRrc=; b=sIrmXlu/HrT1IFeUrE7K8dvjEY9Vg8JWaKtNuINQr9xIkrznrBM18y1b/G16+7tfMC l5ohUg1QLDXZ6662jBthgmh0G2P80PPAybSD+5pSyXIAsAOoAQgzGrbWipN9NFtG6DXe 3iNnfkXxhGRP73zAV2pze1QWRnvEj+DdFCNVu6THWm2adx5nXO11IvU/FlerplW17Hme 8jioAfOhiJUl5kTW8QaYw0mDzcyIX2TrSAg7VIxMi2QZ4fWd9KDj0Ifmw4XV+fuOCB3p drwAhQ69R39cwa1pgwLITw9wJt3iSwg+KW6+alm3UNQF88ZNyo9ql5Nz9JmgXbnJfJNn LA2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=1CiFGI+zAQ3sbdgy5ohjyQFrwpN9S9lbEbuqLPPcRrc=; b=eDnCcYdr2/ZmuzAs6HMpoTO4lIwdZvPjoupNvMJHNVZ/Qvsci+Rjdi5WLBMDDPYDVk 1uwBy28d6cOswhuuEXl1eD/eBMHzcPWyq3GnpbaQwIXNmmkkCWQeGmJfOxQ+GOJFX2FC TWPGX4pzjZBL68F+gBDGOZEzTuuniD0GCruIxLWvb8wufd6ESU1vwGna5ivvkfOM6Jc0 6//mXArBWbtKGU6VN/xLqlyTWHNAk6VIfboVQzxWU4V2syzJMEnBTCfSKY2KrkTdXQcM vre3avw6dkWr7tR9lYfPJ8y2IHJxkR9kuRCecysvO051R8GElJ4djmxrILaYCQqpc6sZ yOTw== X-Gm-Message-State: AOAM531ZS2Ah+eStaShtIZuv5YSjy9HgT2aQE3jJMiznrCd0esD5qqVX K/opVviYtgCoJDCoaBBY9SrA6k6niRYwJQ== X-Received: by 2002:a2e:7203:: with SMTP id n3mr959896ljc.86.1606294132804; Wed, 25 Nov 2020 00:48:52 -0800 (PST) Received: from ?IPv6:2a00:1fa0:4212:944b:4041:d4db:b733:f39e? ([2a00:1fa0:4212:944b:4041:d4db:b733:f39e]) by smtp.gmail.com with ESMTPSA id r80sm176066lff.77.2020.11.25.00.48.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 25 Nov 2020 00:48:52 -0800 (PST) Subject: Re: [PATCH 1/5] memory: renesas-rpc-if: Return correct value to the caller of rpcif_manual_xfer() To: Lad Prabhakar , Sergei Shtylyov , Krzysztof Kozlowski , Philipp Zabel , Jiri Kosina , Mark Brown Cc: linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Biju Das , Prabhakar , stable@vger.kernel.org References: <20201124112552.26377-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20201124112552.26377-2-prabhakar.mahadev-lad.rj@bp.renesas.com> From: Sergei Shtylyov Organization: Brain-dead Software Message-ID: <26fc2f22-eae4-86bc-1c39-e8498b77e1cd@gmail.com> Date: Wed, 25 Nov 2020 11:48:42 +0300 User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 MIME-Version: 1.0 In-Reply-To: <20201124112552.26377-2-prabhakar.mahadev-lad.rj@bp.renesas.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello! On 24.11.2020 14:25, 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 MBR, Sergei