Linux Media Controller development
 help / color / mirror / Atom feed
* [RFC] staging: media: atomisp: change copy_from_compatible to iov_iter
@ 2026-04-07 14:46 Joshua Crofts
  2026-04-07 15:06 ` Andy Shevchenko
  0 siblings, 1 reply; 8+ messages in thread
From: Joshua Crofts @ 2026-04-07 14:46 UTC (permalink / raw)
  To: Andy Shevchenko; +Cc: linux-staging, linux-media, linux-kernel

Hi Andy

I've had some spare time and looked at the copy_from_compatible function
in pci/atomisp_cmd.c. You've recommended checking out the korg1212 driver
and patch for adding iov_iter support. What I find strange is that the korg1212
driver already expects to receive the userspace data in the form of iov_iter,
meanwhile atomisp expects a from and to pointer along with a boolean
whether it's coming from the kernel or userspace. My question is whether
you meant this as a local fix where I'd use an iov_iter in the atomisp_cmd.c
file (maybe separating the functions to user/kernel, since I don't
really like the
passing of the from_user boolean) or if you were hinting to a ground-up
rebuild of the underlying atomisp architecture (which is definitely a tedious
task, looking at the source code).

Thanks for your time.

Kind regards

CJD

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

end of thread, other threads:[~2026-04-08 14:43 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-07 14:46 [RFC] staging: media: atomisp: change copy_from_compatible to iov_iter Joshua Crofts
2026-04-07 15:06 ` Andy Shevchenko
2026-04-07 15:12   ` Andy Shevchenko
2026-04-08 13:46     ` [RFC] " Joshua Crofts
2026-04-08 13:50       ` Joshua Crofts
2026-04-08 14:25       ` Andy Shevchenko
2026-04-08 14:29         ` Andy Shevchenko
2026-04-08 14:43           ` Joshua Crofts

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