Date: Thu, 30 Jul 2020 00:56:20 +0530 From: "Kamal R. Prasad" <kamalpr@gmail.com> To: freebsd-arm@freebsd.org Subject: mutexes Message-ID: <CAK=yUGKiLx9Xh-LSGeHLbJzUPiALkbs9AdajDCVN--iMeAykBw@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
hello, i have 2 instances of an spi controller (pl022) on my setup. can someone tell me :- 1. is there any danger if we interleave spi io transfers between these 2 controllers i.e spi transfer starts on controller 0 and before it can finish, controller 1 starts spi transfer. the 2 controllers have different spi slave devices. 2. assuming there is an issue with that, how to setup a mutex in the code path so that it is common to both instances of pl022 driver? thanks -kamal
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAK=yUGKiLx9Xh-LSGeHLbJzUPiALkbs9AdajDCVN--iMeAykBw>