Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp812100ybh; Tue, 10 Mar 2020 08:42:09 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuzH0D4hDM5Rb1WD2WTQnCO0/V9h9O/69Gm5e//+E11YYRbj81SYP3p94RYnUeYyA2kh8Xx X-Received: by 2002:aca:3857:: with SMTP id f84mr1540413oia.150.1583854929190; Tue, 10 Mar 2020 08:42:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583854929; cv=none; d=google.com; s=arc-20160816; b=JCcg6lnlpA7N9zFyccLF3luPU0l5bt1OA7zhR9zt4pOOruww97JpOw6FSJJPoqv0nk zbznvGV3jBEocp17uFJOopYSsT6U3sDi0uzDg7CjFM0/w/5TsWBAvbcI9T6LP6d/BkWI +g1HuTSacPpW7Xwqf9Qsk6BGv3D5wOkDBDoufak6xtsmfG2QHC2siUxe0/8Vj1p5hjSt rd/hQxz07EQL10QoW34E5LB/AzoBplcDxf7lbO9+TfaREdfVVO8mpt/xg2rAEk+tpfpe KXf+Q05+B7qi2ihVwaApvlYWbPMUeYk6fg7HN+3Ru7kfVEoYqx0rqedQW7jFZf6RF8vG DgnA== 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=o8p5fgauZyRiTn5E7k0GtjXIgdIv7UAxDQEKWWWaJfY=; b=rN/aMrAkhTfjN7jtxNkJ+hgDk3wRAEIcbEd401el7sYjRTSGeKMwSAU2Dhob2jJr2+ onMKF9Z4rd3+DIYdvBeqgYOU8HlB9PY05URGsYQzXcAejlS18JbKo2TmXiZ9dNNAT2xz vg5V1hVFPLdsClMYJe5Tcey/K/14ihm6QMnR4kUaCRadsDA5hiNwLWV7mch9Swtef1jF YceSwdDQtwEMFfa+TP3qUXLbifkWKTeOqB0hXQkhbS+4dUGkVeDTPQQxi5GK37LLzanK MFnL/Lr00mGrg7hAoLdtnrm3XP/lYMRhTcRFzRqdAAaPTULr8ZKY22040A/rzBsDoyjF ZXJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Ra5+SIXX; 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 w83si887625oie.244.2020.03.10.08.41.56; Tue, 10 Mar 2020 08:42:09 -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=Ra5+SIXX; 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 S1726426AbgCJPlV (ORCPT + 99 others); Tue, 10 Mar 2020 11:41:21 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:46210 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725965AbgCJPlV (ORCPT ); Tue, 10 Mar 2020 11:41:21 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 02AFf771071642; Tue, 10 Mar 2020 10:41:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1583854867; bh=o8p5fgauZyRiTn5E7k0GtjXIgdIv7UAxDQEKWWWaJfY=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=Ra5+SIXXQfeVOZm3RvbV5swiBlvbReP7NTLQX/D8K+VqcBi9liQGpquLYWf9iw29J 4ETfAYOode0Lsr6LyYcndg4kc9ygQL/UoqToEg+Mm/9Os5MJgYsXqFy0d+m4uILvmf 6RtL7KddBk0DvyXZIsBQQg04LHxSa2E8YXiCrum0= Received: from DFLE112.ent.ti.com (dfle112.ent.ti.com [10.64.6.33]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 02AFf7mA050793 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 10 Mar 2020 10:41:07 -0500 Received: from DFLE108.ent.ti.com (10.64.6.29) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Tue, 10 Mar 2020 10:41:07 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE108.ent.ti.com (10.64.6.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3 via Frontend Transport; Tue, 10 Mar 2020 10:41:06 -0500 Received: from [128.247.81.242] (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 02AFf6vb119386; Tue, 10 Mar 2020 10:41:06 -0500 Subject: Re: [PATCH] bus: ti-sysc: Fix quirk flags for lcdc on am335x To: Tony Lindgren , CC: "Andrew F . Davis" , Faiz Abbas , Greg Kroah-Hartman , Keerthy , Nishanth Menon , Peter Ujfalusi , Roger Quadros , Suman Anna , Tero Kristo , , , Jyri Sarha References: <20200309181912.28645-1-tony@atomide.com> From: Dave Gerlach Message-ID: <1196fb5a-ed41-51bb-67a4-dc9c7fe3ed36@ti.com> Date: Tue, 10 Mar 2020 10:45:01 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <20200309181912.28645-1-tony@atomide.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 Tony, On 3/9/20 1:19 PM, Tony Lindgren wrote: > Commit adb72394e2ab ("ARM: OMAP2+: Drop legacy platform data for am3 > lcdc") dropped legacy platform data but we never added the quirks for > SWSUP_SIDLE and SWSUP_MSTANDBY for lcdc for ti-sysc driver. > > This breaks suspend/resume. Let's fix the issue by enabling the same > quirks for ti-sysc driver as we had earlier with platform data. > > Fixes: adb72394e2ab ("ARM: OMAP2+: Drop legacy platform data for am3 lcdc") > Fixes: 23731eac9848 ("bus: ti-sysc: Detect devices on am335x when DEBUG is enabled") > Reported-by: Keerthy > Cc: Jyri Sarha > Cc: Keerthy > Cc: Dave Gerlach > Cc: Tero Kristo > Signed-off-by: Tony Lindgren > --- > > This patch is against v5.6-rc series, it needs a merge conflict resolved > for Linux next next is using -ENODEV instead of -1 for missing registers. Tested with v5.6-rc5, can confirm that suspend looks OK now and is exited without "pm33xx pm33xx: PM: Could not transition all powerdomains to target state" message with this patch. Tested-by: Dave Gerlach Regards, Dave > > --- > drivers/bus/ti-sysc.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/bus/ti-sysc.c b/drivers/bus/ti-sysc.c > --- a/drivers/bus/ti-sysc.c > +++ b/drivers/bus/ti-sysc.c > @@ -1266,6 +1266,8 @@ static const struct sysc_revision_quirk sysc_revision_quirks[] = { > SYSC_QUIRK("gpu", 0x50000000, 0x14, -1, -1, 0x00010201, 0xffffffff, 0), > SYSC_QUIRK("gpu", 0x50000000, 0xfe00, 0xfe10, -1, 0x40000000 , 0xffffffff, > SYSC_MODULE_QUIRK_SGX), > + SYSC_QUIRK("lcdc", 0, 0, 0x54, -1, 0x4f201000, 0xffffffff, > + SYSC_QUIRK_SWSUP_SIDLE | SYSC_QUIRK_SWSUP_MSTANDBY), > SYSC_QUIRK("usb_otg_hs", 0, 0x400, 0x404, 0x408, 0x00000050, > 0xffffffff, SYSC_QUIRK_SWSUP_SIDLE | SYSC_QUIRK_SWSUP_MSTANDBY), > SYSC_QUIRK("usb_otg_hs", 0, 0, 0x10, -1, 0x4ea2080d, 0xffffffff, > @@ -1294,7 +1296,6 @@ static const struct sysc_revision_quirk sysc_revision_quirks[] = { > SYSC_QUIRK("gpu", 0, 0xfe00, 0xfe10, -1, 0x40000000 , 0xffffffff, 0), > SYSC_QUIRK("hsi", 0, 0, 0x10, 0x14, 0x50043101, 0xffffffff, 0), > SYSC_QUIRK("iss", 0, 0, 0x10, -1, 0x40000101, 0xffffffff, 0), > - SYSC_QUIRK("lcdc", 0, 0, 0x54, -1, 0x4f201000, 0xffffffff, 0), > SYSC_QUIRK("mcasp", 0, 0, 0x4, -1, 0x44306302, 0xffffffff, 0), > SYSC_QUIRK("mcasp", 0, 0, 0x4, -1, 0x44307b02, 0xffffffff, 0), > SYSC_QUIRK("mcbsp", 0, -1, 0x8c, -1, 0, 0, 0), >