Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp4695593pxb; Tue, 5 Oct 2021 08:27:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJ0/Sb2tp5ZE3Xppdmf+4YdHzaya0Jv0DT1Mk4McioO2b61tKFALjsSdiZKBr+VgXQb/5k X-Received: by 2002:a17:902:9303:b029:12c:29c:43f9 with SMTP id bc3-20020a1709029303b029012c029c43f9mr5874320plb.5.1633447628586; Tue, 05 Oct 2021 08:27:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633447628; cv=none; d=google.com; s=arc-20160816; b=E9YTao+YPQ/tSjw2JYbkDGr9qVPt68mTPQy77rbPt1RtRku0ixsFKrml+RWFGWvfZY HuC+yCj+0TrjYUB+CyTjWdp9kkjUeKv/ClzCeXuq9BVz8BNGjwAcin/Lk4eMRNNOnz7k TKA0VBpxle8lLrvBsq68B2bDVrW20psPVX2bV84W6L26I1djvoTbuBrbUxRTwRbBrMEJ 76+NuDDqkGP6xfQWgXsJzqbeAk/D6JuInkGmDdCseTd1BA7xj17NWVhqWTeJ2GSpH0+/ O6PMzmEsw7y1Jg8wWm+KIieykpqVUUrI0/ncWBJSRUHW/nxHJlR4pyNtyylrBtscC45d bdJw== 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; bh=KSfoUs1RyncvnmPC5NiMdbUYy+WE1in92GvUJZla4GY=; b=EdND01RM1WAZAxwUDpTLVA2nCFBicZ89ZHvFc4/QBWU2axmyB1Gj3dO4uh/XC4W1WZ 8VEdiBUuRXBt9Uin1qG7hsF7cYt8ITFbhvN7GmkfDccda7VMlLD1d5tdS4DibHykly+4 lAAnFqWFpz9kQ+eEB/AmWceZvHsVLa0JJHdkySgEJyjTVUEQuRHbxmTA4E+kxL0spZgE fjlGnVekXeZVPdw+1cBzysT98wuW7hxYBWxEDJylfDZ1Y7aObZQb7Ur3XMMY+PeubAGj 3eDU1YNPLuJn+lrOJjDPzbsT5ACvJDK7cdHb44QrwtIb0ie5PZigze9UiKo/pC3N7r3g fb0Q== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j1si23327341plt.92.2021.10.05.08.26.54; Tue, 05 Oct 2021 08:27:08 -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; 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 S235743AbhJEP14 (ORCPT + 99 others); Tue, 5 Oct 2021 11:27:56 -0400 Received: from mail-vs1-f48.google.com ([209.85.217.48]:36837 "EHLO mail-vs1-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234440AbhJEP1y (ORCPT ); Tue, 5 Oct 2021 11:27:54 -0400 Received: by mail-vs1-f48.google.com with SMTP id y28so10321393vsd.3; Tue, 05 Oct 2021 08:26:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=KSfoUs1RyncvnmPC5NiMdbUYy+WE1in92GvUJZla4GY=; b=lTYDrruJNj2CHAgNSR5f7poVvASO1+IMQuNLlZDtGzJHapP4cRLXvs0YD6dbwBNP6G cf5aP9QC10xADxXjShVKnJ3K3bZ1w2H4YUNIO/y02uBlnDJMzUKJS4Z55Hb50fvy14NX O6IzaorxbulQxi1jw+fYE93JyBZ1/I0qo7Of3tCq45pyKVPLuHoye84T8aNEsfT5p0QL NtN22psd8zSsHQKQVUC0ObZvRni78xK9ycPaIiZ5+KBdnweHwjm8zbrGtNvLg3cSyHI8 O7z1MnLjS0DFSQXnS6Wg56/esPcQFLhQgWaucTNbcZZZ+6lAFVF7p69VTZnx8ch/care 31Dg== X-Gm-Message-State: AOAM531qmkE4Vdy9paW2+NTvG4l6KxBO2T/unSKvL/mQbnleLZqvN0S0 bFpXnUsGhiHat70DWweAPiwxq2Jc5cDXhBB7tDM= X-Received: by 2002:a67:c295:: with SMTP id k21mr16616682vsj.37.1633447562966; Tue, 05 Oct 2021 08:26:02 -0700 (PDT) MIME-Version: 1.0 References: <20210928140721.8805-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20210928140721.8805-4-prabhakar.mahadev-lad.rj@bp.renesas.com> In-Reply-To: <20210928140721.8805-4-prabhakar.mahadev-lad.rj@bp.renesas.com> From: Geert Uytterhoeven Date: Tue, 5 Oct 2021 17:25:51 +0200 Message-ID: Subject: Re: [PATCH 3/6] spi: spi-rpc-if: Check return value of rpcif_sw_init() To: Lad Prabhakar Cc: Krzysztof Kozlowski , Rob Herring , Geert Uytterhoeven , Vignesh Raghavendra , Miquel Raynal , Richard Weinberger , Mark Brown , Philipp Zabel , Sergei Shtylyov , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , MTD Maling List , linux-spi , Wolfram Sang , Linux Kernel Mailing List , Linux-Renesas , Prabhakar , Biju Das Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Prabhakar, Thanks for your patch! On Tue, Sep 28, 2021 at 4:07 PM 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. Indeed, it will now fail earlier if CONFIG_RESET_CONTROLLER=n Patch sent https://lore.kernel.org/all/d4383bd1a97c0490c0bdc9dae5695f4230d4a420.1633447185.git.geert+renesas@glider.be > Fixes: eb8d6d464a27 ("spi: add Renesas RPC-IF driver") > Signed-off-by: Lad Prabhakar > Reviewed-by: Biju Das Reviewed-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds