From patchwork Tue Mar 21 12:25:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rix X-Patchwork-Id: 13182696 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 488D1C74A5B for ; Tue, 21 Mar 2023 12:26:08 +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: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:In-Reply-To:References: List-Owner; bh=mK4kvO998gF4kBXjYQGHKh5doixrw1muel7VJCUl8K8=; b=EXJ8sJmOwjRZ8X ndR1j1cW+pJ9x/LmN+P9s1lY7ZQO/xjlmMU8yLPYTsSuzVhatU7WLdtA5x/fC3OXAoNWDs0HReDPq ihCMAh1LttIotIyI2k44HW1FDtWLBVs7MGD/eyeCBuJWaPUnsfBYcw13funD+68IgVCIyed2N22yn d8mcoGzZ0V1Bex3eqeV58XyjcLm6k4E1McqovM/PSNnUCbFm6OFoJ/pMB+zLGyYy7vfLLKOH1MnuB VU13OMxGdaW+VoAEjx05jFWtEIw+Ao/uSZaau8pFk9gw69k17QO+1MfjZAULiL/JcgxXwHQkKggKO VZvCy1Ra5CeMyJBqQLsw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1peb3D-00CKHs-1b; Tue, 21 Mar 2023 12:25:15 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1peb39-00CKGO-1A for linux-arm-kernel@lists.infradead.org; Tue, 21 Mar 2023 12:25:13 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1679401509; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=DvleXWzKo7owjdbsJ/ezqbFS/5grOQZp7Yc6+zUXHrg=; b=UYrOQQhcxaDUqEL+NvXB1vXPQ+kMmzGMA0tjRUR5zWS84L1nrRUd4UfuHKYz0xlu21NxKy TQGJLTLyi3x03JXg2W9AdrAP9tXhVHeNLgKc5nFyapjVBRNUko1OqGPO3oriC3gh4tUolI JMLhZ6qBXjhO3AF9X7kuJEvMRAT8Evc= Received: from mail-qv1-f72.google.com (mail-qv1-f72.google.com [209.85.219.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-13-xRoDJ0mGPp2kWfnj97cgNQ-1; Tue, 21 Mar 2023 08:25:08 -0400 X-MC-Unique: xRoDJ0mGPp2kWfnj97cgNQ-1 Received: by mail-qv1-f72.google.com with SMTP id oo15-20020a056214450f00b005a228adfcefso7561673qvb.2 for ; Tue, 21 Mar 2023 05:25:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679401508; 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=DvleXWzKo7owjdbsJ/ezqbFS/5grOQZp7Yc6+zUXHrg=; b=C81UTM3Ue1LD51iSY0hgaKRfQG/f7UCww2ixW/cvZa5C8YjM+6Rj77jTtQmkQWxjM0 CTEZ2M7x5L58Dhzoqqq8MtAGO+1v8WUIJ8zivVEVxYSOIS2jEThUbebkdiV0bpZAoNPg NTZ3MdxG/EpNxHsG04aI8/OHmdFKZyFWNr4dy8LkruNYrmxNhHQ4kvcbOq6cPiQOrlmw 0JGKEexqgMf8Cyq9g0nesul6tfikdoB2goLvC4UkZU6CWQkSdPW0OW7fx1FEna1+ZcWG E6DJOt2y8Gj7wrDbaqNCeGDs3NcHeVCaLmCFT6etdeaTpIJxqqBa8xZtAVzxTD32NBr2 KdpQ== X-Gm-Message-State: AO0yUKXxmfYCM7ml4oJM/+5/c96zoBvDwaCPRxj0oQzyPQi7frtpaBtb Ev8fkueUGHyoy+F/SoUQdeEic1SExDSU/0AlKHql46nZOmIn35SP6Dv+WIA627tsUpwaqykFfon ObxZ6xn//pQSC3C+PLVMLebXywh78YpGPLOI= X-Received: by 2002:ad4:5bc8:0:b0:5ad:45f2:4307 with SMTP id t8-20020ad45bc8000000b005ad45f24307mr4916134qvt.11.1679401507835; Tue, 21 Mar 2023 05:25:07 -0700 (PDT) X-Google-Smtp-Source: AK7set8EmpoZ3TdzqMTm7C9Sgu5MCLSpoN63jx/YwhAb0d2bZ8QbqQ6cud+66aHksMRuFeiqkzW2AA== X-Received: by 2002:ad4:5bc8:0:b0:5ad:45f2:4307 with SMTP id t8-20020ad45bc8000000b005ad45f24307mr4916111qvt.11.1679401507571; Tue, 21 Mar 2023 05:25:07 -0700 (PDT) Received: from dell-per740-01.7a2m.lab.eng.bos.redhat.com (nat-pool-bos-t.redhat.com. [66.187.233.206]) by smtp.gmail.com with ESMTPSA id d185-20020a37b4c2000000b007425ef4cbc2sm9192747qkf.100.2023.03.21.05.25.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Mar 2023 05:25:07 -0700 (PDT) From: Tom Rix To: vkoul@kernel.org, kishon@kernel.org, heiko@sntech.de, nathan@kernel.org, ndesaulniers@google.com Cc: linux-phy@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, Tom Rix Subject: [PATCH] phy: rockchip-pcie: remove unused phy_rd_cfg function Date: Tue, 21 Mar 2023 08:25:03 -0400 Message-Id: <20230321122503.1783311-1-trix@redhat.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230321_052511_519364_28D3B8B0 X-CRM114-Status: UNSURE ( 8.74 ) X-CRM114-Notice: Please train this message. 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 clang with W=1 reports drivers/phy/rockchip/phy-rockchip-pcie.c:122:19: error: unused function 'phy_rd_cfg' [-Werror,-Wunused-function] static inline u32 phy_rd_cfg(struct rockchip_pcie_phy *rk_phy, ^ This function is not used, so remove it. Signed-off-by: Tom Rix --- drivers/phy/rockchip/phy-rockchip-pcie.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/drivers/phy/rockchip/phy-rockchip-pcie.c b/drivers/phy/rockchip/phy-rockchip-pcie.c index 75216091d901..8234b83fdd88 100644 --- a/drivers/phy/rockchip/phy-rockchip-pcie.c +++ b/drivers/phy/rockchip/phy-rockchip-pcie.c @@ -119,21 +119,6 @@ static inline void phy_wr_cfg(struct rockchip_pcie_phy *rk_phy, PHY_CFG_WR_SHIFT)); } -static inline u32 phy_rd_cfg(struct rockchip_pcie_phy *rk_phy, - u32 addr) -{ - u32 val; - - regmap_write(rk_phy->reg_base, rk_phy->phy_data->pcie_conf, - HIWORD_UPDATE(addr, - PHY_CFG_RD_MASK, - PHY_CFG_ADDR_SHIFT)); - regmap_read(rk_phy->reg_base, - rk_phy->phy_data->pcie_status, - &val); - return val; -} - static int rockchip_pcie_phy_power_off(struct phy *phy) { struct phy_pcie_instance *inst = phy_get_drvdata(phy);