Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2202260ybd; Thu, 27 Jun 2019 08:24:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqx5spdEL1s1pYWXDmX45laZSjBM34vXbLGW00KzXnQBTF4/AhNJjMU2Fc16xKETL3Bz4y7L X-Received: by 2002:a17:90a:f498:: with SMTP id bx24mr6800580pjb.91.1561649091923; Thu, 27 Jun 2019 08:24:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561649091; cv=none; d=google.com; s=arc-20160816; b=UkdBDHS+p4Ax7t1dmuvu17avD0rQnrLU0yZQjEjUTfOP0JpebSz1mxnCsabZEr92QX yb93sX+HBYTcC/KCGaTPoyiaI7ZViqC3niNz2HJ6Hk7aCAeo49wli0v+58Yfbkjtd3P5 P7dMtlctTAsMJJ+uMQ2BhgKRiSduNMQQeZMkWUU5j5vSNcpHQ7ubUCqjbfO8+dMJgjVg vZHwL5H5m8Lvt7ulSNY7yO53GTPilrBARru/hMCapQxVjkPENOEbdxXqDMW7W9QoyLZU MbOASO0/m32mR43Gif5fzLO5L7lUrj58+sHPqtHKxh14ym1melOzNAl9vEBtin/VAryY eCHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=K+/sisfJQK0iMTmxIZ08y2H69XPOMZf85Fc5VJrJl4k=; b=klFGUsaUmW0QR33pcLGg2XfVSEL+PXPV+BA6Te3Nx196kpwRkATyGkMj0/MXCZztrm /A+DWnVQ9VQyUgg0Bq7uOU5pwLXM7VAUQxQ7VnpDO481OyEcVIfEX4TnPd5ZeEW0NooW ip7jqCsKk76Dzpz9kwRYfpSdTP74rW305qrONcCGl0OgFzSO0XPexc5CQqTwEWPw271M OFzmvkETv3Co4pR5OnR0KLoVre/hC4LIBE8WqLArHJFgEoUsdsjSe4tXMfJherHJoVEA m+m+Gr6fwpPz92L498LYBqub6Ez9Sy8zIXvUr3klQ+4AMxUO34Q2NyNWxtMXdQGBIyTu Nacg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=D6ahYR8N; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g18si950247plq.190.2019.06.27.08.24.35; Thu, 27 Jun 2019 08:24:51 -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; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=D6ahYR8N; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726590AbfF0PY3 (ORCPT + 99 others); Thu, 27 Jun 2019 11:24:29 -0400 Received: from lelv0143.ext.ti.com ([198.47.23.248]:58682 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726187AbfF0PY3 (ORCPT ); Thu, 27 Jun 2019 11:24:29 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id x5RFOMTb080093; Thu, 27 Jun 2019 10:24:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1561649062; bh=K+/sisfJQK0iMTmxIZ08y2H69XPOMZf85Fc5VJrJl4k=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=D6ahYR8N0/WKOucNT5bs+QSPWv64AtntsLnp5fPj/E4hvny/i/YJq5WjZfb+zlXMt b21znpuqY8rT8+cwS+btrffCVxVJBlbQQ7t7auONHLSwnBNITOhL2l6kBIwLIn6DSY YOyf+Uqz8MKLTliR25whKexwpvgA9+RGMIfzprfs= Received: from DLEE112.ent.ti.com (dlee112.ent.ti.com [157.170.170.23]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x5RFOMbj007398 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 27 Jun 2019 10:24:22 -0500 Received: from DLEE108.ent.ti.com (157.170.170.38) by DLEE112.ent.ti.com (157.170.170.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Thu, 27 Jun 2019 10:24:22 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE108.ent.ti.com (157.170.170.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Thu, 27 Jun 2019 10:24:22 -0500 Received: from [128.247.58.153] (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id x5RFOMct103718; Thu, 27 Jun 2019 10:24:22 -0500 Subject: Re: [PATCH 5/5] bus: ti-sysc: Simplify cleanup upon failures in sysc_probe() To: Tony Lindgren CC: Tero Kristo , Roger Quadros , , References: <20190625233315.22301-1-s-anna@ti.com> <20190625233315.22301-6-s-anna@ti.com> <20190627121158.GJ5447@atomide.com> From: Suman Anna Message-ID: Date: Thu, 27 Jun 2019 10:24:21 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190627121158.GJ5447@atomide.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. regards Suman