Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1173583rwb; Wed, 26 Jul 2023 08:34:31 -0700 (PDT) X-Google-Smtp-Source: APBJJlE5s8v49O0mz7VOWlZDLRlUBDzx2sEiO71rwKj7RC5GZsNcq9JvrCH0GPYA/YVg+Ivyfr5q X-Received: by 2002:a05:6a20:2585:b0:138:64d4:b040 with SMTP id k5-20020a056a20258500b0013864d4b040mr2710420pzd.54.1690385671359; Wed, 26 Jul 2023 08:34:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690385671; cv=none; d=google.com; s=arc-20160816; b=W6Ed27EcTjHNUp7F5BDvhRaGjoODK2pMimg+y/q8GMXCITxiTwiOtgwOr8wOD8UNbq nn3GD8AE7cr79cK/gK+oipAmn+AflGs7Y7GraSnOnpzCODP0nms565Ksu6l5C9LQA/Gs 2T/1tklTAmXxRnUg+giStEJaPKGuM8N+tVCde8CyacWwutQQZKWx4n7/5y2RR72E/LaU 6wzzS8iNQ+7//17XOMHGMPnTS/1tDCrjnNoFnMiEAjGLWlLt5703vlyaBi1V02W3m1hT HrG8Vdk9/onVYTikt9ApblXHWN0k2zOHntPgqPzB6OS3KLWPJ/mZnZQtDwhYu+TxnQvj mTVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:from:references:cc:to:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=7rjg781XdUTQAqURqjn1JSJXPKVUM0f0gbBRuaXb5cc=; fh=8acD9qnKOarHGYiPtssZBYpsdgNLI1oIiUxvA23XmeI=; b=JGxaEIJMJRunVM3A94ZbHtcztlZqCbfZsVlAKZTsmG23UGiY+mM/nfZSteumhzjlaI Rfa+L65PY2siGP1fKY3SUk3/JJSlhxkCbUyR6ydSYfFMtvzidoERyfKDPesAlfro7Ng2 igXKacaVmXBV9QvKI2LO9jUT4hKT1t6XkP0DEHb9cA8wIwsRXOQviAw8g+fR98m14nXs JaKdPvx8S27N7OWEN/O32AQhqebwIerUM8Wek0XPw6p05qJNv0KF/MFWKg1XZ1Szh/4A kBlBOZqMnXDD9X4WU6fVPdsCqPQXBwxV4CS1KjoYolg3LJ/lc4kKdL7hM7sZ74/cciBz iEzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=Jpw8XzV8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a27-20020a63705b000000b0054402b987f8si12812027pgn.605.2023.07.26.08.34.18; Wed, 26 Jul 2023 08:34:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=Jpw8XzV8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234352AbjGZPCT (ORCPT + 99 others); Wed, 26 Jul 2023 11:02:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232345AbjGZPCR (ORCPT ); Wed, 26 Jul 2023 11:02:17 -0400 Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 218522109 for ; Wed, 26 Jul 2023 08:02:15 -0700 (PDT) Received: by mail-pl1-x62e.google.com with SMTP id d9443c01a7336-1bb119be881so51987475ad.3 for ; Wed, 26 Jul 2023 08:02:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1690383734; x=1690988534; h=in-reply-to:from:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=7rjg781XdUTQAqURqjn1JSJXPKVUM0f0gbBRuaXb5cc=; b=Jpw8XzV8A2e/05xUBfm+cLtDu0GStAf1xM2M2jvgjes8PiKbhDp2NuYRDQ0KmiNYNw BMhDmXpq462iLz1ep17ZNjx1yFNurh+drfpcl15ANsUn7iYCfDFKoluj3MMDFrVoNs10 PwOyFGtRwhESrSTddXjFpRP4pMIHkn0tFpsM4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690383734; x=1690988534; h=in-reply-to:from:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=7rjg781XdUTQAqURqjn1JSJXPKVUM0f0gbBRuaXb5cc=; b=CbKLPJecKQP/zasFKPhFNKdC/uZfooEGEyH1sKfjUFfkzneAbjonOaSZiD7RpeFtoF fCTd9jCcsA/Io2HbxO2HmFu312V9Vljp/9WJ2LApaUzDuN0Cx1ZeMArtMZb2Vu4ZLkiR 9pM8vzhhvJbSnCWH2Q9n5WCZs1zSE4QO6d31ZVgwQjkhzusAMgkftqJ0taUlnC5em5GQ m+XmAvtZotxXw9azhKLLLOAdSZPsaE3rlKr5yfzznRWEer8XfJRa+rTwkJuVpturhu3m rNjdNK6hpDiMJLf0ZurxmkZ6bcXFVc/gJz1xPWrDCTMzhn0sUiXAan9LAgJMpYlezH41 F2og== X-Gm-Message-State: ABy/qLZBwRCzQq2GxcZwTi3ivv+hNkgEhrnnxRc7WYGUdfiL/vh6YSJB rkerkz9IMgWtooyH+R7GjCoHhw== X-Received: by 2002:a17:902:c3c1:b0:1bb:a231:847a with SMTP id j1-20020a170902c3c100b001bba231847amr2228856plj.44.1690383734255; Wed, 26 Jul 2023 08:02:14 -0700 (PDT) Received: from ?IPV6:2600:8802:b00:4a48:219d:3ea8:3ac1:9d26? ([2600:8802:b00:4a48:219d:3ea8:3ac1:9d26]) by smtp.gmail.com with ESMTPSA id p7-20020a170902b08700b001b3d0aff88fsm13220363plr.109.2023.07.26.08.02.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 26 Jul 2023 08:02:12 -0700 (PDT) Message-ID: Date: Wed, 26 Jul 2023 08:02:10 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH v2] spi: Use dev_err_probe instead of dev_err To: Wang Ming , Mark Brown , Ray Jui , Scott Branden , Broadcom internal kernel review list , linux-spi@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: opensource.kernel@vivo.com References: <20230726105457.3743-1-machel@vivo.com> From: Florian Fainelli In-Reply-To: <20230726105457.3743-1-machel@vivo.com> Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="0000000000000c7d76060165222c" X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --0000000000000c7d76060165222c Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 7/26/2023 3:54 AM, Wang Ming wrote: > It is possible that dma_request_chan will return EPROBE_DEFER, > which means that dev is not ready yet. In this case, > dev_err(dev), there will be no output. This patch fixes the bug. > > Signed-off-by: Wang Ming This looks reasonable, though could you use the same prefix that was used for previous changes: spi: bcm2835: Use dev_err_probe instead of dev_err with that done, please add a: Reviewed-by: Florian Fainelli -- Florian --0000000000000c7d76060165222c Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIIQeQYJKoZIhvcNAQcCoIIQajCCEGYCAQExDzANBglghkgBZQMEAgEFADALBgkqhkiG9w0BBwGg gg3QMIIFDTCCA/WgAwIBAgIQeEqpED+lv77edQixNJMdADANBgkqhkiG9w0BAQsFADBMMSAwHgYD VQQLExdHbG9iYWxTaWduIFJvb3QgQ0EgLSBSMzETMBEGA1UEChMKR2xvYmFsU2lnbjETMBEGA1UE AxMKR2xvYmFsU2lnbjAeFw0yMDA5MTYwMDAwMDBaFw0yODA5MTYwMDAwMDBaMFsxCzAJBgNVBAYT AkJFMRkwFwYDVQQKExBHbG9iYWxTaWduIG52LXNhMTEwLwYDVQQDEyhHbG9iYWxTaWduIEdDQyBS MyBQZXJzb25hbFNpZ24gMiBDQSAyMDIwMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA vbCmXCcsbZ/a0fRIQMBxp4gJnnyeneFYpEtNydrZZ+GeKSMdHiDgXD1UnRSIudKo+moQ6YlCOu4t rVWO/EiXfYnK7zeop26ry1RpKtogB7/O115zultAz64ydQYLe+a1e/czkALg3sgTcOOcFZTXk38e aqsXsipoX1vsNurqPtnC27TWsA7pk4uKXscFjkeUE8JZu9BDKaswZygxBOPBQBwrA5+20Wxlk6k1 e6EKaaNaNZUy30q3ArEf30ZDpXyfCtiXnupjSK8WU2cK4qsEtj09JS4+mhi0CTCrCnXAzum3tgcH cHRg0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