Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp898328ybl; Tue, 13 Aug 2019 04:27:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqwPf2MUpOnPrwD1HbH62uU0a2Ab+2Uz1naFSrvYg093nve1Lg2cp/sz0n82oYvvpmjsBHQ6 X-Received: by 2002:a17:90a:f011:: with SMTP id bt17mr1750434pjb.21.1565695673430; Tue, 13 Aug 2019 04:27:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565695673; cv=none; d=google.com; s=arc-20160816; b=Eqgovq8MDGu7Dd3cDb7sFhmig+t5+rYzYfEyG8GAMnRUWuqunFGZTdZta/Q5qZ2l44 B/wXCyoUMsJmXXyeqrBhTzkjxHTdoDCa4KQRzQ85EiNgb57mgEB04ILwF7RgYquWer14 SsECMYUp1kYb5jWi0WOuA/0zDNFUDqM6T5bK59gF0ry/Ymx+p2Ug0nxJinqZoDF8eIzC TGFpoRIgUMiV06E0Zx8Z5d5GYEh3jCHiDB8JZhVq0uTItf1MObJTiXqjfO1H6gBwfLuR vJ58WCBJ+iqhTbrVNHsjd/wl8HzKJfG2fN88GJ5GUChIj/FDifhvVFoaMFpAOv/cbeUK bc1w== 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=ol5AM3QFfDlEWODWohtXP8qOpAAXLcmx+5JWol5Dajw=; b=qDZAbOp3KzrXeZ+W/CCQLsdCrl/nJXAaHDS5O7FeXYmhAQNmJ8zZHeyVqiR3p+IrHD eOyBc/ASD0tNGjmYQ7CDDuAm0SBr3wQTKqBfXGtcGWcbSgF38oVGq6tK3bSR8YkUGk9F uTUb7mONdaypolq6Wxw5oRcxKjeB0GarEJrEpq7LtCCiDATTuJBtifU+fLnoRNKo7ADN 3AX0NDHdn8XTCuvJSRstEgcLwwnWLO1HAhKHHucWSu4c1r1RDpDyQvg24iRBXoQXVlxY vW/La+TodOIQpATmOHUyqOCgqJ8BVxjiLE1uTHK7vq4dz8VkVXxAMXzmWUO1EAnw8L3k 5HNA== 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 l3si799661pju.85.2019.08.13.04.27.36; Tue, 13 Aug 2019 04:27:53 -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 S1728471AbfHMK7z (ORCPT + 99 others); Tue, 13 Aug 2019 06:59:55 -0400 Received: from muru.com ([72.249.23.125]:57152 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728120AbfHMK7y (ORCPT ); Tue, 13 Aug 2019 06:59:54 -0400 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 475D6805C; Tue, 13 Aug 2019 11:00:22 +0000 (UTC) Date: Tue, 13 Aug 2019 03:59:51 -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: <20190813105951.GN52127@atomide.com> References: <20190625233315.22301-1-s-anna@ti.com> <20190625233315.22301-6-s-anna@ti.com> <20190627121158.GJ5447@atomide.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 * Suman Anna [190627 15:24]: > On 6/27/19 7:11 AM, Tony Lindgren wrote: > > 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. > > Yeah, this patch does not depend on the previous 4 patches, so can be > picked up independently for v5.3-rc as well. OK applying the $subject patch into fixes, and the rest into omap-for-v5.4/ti-sysc. Regards, Tony