From patchwork Fri Dec 1 00:14:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 17370 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp775805vqy; Thu, 30 Nov 2023 16:14:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IH9y2ZoUYex4nvW23+PZ5qPC5vs8/DR6Lz7/6zWRDVuwgNXskGJlPG5jKQTBqhQRU2JKc/2 X-Received: by 2002:a05:6a20:5615:b0:18b:cdd4:1cb6 with SMTP id ir21-20020a056a20561500b0018bcdd41cb6mr21111423pzc.29.1701389698799; Thu, 30 Nov 2023 16:14:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701389698; cv=none; d=google.com; s=arc-20160816; b=K/+qxts7g7voR5VYQQzh5fp0DdXRygkSfvmlDjECJ43Gi6PxK/ChqLJszeT7Fiu8sm 2ogNCt7Bkp3Ti2ad8RJZDCp6Q6j7cZ4ZNOzDBB/VHbANI61Vqx9j9/DgI7xjtb8P9uvb iBj83ZATaEr8D912G8uUC8ZriePyG6EA+QM0HA9Hk7Mwdxx4dgQ5RHLlYqL8gstmrnI+ i7Rc/b08idnzgw8EMAoOGzCspliJCzCiVdGsv//A3NCV9uqlLxIs/RttsW6KImQBIt70 Caeo3Yx9+1YRwBQUHHFKq8lRpeLnyFbcQqeaUCgquE3wZq7G9kJHbI0igXBXRXZHP4lj P8wg== 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 Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id gx21-20020a056a001e1500b006c32b301f74si2150543pfb.39.2023.11.30.16.14.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 16:14:58 -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 4626B85E3D76; Thu, 30 Nov 2023 16:14:53 -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 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:14:53 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784036404848199278 X-GMAIL-MSGID: 1784036404848199278 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(-)