From patchwork Wed Dec 6 23:57:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 17649 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp4455465vqy; Wed, 6 Dec 2023 16:02:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IEUvi0qCx+8h5mkNGU84GGUpR6TwZHcNXWNWURaammbgUlHxjd5LqmYUmzRuL9q6VEioq3H X-Received: by 2002:a17:903:1c8:b0:1d0:7490:4ab8 with SMTP id e8-20020a17090301c800b001d074904ab8mr1316386plh.7.1701907345644; Wed, 06 Dec 2023 16:02:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701907345; cv=none; d=google.com; s=arc-20160816; b=cBN0+qDPzf9QCMzgsueAzdcwbSJjqHbwhHzOR746Ov/eUvaptrQSESKlWnxb1k7JNa nSDKPueXHSlgu73ZMf4pITIVUMCB4788tRxVM2kHt4XBU4sDigXCbghW7bD4nLv9i0tX EJa9fBGpdgH35Et7nmkFR3WftmibekQ+4edPxm0745iqsIP/bucsvWMuPF3KassGSulz jzDl8Qeh5OXSEUEriCx9ivOPSiTm1NB4D4WgQi6B5e5hyWKiR89KW86mhRQXOBK4PtYH 9tMeRU/PDzENzsI04y3tfcGk2C+6fiHWmO2AEwmIhdxgDS6PmeRIxWTroNM0dkBURVbI ensw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Tye+lFKaTYqQMgsTDUf39Nbyo3cJQMb67chfUAmRTkk=; fh=utmrxdkgikAlLxVfQI1kldUG+rNjhrLN+3fAlOYj01s=; b=rsi19NG5yV3RZHzZnz7Ecyhjfc7DmJyiW017wqONXtTrZXvX7SMRRly6tMAP7lCGXE oz9Un1y3jG4/ezWpw+vdgpMRX1MYKj6mLMBI8NyQWHNu7pLX7wRiKjJ0cFNm5bcKqDpe 4fUAuM69p/frWMlb1U4IYnKL32AElHMJZdDQjF6//1XWD3c8TRUmSu70KMdTqQ4abjGG jrxYjqo04kaeK0SUEQINXvx/2J4qBCglCyDIe3AHwQbAXKN0YC6bTFvMSKhH491LViXC Dgs9RZYYMI3Slu/KK9TkSwRvq/P6028bpHUQLYogzOcc935KYipsPH2fFLmz/nx3rSqM MK3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=dbGBai1F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id z11-20020a170903018b00b001cff3536eb6si51893plg.463.2023.12.06.16.02.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 16:02:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=dbGBai1F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 350C180D6E66; Wed, 6 Dec 2023 16:00:46 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1441869AbjLGAA1 (ORCPT + 99 others); Wed, 6 Dec 2023 19:00:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1441861AbjLGAAO (ORCPT ); Wed, 6 Dec 2023 19:00:14 -0500 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C209AD53; Wed, 6 Dec 2023 16:00:16 -0800 (PST) Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-40c2718a768so3801945e9.0; Wed, 06 Dec 2023 16:00:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701907215; x=1702512015; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Tye+lFKaTYqQMgsTDUf39Nbyo3cJQMb67chfUAmRTkk=; b=dbGBai1FcnchEliUCVgqnUcDbhL83cfGlpydbbbD4Hat3UlDIeQ52tYFjXo6QdqIcQ ArQy2RrzjkdvN9JBw1AVaWCT7Sl1E0oVH7jHY99TQvST/8k7dihwqcVXdfLyhXsy+a5q jXOZIAePG3JfYqLGRHnsRKV+np3xQsAPT/bBdTmeUTdLqEMI9MfeAyDbSWps4t/E6VTO zPXvNiV1dnBYRIvA+f3Rs6A9sS7+HoG80Ju/d3i6DVzz9CFV2IqcpBc5nB6fB/yGjD0k 10MqDVWMc4Ts0C5bEqo9/MhmHNXzP5nu77Qrgxf50tDwni3MJk7eZHqoyGXpt4N2PQ6O thKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701907215; x=1702512015; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Tye+lFKaTYqQMgsTDUf39Nbyo3cJQMb67chfUAmRTkk=; b=A9YkNwochvtf4hJN/3wdRP6r5sZeKkP7d51YU1gvA1qWZ2XHL/lFFmmchWeqB31GgM 3eka1d3k7+kulNU3qTlRDNNlIBgIr3JIWoVHNEzMvIxm2pO7CYl5+w0cJCK2rNwrpp5s feooPtk0z3lqqn7SfZdrwPyazG4maVyntmW3sWk2sKsb8yBGCLlLdEp0L+R4CN9ayW2U K39rGzZCG5C6HCfRnIKAXZECnU79VNkXuklbXwyU5mZQkJdLD4u2fqW3lMbn54/Wg65i bZbi+H36uDd6UC67p9lDqQHd2prxlo/ipIYpwohRo1a5Eikw3UO/WEZAdHGeszbFTGUI xXeg== X-Gm-Message-State: AOJu0YzbJaaN2+74ETZIGnlm/4SsaFkqcP/Ne9eOiOQBLJfDBxp+wWG/ v/ByzHdYSkqzdGkaRrtlSOw= X-Received: by 2002:a1c:7501:0:b0:40c:9fa:592f with SMTP id o1-20020a1c7501000000b0040c09fa592fmr913835wmc.104.1701907214820; Wed, 06 Dec 2023 16:00:14 -0800 (PST) Received: from localhost.localdomain (host-79-26-252-6.retail.telecomitalia.it. [79.26.252.6]) by smtp.googlemail.com with ESMTPSA id je16-20020a05600c1f9000b00405442edc69sm50280wmb.14.2023.12.06.16.00.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 16:00:14 -0800 (PST) From: Christian Marangi To: Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Christian Marangi Subject: [net-next PATCH v3 00/13] net: phy: at803x: cleanup Date: Thu, 7 Dec 2023 00:57:15 +0100 Message-Id: <20231206235728.6985-1-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 06 Dec 2023 16:00:46 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784579196346154952 X-GMAIL-MSGID: 1784579196346154952 The intention of this big series is to try to cleanup the big at803x PHY driver. It currently have 3 different family of PHY in it. at803x, qca83xx and qca808x. The current codebase required lots of cleanup and reworking to make the split possible as currently there is a greater use of adding special function matching the phy_id. This has been reworked to make the function actually generic and make the change only in more specific one. The result is the addition of micro additional function but that is for good as it massively simplify splitting the driver later. Consider that this is all in preparation for the addition of qca807x PHY driver that will also uso some of the functions of at803x. Subsequent series will come with the actual PHY split and other required cleanup. This is only to start the process with minor changes. Changes v3: - Add Reviewed-by tag from Andrew - Split patch 10 (at8031 rename) to rename and move Changes v2: - Drop split part due to series too big - Split changes even more - Fix problem pointed out by Russell (flawed reworked function logic) - Add Reviewed-by tag from Andrew - Minor rework to prevent further code duplication for cdt Christian Marangi (13): net: phy: at803x: fix passing the wrong reference for config_intr net: phy: at803x: move disable WOL to specific at8031 probe net: phy: at803x: raname hw_stats functions to qca83xx specific name net: phy: at803x: move qca83xx specific check in dedicated functions net: phy: at803x: move specific DT option for at8031 to specific probe net: phy: at803x: move specific at8031 probe mode check to dedicated probe net: phy: at803x: move specific at8031 config_init to dedicated function net: phy: at803x: move specific at8031 WOL bits to dedicated function net: phy: at803x: move specific at8031 config_intr to dedicated function net: phy: at803x: make at8031 related DT functions name more specific net: phy: at803x: move at8031 functions in dedicated section net: phy: at803x: move at8035 specific DT parse to dedicated probe net: phy: at803x: drop specific PHY ID check from cable test functions drivers/net/phy/at803x.c | 777 +++++++++++++++++++++------------------ 1 file changed, 428 insertions(+), 349 deletions(-)