Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp2473735rdb; Mon, 20 Nov 2023 11:46:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IEw7dPjTym8xLB8+GYRXNYcEyPwH8VYyLNaY/jre8/52JKqXXihA84v6639CdhxF8X/ILXs X-Received: by 2002:a17:90a:191a:b0:27d:c95:b0ad with SMTP id 26-20020a17090a191a00b0027d0c95b0admr7022757pjg.21.1700509578465; Mon, 20 Nov 2023 11:46:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700509578; cv=none; d=google.com; s=arc-20160816; b=qjFXxy1QfrzZqGZCBSUFb6RAQLZJG0wU2jqrmZVY9B6wHKgkV9biHzNJGIDHGrrXZi dPPHzx6hntxwnd6Kc3Ova26E7MrxfzxFnKdaCl+vDwLzut3qTvbLo4MtW7y5TlbG8HrF 6O0tT+NNd0csw42bK2fnLb3BfhErANProEgZe4+uQh1BrwUI0+qsvKLoRRsCvETeuZQN 7n1SX0FnjGnv3iai71rwuVWU6L98f/qNl9yobuFYrQaWQW8vvcxPZMSPw0nS9dhCIwMX b+bBsFXEClAezTjYVnKqnYPTgo3YyLeOAYexCuMqg8R+6R8X7Lhd4NL/FJD5+Bw+PJpf JEig== 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:organization :from:references:cc:to:subject; bh=pcCqBor6sfsaI/b5CNSU9WlunMM2L//sbbhLsLfBQD0=; fh=XVxuzW261ObcFKt6+FXoPD8Q+uGTo0jlfTIqmioiBQk=; b=llUqAryd8JGzlqpmk2Yl5IKqTi+2Y5Jcm9a4+UcwKEgWI2nHcYqVeyc57hLU6v4Byz GXBz7hbyxfXIODUHB08K+ZDO2NMK8sAvkydZK2NishTsEgUxaDqmrRw/fRaFLXY3M6Tx 6KhFA4eroSRQxuMsZf/YwNVT4mDii3B8EiNXMN2f2MDdm5aWVIRn3QI+3Oe/MNgNuRui woFJvZniUKdFxfP5uJeXQ6wGOP93whb49w/M65IFVf3tIyxTVzyDSTWa8wXxLoiIOZYO RMme/1yxAHT2QUqTKyX071bQx2cCEdyFZXzHaynDjt78mzbIFgemlHNstGgW6Bhil0RD hntQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id ha11-20020a17090af3cb00b00283a54ed475si6101173pjb.110.2023.11.20.11.46.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 11:46:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (Postfix) with ESMTP id 99CD980785D2; Mon, 20 Nov 2023 11:45:11 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229849AbjKTTpB (ORCPT + 99 others); Mon, 20 Nov 2023 14:45:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229640AbjKTTpA (ORCPT ); Mon, 20 Nov 2023 14:45:00 -0500 Received: from mx01.omp.ru (mx01.omp.ru [90.154.21.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3365191; Mon, 20 Nov 2023 11:44:56 -0800 (PST) Received: from [192.168.1.103] (178.176.77.202) by msexch01.omp.ru (10.188.4.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.1258.12; Mon, 20 Nov 2023 22:44:47 +0300 Subject: Re: [PATCH 03/13] net: ravb: Make write access to CXR35 first before accessing other EMAC registers To: Claudiu , , , , , , , , , , , , , CC: , , , Claudiu Beznea References: <20231120084606.4083194-1-claudiu.beznea.uj@bp.renesas.com> <20231120084606.4083194-4-claudiu.beznea.uj@bp.renesas.com> From: Sergey Shtylyov Organization: Open Mobile Platform Message-ID: Date: Mon, 20 Nov 2023 22:44:46 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <20231120084606.4083194-4-claudiu.beznea.uj@bp.renesas.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [178.176.77.202] X-ClientProxiedBy: msexch01.omp.ru (10.188.4.12) To msexch01.omp.ru (10.188.4.12) X-KSE-ServerInfo: msexch01.omp.ru, 9 X-KSE-AntiSpam-Interceptor-Info: scan successful X-KSE-AntiSpam-Version: 6.0.0, Database issued on: 11/20/2023 19:15:46 X-KSE-AntiSpam-Status: KAS_STATUS_NOT_DETECTED X-KSE-AntiSpam-Method: none X-KSE-AntiSpam-Rate: 59 X-KSE-AntiSpam-Info: Lua profiles 181488 [Nov 20 2023] X-KSE-AntiSpam-Info: Version: 6.0.0.2 X-KSE-AntiSpam-Info: Envelope from: s.shtylyov@omp.ru X-KSE-AntiSpam-Info: LuaCore: 543 543 1e3516af5cdd92079dfeb0e292c8747a62cb1ee4 X-KSE-AntiSpam-Info: {rep_avail} X-KSE-AntiSpam-Info: {Tracking_from_domain_doesnt_match_to} X-KSE-AntiSpam-Info: {relay has no DNS name} X-KSE-AntiSpam-Info: {SMTP from is not routable} X-KSE-AntiSpam-Info: {Found in DNSBL: 178.176.77.202 in (user) b.barracudacentral.org} X-KSE-AntiSpam-Info: omp.ru:7.1.1;d41d8cd98f00b204e9800998ecf8427e.com:7.1.1;127.0.0.199:7.1.2 X-KSE-AntiSpam-Info: ApMailHostAddress: 178.176.77.202 X-KSE-AntiSpam-Info: {DNS response errors} X-KSE-AntiSpam-Info: Rate: 59 X-KSE-AntiSpam-Info: Status: not_detected X-KSE-AntiSpam-Info: Method: none X-KSE-AntiSpam-Info: Auth:dmarc=temperror header.from=omp.ru;spf=temperror smtp.mailfrom=omp.ru;dkim=none X-KSE-Antiphishing-Info: Clean X-KSE-Antiphishing-ScanningType: Heuristic X-KSE-Antiphishing-Method: None X-KSE-Antiphishing-Bases: 11/20/2023 19:20:00 X-KSE-Antivirus-Interceptor-Info: scan successful X-KSE-Antivirus-Info: Clean, bases: 11/20/2023 4:24:00 PM X-KSE-Attachment-Filter-Triggered-Rules: Clean X-KSE-Attachment-Filter-Triggered-Filters: Clean X-KSE-BulkMessagesFiltering-Scan-Result: InTheLimit X-Spam-Status: No, score=-4.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,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 fry.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 (fry.vger.email [0.0.0.0]); Mon, 20 Nov 2023 11:45:11 -0800 (PST) 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... > Signed-off-by: Claudiu Beznea Reviewed-by: Sergey Shtylyov [...] MBR, Sergey