Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6115108rwd; Wed, 24 May 2023 10:56:27 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5oJ0yJ3QO+eFInGp5kZzrdvG2dVg+caJhEI1i+/muyNCa1MT4VYv69PFLCia1wc58Wkniu X-Received: by 2002:a05:6a21:3298:b0:10c:4a13:99e2 with SMTP id yt24-20020a056a21329800b0010c4a1399e2mr189895pzb.9.1684950986978; Wed, 24 May 2023 10:56:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684950986; cv=none; d=google.com; s=arc-20160816; b=aydILQENVYXcnBKi1uDBT7sp9f9DKC8gjzHgduGHy1osxbar1gA0J0Ann0wUM6kM/J ct73pfBO0JCOprgVPfg8GLEautdMQIcZZXCMdrGsu+GZNWSuSvNsXmx5Dt6f14x4VzKh iBdPbVn7WXq0bWZRckgtj2tSEZR1ekDwCeqIZ/3HzzGk8390UGSEVZYn70IFKzs1yRMC tEj6GEWM7pBGeSpdD0CSNCci+hSLXNCEdiBCHiaKhIhNAf/5mLnQLgFhN9FQxC/yMEK/ 1wwN6BUxVk9/EzMkE+Ul3PskO7kZsF8sHTUz04Y7mFImnSp4QTOkY7PBeiVv/vOoucMN 9XBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=k7lAvuH0XjMFse6mR3He43Wv+8wpK4b7A/Mb6cfJgHM=; b=lm9LwWNxu4SIJeW5hbuIfiDfeV0vijOxsBqNdXGIOda/iLYBCi4Ac6SchHb0GV2+RY /EAAO2wJj830v74YvonAbHSMXrJxNuKzr555TV7SpH+EqU22emNxFAoOSSayBZBu7vq0 PutoSBXq+GuDZCk+QYsj1e7Ip5T2l6OVq94s51R4EoH/9mId/iTOopw6BPKuyyQ7RlkT ruEpS3EJlIkGj85pU5cQprCUYmV25vOkZhNPD9k8d2twi7glUfw0nMLMpOAC77DDcQhV ubZnYI+o4fmJpQW0oQjXUFs6ViTl1cFvv1XOaQGdW1k2/XzlJkZ0e9MhO3JAsbbRM5UD KXbg== ARC-Authentication-Results: i=1; mx.google.com; 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 l11-20020a633e0b000000b005369f4111b1si3008393pga.658.2023.05.24.10.56.14; Wed, 24 May 2023 10:56:26 -0700 (PDT) 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; 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 S234572AbjEXRcr (ORCPT + 99 others); Wed, 24 May 2023 13:32:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49594 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232808AbjEXRcp (ORCPT ); Wed, 24 May 2023 13:32:45 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB5E6119 for ; Wed, 24 May 2023 10:32:44 -0700 (PDT) Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q1sLp-00069H-ME; Wed, 24 May 2023 19:32:41 +0200 Received: from ore by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1q1sLo-0001yq-DA; Wed, 24 May 2023 19:32:40 +0200 Date: Wed, 24 May 2023 19:32:40 +0200 From: Oleksij Rempel To: "Russell King (Oracle)" Cc: Woojung Huh , Andrew Lunn , Arun Ramadoss , Florian Fainelli , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, UNGLinuxDriver@microchip.com, Eric Dumazet , Vladimir Oltean , kernel@pengutronix.de, Jakub Kicinski , Paolo Abeni , "David S. Miller" Subject: Re: [PATCH net-next v1 1/5] net: dsa: microchip: improving error handling for 8-bit register RMW operations Message-ID: <20230524173240.GA7074@pengutronix.de> References: <20230524123220.2481565-1-o.rempel@pengutronix.de> <20230524123220.2481565-2-o.rempel@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-Accept-Language: de,en X-Accept-Content-Type: text/plain User-Agent: Mutt/1.10.1 (2018-07-13) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, 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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 24, 2023 at 01:39:53PM +0100, Russell King (Oracle) wrote: > On Wed, May 24, 2023 at 02:32:16PM +0200, Oleksij Rempel wrote: > > This patch refines the error handling mechanism for 8-bit register > > read-modify-write operations. In case of a failure, it now logs an error > > message detailing the problematic offset. This enhancement aids in > > debugging by providing more precise information when these operations > > encounter issues. > > > > Furthermore, the ksz_prmw8() function has been updated to return error > > values rather than void, enabling calling functions to appropriately > > respond to errors. > > What happens when there is an error that affects the current and future > accesses? Does this PHY driver then begin to flood the kernel log? Yes. In the same way as it is done in all ksz_read*/ksz_write* helpers. -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |