Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1048087imm; Thu, 4 Oct 2018 07:27:50 -0700 (PDT) X-Google-Smtp-Source: ACcGV61RBMzhJqZMJcovQstPj5DHSF+VHy3OJ28htCEp+YeNA63ijjX1y3cnBg+t0tUM+IhN5i1p X-Received: by 2002:a17:902:830b:: with SMTP id bd11-v6mr6720267plb.249.1538663269983; Thu, 04 Oct 2018 07:27:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538663269; cv=none; d=google.com; s=arc-20160816; b=ML4Y2K9IujFfPntF6B3CAM1WUcyc9irpz+c0j9f92fMSvqNj3MAlXw8fXijsIp+pHV FhuISdSEVH7JNleYUAO+Gx+ht8vAFW6X8941bUamaMQNg6SseRGIQBFglGQ5hHcGugDr gbcRSjQVmT6B6jmyYdDoPLdrL0sw/YgugEM2BfVG30OpohrY3jcPHzaWIciHlBWnm0qT wu4CwiiEKRPk/NeTbPB4Xty3Qj4Z2a569w62aoK8x9kAIcpzHRK8Css3cmn79Hhlvgqy kqg/hXNi0Ji0omaBzvUxiscTe2dLtZUDmdBR6C/Iwbv0WCTKiH9283OmWbFG44YM6ap+ QJkg== 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=DVJJxAi86B+P4zvDTzVcF3B9DzHbYrvVN62WztPtiaI=; b=D+jGHE1XldpKPOspkCpw/TEOstY3V24yhIq6NtTWTza/3FV9JZNoTydsqTYzyi1nmN jU8aODa6vMSE4i4HHahFHA6RGCQaVosTcV8ByC4ELqLij3iHwcvqxqHoX+O4UyLcI5F/ qZ1cPLOwsr5DSsH3G+fPZsOojAYKh31bZGrd+iUvHVWmuIKP0r9+zLCcDYrHddnzErM6 qvLL0dQH7DiM6uonb6jyzfrBAdeMTu60XTA7TDoMGjWbU9Wa6KIBO7e1Jlm1pSCKptqR 0A4xLYf86VV16t73z42+B29E/34pG8pjlkhWedrvnY6DyIUQxs0KEQMB3HMC3wUxZVox 6Gbw== 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 d7-v6si5184233pll.162.2018.10.04.07.27.33; Thu, 04 Oct 2018 07:27:49 -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 S1727595AbeJDVTd (ORCPT + 99 others); Thu, 4 Oct 2018 17:19:33 -0400 Received: from muru.com ([72.249.23.125]:58180 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727381AbeJDVTd (ORCPT ); Thu, 4 Oct 2018 17:19:33 -0400 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 13605809C; Thu, 4 Oct 2018 14:30:29 +0000 (UTC) Date: Thu, 4 Oct 2018 07:25:58 -0700 From: Tony Lindgren To: Andreas Kemnade Cc: t-kristo@ti.com, mturquette@baylibre.com, sboyd@kernel.org, linux-omap@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, paul@pwsan.com, letux-kernel@openphoenux.org Subject: Re: [PATCH RFC 0/2] mach-omap2: handle autoidle denial Message-ID: <20181004142558.GB5662@atomide.com> References: <20181004055147.23048-1-andreas@kemnade.info> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181004055147.23048-1-andreas@kemnade.info> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Andreas Kemnade [181004 05:56]: > On the gta04 with a dm3730 omap_hdq does not work properly when the > device enters lower power states. Idling uart1 and 2 is enough > to show up that problem, if there are no other things enabled. > Further research reveals that hdq iclk must not be turned off during > transfers, also according to the TRM. That fact is also correctly described > in the flags but the code to handle that is incomplete. > > Since the order is first disable all autoidles, then disable selected > and then enable all, we need to either change that order or add > a usecount. Since it is done only in init, we could think about changing > order. These patches look OK to me, assuming Tero will review them more closely. It seems we should just provide a generic interface for clk_allow_autoidle() and clk_deny_autoidle()? Otherwise we'll be forever stuck with pdata callbacks it seems. Regards, Tony