Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp3549119ybf; Tue, 3 Mar 2020 07:58:29 -0800 (PST) X-Google-Smtp-Source: ADFU+vvxSX6dtNyPz0C4b1f9LL2XbjzMNq0pa9QHLS2FYBxjB3ug34EzBm6dGgka6VRV2FCVKyxc X-Received: by 2002:aca:c5ca:: with SMTP id v193mr3012061oif.62.1583251109005; Tue, 03 Mar 2020 07:58:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583251108; cv=none; d=google.com; s=arc-20160816; b=Pdw2SeQ2aFtJSzy7GfD3TFo5GNI691vwpJGzLzIIW/6zKB7fQAdom5cH795lv0psQl GHuf/YYAp8ILBOmxOtSKE+7wpNXbP/xOpQafFewxSQ7BeMvJdr8iuQhNhli5t1fm8jbY wpGwkUna7Asa2WQpo5hOjJAGVpLoXr3uEOo3e6h+tM+QhGTQOb7kJ8b0zs42Ot7HdmhJ i6Xep1ga+FolHUAF8Dv7r3lNIjMxUrMkkj/m193CKLg6+5gjZjQrJge7TPxgrdLHB+a2 rQwdatigHriThyJi5K4Q02qMD7Dx7kn3Y3rWRIc4gyhlWCUuArpY84DboRv35lrPLgmw LmZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=TOjt2zfc+PM5/u597+QOb51W6EZUpw+5IjtU39KnqXA=; b=fs+vNkqty32qU+1BPqFNSJFydoUMnOMu5nsinuMEihfxNS7dZdK2sOPyux3mKKWVD3 XH2ljeGXUnDoLTApGL2FhDAC8s/RJBzvSaEj/BDgYT/SKtZ/GqqJ7tFe9Wtq7D7Gftcp s35PIIOiwHcYbVf5ebNDDDnYLXXFI3ASDGFDd8Oz7ehH72h9Ew02XOwfFqvgVL0rqSvu gZE/8KDxRHDsORPzLoNsz0Fd69Mm0Jk41XG2CjvIjx/JRJgae2grTSQXkt58++sepPjG XPw6mL59e83dquAzlenOE1B/4e8e8ioqUbEiagJA6UdeAgALnnSubAhx16kcDIJTOw6y KTsQ== 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 j18si7708211oii.42.2020.03.03.07.58.17; Tue, 03 Mar 2020 07:58:28 -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; 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 S1729784AbgCCPt6 (ORCPT + 99 others); Tue, 3 Mar 2020 10:49:58 -0500 Received: from muru.com ([72.249.23.125]:58594 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727683AbgCCPt6 (ORCPT ); Tue, 3 Mar 2020 10:49:58 -0500 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 7847080EE; Tue, 3 Mar 2020 15:50:41 +0000 (UTC) Date: Tue, 3 Mar 2020 07:49:53 -0800 From: Tony Lindgren To: Tomi Valkeinen Cc: linux-omap@vger.kernel.org, "Andrew F . Davis" , Dave Gerlach , Faiz Abbas , Greg Kroah-Hartman , Keerthy , Nishanth Menon , Peter Ujfalusi , Roger Quadros , Suman Anna , Tero Kristo , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Jyri Sarha , Laurent Pinchart , dri-devel@lists.freedesktop.org Subject: Re: [PATCH 3/3] bus: ti-sysc: Implement display subsystem reset quirk Message-ID: <20200303154953.GT37466@atomide.com> References: <20200224191230.30972-1-tony@atomide.com> <20200224191230.30972-4-tony@atomide.com> <7d4af3b5-5dd7-76b3-4d3f-4698bfde288c@ti.com> <20200303151349.GQ37466@atomide.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200303151349.GQ37466@atomide.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * 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 */ -- 2.25.1