Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp362909ybl; Fri, 23 Aug 2019 01:56:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqwBjmfkXlUlFlkn8dwUMk+bSZJcloks7f4Cr9dzJHToxcpYZRqT1/qF0NGTRZzKFdFZ243r X-Received: by 2002:a63:69c1:: with SMTP id e184mr2884497pgc.198.1566550606814; Fri, 23 Aug 2019 01:56:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566550606; cv=none; d=google.com; s=arc-20160816; b=WdXjJZ6ZWt9Jf9LM0qlvz6WFaWKelbW8Szr8yMOR+cm7RsJteoepYygnOlMtWa1gWg JGh7c27GEJrTP4SS11EJrrl+iJSR/cysxvlMohbQlX0kGL1BEgcSCjdgpUBb/0qURgxJ tRIYCfdrJKSBZxk/GukJVVQur0Gye617a7asCQp69d/jpDs31Wr8IjaQKCbFbnXh0fBk ZT8tnSzrVpyS3zHF2XHSfQMrh+twOvLl7q34qpPqalfEm//aKZAJAiarSeFuq6BlRjek 7EC2L2IULOMS5Y1AzN7IsO1TAvC5poiIbhfu0yvOubq8cC+9PkaezmRua0Z4NTf9t7Bk /DVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=x0oTck/XS88pYPbHJgtMxIMhVyJIf4jaAEWayw5xNpY=; b=BlFvhFNkFiy79piORWV98s1DjDR6V9k2Q6IB0NlZGPyAJJMRZ2B/+vJ1DcN0Msg0ao KuzqR9WOkF1ow5OKsyQKSS8+7JYCuCHkR4hcZ6E1hTUvSxC1p96GZh3Jj6onLnVCIMZX IpjztoqHc6o0/4Qer1EG0NfavsI8sdfIJazVQeH5vBW6Kiga5C6pLFQrKxdHGEt3hoAp 47Mr7nspdfrppXrW5Glxv5ahl+rU6d4X+u4Vxtk+ZDK4QnMaGwD3X8d+/XpqUMLmlov6 gH+GcOcIi3BZ1+FH5unaQd1AC8gAda+ZvF+RQPdyTE0VPuC65FR6ksHP5/10G88snz0V J23A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r23si1499233pgv.451.2019.08.23.01.56.31; Fri, 23 Aug 2019 01:56:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405577AbfHVXQX (ORCPT + 99 others); Thu, 22 Aug 2019 19:16:23 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:50420 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2394284AbfHVXQX (ORCPT ); Thu, 22 Aug 2019 19:16:23 -0400 Received: from localhost (unknown [IPv6:2601:601:9f80:35cd::d71]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 0F2891539AF1E; Thu, 22 Aug 2019 16:16:23 -0700 (PDT) Date: Thu, 22 Aug 2019 16:16:22 -0700 (PDT) Message-Id: <20190822.161622.97568202266351755.davem@davemloft.net> To: marco.hartmann@nxp.com Cc: fugang.duan@nxp.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, christian.herber@nxp.com Subject: Re: [PATCH v2 net-next] net: fec: add C45 MDIO read/write support From: David Miller In-Reply-To: <1566387814-7034-1-git-send-email-marco.hartmann@nxp.com> References: <1566387814-7034-1-git-send-email-marco.hartmann@nxp.com> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Thu, 22 Aug 2019 16:16:23 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Marco Hartmann Date: Wed, 21 Aug 2019 11:43:49 +0000 > IEEE 802.3ae clause 45 defines a modified MDIO protocol that uses a two > staged access model in order to increase the address space. > > This patch adds support for C45 MDIO read and write accesses, which are > used whenever the MII_ADDR_C45 flag in the regnum argument is set. > In case it is not set, C22 accesses are used as before. > > Signed-off-by: Marco Hartmann > --- > Changes in v2: > - use bool variable is_c45 > - add missing goto statements Applied, thank you.