Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp1999849ybd; Thu, 27 Jun 2019 05:12:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqwXzBY4/Dr52aoJhoWPBWdzNND+UBULAnr3+ZqpJijdF8a9anNjKoFmab0N6YE9UVYpFlQx X-Received: by 2002:a63:5508:: with SMTP id j8mr3443282pgb.278.1561637560242; Thu, 27 Jun 2019 05:12:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561637560; cv=none; d=google.com; s=arc-20160816; b=F0PBRXYsVxRrikeoD7FnWvZ1uBbfYJUdd1sqB1Eiu+Ucfh7BiBmyH1jP8kyoAU+GZt MK8BfzO52al6xpFVC6wwJdW2qUoQ8xqFY6RUf8BfJlfvAjSp+00ki/WfTStWOW6IBnBC LB62VsTkhfro5ZaXFflO6Se6P9yhzrX3xfHMZ6FNcAEasaTfV9FXZ6xYchVEx/nxB1aS 3UGpoc8Q4AXe45qxl+Zl5WnsOl+obi0hQtmVJuT0Y1OPpP3YjdLRavolWMdJDmDhSnkH Cb1y5pUKoyOShenXizXZpvSVMinT6Qg1sRuV6d/gOyGJp2tpLVeJYM64IEQT0t+ukNdi 46Fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=25vzFrEygtdjFj9GGmISmcrKW33WzgVEHzJg9ynaYII=; b=vGk3VpO3DWht+rCJpFnCWWTMEosUsmZY+9+JNszfva95IS+GMsjKdTB9zkWu4hejZA 0wroh4kDk3NQ/KfdKiR/5yg64oSA0GMfnOz2KdA2QuE+SvYm0N9ePss4vHGUrMRyTGCu jf1AsBf48JfAGMFQcEGto0Ah1Rz6gTv5luBXcobBmjwVFyRhhModY+A0bCT6K51taG1R wmgOLrR1S2kiVqsBtVRjILX6tjXvjIfolsOkDqaM3YjcOfFhG7xfzw3W5gpW97aJktND 0yJmkKu0TIknspU/7mod7SSbnOHztpy42W74oAMx/auHGv7EoJ8MrGi2WxqqS7IasjXZ ychA== 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 e25si2851866pff.30.2019.06.27.05.12.10; Thu, 27 Jun 2019 05:12:40 -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 S1726836AbfF0MMC (ORCPT + 99 others); Thu, 27 Jun 2019 08:12:02 -0400 Received: from muru.com ([72.249.23.125]:53730 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726465AbfF0MMB (ORCPT ); Thu, 27 Jun 2019 08:12:01 -0400 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 4CED2805C; Thu, 27 Jun 2019 12:12:24 +0000 (UTC) Date: Thu, 27 Jun 2019 05:11:58 -0700 From: Tony Lindgren To: Suman Anna Cc: Tero Kristo , Roger Quadros , linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 5/5] bus: ti-sysc: Simplify cleanup upon failures in sysc_probe() Message-ID: <20190627121158.GJ5447@atomide.com> References: <20190625233315.22301-1-s-anna@ti.com> <20190625233315.22301-6-s-anna@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190625233315.22301-6-s-anna@ti.com> User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, * Suman Anna [190625 23:33]: > The clocks are not yet parsed and prepared until after a successful > sysc_get_clocks(), so there is no need to unprepare the clocks upon > any failure of any of the prior functions in sysc_probe(). The current > code path would have been a no-op because of the clock validity checks > within sysc_unprepare(), but let's just simplify the cleanup path by > returning the error directly. > > While at this, also fix the cleanup path for a sysc_init_resets() > failure which is executed after the clocks are prepared. Sounds like this should get queued separately as a fix for v5.3-rc cycle, probably got broken with the recent ti-sysc init order changes. Regards, Tony