Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp513798rdh; Thu, 23 Nov 2023 10:00:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IEJvBLC/EzKXZPN5hjOO9mkHRKW7MNE4NtOprIdTHaCoBCh4OAaeH7sAljJGDGxkkgRvvuu X-Received: by 2002:a05:6830:3d0d:b0:6b9:a6ef:2709 with SMTP id eu13-20020a0568303d0d00b006b9a6ef2709mr267163otb.8.1700762420027; Thu, 23 Nov 2023 10:00:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700762419; cv=none; d=google.com; s=arc-20160816; b=ZQFKASFpEDCihBTTIiGeoQ3sqKE22t61OjtRpWFMGgRgIFl9zqyYsz574zDlIajFQ3 k0CWpQwXKnoSOa51EWziTx2WvjivRZgJc410b7lvP3VmfzOLfybsCLeu7ymQ1h6sPcil IOA3YOBSOOfkzb7fibHnj09MTWqZoWC3APAWE7Sd3yIVMb+tPhllH37EBonv7D7eXNmt QkbJDT7Ucn3XL5gA2uUV2ILRS3qtlQxiwf/QV8je2uNnoIfxVNMvBpPXqtW+06wpP4PA iT0w+0Y6DsSCmal1oU3J98Kibk7ijQYbyW/5aYhXFuCGKibJRnjU86lmrmNwrI5o0uoA gFdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=wPi0ei9zIN7cw0UozDtXu7c9EU4Lneb2safJ+jL5Iak=; fh=bQR5tyQwFFsFW8N1bwGTeupQZQsfTbajdBlBCAAZke0=; b=TY4vmpXrmkA/W8IE/dTWE/fLKdxH8RHzDpHST2Kc7RRPDrnj/ZyIsNDEFlEfUAOkOU sAnJahIjzMEc6gVOVIJtFxfIgLbskWgkdDXUNTVEVpynyrvnh5vHmrMHGOzkcY8c0Hks KycQS0PzG1j9fnHLicJXEfBAo0LcoYKekceLIAqJrYOh/hpfIOdC1usdz/d3nCRlF3OF GEuKDCgkbXCpJDJI1xu35ham+lnIUNm2GHe3nn3qau5h5mcJySvPEV33gAYV4COiDbCW wku09kxMQA53cNyDMuc8J/zqIssIqcy4047pggzjuEqWd360gfGASsxeleVYEDPODXhe wzgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=mFmEZLGu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id d19-20020a63fd13000000b005b928e39429si1696525pgh.259.2023.11.23.10.00.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 10:00:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=mFmEZLGu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id E8C1A80BB3FB; Mon, 20 Nov 2023 22:02:48 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230250AbjKUGCo (ORCPT + 99 others); Tue, 21 Nov 2023 01:02:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229512AbjKUGCm (ORCPT ); Tue, 21 Nov 2023 01:02:42 -0500 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00429CA for ; Mon, 20 Nov 2023 22:02:38 -0800 (PST) Received: by mail-ed1-x533.google.com with SMTP id 4fb4d7f45d1cf-5446c9f3a77so7494781a12.0 for ; Mon, 20 Nov 2023 22:02:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1700546557; x=1701151357; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=wPi0ei9zIN7cw0UozDtXu7c9EU4Lneb2safJ+jL5Iak=; b=mFmEZLGu9ZUfRHeECBNo4Q4+nww7+hcNzdc1+fyqWVSQYBAJ6i5rez82D7kfNHs70G T9inqz5fJe1F1SnNWamQSDy9DBj7I/qxX3+xcZq6o71S/FmOQP0HUSJiQkiFpx6s8ypW gJcn0EqUIaU7EIQkmgvyW5I0hdlQowZwkzu1WP3Ujjk8bF1AQKnAiRHOjXlFKDefCMH5 t1sb/dGdpGxcRj/QlRQv8OxGIps8MZr0qnd94bE8AdJfDIY+atVku1caubJaR7KPMxav +sqGpU+D03OphRaITFGbOu9NVGadXgsPNx/VBAu/wKuPXELWwyknClHbGXouehTqP+hp g6bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700546557; x=1701151357; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=wPi0ei9zIN7cw0UozDtXu7c9EU4Lneb2safJ+jL5Iak=; b=wfv8s7lAPSdAUwT3gp1dbYl75uF8jGFt3gg6XU97KxyWJmQKFk1U2fAa5HzQxRgBzT LKvK+Bq5A56wRWWZt+FnFZWkWERLG/lnXt19OOY1A9fG/iAPCBtk63W1IrXCN3hGpdH9 osH/zwjScKFXvEnng74AxG3GxR0AluQskUwnejd0pMMwN7xZzD5S5rx4JLnGa5cBNGz7 KluWZDmtu2x4dE/iQ8GjGI20IwZvZ+4o7YQiasnZ2hbf/WjLZqnY17UPzxqySCngxumQ hKKx0VZsAC59gnsn7KMkOvAjuUF+C84q/xgcoqtX6+6bHyq7gBXfPY01RghNkfR1UuXX fjXw== X-Gm-Message-State: AOJu0Yyt9rFWP3taeplay8C4HxfntuGM++0FCfWQ4oP+tkqQdRzlVqVf FAKC86SZHggs7upmTCuWEZW/fg== X-Received: by 2002:a17:906:68c5:b0:9fc:3a70:4430 with SMTP id y5-20020a17090668c500b009fc3a704430mr6097006ejr.70.1700546557189; Mon, 20 Nov 2023 22:02:37 -0800 (PST) Received: from [192.168.50.4] ([82.78.167.3]) by smtp.gmail.com with ESMTPSA id h11-20020a170906530b00b009d23e00a90esm4805556ejo.24.2023.11.20.22.02.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 20 Nov 2023 22:02:36 -0800 (PST) Message-ID: <2545ffad-e970-499e-9192-ff89776e1946@tuxon.dev> Date: Tue, 21 Nov 2023 08:02:35 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 03/13] net: ravb: Make write access to CXR35 first before accessing other EMAC registers Content-Language: en-US To: Sergey Shtylyov , davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, p.zabel@pengutronix.de, yoshihiro.shimoda.uh@renesas.com, geert+renesas@glider.be, wsa+renesas@sang-engineering.com, biju.das.jz@bp.renesas.com, prabhakar.mahadev-lad.rj@bp.renesas.com, sergei.shtylyov@cogentembedded.com, mitsuhiro.kimura.kc@renesas.com, masaru.nagai.vx@renesas.com Cc: netdev@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Claudiu Beznea References: <20231120084606.4083194-1-claudiu.beznea.uj@bp.renesas.com> <20231120084606.4083194-4-claudiu.beznea.uj@bp.renesas.com> From: claudiu beznea In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Mon, 20 Nov 2023 22:02:49 -0800 (PST) On 20.11.2023 21:44, Sergey Shtylyov wrote: > On 11/20/23 11:45 AM, Claudiu wrote: > >> From: Claudiu Beznea >> >> Hardware manual of RZ/G3S (and RZ/G2L) specifies the following on the >> description of CXR35 register (chapter "PHY interface select register >> (CXR35)"): "After release reset, make write-access to this register before >> making write-access to other registers (except MDIOMOD). Even if not need >> to change the value of this register, make write-access to this register >> at least one time. Because RGMII/MII MODE is recognized by accessing this >> register". >> >> The setup procedure for EMAC module (chapter "Setup procedure" of RZ/G3S, >> RZ/G2L manuals) specifies the E-MAC.CXR35 register is the first EMAC >> register that is to be configured. >> >> Note [A] from chapter "PHY interface select register (CXR35)" specifies >> the following: >> [A] The case which CXR35 SEL_XMII is used for the selection of RGMII/MII >> in APB Clock 100 MHz. >> (1) To use RGMII interface, Set ‘H’03E8_0000’ to this register. >> (2) To use MII interface, Set ‘H’03E8_0002’ to this register. >> >> Take into account these indication. >> >> Fixes: 1089877ada8d ("ravb: Add RZ/G2L MII interface support") > > The bug fixes should be submitted separately and against the net.git repo... OK, thanks for pointing it. > >> Signed-off-by: Claudiu Beznea > > Reviewed-by: Sergey Shtylyov > > [...] > > MBR, Sergey