From nobody Thu Dec 18 09:47:48 2025 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) (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 7EA5F1B6D0D for ; Fri, 20 Dec 2024 10:05:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.249 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734689130; cv=none; b=hQB4Z8yp1L2T56TG2H1jCA2S0+rHVJgNtkQmO6A+EYQQ+Oh/4jMq2s+hu7vzBN0/FI5b++IJEcRh+luS+LtUjRdmoiUMqCBZGtlzsHmB/NPHnbH3y9g2DRCs46aQ10K5plsLv6Ddp4f1F8DX//YrT6jESMH5LLD5AGmz4vRzkW0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734689130; c=relaxed/simple; bh=eRY79cNXmH5o0guiowyWprM9XNyKyLmLLN/smcAgorM=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=I6LLsA3h3Cihqxc1vfVzJa8QTEq7f/aBpfpsRaaQ+EWpmmOYUm/0spEuhhAp19Xn7UsuyComm6Fy1mKfjDJqkTVeAK6LScr8D8n4org8lALSDaElqUPk+pkiHFyMvbldnzA1nDrvJkd1gSkQ4gEqIL4vWNkWhBvLKYZwghk+o70= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=nkqWva0v; arc=none smtp.client-ip=198.47.23.249 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="nkqWva0v" 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-C2ProcessedOrg: 333ef613-75bf-4e12-a4b1-8e3623f5dcea Content-Type: text/plain; charset="utf-8" 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 pru= ss *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; } =20 static inline int pruss_cfg_set_gpmux(struct pruss *pruss, enum pruss_pru_id pru_id, u8 mux) { - return ERR_PTR(-EOPNOTSUPP); + return -EOPNOTSUPP; } =20 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; } =20 static inline int pruss_cfg_miirt_enable(struct pruss *pruss, bool enable) { - return ERR_PTR(-EOPNOTSUPP); + return -EOPNOTSUPP; } =20 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; } =20 #endif /* CONFIG_TI_PRUSS */ --=20 2.34.1 From nobody Thu Dec 18 09:47:48 2025 Received: from fllvem-ot03.ext.ti.com (fllvem-ot03.ext.ti.com [198.47.19.245]) (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 CBD1329A1 for ; Fri, 20 Dec 2024 10:05:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.19.245 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734689131; cv=none; b=WWx4AG2WwC2/rLsbFVp6uBJuCa1+JmE4xiy1JXJKyNPZL65iLjNnlCv1SmcqSNF/xnfuI1XvnuTeCUa6Clsfakgz/QshQgPnfZ4Y7WqnZ8sH/iVFaEqWE6kM4LolJ5oO+c9TP8u/LlL0JsFGP7HtrWYmD3opuTTfH6EyGUTMyw4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734689131; c=relaxed/simple; bh=Ou7VPBGtalAoOV0vX3tP/RqhFNJJ0EwUecMdCyh8IY4=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=e7TX+77u8BaXuq45vIC4xwdtvsOgf2dE3ARD0w97haZKNkrH7GG58qGcm6JP2jAn1y3YXztmB9VGiS3bMb4q4T/XH3C3oKY5T6XYw9DSIlGIr0YmCVZWrGWa+REiD6wi0wPd9nV5c+v+egmEjPVg0rguov0c7ch6ua2yDc2vBlA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=WF+Z+zQM; arc=none smtp.client-ip=198.47.19.245 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="WF+Z+zQM" 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-C2ProcessedOrg: 333ef613-75bf-4e12-a4b1-8e3623f5dcea Content-Type: text/plain; charset="utf-8" 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/gi= t/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 =20 TI LM49xxx FAMILY ASoC CODEC DRIVERS M: M R Swami Reddy --=20 2.34.1