Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp695759rdb; Thu, 30 Nov 2023 16:15:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IGZOkk5/xp4huNATP85iUN2A+FgmeiNBh2wYMoF6aFI9yQHOesHq1libe7kaJG3hhlBpQ+L X-Received: by 2002:a05:6a20:438a:b0:18a:e176:5283 with SMTP id i10-20020a056a20438a00b0018ae1765283mr23995066pzl.39.1701389721808; Thu, 30 Nov 2023 16:15:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701389721; cv=none; d=google.com; s=arc-20160816; b=jxSqt1xOyJCU3SFf0jURI/bRrQPJTjzcnnQlpTadLXDnfEajkMlu9ht3bOoy28ltsR Vqlw2sTIAs20LYgJ+d+q3biNx1yLv45S6foF/iSht5hlO5J+/fCWVeSSWXs57vawtEoa dhzniaPez7IZGJX7seE77XzJWq9rCFCXXnHYHcnCQM+MHTjwgHH4Z1hQlRJvmNqnu07q izFFwQVweGqPKLe2FnvJiMXOHBVKN0Hl5Mt2kj0RyiNm1xfj8yaPbNnxNroMuPZIRa4H uu5LngGR645I8iouB4SUIFirirMuUNHeckYOpbo7kYpKt3kcaAoqZU8mXQ9e/9c45IHZ fBqg== 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=rbMRUAfFn47SD4U+uFEOnC9vSvmwUi2NELQbNX2DDtA=; fh=utmrxdkgikAlLxVfQI1kldUG+rNjhrLN+3fAlOYj01s=; b=w2ceLu75FcCY8XTAnGxDPEYye2ObbdoL07mrWZhHzZqfkYCuAIq5CdfRNR0LjRwUNk ogXCIq17uz/ECyt9lwfkDqPsZTS2pUXFtwjyxodkdkT1RgSyKOo4GMf8THg+biWq4VKX +WyiKWYNeZBV97bfxmswqdfx7VgA+5mFj/NI9+keN/csgd/owH1FoIRY+Q2LqLf4oYUc /x9tS3Lg40E4yWoAik4XarCo2poNiL3hmU8lTE6GdXnI3HxSU0SXsOuzE+QgtJY5SFXZ m5NeOWHfZ6sfXVMkbhSPMqfpLJBYcETz9g+vncYblpimdkDV1o/hA+xONxJS5/NaRtT/ tKpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Y8Lu5ZJ5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id j7-20020a056a00234700b006cd91c72789si2260263pfj.162.2023.11.30.16.15.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 16:15:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Y8Lu5ZJ5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id 870E685F6E8E; Thu, 30 Nov 2023 16:15:02 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377389AbjLAAOo (ORCPT + 99 others); Thu, 30 Nov 2023 19:14:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377352AbjLAAOo (ORCPT ); Thu, 30 Nov 2023 19:14:44 -0500 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6337D196; Thu, 30 Nov 2023 16:14:50 -0800 (PST) Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-333308c3683so131140f8f.3; Thu, 30 Nov 2023 16:14:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701389689; x=1701994489; 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=rbMRUAfFn47SD4U+uFEOnC9vSvmwUi2NELQbNX2DDtA=; b=Y8Lu5ZJ5uUoM3fQHPT234pGNqTsADTnSPR37N6u4gZOYOSb4MJmZe5+xvbUWLs32rM YxdyeCznqi2NTRu6SgL78J7kL5NhzPT4XbTNWWeajdJyqpx+aSG08gvtgI30jiA5/Yqj XpyjA548HcT2rn15QOyTENdLZUVyJGIWGKPldTX47/OlDBHWpwQRVYuGx1a/rPAKupH2 sn7nZ/XAk2H51KWL3Vm6OyB5+1aHZtDqS2H1OTrPbyjhzNj6dGkEyugLe5d/T+Ujdp1B AO5KnvHlpkHAiMSpok6ymlI4DXsqoYoiVb5jFn/vGCgMHnnOmdSe7JhMI/xWzlO53pD4 ZsfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701389689; x=1701994489; 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=rbMRUAfFn47SD4U+uFEOnC9vSvmwUi2NELQbNX2DDtA=; b=O/J6TrKVNM44MpwZsAVwFObL9oLeRJ8Rrj3EpN/IK3RjzE8V8ifVpO55LhMM2cOrDT nh/wrB0mN+mQEgNyBobjiMSGVPoCviLLuNjDw+cbKA82mb4TJwvop21TutarouQVUwEY 7MKFkGc3yldz+fMjihZZKnZa5F7U0DvAPXl/k/qvpbKuEX3OcUELcY8hCZvixkqZC3GM yOmcGJ5tU9g91cfx6xVy/HVm0XRbFZNxhfKVpAZd2xFkPDQDv0DpfLx6WAgp6KOvuL+p hFtfnUNlGx5SIcto4iJTJqpH6fRuxnznJZ1VVc+KypMlwrrK6dyHUR7XQHkOcCe1GJmV M3og== X-Gm-Message-State: AOJu0YwUASC09yZ+OtED7hcCuG5jNKSrKyeZGM+4Rx0hvgdFiHDMlxbF 6V5fgaT+wAVNKVVtakuJFdg= X-Received: by 2002:adf:e983:0:b0:333:2fc4:464 with SMTP id h3-20020adfe983000000b003332fc40464mr147908wrm.93.1701389688625; Thu, 30 Nov 2023 16:14:48 -0800 (PST) Received: from localhost.localdomain (93-34-89-13.ip49.fastwebnet.it. [93.34.89.13]) by smtp.googlemail.com with ESMTPSA id g16-20020a05600c4ed000b0040b47c53610sm3535457wmq.14.2023.11.30.16.14.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 16:14:48 -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 v2 00/12] net: phy: at803x: cleanup Date: Fri, 1 Dec 2023 01:14:10 +0100 Message-Id: <20231201001423.20989-1-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email 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 (howler.vger.email [0.0.0.0]); Thu, 30 Nov 2023 16:15:02 -0800 (PST) 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 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 (12): 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 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(-) -- 2.40.1