Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp4215476ybf; Tue, 3 Mar 2020 23:04:07 -0800 (PST) X-Google-Smtp-Source: ADFU+vvWoxft25EuQiXG9P9SWl7iEljgm/iy+GDDkBYMUAbbbsB8zIXc/cjQUU8TcuB/w7cXFjaS X-Received: by 2002:a05:6830:16c8:: with SMTP id l8mr1271020otr.2.1583305446914; Tue, 03 Mar 2020 23:04:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583305446; cv=none; d=google.com; s=arc-20160816; b=w5H1Vb97SmGt+h65EgrGbHEAmcAtQMVUHDodaUwRYh76MegtKv88haeESW//H6GMty lJRaAJaYNk6pO5rFd28GK7945m92MU2LB8CmGuhUy6jRTSOv5Q9nWJ1kfwrC96iK1f8O VJZRLnGJAINU0cVemdlY1SBL1V644AlvKWHigBD+UtKz7kOfAeQ77rwaZZVzO9xlsisF J0nuve/duG6EieNJjksVCQLwlycCk47TlTzWbpMmCo0eFlU9owUd6IVmpJ02DquCxOtp vaANGjyS/W5Mx1sV1er8ugJxIqqw45m1qDOf/FPNO1Te/PfQ21OaU7RvAOMdlKIbBZA8 MsCg== 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=/sdwpCqTUZFavpH1kRSnLCFnO4op/esuZHRYq+Iq+X8=; b=CIBtFqq5HwEsULKZ/POmpLiDoUjxUJKaNHhbSbQaSKQ4b8ApjTavQU5Jt5g2nRdDFU myZyLgwVYxfEONe7WNpgAFS4Ie1964S36v9Q69W7SWVSjMCcCmSYnsd8G2t6dtvp/5gN JBiPRbgo4bqKc521ah7rakg/I2m9LJjx971Ar9jdATM7UJq+OeS5JXdtB1l9yqRzR23F F5qEsWK6gxmKBAgZD+xQ5fRwCUnmhCbPPuDCgafe14jj4MOoIqIBzY2mrkjynQT54PcE XAehmze34q8CVHkMJUrJFhBfE9BHAwOgFvERNUMK9PvteeXHj5uY43IRztavalVWhnhA 4D/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=fC0csCuu; 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 f2si682459oib.9.2020.03.03.23.03.52; Tue, 03 Mar 2020 23:04:06 -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=fC0csCuu; 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 S1728457AbgCDHCX (ORCPT + 99 others); Wed, 4 Mar 2020 02:02:23 -0500 Received: from fllv0016.ext.ti.com ([198.47.19.142]:56272 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728216AbgCDHCW (ORCPT ); Wed, 4 Mar 2020 02:02:22 -0500 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 024727Hk057260; Wed, 4 Mar 2020 01:02:07 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1583305327; bh=/sdwpCqTUZFavpH1kRSnLCFnO4op/esuZHRYq+Iq+X8=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=fC0csCuu0zHZMFhFyq0jA0spS0AztZNRxQuON64RjMv6CuQZar1hytSGEJJBq2cv/ /GYBRN7ndqo30X9Nxc5UCiVE1ISS6SgAukrgss6u4hIcgbt/1ZjYSDkbvuUqIp0z2K JxGflDHxMkRpF8g05fdPTaoXnnLSlGnZUpQ4mTvI= Received: from DFLE100.ent.ti.com (dfle100.ent.ti.com [10.64.6.21]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 0247277f082080 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 4 Mar 2020 01:02:07 -0600 Received: from DFLE106.ent.ti.com (10.64.6.27) by DFLE100.ent.ti.com (10.64.6.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Wed, 4 Mar 2020 01:02:06 -0600 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE106.ent.ti.com (10.64.6.27) 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; Wed, 4 Mar 2020 01:02:06 -0600 Received: from [192.168.2.6] (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 0247238d003010; Wed, 4 Mar 2020 01:02:03 -0600 Subject: Re: [PATCH 3/3] bus: ti-sysc: Implement display subsystem reset quirk To: Tony Lindgren CC: , "Andrew F . Davis" , Dave Gerlach , Faiz Abbas , Greg Kroah-Hartman , Keerthy , Nishanth Menon , Peter Ujfalusi , Roger Quadros , Suman Anna , Tero Kristo , , , Jyri Sarha , Laurent Pinchart , References: <20200224191230.30972-1-tony@atomide.com> <20200224191230.30972-4-tony@atomide.com> <7d4af3b5-5dd7-76b3-4d3f-4698bfde288c@ti.com> <20200303151349.GQ37466@atomide.com> <20200303154953.GT37466@atomide.com> From: Tomi Valkeinen Message-ID: <59df1bda-eee0-32f5-76c0-510a708fefd1@ti.com> Date: Wed, 4 Mar 2020 09:02:02 +0200 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: <20200303154953.GT37466@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 On 03/03/2020 17:49, Tony Lindgren wrote: > * Tony Lindgren [200303 15:14]: >> * Tomi Valkeinen [200303 06:03]: >>> On 24/02/2020 21:12, Tony Lindgren wrote: >>>> + if (sysc_soc->soc == SOC_3430) { >>>> + /* Clear DSS_SDI_CONTROL */ >>>> + sysc_write(ddata, dispc_offset + 0x44, 0); >>>> + >>>> + /* Clear DSS_PLL_CONTROL */ >>>> + sysc_write(ddata, dispc_offset + 0x48, 0); >>> >>> These are not dispc registers, but dss registers. >> >> Ouch. Thanks for catching this, will include in the fix. >> >>>> + } >>>> + >>>> + /* Clear DSS_CONTROL to switch DSS clock sources to PRCM if not */ >>>> + sysc_write(ddata, dispc_offset + 0x40, 0); >>> >>> Same here. > > Below is a fix using dispc offset for dss registers. > > Regards, > > Tony > > 8< ---------------------- > From tony Mon Sep 17 00:00:00 2001 > From: Tony Lindgren > Date: Tue, 3 Mar 2020 07:17:43 -0800 > Subject: [PATCH] bus: ti-sysc: Fix wrong offset for display subsystem > reset quirk > > Commit 7324a7a0d5e2 ("bus: ti-sysc: Implement display subsystem reset > quirk") added support for DSS reset, but is using dispc offset also for > DSS also registers as reported by Tomi Valkeinen . > Also, we're not using dispc_offset for dispc IRQSTATUS register so let's > fix that too. > > Fixes: 7324a7a0d5e2 ("bus: ti-sysc: Implement display subsystem reset quirk") > Reported-by: Tomi Valkeinen > Signed-off-by: Tony Lindgren > --- > drivers/bus/ti-sysc.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > 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 > @@ -1566,7 +1566,7 @@ static void sysc_pre_reset_quirk_dss(struct sysc *ddata) > return; > > /* Clear IRQSTATUS */ > - sysc_write(ddata, 0x1000 + 0x18, irq_mask); > + sysc_write(ddata, dispc_offset + 0x18, irq_mask); > > /* Disable outputs */ > val = sysc_quirk_dispc(ddata, dispc_offset, true); > @@ -1580,14 +1580,14 @@ static void sysc_pre_reset_quirk_dss(struct sysc *ddata) > > if (sysc_soc->soc == SOC_3430) { > /* Clear DSS_SDI_CONTROL */ > - sysc_write(ddata, dispc_offset + 0x44, 0); > + sysc_write(ddata, 0x44, 0); > > /* Clear DSS_PLL_CONTROL */ > - sysc_write(ddata, dispc_offset + 0x48, 0); > + sysc_write(ddata, 0x48, 0); > } > > /* Clear DSS_CONTROL to switch DSS clock sources to PRCM if not */ > - sysc_write(ddata, dispc_offset + 0x40, 0); > + sysc_write(ddata, 0x40, 0); > } > > /* 1-wire needs module's internal clocks enabled for reset */ > Reviewed-by: Tomi Valkeinen Tomi -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki