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

2021-01-04 Thread David Lechner
@@ -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_MAS

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

2020-12-16 Thread Grzegorz Jaszczyk
From: Tero Kristo Add two new APIs, pru_rproc_get() and pru_rproc_put(), to the PRU driver to allow client drivers to acquire and release the remoteproc device associated with a PRU core. The PRU cores are treated as resources with only one client owning it at a time. The pru_rproc_get() functio