From patchwork Fri Jul 14 06:31:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jie Luo X-Patchwork-Id: 12037 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a6b2:0:b0:3e4:2afc:c1 with SMTP id c18csp2309685vqm; Thu, 13 Jul 2023 23:34:25 -0700 (PDT) X-Google-Smtp-Source: APBJJlEW5eiMAhEXZbBYKLnoapQm9irTHGtStOyHh09f4ZqvLj01kM48BRZ2NW8GhtD3a293kFMw X-Received: by 2002:a17:907:7602:b0:988:a837:327e with SMTP id jx2-20020a170907760200b00988a837327emr2945012ejc.71.1689316464862; Thu, 13 Jul 2023 23:34:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689316464; cv=none; d=google.com; s=arc-20160816; b=oriYCon+TEfstXPNBiMueszTiLbP2CyceGZpBNe2xLxjEpXIJRDi1TGsPcxNmLXSCO u6Z9LlOBqwEPp7MWYg7UPegVSoBUYl1ZJsd9e+NBF+wxl27705TWl87iOE8KqaBgqjOS ILUfszbubXkbMdDoUcxMxG9bhnhh9d8lzlZPYrv9VtCPje5ie4XsA8dfjSBSxre7sKSG 5KjrCxeN5FwAScZ7g9EPfDu1tGx02RLiNdHdyDjxsn3d3D15XUP7hTdQ16yxOCGUuHak syQELGt+EG0BnpIw0IpxYSOr0ShUHUpbRF+jtuYAfJBhCzDd4k3XA17isRQDtBkUxcm8 htxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=MmGhu+/5RRPzkPlPjLdjT//+w2f0Pcq5VDgdzCBOCD8=; fh=gVU0szpfyKL/tGzekjkLxkm9WXzJxBFICVcvBdLpZfE=; b=oDE9fyB9breYhBGNKA4tkeFZW3y7zfL9ZkgBOtdBTdcAfKiBJGFAufn8fZpBRV/5U5 TvfCBUkCSPoQQwPfHawtg+utTLbc8wg3/t/TV/isv7LtIGs6lS7jq8EAnryP3AF7x1Ad YC0NxIbva0cv1nsuCA0NTjOoFx9h4TkHBedu2vjtj0qOpaSt98wN6BW5jKTM/FVgp+g9 1Vt9UK33fvkN/1t3b9VyWaOhODJAzmOMjyag+HEpkTeDRbhiEKsHd3bwEtfStf0/ich0 hTncDyBcnEIO3673d3CWjEiAPy5wxF+z0YF/V4UrZmrmOkMe1iiZqRg2Wu1V/PyGLi2k qugQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=p8dkjBC2; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kg5-20020a17090776e500b00991f1e4b041si8445087ejc.737.2023.07.13.23.34.02; Thu, 13 Jul 2023 23:34:24 -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; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=p8dkjBC2; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235204AbjGNGcP (ORCPT + 99 others); Fri, 14 Jul 2023 02:32:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235186AbjGNGcL (ORCPT ); Fri, 14 Jul 2023 02:32:11 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DCCED2713; Thu, 13 Jul 2023 23:32:10 -0700 (PDT) Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36E4qfQr021009; Fri, 14 Jul 2023 06:31:58 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=qcppdkim1; bh=MmGhu+/5RRPzkPlPjLdjT//+w2f0Pcq5VDgdzCBOCD8=; b=p8dkjBC2Kb2Q9EheQlxaeGtZpqxRRsk7TzixZoAu/lxzphz7qY2Wo4M4m6TNdXYqbdSp ro/jwyNBUWNlGLUAUYjJpdtpnI3jdWI8/G7lmPZAWkgpDtmhDifQ94Nsnm7Of/oPR7yT lnkSP5QGpE8t8wJk0r74TaD8gHcFuGhuTO+KG752WsVRPrq+ifnA4X/K3SjRSqU6XH5i MkhLR5kFzt5NgenCVIeVPOB0pFlBuKFpDEhzm8WIpN7TqwITwH3pjbkf37zSl44TmqEX x6obnMbiSq/zNKsn+GHJHZvtgkaD2jsewjfPvdZ5iLdpdDCmPfv1jZkDsyyeHvOrKMpV Bw== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3rtpujs0r2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 14 Jul 2023 06:31:58 +0000 Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 36E6VvKB009296 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 14 Jul 2023 06:31:57 GMT Received: from akronite-sh-dev02.qualcomm.com (10.80.80.8) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.30; Thu, 13 Jul 2023 23:31:54 -0700 From: Luo Jie To: , , , , , , CC: , , Luo Jie Subject: [PATCH v2 0/6] net: phy: at803x: support qca8081 1G version chip Date: Fri, 14 Jul 2023 14:31:30 +0800 Message-ID: <20230714063136.21368-1-quic_luoj@quicinc.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: rx322_bbutwS5fDwNb16U2Z2tPWIasM1 X-Proofpoint-ORIG-GUID: rx322_bbutwS5fDwNb16U2Z2tPWIasM1 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-07-14_03,2023-07-13_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 phishscore=0 mlxscore=0 priorityscore=1501 adultscore=0 clxscore=1015 suspectscore=0 lowpriorityscore=0 spamscore=0 bulkscore=0 mlxlogscore=680 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2307140059 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771376701492561314 X-GMAIL-MSGID: 1771376701492561314 This patch series add supporting qca8081 1G version chip, the 1G version chip can be identified by the register mmd7.0x901d bit0. In addition, qca8081 does not support 1000BaseX mode and the sgmii fifo reset is added on the link changed, which assert the fifo on the link down, deassert the fifo on the link up. Changes in v1: * switch to use genphy_c45_pma_read_abilities. * remove the patch [remove 1000BaseX mode of qca8081]. * move the sgmii fifo reset to link_change_notify. Changes in v2: * split the qca8081 1G chip support patch. * improve the slave seed config, disable it if master preferred. Luo Jie (6): net: phy: at803x: support qca8081 genphy_c45_pma_read_abilities net: phy: at803x: merge qca8081 salve seed function net: phy: at803x: enable qca8081 slave seed conditionally net: phy: at803x: support qca8081 1G chip type net: phy: at803x: remove qca8081 1G fast retrain and slave seed config net: phy: at803x: add qca8081 fifo reset on the link changed drivers/net/phy/at803x.c | 132 +++++++++++++++++++++++++++------------ 1 file changed, 91 insertions(+), 41 deletions(-) base-commit: def3833fc6022c7f23bd4fd66ba5ed65c6b23272