From patchwork Fri Dec 20 10:05:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: MD Danish Anwar X-Patchwork-Id: 13916470 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 2F8A3E77188 for ; Fri, 20 Dec 2024 10:15:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding: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=1MaBBJNf/sdZSZeruGQA/2P1aMgv7qEMWaVMx6hnBCQ=; b=GOJRZM+qgj4Q5nBUo3pMhlwLCm d0649ON6mN2lraGILjTv0c/0meBrosL/QkxUXC5mH1/e+DUSfigW3aM9yHadv8XE67CsyoRa/a7Kc uIsuHUeIUrpEOg47xwm5lw3+4WRB2VyG94vfmGc7vH7sH8chOrHBHXgf8kthbnNZ9M3n6XVeo0uvL ITnh+DxTXm/QvbFSnF0GqAQxFQSUGfELvTmCwYPe7nYbiefBFa6w3sYUUvzLelU8tvuO2dxHf+Eo5 bLmXBuo8xePas3BG/8DBTu2XMw2foAYfgKoXXO5IXesehu6MSgUu8xJJ6FxNOWJm0FsZY7aRvQFNN GQiDgAuA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tOa2G-00000004YKh-00G8; Fri, 20 Dec 2024 10:15:08 +0000 Received: from lelv0142.ext.ti.com ([198.47.23.249]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tOZss-00000004WLf-0v2G for linux-arm-kernel@lists.infradead.org; Fri, 20 Dec 2024 10:05:27 +0000 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 4BKA5EFH098155; Fri, 20 Dec 2024 04:05:14 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1734689114; bh=1MaBBJNf/sdZSZeruGQA/2P1aMgv7qEMWaVMx6hnBCQ=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=nkqWva0vNkFsK0YuQp7moCif7/fCmG4UTYEevso06WixZIGmX86EJFchweWk9CeuQ ecVJdnL+ypyGfSHrXtUT6P1NKEOSHwvqfLoyDp15WyxQZ5wwBLEb5y+Q8+NweQdMrE lnuMUrVko6yCeALISyM6Xmwmh3qR3aaKfCu1VbeQ= Received: from DLEE109.ent.ti.com (dlee109.ent.ti.com [157.170.170.41]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 4BKA5EKH042719 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 20 Dec 2024 04:05:14 -0600 Received: from DLEE112.ent.ti.com (157.170.170.23) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Fri, 20 Dec 2024 04:05:13 -0600 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DLEE112.ent.ti.com (157.170.170.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Fri, 20 Dec 2024 04:05:13 -0600 Received: from fllv0122.itg.ti.com (fllv0122.itg.ti.com [10.247.120.72]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 4BKA5DBL039580; Fri, 20 Dec 2024 04:05:13 -0600 Received: from localhost (danish-tpc.dhcp.ti.com [10.24.69.25]) by fllv0122.itg.ti.com (8.14.7/8.14.7) with ESMTP id 4BKA5DxU003722; Fri, 20 Dec 2024 04:05:13 -0600 From: MD Danish Anwar To: , , , , , CC: , , , Vignesh Raghavendra , Roger Quadros Subject: [PATCH v2 1/2] soc: ti: pruss: Fix pruss APIs Date: Fri, 20 Dec 2024 15:35:07 +0530 Message-ID: <20241220100508.1554309-2-danishanwar@ti.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241220100508.1554309-1-danishanwar@ti.com> References: <20241220100508.1554309-1-danishanwar@ti.com> MIME-Version: 1.0 X-C2ProcessedOrg: 333ef613-75bf-4e12-a4b1-8e3623f5dcea X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241220_020526_344327_DAF2C98A X-CRM114-Status: GOOD ( 12.04 ) 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 PRUSS APIs in pruss_driver.h produce lots of compilation errors when CONFIG_TI_PRUSS is not set. The errors and warnings, warning: returning 'void *' from a function with return type 'int' makes integer from pointer without a cast [-Wint-conversion] error: expected identifier or '(' before '{' token Fix these warnings and errors by fixing the return type of pruss APIs as well as removing the misplaced semicolon from pruss_cfg_xfr_enable() Fixes: 0211cc1e4fbb ("soc: ti: pruss: Add helper functions to set GPI mode, MII_RT_event and XFR") Signed-off-by: MD Danish Anwar Reviewed-by: Roger Quadros --- include/linux/pruss_driver.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/linux/pruss_driver.h b/include/linux/pruss_driver.h index c9a31c567e85..2e18fef1a2e1 100644 --- a/include/linux/pruss_driver.h +++ b/include/linux/pruss_driver.h @@ -144,32 +144,32 @@ static inline int pruss_release_mem_region(struct pruss *pruss, static inline int pruss_cfg_get_gpmux(struct pruss *pruss, enum pruss_pru_id pru_id, u8 *mux) { - return ERR_PTR(-EOPNOTSUPP); + return -EOPNOTSUPP; } static inline int pruss_cfg_set_gpmux(struct pruss *pruss, enum pruss_pru_id pru_id, u8 mux) { - return ERR_PTR(-EOPNOTSUPP); + return -EOPNOTSUPP; } static inline int pruss_cfg_gpimode(struct pruss *pruss, enum pruss_pru_id pru_id, enum pruss_gpi_mode mode) { - return ERR_PTR(-EOPNOTSUPP); + return -EOPNOTSUPP; } static inline int pruss_cfg_miirt_enable(struct pruss *pruss, bool enable) { - return ERR_PTR(-EOPNOTSUPP); + return -EOPNOTSUPP; } static inline int pruss_cfg_xfr_enable(struct pruss *pruss, enum pru_type pru_type, - bool enable); + bool enable) { - return ERR_PTR(-EOPNOTSUPP); + return -EOPNOTSUPP; } #endif /* CONFIG_TI_PRUSS */ From patchwork Fri Dec 20 10:05:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: MD Danish Anwar X-Patchwork-Id: 13916472 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 4B15EE7718A for ; Fri, 20 Dec 2024 10:17:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding: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=GKHVyc5wlCGAnuBxZEeKCXjLSCoZxrTkiUnw5E9FRpc=; b=KV3TvUaXjOHJhwKfT8N2QdG575 cjTj8v5DIDUsizJWHjuWFW7XkNC8TVv495ymEBiR62C9/G7HrkbKTF1NhspeA/Bb8fDkwTyO5/rwE T/SLhrT8N/t+52aoCyaRDAKpxi32lD2gGpGpiwt8kq9CVizyWZguFgwUS2OF7cL0DioUJDvmR2YQh 5vsCDEjzFT2ASzLv1QNqkTgvbHstR0ZKv6qMu8+0zAKyxB0GqWHRouuWlSdRJqjwaO/swMyW4YDLE 8DoRPdvAChQpMKGNR83GuG8/iqTeGFRbvVr53XUMDy5abRkbt/5m+VwCryyNobQbXAOgV28g+qROk pDOt1mWA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tOa4T-00000004Yo6-1Oam; Fri, 20 Dec 2024 10:17:25 +0000 Received: from fllvem-ot03.ext.ti.com ([198.47.19.245]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tOZst-00000004WM8-2AkM for linux-arm-kernel@lists.infradead.org; Fri, 20 Dec 2024 10:05:28 +0000 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllvem-ot03.ext.ti.com (8.15.2/8.15.2) with ESMTPS id 4BKA5G7u142880 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 20 Dec 2024 04:05:16 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1734689116; bh=GKHVyc5wlCGAnuBxZEeKCXjLSCoZxrTkiUnw5E9FRpc=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=WF+Z+zQMeE1YOis1bFQAMI3cxz/x9XNdDSy28et6ZZudSK5Y6ZYHaYZEyM/tXyML/ VKKbSbTUZL4MC6VM7oHEYQ2vWPIiWpxDVAF6HyPBOpVJ9AHt+/P7o0uWeJbL+/UWVe JcOW+cbi49DnFY4l3kqSOIEsCS0ryEVcYiWuRSsQ= Received: from DFLE106.ent.ti.com (dfle106.ent.ti.com [10.64.6.27]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 4BKA5GbD042727 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 20 Dec 2024 04:05:16 -0600 Received: from DFLE102.ent.ti.com (10.64.6.23) by DFLE106.ent.ti.com (10.64.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Fri, 20 Dec 2024 04:05:15 -0600 Received: from fllvsmtp8.itg.ti.com (10.64.41.158) by DFLE102.ent.ti.com (10.64.6.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Fri, 20 Dec 2024 04:05:15 -0600 Received: from fllv0122.itg.ti.com (fllv0122.itg.ti.com [10.247.120.72]) by fllvsmtp8.itg.ti.com (8.15.2/8.15.2) with ESMTP id 4BKA5FJo064249; Fri, 20 Dec 2024 04:05:15 -0600 Received: from localhost (danish-tpc.dhcp.ti.com [10.24.69.25]) by fllv0122.itg.ti.com (8.14.7/8.14.7) with ESMTP id 4BKA5Emi003738; Fri, 20 Dec 2024 04:05:15 -0600 From: MD Danish Anwar To: , , , , , CC: , , , Vignesh Raghavendra , Roger Quadros Subject: [PATCH v2 2/2] MAINTAINERS: Add entry for linux/pruss_driver.h Date: Fri, 20 Dec 2024 15:35:08 +0530 Message-ID: <20241220100508.1554309-3-danishanwar@ti.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241220100508.1554309-1-danishanwar@ti.com> References: <20241220100508.1554309-1-danishanwar@ti.com> MIME-Version: 1.0 X-C2ProcessedOrg: 333ef613-75bf-4e12-a4b1-8e3623f5dcea X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241220_020527_615155_A3730172 X-CRM114-Status: UNSURE ( 9.28 ) 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 include/linux/pruss_driver.h is an orphan file. Add entry for this in the MAINTAINERS file. Signed-off-by: MD Danish Anwar --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index c67f868ea1c9..2d4c883cb06a 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -23644,6 +23644,7 @@ T: git git://git.kernel.org/pub/scm/linux/kernel/git/ti/linux.git F: Documentation/devicetree/bindings/soc/ti/ti,pruss.yaml F: drivers/pmdomain/ti/omap_prm.c F: drivers/soc/ti/* +F: include/linux/pruss_driver.h TI LM49xxx FAMILY ASoC CODEC DRIVERS M: M R Swami Reddy