Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp5861765ybh; Wed, 7 Aug 2019 12:43:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqwjgOUNjI/pDxUCepe6Is6Ln0lziNPeadwCMgLG4Vk3JgvY7zj8n5GGGec7b+why4D7lqPh X-Received: by 2002:a62:1c5:: with SMTP id 188mr10680699pfb.26.1565207015668; Wed, 07 Aug 2019 12:43:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565207015; cv=none; d=google.com; s=arc-20160816; b=edJ49YfojgPTNzPOPoj4X9JxHMrDaPEtMnLV+hmbA0D57ehdxtr/aoxODHwMbj89V6 HhEVa9ovmoNHKkh654H+E53gKwLId2KG+OoQKI5LaVfFXOeUME795TJ8fFE9LR+nc+SC dvfiQ1xFwOWHFY3oHBI6L/SCEv9Ql0L7rIL6lEAh/+sMeAdd2hroDufavp/QgGAGLOqv 1Ys9u3xkGV65wFp3mDkslOVhK6QQKbaY/AJVOvnPjVJJbL0Lk8ssathWIs/im9wS10ZR lNdhuPwwiMj9tEk2sTM09xD3lULBcG4ZfvRxFg5ofw29V6Ha8Un8zjvr2th93r+xAuKa EjpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=ZXupRDzgpFO1W45CVIYMgKHhIpXoLsIBFZrG7vpgwSA=; b=kgoK6jpN/xcsceWwI3PNszl1iYdOWfeRD+eoIL9uExOBABZo45wWeSH4F5Sl5Ir8at Kx/TSkgQgxl4lkZ4PH5KQxr8mLA9wlF2NPKWeW4+Ahmn/HXdCddqYPydCsTL0fepuONG qelaekUc7AHfdYH32bYi1JQZLrYT5e/7aHyCzEHijstl8+waqPi5vtw6+z8Gk27pinVC 0keBm51pEVvJhxoOItjLzxjVJmv2KZP3qrSGzvqzwCMJ9Zb8dghV99dPiAKUcy9lTSpH 8JYLovoH2+mNF1wWa0kkltxR0RNWcb/d5vRa26Gv+6/AdcoubI0F3afnJZs+4+HUy82A sCwg== 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 i127si48384889pfc.177.2019.08.07.12.43.19; Wed, 07 Aug 2019 12:43:35 -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 S2389405AbfHGS4g (ORCPT + 99 others); Wed, 7 Aug 2019 14:56:36 -0400 Received: from mail-ot1-f68.google.com ([209.85.210.68]:37532 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389329AbfHGS4g (ORCPT ); Wed, 7 Aug 2019 14:56:36 -0400 Received: by mail-ot1-f68.google.com with SMTP id s20so42993445otp.4; Wed, 07 Aug 2019 11:56:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ZXupRDzgpFO1W45CVIYMgKHhIpXoLsIBFZrG7vpgwSA=; b=NBwGQC9dPiPWAfKMh4MwiU9bMTvw1iUhl7Gn44oZUr9fEC6E3ttwCqaT+XZ+5jQRRo 4iPjMLmHtw7dEiOfPlpxiNrsJbhw8rpqx42MscvageK9f/HHA4iwYRfmbGQ1OSXU1MvY 21INFuWMBhZ4udrW6B90MbIlobetJ0sgwy+1iabRad+gx202ODDNSNSnvbwpO+kmV6ow b5XuaOlk++s80BjpHucVoYyNtB+gnnOKEyjFctL33TCVeGIFU2RlhI/ReFmTuJeTSlYN 2QEo23WAoxlMH7bQVWrXeM/FqZshDWYYFU3+gQE4KBJXCBrSYSl54w/5M27bCFtpK5bO +4xg== X-Gm-Message-State: APjAAAWG/6eUw5ZmA8/7GcqiXUVJRaBAiX01e+jtbeiPrjFMCGWPgSOH a/iBMxd5GK7ANluO/WVawS1BwByRmcuoQBNAThs= X-Received: by 2002:a9d:5c11:: with SMTP id o17mr8576876otk.107.1565204195150; Wed, 07 Aug 2019 11:56:35 -0700 (PDT) MIME-Version: 1.0 References: <20190807084635.24173-1-geert+renesas@glider.be> <20190807084635.24173-3-geert+renesas@glider.be> In-Reply-To: From: Geert Uytterhoeven Date: Wed, 7 Aug 2019 20:56:15 +0200 Message-ID: Subject: Re: [PATCH v3 2/3] clocksource/drivers/renesas-ostm: Fix probe error path To: Daniel Lezcano Cc: Geert Uytterhoeven , Thomas Gleixner , Jacopo Mondi , Chris Brandt , Linux-Renesas , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Daniel, On Wed, Aug 7, 2019 at 8:13 PM 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 know. Will have a look... 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