]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - rpmsg/rpmsg.git/commit
soc: ti: pruss: update pruss_get() to retrieve a PRUSS id rpmsg-ti-linux-4.19.y-next
authorSuman Anna <s-anna@ti.com>
Mon, 17 Jun 2019 21:15:41 +0000 (16:15 -0500)
committerSuman Anna <s-anna@ti.com>
Mon, 20 Jan 2020 20:32:47 +0000 (14:32 -0600)
commit5da2659f28b5ced15a7b1114bb56c47e062c487d
treeca53c2ffede21bfa061a6eac5ad948216c8a2e2e
parentc585655f7b04fd7ca576b13513b8c439f287a155
soc: ti: pruss: update pruss_get() to retrieve a PRUSS id

Update the pruss_get() function to take in an additional integer
pointer argument in which the PRUSS instance id is filled in and
provided back to the callers. This allows the drivers to add some
instance-specific logic/customization in their code, as the PRUSS
handle is not useful to build this logic.

The already existing usage within both the regular PRU Ethernet
and the ICSSG PRU Ethernet drivers have also been updated accordingly,
and this will cater to its need for supporting switching between
different Ethernet protocols dynamically per instance. The invocation
within the PRU Soft UART driver and PRU PWM drivers have also been
updated, with these drivers not needing the PRUSS instance id at present.

Signed-off-by: Suman Anna <s-anna@ti.com>
drivers/net/ethernet/ti/icssg_prueth.c
drivers/net/ethernet/ti/icssg_prueth.h
drivers/net/ethernet/ti/prueth.c
drivers/pwm/pwm-pru.c
drivers/soc/ti/pruss.c
drivers/tty/serial/pru_suart.c
include/linux/pruss.h