Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp1196271iol; Fri, 10 Jun 2022 02:18:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwQx9dTch/5HjCszEvAbYsUkQwAB5S8674yAfAz1qEngPNKkBBKOdYr0bR/7Ds1ApNypUuB X-Received: by 2002:a17:907:3e84:b0:6fe:8c5f:d552 with SMTP id hs4-20020a1709073e8400b006fe8c5fd552mr39122666ejc.710.1654852686181; Fri, 10 Jun 2022 02:18:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654852686; cv=none; d=google.com; s=arc-20160816; b=F1osq53iqUOBghMMMajIGKlHHSgwwJu7FArka49KJgS9mEGhMIVaoyiAqLyH5oV/kY f5+CpaWoNKjwxLP+UgoRYCtlaJbebjJi4DMlUgeEbS5iJd7RcL+lkvV96C2BuTMktt5M cG00OWzJjh0nUbDJp86N+DBDbgW0wGdNuUQkUTi/vEI9NNrgubBG1eAA0vxaJhTw4Rms ET4YWSsVGZ7RQYo10XnqyKyLuZqda1SNDc6tx1jsF93UUV/sFYwInvjOh5dEB23KYj8p aIn0IhXpolhsh8jA7jyXp8yzTmbz4C53v0EFdYUldi1vfBDUxlPzoAg1xgPXHf9wikx8 PVLg== 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-transfer-encoding :content-disposition:mime-version:message-id:subject:cc:to:from:date; bh=jwojEcHHeR7edoPfxA6xz74NI9zMDg3XGzPnlo3obYY=; b=YjYrR1z75C6xw+QeH4vZR+VM3POfP/zeB4h4g58MKZIMYJhscWG4VBgezxDk2m5odB IX5OvpT8w5ieWhds7ATA3oWctPDUSP+rlbiO1ohdG/bqm98hjVRzneI7hbTmoauE1fSC 2JXo4Y5CvrlsLZgQSV9NKSyMrTQP6sDQgKgdFr7EiuvAjxF/96GVZtvRzEZW2w7Yoldp xx2w/6uERZteK3cRGFpJZUAitXF3NkmpTVpxtTqGHNlPhwX6Fbm3RH1Ex7CleMa7mTg4 D3t6MN2vqjNmRvGvm5CZAdl6m33xlmB7ZPMP1PnSsmaQO1eqkswPGQZIUB9AyMwIypwH WR/w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jg12-20020a170907970c00b007122a935e8asi566272ejc.101.2022.06.10.02.17.31; Fri, 10 Jun 2022 02:18:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348551AbiFJJQ2 (ORCPT + 99 others); Fri, 10 Jun 2022 05:16:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348143AbiFJJPS (ORCPT ); Fri, 10 Jun 2022 05:15:18 -0400 Received: from fornost.hmeau.com (helcar.hmeau.com [216.24.177.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A07781BF837; Fri, 10 Jun 2022 02:15:17 -0700 (PDT) Received: from gwarestrin.arnor.me.apana.org.au ([192.168.103.7]) by fornost.hmeau.com with smtp (Exim 4.94.2 #2 (Debian)) id 1nzajJ-005MUI-G6; Fri, 10 Jun 2022 19:14:58 +1000 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Fri, 10 Jun 2022 17:14:57 +0800 Date: Fri, 10 Jun 2022 17:14:57 +0800 From: Herbert Xu To: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= Cc: tudor.ambarus@microchip.com, alexandre.belloni@bootlin.com, nicolas.ferre@microchip.com, linux-crypto@vger.kernel.org, kernel@pengutronix.de, claudiu.beznea@microchip.com, linux-arm-kernel@lists.infradead.org, linux-i2c@vger.kernel.org Subject: Re: [PATCH] crypto: atmel-ecc - Remove duplicated error reporting in .remove() Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220520172100.773730-1-u.kleine-koenig@pengutronix.de> X-Newsgroups: apana.lists.os.linux.cryptoapi X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,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-crypto@vger.kernel.org Uwe Kleine-K?nig wrote: > Returning an error value in an i2c remove callback results in an error > message being emitted by the i2c core, but otherwise it doesn't make a > difference. The device goes away anyhow and the devm cleanups are > called. > > As atmel_ecc_remove() already emits an error message on failure and the > additional error message by the i2c core doesn't add any useful > information, change the return value to zero to suppress this message. > > Also make the error message a bit more drastical because when the device > is still busy on remove, it's likely that it will access freed memory > soon. > > This patch is a preparation for making i2c remove callbacks return void. > > Signed-off-by: Uwe Kleine-K?nig > --- > drivers/crypto/atmel-ecc.c | 12 ++++++++++-- > 1 file changed, 10 insertions(+), 2 deletions(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt