Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2010548pxf; Sat, 3 Apr 2021 07:56:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwNqiXZXGxIwYWRkjIgmZWo90wH+fXk6w4Wb53ZLODAdkUuc1/S7FzROnGp4RfJaS3ovPS0 X-Received: by 2002:a17:906:5295:: with SMTP id c21mr19614676ejm.67.1617461811145; Sat, 03 Apr 2021 07:56:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617461811; cv=none; d=google.com; s=arc-20160816; b=I3rq39yLuX4vfmbb/Erxe8ltbO3cbH7A6N7jHJUNVFNm+6tQCZFLdFg3XHN8cle3tI tHkGrbqQnlAcrg/q2gE4SqyhjIeqdUK3xUwm33tibv00l7TYw7p5AWALHObYY+NHG7Bz VraU0/om8jnalLqUTwPUOEgFxO7AlwCpl/HoEeKwCI+8AOrs9DJKWrEuScE8+DzzQJ6b BFRVQwrnQwYT0wUjRLReCKf5YfsBnwXIFOfMPZYck7sEP9QUUGnQYcv5CV7L6mbPNCDu s3x9srGdIk9vbBqRSYLbMp+Tl3tuntRgKWeiRME6e/ou+jdLgvZZcQBvgnrV6+X7BYOI 8RMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=nE56C6tbk+4umwu5w12/45QyDF4Ag1BS/ybFf31l+jo=; b=VLVKWmqjCkldlOORq5M2PR0u+5/Bj6tDb88Jq+yYjfmh3N0Z3mqQHBJWS4+YVucxwY wwKb0jMM7nFWtfrQYsEa8w7JRsZaV7/6lUG9NCTANbmeH2nV4BgZwBi+wLXTRtZGkoGN u2y2k6AVE4ChDpkRYAzzA29JPkmXkR1eD7etZgliNcKi6ywUixWh4MoKbpSMyaNMalM6 bC35p16YLLzj81NUtan/0NZFYDZ99HlsT3lxPDkUvnnw/dIj8ARF2NuYkoLTs6vLznC8 8m1i4SALkftjXde9Z1jvBnTWnsF8nuVst55k6x/QE8uyVV3gojJ8KDShXgA2AME+nvM+ NGVA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g13si9251506ejc.80.2021.04.03.07.56.26; Sat, 03 Apr 2021 07:56:51 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236656AbhDCOz7 (ORCPT + 99 others); Sat, 3 Apr 2021 10:55:59 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:32812 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236364AbhDCOz5 (ORCPT ); Sat, 3 Apr 2021 10:55:57 -0400 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1lShgh-00Ee3U-Vd; Sat, 03 Apr 2021 16:55:47 +0200 Date: Sat, 3 Apr 2021 16:55:47 +0200 From: Andrew Lunn To: Oleksij Rempel Cc: Vivien Didelot , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Jakub Kicinski , Russell King , Pengutronix Kernel Team , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org Subject: Re: [PATCH net-next v1 3/9] net: dsa: qca: ar9331: reorder MDIO write sequence Message-ID: References: <20210403114848.30528-1-o.rempel@pengutronix.de> <20210403114848.30528-4-o.rempel@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210403114848.30528-4-o.rempel@pengutronix.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Oleksij Maybe add a short comment about why the order is important. > - ret = __ar9331_mdio_write(sbus, AR9331_SW_MDIO_PHY_MODE_REG, reg, val); > + ret = __ar9331_mdio_write(sbus, AR9331_SW_MDIO_PHY_MODE_REG, reg + 2, > + val >> 16); > if (ret < 0) > goto error; > > - ret = __ar9331_mdio_write(sbus, AR9331_SW_MDIO_PHY_MODE_REG, reg + 2, > - val >> 16); > + ret = __ar9331_mdio_write(sbus, AR9331_SW_MDIO_PHY_MODE_REG, reg, val); > if (ret < 0) > goto error; > > return 0; > + > error: > dev_err_ratelimited(&sbus->dev, "Bus error. Failed to write register.\n"); > return ret; With that: Reviewed-by: Andrew Lunn Andrew > -- > 2.29.2 >