Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp967073pxb; Thu, 30 Sep 2021 23:45:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzE0XPkde1V9NCJXxfP5DFHL8Lju7G0unIw34lGDW8D8+aoagSaGTGHtP0j1/cKfF8TkCZ5 X-Received: by 2002:a63:5264:: with SMTP id s36mr8357551pgl.147.1633070714036; Thu, 30 Sep 2021 23:45:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633070714; cv=none; d=google.com; s=arc-20160816; b=olVn2/8h95a+AeNA6c3EH234herYgGyXjYcn3t4biTMFd+mWKE3WGsNJRVHd8MumT5 mpA6YqaJdQN3BUs4D00eoWkY8QaR25Tn9qTkbrnbsi6+fZIPFoZWKpf6e64JC6g28LDS +GbWSM95nGjGfcfk8/75tcPWz5rf/Lp4yWEOW+xZKoUmnLVlp+iu5bAlGEjD1BbaMBEv UYB1Pinq8Ti1DQuhTmGmmRfRl6Wb9g8W/cfPgYz7bbLsENY5iDRkMtzzu17VKChjBmYC VI8seBr8U4e6L4uJkAMQschnr5NZTMJu7hcvytO9yv/98OMr9vZg4Kcb0i2x1/8bSz91 Eyzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=Nvm+myr4Mhqaozhti8+tFj97iAjscrKUZ6NL1Sc5LZA=; b=tANVv6Tu9OPB/82mscjcyqR1+e4naxSi7tzoR9SnUELnSFHCGFyHde8gnGlPvqYvvZ Fw7Q+GKA0fk7hHKK61OpHfjaqJn0K85VlQj51MWj1Di6tWUPRSV5Yhxc21d6fyJxpkew kkUQG1NwZ0boXPs7Oa7RndH8HxLGHoohcZpuwL7LY7uLAj6YfHlZKk1q8Ni/cFQ6F2Sh jRXZGFF2ypC+Ss0sIF8AQOO7+d8T9pqEXLtqTASg/nlxn8uHA0p9mYyEqOb/eO599F0c 5e9roo+YAXo2GUpL/bV7rE8rdV6+Dg9vtzYr3gnIy4NZXDxhvO3Bld7DRebOlF3ZOo9B BtZA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-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 s11si6421500pgs.367.2021.09.30.23.44.49; Thu, 30 Sep 2021 23:45:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352081AbhJAGpw (ORCPT + 99 others); Fri, 1 Oct 2021 02:45:52 -0400 Received: from helcar.hmeau.com ([216.24.177.18]:55760 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231165AbhJAGpv (ORCPT ); Fri, 1 Oct 2021 02:45:51 -0400 Received: from gondobar.mordor.me.apana.org.au ([192.168.128.4] helo=gondobar) by deadmen.hmeau.com with esmtp (Exim 4.92 #5 (Debian)) id 1mWCH7-0006js-1O; Fri, 01 Oct 2021 14:44:05 +0800 Received: from herbert by gondobar with local (Exim 4.92) (envelope-from ) id 1mWCH0-0003VN-Sy; Fri, 01 Oct 2021 14:43:58 +0800 Date: Fri, 1 Oct 2021 14:43:58 +0800 From: Herbert Xu To: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= Cc: Matt Mackall , Neil Armstrong , Kevin Hilman , Martin Blumenstingl , linux-crypto@vger.kernel.org, kernel@pengutronix.de, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Jerome Brunet Subject: Re: [PATCH v2] hwrng: meson - Improve error handling for core clock Message-ID: <20211001064358.GA13451@gondor.apana.org.au> References: <20210920074405.252477-1-u.kleine-koenig@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210920074405.252477-1-u.kleine-koenig@pengutronix.de> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Mon, Sep 20, 2021 at 09:44:05AM +0200, Uwe Kleine-K?nig wrote: > -ENOENT (ie. "there is no clock") is fine to ignore for an optional > clock, other values are not supposed to be ignored and should be > escalated to the caller (e.g. -EPROBE_DEFER). Ignore -ENOENT by using > devm_clk_get_optional(). > > While touching this code also add an error message for the fatal errors. > > Signed-off-by: Uwe Kleine-K?nig > --- > Hello, > > compared to (implicit) v1 > (https://lore.kernel.org/r/20210914142428.57099-1-u.kleine-koenig@pengutronix.de) > this used dev_err_probe() as suggested by Martin Blumenstingl. > > v1 got a "Reviewed-by: Neil Armstrong ", I didn't add > that because of the above change. > > (Hmm, my setup is broken, the b4 patch signature was done before I added this > message. I wonder if this will break the signature ...) > > Best regards > Uwe > > drivers/char/hw_random/meson-rng.c | 5 +++-- > 1 file changed, 3 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