Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp928315ybl; Fri, 16 Aug 2019 06:20:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqxCaBswCeLta0T2zuA3VJibV1jxmJAl7g3w/Qx3u41GBD2d5VyUqh+X4RZKCTt/qL8S9fO9 X-Received: by 2002:a17:90a:ac11:: with SMTP id o17mr7322891pjq.104.1565961642284; Fri, 16 Aug 2019 06:20:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565961642; cv=none; d=google.com; s=arc-20160816; b=d9Cpnq7JjDJQHdvgFadQXRIS8quNpzfrx2w9rjF7h0KzF/46w8wJhlCdfblOui9OqA IDMfvRFvdE/S23wj51xEWCLVVhsGr6bpHtCQ9BTLs1qyb+4TygfDefVqMEqsuMd62XzX iEph08i1IbanLJ21a1ssyPDSY8XGYx9ksZJqLyaYrcxIJAUvCh2OScwbPg9FaW+mrpo4 4Dhg2UQ48e3zril5b6dfFhrZCUOzxutI39MdpDZB20xDn+ne2VfHMOBqqijdnzrX3S9N WJ0XEBs3B05vvoIXYmAcZO/DoBX4/eHv4PyJTjGcIUNIXNfKmyTFGrbmwE2W7pkB4WET PrXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organisation:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=VQvBngQ7B0/rMQugCrqbjdRI3vty22sAABP13MUhjXE=; b=gx3DN7y9Q2MyNiDC04NE/gHmnfp1Awp2Ja4qQYNrQNuUdWNpKTIwxvcNigVMmeMdQA td4ZyZrVarI6dr884n6fccDNUR0SxdxC/BDdqdrtxDLcKAeFQe99xXyexyTXGRejWQIg rlzHVjAKvzD9O31a7dp8kODVRKwdUK/cp/2VsagOjm/HlouenjMJiBxbRYt0+9rcFx2n 9oS1gMibys4upmOlfbORkcC0wsk0G7tm8tEVmBmywSxIVxqLInCwzO72FE9olExd669C EpxksEydMZ5DbVblsHA4dhn2edLZ/ORYrYoY40VbxpGFTL1eG6F0chW4N5GG3ZLh4EIn mrQw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h12si4031539pls.334.2019.08.16.06.20.25; Fri, 16 Aug 2019 06:20:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727253AbfHPNT1 (ORCPT + 99 others); Fri, 16 Aug 2019 09:19:27 -0400 Received: from kirsty.vergenet.net ([202.4.237.240]:54702 "EHLO kirsty.vergenet.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726597AbfHPNT1 (ORCPT ); Fri, 16 Aug 2019 09:19:27 -0400 Received: from reginn.horms.nl (watermunt.horms.nl [80.127.179.77]) by kirsty.vergenet.net (Postfix) with ESMTPA id 0149225BDF3; Fri, 16 Aug 2019 23:19:25 +1000 (AEST) Received: by reginn.horms.nl (Postfix, from userid 7100) id F117D94057D; Fri, 16 Aug 2019 15:19:22 +0200 (CEST) Date: Fri, 16 Aug 2019 15:19:22 +0200 From: Simon Horman To: Daniel Lezcano Cc: Geert Uytterhoeven , Thomas Gleixner , Jacopo Mondi , Chris Brandt , linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 2/3] clocksource/drivers/renesas-ostm: Fix probe error path Message-ID: <20190816131922.rzusel5ylggqo4r7@verge.net.au> References: <20190807084635.24173-1-geert+renesas@glider.be> <20190807084635.24173-3-geert+renesas@glider.be> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organisation: Horms Solutions BV User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 07, 2019 at 08:13:27PM +0200, Daniel Lezcano wrote: > On 07/08/2019 10:46, Geert Uytterhoeven wrote: > > Fix various issues in the error path of ostm_init(): > > 1. Drop error message printing on of_iomap() failure, as the memory > > allocation core already takes of that, > > 2. Handle irq_of_parse_and_map() failures correctly: it returns > > unsigned int, hence make irq unsigned int, and zero is an error, > > 3. Propagate/return appropriate error codes instead of -EFAULT. > > 4. Add a missing clk_put(), > > 5. Split the single cleanup block in separate phases, to avoid > > clk_put() calling WARN() when passed an error pointer. > > Does it make sense to convert to timer-of API? I don't have an opinion on that at this time, but as an improvement this patch looks good to me. Reviewed-by: Simon Horman > > Signed-off-by: Geert Uytterhoeven