public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] remoteproc: core: fix issue for multi-instance
@ 2022-03-28  2:20 Shengjiu Wang
  2022-03-28  2:20 ` [PATCH v2 1/2] remoteproc: core: Remove state checking before calling rproc_boot() Shengjiu Wang
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Shengjiu Wang @ 2022-03-28  2:20 UTC (permalink / raw)
  To: bjorn.andersson, mathieu.poirier
  Cc: linux-remoteproc, linux-kernel, shengjiu.wang

Use the rproc->power reference count to handle the multi-instance
case, move the state checking for 'stop' and 'detach' under
mutex protection, and remove state checking for 'start'.

Shengjiu Wang (2):
  remoteproc: core: Remove state checking before calling rproc_boot()
  remoteproc: core: Move state checking to remoteproc_core

changes in v2:
- drop 'remoteproc: core: check rproc->power value before decreasing it'
- refine 'remoteproc: core: Remove state checking before changing state'
  split it to two new patches.

 drivers/remoteproc/remoteproc_cdev.c  | 11 -----------
 drivers/remoteproc/remoteproc_core.c  | 11 +++++++++++
 drivers/remoteproc/remoteproc_sysfs.c | 11 -----------
 3 files changed, 11 insertions(+), 22 deletions(-)

-- 
2.17.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-04-14 17:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-28  2:20 [PATCH v2 0/2] remoteproc: core: fix issue for multi-instance Shengjiu Wang
2022-03-28  2:20 ` [PATCH v2 1/2] remoteproc: core: Remove state checking before calling rproc_boot() Shengjiu Wang
2022-03-28  2:20 ` [PATCH v2 2/2] remoteproc: core: Move state checking to remoteproc_core Shengjiu Wang
2022-04-14 17:19 ` [PATCH v2 0/2] remoteproc: core: fix issue for multi-instance Mathieu Poirier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox