Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp316344pxb; Thu, 30 Sep 2021 06:44:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxfWszrEpM83QON+JWMyfdr9j1VmILnz/tlOmvjOKAzMq2vxL8AWdJMrg/IAMtgEziA0VlR X-Received: by 2002:a17:906:3157:: with SMTP id e23mr6954945eje.29.1633009471424; Thu, 30 Sep 2021 06:44:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633009471; cv=none; d=google.com; s=arc-20160816; b=rmQyRXCvfHDv6LH3C5pNOUB6lpUtrUhJ6d4D9XKYj8eaNjsGQWElpYZwWotUBHA8uL RjY8A2GsHKout+b4/PK9BpLP4VwLtSjpCErU7c2ZZbyqDHt8XVh6AG17enTNGjbAY3jq FKK+l3eZjdRR3KkagxZT/u93+w/ZvT4PRBtjHp6CC/0CZY/zs+icwznWqvr/DwEkS6RT L+2b7Gwj8deTb06k+bx8voHyTbwg5Cpr8VKQqJEUq9vWmmAKx3aTwxFlsHBJpkCo/o8W fbbCVxlw3meqdZ2COnEaTP5hW8/iTLaqmcXMDxSux5Wv/Ocg1xnnSqNo/aMZxmkBBuKT 3RfQ== 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:mail-followup-to:message-id:subject:cc:to:from:date :dkim-signature; bh=rpIWuAp9ZNmG25KjbAPLOGuH7M0lsNvKK6EG741biUk=; b=G5tmW9sj54/+Ej3wRloExHmU2GCJfhiJjCgDUSrAaXnPflI+o3F72Hi/P3v47uTGkT +orSIWpimGCwow2C7yHH4xLJl+UGH8rQbgLHL6p1nX6vqbqHJBfsVJgIRWqnMd06jU5T V1OYtB8j30CATaBplsFX+TddT0m/FQ8y/ihpG45E7un+n/Lp4vKs6u/eHmFCE0bBLTNI aqkNCZOaA3BpdD58Erf30rbuyKO04MMAlEwxbEhOPdNomWmQxoOMrU5h76i0UvdiRV0G Oxv8oRrxbaYTTjyZLQlemT+ZPUdnmoKfL0O4tpEQiTOISlCLHlXL2XXJ8yQj50JmJJio HuTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@sang-engineering.com header.s=k1 header.b=f1XyGz7o; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s7si3396573edi.502.2021.09.30.06.44.04; Thu, 30 Sep 2021 06:44:31 -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=fail (test mode) header.i=@sang-engineering.com header.s=k1 header.b=f1XyGz7o; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351691AbhI3Nnm (ORCPT + 99 others); Thu, 30 Sep 2021 09:43:42 -0400 Received: from www.zeus03.de ([194.117.254.33]:56814 "EHLO mail.zeus03.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351466AbhI3Nnl (ORCPT ); Thu, 30 Sep 2021 09:43:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=sang-engineering.com; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=k1; bh=rpIWuAp9ZNmG25KjbAPLOGuH7M0l sNvKK6EG741biUk=; b=f1XyGz7oEPJZaD/2Xu6LZDdIa1ofgTsSXFo4+3x0R5w+ 5mEK69p3J8zOK4+JqRmH9yB1WX4n2xNhpaz5jSY0QeVKLoYAonDpc23dPYGqA2yX opCkuDukYdsFdQ+9iwai1b6sVe4Yudg/7lRHH3HbyCGivgq9G8uyIVnkhE8JVHg= Received: (qmail 2094768 invoked from network); 30 Sep 2021 15:41:57 +0200 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 30 Sep 2021 15:41:57 +0200 X-UD-Smtp-Session: l3s3148p1@2cs+nDbN0oQgARa4RV6LAWawlO8I9jL3 Date: Thu, 30 Sep 2021 15:41:56 +0200 From: Wolfram Sang To: Lad Prabhakar Cc: Krzysztof Kozlowski , Rob Herring , Geert Uytterhoeven , Vignesh Raghavendra , Miquel Raynal , Richard Weinberger , Mark Brown , Philipp Zabel , Sergei Shtylyov , devicetree@vger.kernel.org, linux-mtd@lists.infradead.org, linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Prabhakar , Biju Das Subject: Re: [PATCH 3/6] spi: spi-rpc-if: Check return value of rpcif_sw_init() Message-ID: Mail-Followup-To: Wolfram Sang , Lad Prabhakar , Krzysztof Kozlowski , Rob Herring , Geert Uytterhoeven , Vignesh Raghavendra , Miquel Raynal , Richard Weinberger , Mark Brown , Philipp Zabel , Sergei Shtylyov , devicetree@vger.kernel.org, linux-mtd@lists.infradead.org, linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Prabhakar , Biju Das References: <20210928140721.8805-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20210928140721.8805-4-prabhakar.mahadev-lad.rj@bp.renesas.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="fmwXyugRvFzLlAzO" Content-Disposition: inline In-Reply-To: <20210928140721.8805-4-prabhakar.mahadev-lad.rj@bp.renesas.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --fmwXyugRvFzLlAzO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Sep 28, 2021 at 03:07:18PM +0100, Lad Prabhakar wrote: > rpcif_sw_init() can fail so make sure we check the return value > of it and on error exit rpcif_spi_probe() callback with error code. >=20 > Fixes: eb8d6d464a27 ("spi: add Renesas RPC-IF driver") > Signed-off-by: Lad Prabhakar > Reviewed-by: Biju Das If it fails, we should really bail out. Reviewed-by: Wolfram Sang --fmwXyugRvFzLlAzO Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAmFVvqQACgkQFA3kzBSg Kbby2hAAqjZsRM4m18UG6QCICxShrPpcJzI1sH6ogMykOFUrDeZK/bHfa6DgEwfW U4Z9iGiHB2jyR2VhWzw3QXvvTirVy8oLS4g7H3oz9FnJHWcPFrxCFs/rby/PyiOk WG0sYm7Xbui6A7Qto4z5ua3K/ea8UEMSoTaf9Je+fb0YXLnvh2b6k7APv/qC9xBK vYhRy6qDB6VcxZKTlYIZotL58s4oxHNb6Pe9idPiA6U1pRKOSYzB1ecUctiRAtW2 f0CJ05OSrwr7S5XUnJUL0oLFS4m96ICebUyMicn7b4z1k5qg+O2UabDVwFa5zpiv pAhIor0d6vncJ9HI/k1PdTFB0AkHkYnu32NIhGXVn4c6SD/sIYQxCKGALo5P0XIQ nKfVxzopvMYLfsPt2bFIcRx6ngjhxHQj51lVBpQw0KH0odvkoKqGcrixpKnmQ6us 9q2b302MA63zw3qpfQW/wb4JZFVR4s92pqi+rFeAb4+QbfibCr99MhKXKOpRn5bS lwedVUBYqXCzAwDVS2MhFaPPP+Q8UsqhHDo//I9W/WdZF6GPB3PBCnKUI18wtPCP F8GMd3b+wEe28sZFFD/BZjZ7/Cqctv29FCxRlx+xy0fWgOf+HU0eUKuBE88D1Eku NGqjtFvCob7wd/UHTFRurE//SkA3TaolkY8r5KL4h6QwezGE1ZQ= =jzQb -----END PGP SIGNATURE----- --fmwXyugRvFzLlAzO--