Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp4070762pxb; Mon, 21 Feb 2022 11:28:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJxmKXSD8XRndisPmlXi/olTLRTZ+WCV8oACsUyWMxOpiY/wU8JYTP0b1r1xyN74AMa1I1AI X-Received: by 2002:a17:90b:4b06:b0:1b9:85c6:731e with SMTP id lx6-20020a17090b4b0600b001b985c6731emr473506pjb.50.1645471723136; Mon, 21 Feb 2022 11:28:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645471723; cv=none; d=google.com; s=arc-20160816; b=VFqaylUebHbrRWHraRyJbXIGUa+clSZMbhGXl/unRPuPOwgwdt847dWfaM8t2526UL SYuwq/L82ZM8BUs6aV1WQngRVV6/FFQYDoQ0l/zWJwjt1WT2X4rUW8S+iq7iCaeIcSM8 4xGBXmOL0hP7TpMYxP2kvfu2ChYq/XEhukN9MDPkcmYKTmw7mw34i2swnJTmHLrJ9BLi TIMbm3VXM21YNFHiAMGGXOIvOUYhe3tcgucUReRhKcrUJWoU6qo0UgKW32Rht0FMBrGh dVlv9Fj05JWEpdmhogN2u5b4qkCOsi+OzG2H//hEZCS1ZVatIREqRPO7tE1aHcXFg7J7 x7Fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=0GQleP9DMTuKHf/RYSOAlqEThPxKITClJsZGQlJ/KN0=; b=snuAx+N8GqYdB7UX73ZcLZG+UVhlpFFG4aRUPJhb6ApIFxsvxARmgFf2YUWYT6MXwk d8nr0IgbGPDwbcEb2fN/ztL+BwT6VlHPX+ZpQznSkvpDqN0eOSTluROFxAEC7D5Oc73X Vk5KPjN9PluK440G36L08rzIWUQ+//ftEeU6o3npoyVSlt76kumKoN6TzoME/Y/g4Awt zKR7BDTzLwPROXXKjGBmCMga+2qKDBy1+PLMJWUijRyCQ6PrX/hwT/n1BBDVx1cTIpb4 3dHtuAJFcF11CJHm2EKKvggpbyDR9GtPHuhCqRFFi5+8WaHfQCO+CmBrUZ2gL3/Udq4b V0kQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@pqrs.dk header.s=google header.b=opahrnbo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l71si17691814pge.637.2022.02.21.11.28.25; Mon, 21 Feb 2022 11:28:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=temperror (no key for signature) header.i=@pqrs.dk header.s=google header.b=opahrnbo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232336AbiBUSr0 (ORCPT + 99 others); Mon, 21 Feb 2022 13:47:26 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:60916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232166AbiBUSrC (ORCPT ); Mon, 21 Feb 2022 13:47:02 -0500 Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 938FC1086 for ; Mon, 21 Feb 2022 10:46:36 -0800 (PST) Received: by mail-wr1-x42b.google.com with SMTP id p9so28612590wra.12 for ; Mon, 21 Feb 2022 10:46:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pqrs.dk; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=0GQleP9DMTuKHf/RYSOAlqEThPxKITClJsZGQlJ/KN0=; b=opahrnboN3C7Ps7gy5VDL66PMAYqlJ8lAQbtKntAf2RNHnZuG9Yzco6SYdbLFzptoA KWwHTdhcSwEeH6VWAxz9zVuCTJJdd3W0S4KWmVnvXEDImYIBBBCizmLzVTYnna2DI0Yu B24QPjhmua3DRATIiVJQyo4c5TOks48oPBSkI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=0GQleP9DMTuKHf/RYSOAlqEThPxKITClJsZGQlJ/KN0=; b=dQI2EL45JieHOfcPimJVCF50K5n5NgNsKwJmVjvZ7BiGG6l6BKSsfPr4eDqB+06IBj GkcE+XE8hzuCwF5EMfqa40PeHUj6bpbTsXB/2DDmtLN5D1Vinv09zokqV+cOrZSYs+4u 6la8o4t8y6vtLVYCzemYKwbUSQHQ1exMj4McC2GMN037hTWDZGLovTEyje3/1AfwyXdE ZaZndCiS4wBUrx4Eu7JY3uXgOo75GhIomP7DNbH3KCIQF4oAYcLhXlt1LWNvlecveoHl zMFx2mAhoVUE0PBUWiGf14C4z1PkC3etp92Y9IkxLnlg2E2it5eCulb2Z3XWvYeYvlm8 8JaQ== X-Gm-Message-State: AOAM530pulXWydZORWPfjWwZSddYFYt0lDtbwZODno/plw5roY/7MAww JbcpPyh1UDRLUp725CW7oGFwjg== X-Received: by 2002:a05:6000:178a:b0:1ea:7db1:3159 with SMTP id e10-20020a056000178a00b001ea7db13159mr1203489wrg.9.1645469195143; Mon, 21 Feb 2022 10:46:35 -0800 (PST) Received: from capella.. (80.71.142.18.ipv4.parknet.dk. [80.71.142.18]) by smtp.gmail.com with ESMTPSA id 11-20020a05600c26cb00b0037ff53511f2sm140637wmv.31.2022.02.21.10.46.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Feb 2022 10:46:34 -0800 (PST) From: =?UTF-8?q?Alvin=20=C5=A0ipraga?= To: Linus Walleij , Andrew Lunn , Vivien Didelot , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Jakub Kicinski , Michael Rasmussen , =?UTF-8?q?Alvin=20=C5=A0ipraga?= Cc: Luiz Angelo Daros de Luca , =?UTF-8?q?Ar=C4=B1n=C3=A7=20=C3=9CNAL?= , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 net-next 0/2] net: dsa: realtek: fix PHY register read corruption Date: Mon, 21 Feb 2022 19:46:29 +0100 Message-Id: <20220221184631.252308-1-alvin@pqrs.dk> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Alvin Šipraga These two patches fix the issue reported by Arınç where PHY register reads sometimes return garbage data. v1 -> v2: - no code changes - just update the commit message of patch 2 to reflect the conclusion of further investigation requested by Vladimir Alvin Šipraga (2): net: dsa: realtek: allow subdrivers to externally lock regmap net: dsa: realtek: rtl8365mb: serialize indirect PHY register access drivers/net/dsa/realtek/realtek-mdio.c | 46 +++++++++++++++++++++- drivers/net/dsa/realtek/realtek-smi.c | 48 +++++++++++++++++++++-- drivers/net/dsa/realtek/realtek.h | 2 + drivers/net/dsa/realtek/rtl8365mb.c | 54 ++++++++++++++++---------- 4 files changed, 124 insertions(+), 26 deletions(-) -- 2.35.1