From patchwork Thu Nov 17 03:47:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Chiu X-Patchwork-Id: 13046075 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3F581C433FE for ; Thu, 17 Nov 2022 03:49:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=hcFIJ0LcEztpsXgXNWluQ0ay6ASgHMxNpn4RtYC7XnM=; b=3WSQaUOojCV3oh Y76271d15f/g65aK6qFw/OseYYaxM9c3/cqaM5IS3fD/qavBJ8+SCV7E8bX2tJjILPqHq806vD5QF fuG5ACbusbJ3gePmiRMPTZJwHs+BdgrhmjRbAOFtaetSvj1QL0S3wmy1GwtsXbFFs7QlSNirVe0La EDczB5OwpazcmZcdzx/T15pbSCtrmbcfG207di1fPnpwKpOLdGkNpdkTJ1RxeHRyF7u7M/5bcZxMx XxP1FrVZNY8C47KOBDXIAwMJh2xlXDFZkh7TX05JCUCProf3gavuKwqj0NVXBvB/MoLGnhYmV9lBG 4pfMV1fZccE8fCeKpSjg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ovVsp-009uKm-QD; Thu, 17 Nov 2022 03:48:11 +0000 Received: from mail-pg1-x52c.google.com ([2607:f8b0:4864:20::52c]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ovVsh-009uIb-Fi for linux-arm-kernel@lists.infradead.org; Thu, 17 Nov 2022 03:48:04 +0000 Received: by mail-pg1-x52c.google.com with SMTP id v3so859388pgh.4 for ; Wed, 16 Nov 2022 19:48:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=88tOeLPsWCVekBUY0oEIMvHJFlQGAI2IcuZIBKwXMgk=; b=c6HN5X8ogZXBT+emdZAw+GFFddJNv3Bdvc7jKF6XT+QOtIzqFzqLIsnN5JDQf9XxX1 s4cEB7V1dC7Er++n6rCL/wO+FP5VAYkuxhMXoE/DSggfPWrq+yFZdMXEGxp5RlSSSADC U98HSRF9UNqoQj2pyI6GbYZXdNggdkKQCUzzFCXs3i/ziP78YVrzCQuKAiKs9DcWTkdQ BkceLRaUhrjvV7HWboucr+gHPOBNeb2KrmJ1FqhkQJltvkMKulkqKdTVay5YQA2AyYrG wN738GdVLm3NqMDszJ4H97RLw4citnKKAuTZvF2ZLU6cr5M159+4NKnyj7DFgifjk8KY uQAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=88tOeLPsWCVekBUY0oEIMvHJFlQGAI2IcuZIBKwXMgk=; b=HWZrzvsRm1C2T+WnDgF8bEsW2HmRjScLnNgH2WdiWRQWQBXIA6SH1uhTbJ6FCuLHqH q4phcZC3zYulACkHaVkC1j8FelT/meNGRAMRiVOqFdnPSLBOdcTlKHOsOn0KaBcoPuVn 1X9EEQNDyJkeaujZ92TNC0/mJ2EN9THYDDkdGphuWE9mLZGh28J6iLrDgUBrFEDZk65i LhzBOgMDnJTz6gmP32Lg47DxuLy9UsYKsOeP8Mz9S6Ny4A2hkvFfiblMJB2SqCR0icGR 43XxQqLSEQa2KAvsqXVCtOlA5zqYtDmsHe7o+kF8xSLoNcLb7taO7aKLCYVboGEn4D4H meMw== X-Gm-Message-State: ANoB5pkfE9WAuK6vzQCTO8KfU26RdCidsN436bHpGJpG6MZlbviU4XIg 6csg5ZDl15E9l5s81U5i1Qy2vg== X-Google-Smtp-Source: AA0mqf6UzanrSl30TKoAACSsgPmxqQlipIvSyZ6wJu4Pv8LLSXtFL11peF/jIFHvuEviKKwkT3eMpQ== X-Received: by 2002:a63:1345:0:b0:476:f92f:69f0 with SMTP id 5-20020a631345000000b00476f92f69f0mr371235pgt.463.1668656881797; Wed, 16 Nov 2022 19:48:01 -0800 (PST) Received: from archlinux.internal.sifive.com (59-124-168-89.hinet-ip.hinet.net. [59.124.168.89]) by smtp.gmail.com with ESMTPSA id p22-20020a1709027ed600b00187197c499asm13016723plb.164.2022.11.16.19.47.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Nov 2022 19:48:01 -0800 (PST) From: Andy Chiu To: davem@davemloft.net, andrew@lunn.ch, kuba@kernel.org, michal.simek@xilinx.com, radhey.shyam.pandey@xilinx.com Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, robh+dt@kernel.org, pabeni@redhat.com, edumazet@google.com, andy.chiu@sifive.com, greentime.hu@sifive.com Subject: [PATCH v4 net-next 1/3] net: axienet: Unexport and remove unused mdio functions Date: Thu, 17 Nov 2022 11:47:49 +0800 Message-Id: <20221117034751.1347105-2-andy.chiu@sifive.com> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20221117034751.1347105-1-andy.chiu@sifive.com> References: <20221117034751.1347105-1-andy.chiu@sifive.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221116_194803_549960_24BDB297 X-CRM114-Status: GOOD ( 11.87 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Both axienet_mdio_enable functions are no longer used in xilinx_axienet_main.c due to 253761a0e61b7. And axienet_mdio_disable is not even used in the mdio.c. So unexport and remove them. Signed-off-by: Andy Chiu Reviewed-by: Greentime Hu Reviewed-by: Andrew Lunn --- drivers/net/ethernet/xilinx/xilinx_axienet.h | 2 -- drivers/net/ethernet/xilinx/xilinx_axienet_mdio.c | 13 +------------ 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/drivers/net/ethernet/xilinx/xilinx_axienet.h b/drivers/net/ethernet/xilinx/xilinx_axienet.h index 6370c447ac5c..575ff9de8985 100644 --- a/drivers/net/ethernet/xilinx/xilinx_axienet.h +++ b/drivers/net/ethernet/xilinx/xilinx_axienet.h @@ -611,8 +611,6 @@ static inline void axienet_dma_out_addr(struct axienet_local *lp, off_t reg, #endif /* CONFIG_64BIT */ /* Function prototypes visible in xilinx_axienet_mdio.c for other files */ -int axienet_mdio_enable(struct axienet_local *lp); -void axienet_mdio_disable(struct axienet_local *lp); int axienet_mdio_setup(struct axienet_local *lp); void axienet_mdio_teardown(struct axienet_local *lp); diff --git a/drivers/net/ethernet/xilinx/xilinx_axienet_mdio.c b/drivers/net/ethernet/xilinx/xilinx_axienet_mdio.c index 0b3b6935c558..e1f51a071888 100644 --- a/drivers/net/ethernet/xilinx/xilinx_axienet_mdio.c +++ b/drivers/net/ethernet/xilinx/xilinx_axienet_mdio.c @@ -153,7 +153,7 @@ static int axienet_mdio_write(struct mii_bus *bus, int phy_id, int reg, * Sets up the MDIO interface by initializing the MDIO clock and enabling the * MDIO interface in hardware. **/ -int axienet_mdio_enable(struct axienet_local *lp) +static int axienet_mdio_enable(struct axienet_local *lp) { u32 host_clock; @@ -226,17 +226,6 @@ int axienet_mdio_enable(struct axienet_local *lp) return axienet_mdio_wait_until_ready(lp); } -/** - * axienet_mdio_disable - MDIO hardware disable function - * @lp: Pointer to axienet local data structure. - * - * Disable the MDIO interface in hardware. - **/ -void axienet_mdio_disable(struct axienet_local *lp) -{ - axienet_iow(lp, XAE_MDIO_MC_OFFSET, 0); -} - /** * axienet_mdio_setup - MDIO setup function * @lp: Pointer to axienet local data structure.