Thread (17 messages) 17 messages, 6 authors, 2021-12-26

Re: [PATCH v2 2/5] remoteproc: pru: Add APIs to get and put the PRU cores

From: David Lechner <david@lechnology.com>
Date: 2021-01-04 20:57:42
Also in: linux-devicetree, linux-omap, linux-remoteproc, lkml

quoted hunk ↗ jump to hunk
@@ -706,14 +824,14 @@ static int pru_rproc_set_id(struct pru_rproc *pru)
 	case RTU0_IRAM_ADDR_MASK:
 		fallthrough;
 	case PRU0_IRAM_ADDR_MASK:
-		pru->id = 0;
+		pru->id = PRUSS_PRU0;
 		break;
 	case TX_PRU1_IRAM_ADDR_MASK:
 		fallthrough;
 	case RTU1_IRAM_ADDR_MASK:
 		fallthrough;
 	case PRU1_IRAM_ADDR_MASK:
-		pru->id = 1;
+		pru->id = PRUSS_PRU1;
 		break;
 	default:
 		ret = -EINVAL;


There is a similar opportunity for using PRUSS_PRU1 in pru_d_da_to_va()

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help