Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp1496239pxx; Fri, 30 Oct 2020 11:18:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyJqKMR+nIOHOkqezeEynUF6cvv3/JPqhZ2Gmc6ImPbQ5nlcEPF84IxhUFTI39wqsJFevEF X-Received: by 2002:a17:906:3c13:: with SMTP id h19mr3219538ejg.117.1604081920097; Fri, 30 Oct 2020 11:18:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604081920; cv=none; d=google.com; s=arc-20160816; b=oCCraClkK2fc/ml+Svrjd1OHs8A7Vg/OFIitUd12RAVjjhs1pdSPuaPlQiXNhUz2dV ZLJ6T4twVSkJhnFIMsLQEShsjsevn5o/iAheCkgw9sNvESZirUBzw3ENMjYJp7Bl/y9B Jnm+79lfiOK1QN5HdkvLyuluPv1/HjUuhTs7XGueHRley6K2NzIoHjh+6HYqGga/C+Xp 6A+VFUxbEGWImfOENfXK0JaLYTi8bG6AlopL6xq7otSQI1GTvCzMJzZFDT3KXN7BbcDS uJl+ePNnwdpfnjyrkRKA2Iw8Yxu4ddoqtisSHh4D6IfvIL6ASiZyj+1rpCRooLzQXKhP I9SA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=9dgcKo3td0TMDTyJTQO2t4p6XonAw2x1KObaMxUhugI=; b=FzzkN7zEGivr+ep9wRARRKNGkdOfAk6OiyxbgGRjGL4aF6xpWTwLWS7zNfcmbG0lUR cqfzWpWrYj/nj9oFQkWes3CgXhCnI6KmBIk6AZ91LmoXYYDYUTmFp0/hPFNjdkcSWamp NdD2IZW7h9OpHzTQYOsSHlh3/X2gBRXR73mg2ykJIfl3pl/UwQ/RLAzOVGGchEByH+x0 nLvdsQk9vogD8cdhLwlV4UmhO7199D9wE7BTN5rGc9XUyyZICAsdCjSugHpH/2Qu/VMr w3jls4ru5lYg0VWErPnc19In3ewA3tx18JhrUo/4FV7bhPF8lhHzFk4E6fJoZYaTzygj m9LA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=M8PYW0TL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id n2si5960949edi.564.2020.10.30.11.18.16; Fri, 30 Oct 2020 11:18:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=M8PYW0TL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726992AbgJ3SPw (ORCPT + 99 others); Fri, 30 Oct 2020 14:15:52 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:39568 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725844AbgJ3SPw (ORCPT ); Fri, 30 Oct 2020 14:15:52 -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 09UIFkEl069707; Fri, 30 Oct 2020 13:15:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1604081746; bh=9dgcKo3td0TMDTyJTQO2t4p6XonAw2x1KObaMxUhugI=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=M8PYW0TLGUb7ESlGjL2CdFH3YaD98GhUYL8wYWbb8aXKPmvXax9952OBeBhlA48pe CWkyr1PTjryjNazbRkN/4oRcFe8TeMTK8zaMIxDB3KULfdivEMbuYOQeKV5rWigoft aXUbYdtDwwd+jBkv3ZgSBbVLd8XM71iiepnrTnPs= Received: from DLEE113.ent.ti.com (dlee113.ent.ti.com [157.170.170.24]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 09UIFka7020280 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 30 Oct 2020 13:15:46 -0500 Received: from DLEE108.ent.ti.com (157.170.170.38) by DLEE113.ent.ti.com (157.170.170.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Fri, 30 Oct 2020 13:15:46 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE108.ent.ti.com (157.170.170.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Fri, 30 Oct 2020 13:15:46 -0500 Received: from [10.250.100.73] (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 09UIFgcK032563; Fri, 30 Oct 2020 13:15:43 -0500 Subject: Re: [PATCH 4/4] bus: ti-sysc: Fix bogus resetdone warning for cpsw To: Tony Lindgren , CC: Dave Gerlach , Faiz Abbas , Greg Kroah-Hartman , Keerthy , Nishanth Menon , Peter Ujfalusi , Roger Quadros , Suman Anna , Tero Kristo , , References: <20201026105812.38418-1-tony@atomide.com> <20201026105812.38418-5-tony@atomide.com> From: Grygorii Strashko Message-ID: Date: Fri, 30 Oct 2020 20:15:50 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20201026105812.38418-5-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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Tony, On 26/10/2020 12:58, Tony Lindgren wrote: > The cpsw SOFT_RESET register is cleard when out of reset so let's > add SYSS_QUIRK_RESETDONE_INVERTED flag for cpsw. Otherwise we will > get bogus "OCP softreset timed out" warnings on boot. Not sure if this quirk based approach is right way to move forward here. The cpsw/cpgmac is "ti,sysc-omap4-simple" which means sysc_omap4_simple, which, in turn, has .srst_shift = -ENODEV. And above should be enough to avoid both sysc_reset() and sysc_wait_softreset() for such modules. > > Fixes: d46f9fbec719 ("bus: ti-sysc: Use optional clocks on for enable and wait for softreset bit") > Signed-off-by: Tony Lindgren > --- > drivers/bus/ti-sysc.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 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 > @@ -1364,6 +1364,8 @@ static const struct sysc_revision_quirk sysc_revision_quirks[] = { > /* Quirks that need to be set based on detected module */ > SYSC_QUIRK("aess", 0, 0, 0x10, -ENODEV, 0x40000000, 0xffffffff, > SYSC_MODULE_QUIRK_AESS), > + SYSC_QUIRK("cpgmac", 0, 0x1200, 0x1208, 0x1204, 0x4edb1902, > + 0xffff00f0, SYSS_QUIRK_RESETDONE_INVERTED), > SYSC_QUIRK("dcan", 0x48480000, 0x20, -ENODEV, -ENODEV, 0xa3170504, 0xffffffff, > SYSC_QUIRK_CLKDM_NOAUTO), > SYSC_QUIRK("dss", 0x4832a000, 0, 0x10, 0x14, 0x00000020, 0xffffffff, > @@ -1423,8 +1425,6 @@ static const struct sysc_revision_quirk sysc_revision_quirks[] = { > SYSC_QUIRK("atl", 0, 0, -ENODEV, -ENODEV, 0x0a070100, 0xffffffff, 0), > SYSC_QUIRK("cm", 0, 0, -ENODEV, -ENODEV, 0x40000301, 0xffffffff, 0), > SYSC_QUIRK("control", 0, 0, 0x10, -ENODEV, 0x40000900, 0xffffffff, 0), > - SYSC_QUIRK("cpgmac", 0, 0x1200, 0x1208, 0x1204, 0x4edb1902, > - 0xffff00f0, 0), > SYSC_QUIRK("dcan", 0, 0x20, -ENODEV, -ENODEV, 0xa3170504, 0xffffffff, 0), > SYSC_QUIRK("dcan", 0, 0x20, -ENODEV, -ENODEV, 0x4edb1902, 0xffffffff, 0), > SYSC_QUIRK("dispc", 0x4832a400, 0, 0x10, 0x14, 0x00000030, 0xffffffff, 0), > -- Best regards, grygorii