Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp6003670ybg; Tue, 22 Oct 2019 11:32:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqxnKSlmUeHfb2Vcjggh8mSTXKaui/+p/cNPEDwO+by7CFz/4nRDk+lYLgOC291oPyfRkFi7 X-Received: by 2002:aa7:d8c7:: with SMTP id k7mr32607499eds.138.1571769148511; Tue, 22 Oct 2019 11:32:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571769148; cv=none; d=google.com; s=arc-20160816; b=jJ5mZvF4sWswcWdu/Vkdy6JPk8ysc8qXtWJWgD0i87rUEI9izuQhlGZkJimf44l5tT eiilOJYhowtRQtVHm3gpJb3x4JTp5MCsls+JuprLwYQfupCuvKNO3pGA/BICxvcPHja2 FZP1aM1qNBrA1D7YzZlU5mVgoA9FEocfBJg3mYKbMT5WUBKUoQofu+at/5Vj2otBq4cX 6WMTLNHW9VvEhZvfbGzxkS6cFBhJEiCtOaLpcbu7oV98sdzkVbhq+8HI810e8IVspB+b 4zJVR9MewsQf7E1BJlyMmu/PUXuJPbpzVAlW3ikrCjJthdUjTE6CaSbg7Opcv1/l+Zoo PQYw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=YeDvAjQsjrYrlLSuu+Jz91MnGz1OObnz6v+WgTTWu5c=; b=oDY0S6m/AfqrQq6U8m7NKnaxqJcQmk4+ZE3MTWCpWEOWyXgsN9q+l2bv9EtM03APCV qxRSndTnABhRoDkpOF/RStALDIwfl30Stm9mj24uDI4uwZ1MZfUHVj1xd+RRnXqdETOk drcUblxQQjh7rtxYqeP/ml6QzdS/7fRbPbbuqrPS/BOPjf4/sFl9UHPjevz0mk5Pihx6 IK5Sk3qqAOv9hYSNYUlDu6hHLj9KX41x9OOYP1SWFnu2dfmN9c5bv8y/cDPdRuoQM1Hc zVS5RzsKc+RO2qPPunG2u82ooQh0pYImP9Tpa3JWPe4eHA1blDBphZkYcSf8dGE0uUrV irvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gNztzyFH; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id jr6si10634116ejb.307.2019.10.22.11.32.02; Tue, 22 Oct 2019 11:32:28 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gNztzyFH; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732346AbfJVSbb (ORCPT + 99 others); Tue, 22 Oct 2019 14:31:31 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:42933 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729666AbfJVSbb (ORCPT ); Tue, 22 Oct 2019 14:31:31 -0400 Received: by mail-pf1-f194.google.com with SMTP id q12so11157170pff.9; Tue, 22 Oct 2019 11:31:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=YeDvAjQsjrYrlLSuu+Jz91MnGz1OObnz6v+WgTTWu5c=; b=gNztzyFHWTtfSDCaP/HfT9zML2AyKrbFMMzvR9H+nYAokweZkjfCBHOp3Xzh/GF+tZ davs+puk3rn8lzmgcQgZREMAXBv6WGKyR2GDKTuglcL8/a9h8L0+msxpAlh+GcVurkel B+U64TbXlLAq5tHow2iIei6DMzWMgD098kfesOkkv8+/M1vCXIv3Kb3xP/vQorI6pLh6 lUWAcHDbuf4T6S9FkFgnktH2QC6MbbeMpej6WEJuGeWWUw3bXS+dG8FmLZHUzUGNCx8f KRSX/3idatgF5LbyT9pCxGuGjOogxaAi3YHkKwXQEO9dDqLD2KWnYR6Yhe5P7MOELP9J aQWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=YeDvAjQsjrYrlLSuu+Jz91MnGz1OObnz6v+WgTTWu5c=; b=nt7NBRkjj1kr6fNEvAQpOiZ/f3kqKA72VbWZWJIdJQyc6E3D3Flylm+AEjXgRz2H5f K8FMQFPM8AufP5gbprtQl+cwQbIIfx0PV2+/9/CFcI+HmaWACAZXopMXEqmQmQBb48ap PPOQkd/rSkkm++TsPHuRbAPIPWb9cu82W+uKOkUa/oh3D+CvjVQL73gmp/UCu6XjRG4V N1Ffd5Qghj2AjoPSTMcihMeGPNtXvd8iNhWv8RbKv8/k8KGuAkHsqwIiz/yWMWwmXYIO GXBs1xlRf5awCGD5hzTLY+nBXOaUfL2xjACc97Cl9ISB1Mh+MNGs2ufzUqDwVcZtBS+c J1qw== X-Gm-Message-State: APjAAAWBdpZ2lYv0GoyNbdpjmlgu96uCyaIO+j5IkcpzDp49ikYTSAEM +KyRbxBUEv2lzqzdE7DkmFg= X-Received: by 2002:a17:90a:741:: with SMTP id s1mr6612216pje.113.1571769090041; Tue, 22 Oct 2019 11:31:30 -0700 (PDT) Received: from taoren-ubuntu-R90MNF91.thefacebook.com ([2620:10d:c090:200::2398]) by smtp.gmail.com with ESMTPSA id m19sm16787947pjl.28.2019.10.22.11.31.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Oct 2019 11:31:29 -0700 (PDT) From: rentao.bupt@gmail.com To: "David S . Miller" , Andrew Lunn , Florian Fainelli , Heiner Kallweit , Russell King , Vladimir Oltean , Arun Parameswaran , Justin Chen , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, openbmc@lists.ozlabs.org Cc: Tao Ren Subject: [PATCH net-next v10 0/3] net: phy: support 1000Base-X auto-negotiation for BCM54616S Date: Tue, 22 Oct 2019 11:31:05 -0700 Message-Id: <20191022183108.14029-1-rentao.bupt@gmail.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Tao Ren This patch series aims at supporting auto negotiation when BCM54616S is running in 1000Base-X mode: without the patch series, BCM54616S PHY driver would report incorrect link speed in 1000Base-X mode. Patch #1 (of 3) modifies assignment to OR when dealing with dev_flags in phy_attach_direct function, so that dev_flags updated in BCM54616S PHY's probe callback won't be lost. Patch #2 (of 3) adds several genphy_c37_* functions to support clause 37 1000Base-X auto-negotiation, and these functions are called in BCM54616S PHY driver. Patch #3 (of 3) detects BCM54616S PHY's operation mode and calls according genphy_c37_* functions to configure auto-negotiation and parse link attributes (speed, duplex, and etc.) in 1000Base-X mode. Heiner Kallweit (1): net: phy: add support for clause 37 auto-negotiation Tao Ren (2): net: phy: modify assignment to OR for dev_flags in phy_attach_direct net: phy: broadcom: add 1000Base-X support for BCM54616S drivers/net/phy/broadcom.c | 57 +++++++++++++- drivers/net/phy/phy_device.c | 141 ++++++++++++++++++++++++++++++++++- include/linux/brcmphy.h | 10 ++- include/linux/phy.h | 4 + 4 files changed, 205 insertions(+), 7 deletions(-) -- 2.17.1