Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3514605imu; Fri, 30 Nov 2018 01:23:14 -0800 (PST) X-Google-Smtp-Source: AFSGD/XlHKryUPatRM67gZywR1q8D2cnkzkvAE7LWyl0czuMUlRlmifSd8LSSWMyewQO/kY4rAhn X-Received: by 2002:a17:902:a03:: with SMTP id 3mr4995349plo.112.1543569794714; Fri, 30 Nov 2018 01:23:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543569794; cv=none; d=google.com; s=arc-20160816; b=q656ieFDcRI/pjSioHnAv1DL2FAV83SEmlQFCfU+OwKqV8kFRB7R1JMWgO1jOHp/Ce PmeNZGvNcDF4kswAt3p3TLNaejoh/Z7Eox4qbneuElmOq5iXylxD0Yn4GNtRBMDuA/tU MgybX84wr9yT8EtAgqk5Unn05oGhkCf2k5g1HhaZaEaTrcLx9TO5i3BdUTjMUINXX2ck YWU+dPpqCxshVt0uyiV5wIsufJnkb7GUNF3qV9wetjxEPU2/F++JSBscQcYDVcoBB7UA wFIE91hcItD+eof6sgNIBeYe7gL5qLU2+8faObbJnpy7n41Twn1hElVdFz6y2p+cVHO9 gPHw== 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:to:subject:dkim-signature; bh=yDvRztIBD9GMAuTYT4+whwL3Ir7313jBzki3jwa+Oe8=; b=BLjG/LyvydqitWcXFIkHWqmoWJZHFZc4dnC/UPOUllDlwZAh0fhhjkVGC3N6HiR43m KLP9HsWPonaoUE4Jc6OlrpsqF3cDwKoDx8HEv/GHCRHOQendvyaotLN0dBdcS8P3qgbc MAUVp+5OGcmEd38uosKqzzNWnrfr0lcXzC5uzNaL5WG6JRggptOJStDFSyAek7Phi/FY zvBSZyQ7gmEYeoZ/AnggnS3KrOMbAhl9KyMwPbV+renBs0B6QHWBDsBN0yEZ8AG/qeO/ G4UO8Pvd1iByR/7e/1/WOAcjaH2ei+wBgexPlMQl79YSE5F79kExKFgbmKpK9kUsz1CM 1vDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=nowMZAGP; 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 y141si5194201pfc.180.2018.11.30.01.22.59; Fri, 30 Nov 2018 01:23:14 -0800 (PST) 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=nowMZAGP; 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 S1726659AbeK3Ua5 (ORCPT + 99 others); Fri, 30 Nov 2018 15:30:57 -0500 Received: from lelv0143.ext.ti.com ([198.47.23.248]:54324 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726473AbeK3Ua5 (ORCPT ); Fri, 30 Nov 2018 15:30:57 -0500 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id wAU9M2dh087959; Fri, 30 Nov 2018 03:22:02 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1543569722; bh=yDvRztIBD9GMAuTYT4+whwL3Ir7313jBzki3jwa+Oe8=; h=Subject:To:References:From:Date:In-Reply-To; b=nowMZAGPbX5Hh5pZo0BCAZYKgyvb/3eJO5nSjAYo7AHY2glXb6cR7XwDnF+DcBpy0 xF7hGjRUtnU+SLXiz4aSq7UJpnf7apk/krgetz/jW4NieEX+fEPi2FzAwAmFMp0VJY D3HysV6RYHlHmepuGKl5OsLzlgJs1DqBT8O5e6xU= Received: from DLEE103.ent.ti.com (dlee103.ent.ti.com [157.170.170.33]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id wAU9M25P090256 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 30 Nov 2018 03:22:02 -0600 Received: from DLEE103.ent.ti.com (157.170.170.33) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Fri, 30 Nov 2018 03:22:02 -0600 Received: from dflp33.itg.ti.com (10.64.6.16) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Fri, 30 Nov 2018 03:22:02 -0600 Received: from [127.0.0.1] (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id wAU9Lwlb008660; Fri, 30 Nov 2018 03:21:59 -0600 Subject: Re: [PATCH v2 0/3] mach-omap2: handle autoidle denial To: Stephen Boyd , Andreas Kemnade , , , , , , , , References: <20181110203115.13335-1-andreas@kemnade.info> <154353757335.88331.5161306764126530976@swboyd.mtv.corp.google.com> <6c450d4f-8dbf-5122-edcc-3ac17e295bbe@ti.com> <154356466554.88331.3614998218425782290@swboyd.mtv.corp.google.com> From: Tero Kristo Message-ID: Date: Fri, 30 Nov 2018 11:21:48 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <154356466554.88331.3614998218425782290@swboyd.mtv.corp.google.com> Content-Type: text/plain; charset="utf-8"; format=flowed 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 30/11/2018 09:57, Stephen Boyd wrote: > Quoting Tero Kristo (2018-11-29 23:37:35) >> On 30/11/2018 02:26, Stephen Boyd wrote: >>> Quoting Andreas Kemnade (2018-11-10 12:31:12) >>>> 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. >>>> >>>> To handle multiple users of a single ick, autoidle is disabled >>>> when a user of that ick requires that (has the OCPIF_SWSUP_IDLE)) >>>> >>>> Changes since v1: >>>> - uses spinlocks instead of mutexes >>>> - invert counter logic >>>> - check whether clock type is basic >>>> >>> >>> I'm expecting someone like Tero or Tony to review this. >>> >> >> Rest of it looks fine to me, except for the discussion under the >> CLK_IS_BASIC flag, which might trigger a bigger rework of the code. >> > > Is that a Reviewed-by tag? > Not yet, lets see where discussion ends up with patch #2. :) -Tero -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki