From patchwork Fri Jun 23 10:08:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 13290272 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5C6485665 for ; Fri, 23 Jun 2023 10:08:53 +0000 (UTC) Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E3CF82D5F for ; Fri, 23 Jun 2023 03:08:50 -0700 (PDT) Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-3f9c0abc8b1so5937455e9.1 for ; Fri, 23 Jun 2023 03:08:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20221208.gappssmtp.com; s=20221208; t=1687514929; x=1690106929; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=fDzo5p1mZFBjmKSvhuFKJUtPJvnlJYcgbu3Ka9Hgxzg=; b=LveZnjMCCP6/fpLmRtKGNhRIBVmVK8oK/2H6vqKNdprxDvC+pY1VSdVbkOKJTvvbeh HAkpEq2O+8Ih/1+l7K/hMvqY7rl1E+km397snNYReBh684dv2IA+Gg0TxACACoVd0x1U K0avKe8Yg2bXKN8LZZPJFbYrRZemip/M1Q+5QFfl2NpRD1KdtE4Mt2XJTceKYZr+DVLI BCyUILxBK8ac65/zzcIWnljpVK6Ih3fAnp95R60fB2wPiwh3wY9uFQqN6pjPu76/5dzP Iz+P9QuFEVVQz1pZdtdHTIA1crTylPnUmO9ubd8DNDyMv8W+S703s78z05Q/Nyn8RREA cLEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687514929; x=1690106929; 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=fDzo5p1mZFBjmKSvhuFKJUtPJvnlJYcgbu3Ka9Hgxzg=; b=ZUmbEX3itwdrlo/vRyRynWWixuHFsoGn6XC99Qqa7gHxZhOFJ+gypE0Py+1tmlLkNZ hRMGtnPJoflCMZMyJrOohNlNZGyJWL+s5LF2Pbv43snm04ZwVlvDRwXB+Cx4JAeJct/2 3VpWpTiCjcOp3n8UnXgTaS7U+AKxTfto67GP1qn/oz3p7kLa/v29ng+L5NOM4hLp+Y3e jYIQHOOd8tCjUpAnBlK0PNC3DMw/1G4U2G/Lz3voeWdg0R9kUWtkHkVNsyvalsYDh7hd /Zp99ov1w5LSqszcyrn9vIm1t7mLHmlJaINB/RrDkQmPQvuj7RPzR7BiWztprao5IyRq yoDw== X-Gm-Message-State: AC+VfDxWOMZfQtH5XNsUckUdHKA0ZKUBK7T/8aBcjk25gMHQ7db7LgEm O1dVzk2c36YoUjgq1aZcDVvonA== X-Google-Smtp-Source: ACHHUZ68lFgy+5quSvGjq6/o294si3N8IqybkvRXb9VA4ggHvddBsyRaC/PDXNVdHtbL1mYT0kS3XQ== X-Received: by 2002:a05:600c:22cf:b0:3f9:b358:8197 with SMTP id 15-20020a05600c22cf00b003f9b3588197mr10247113wmg.11.1687514929338; Fri, 23 Jun 2023 03:08:49 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:ddc2:ce92:1ed6:27bd]) by smtp.gmail.com with ESMTPSA id k18-20020adfe8d2000000b0030ae3a6be4asm9278100wrn.72.2023.06.23.03.08.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Jun 2023 03:08:48 -0700 (PDT) From: Bartosz Golaszewski To: Vinod Koul , Bhupesh Sharma , Andy Gross , Bjorn Andersson , Konrad Dybcio , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , Maxime Coquelin , Andrew Halaney Cc: netdev@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, Bartosz Golaszewski Subject: [PATCH net-next v2 00/12] net: stmmac: replace boolean fields in plat_stmmacenet_data with flags Date: Fri, 23 Jun 2023 12:08:33 +0200 Message-Id: <20230623100845.114085-1-brgl@bgdev.pl> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE, 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 lindbergh.monkeyblade.net X-Patchwork-Delegate: kuba@kernel.org From: Bartosz Golaszewski As suggested by Jose Abreu: let's drop all 12 boolean fields in plat_stmmacenet_data and replace them with a common bitfield. v1 -> v2: - fix build on intel platforms Bartosz Golaszewski (12): net: stmmac: replace the has_integrated_pcs field with a flag net: stmmac: replace the sph_disable field with a flag net: stmmac: replace the use_phy_wol field with a flag net: stmmac: replace the has_sun8i field with a flag net: stmmac: replace the tso_en field with a flag net: stmmac: replace the serdes_up_after_phy_linkup field with a flag net: stmmac: replace the vlan_fail_q_en field with a flag net: stmmac: replace the multi_msi_en field with a flag net: stmmac: replace the ext_snapshot_en field with a flag net: stmmac: replace the int_snapshot_en field with a flag net: stmmac: replace the rx_clk_runs_in_lpi field with a flag net: stmmac: replace the en_tx_lpi_clockgating field with a flag .../stmicro/stmmac/dwmac-dwc-qos-eth.c | 4 +- .../net/ethernet/stmicro/stmmac/dwmac-intel.c | 23 +++++------ .../ethernet/stmicro/stmmac/dwmac-mediatek.c | 5 ++- .../stmicro/stmmac/dwmac-qcom-ethqos.c | 8 ++-- .../net/ethernet/stmicro/stmmac/dwmac-sun8i.c | 2 +- .../net/ethernet/stmicro/stmmac/dwmac-tegra.c | 4 +- .../ethernet/stmicro/stmmac/stmmac_hwtstamp.c | 4 +- .../net/ethernet/stmicro/stmmac/stmmac_main.c | 40 +++++++++++-------- .../net/ethernet/stmicro/stmmac/stmmac_pci.c | 2 +- .../ethernet/stmicro/stmmac/stmmac_platform.c | 10 +++-- .../net/ethernet/stmicro/stmmac/stmmac_ptp.c | 5 ++- include/linux/stmmac.h | 26 ++++++------ 12 files changed, 76 insertions(+), 57 deletions(-) Reviewed-by: Andrew Halaney