<div dir="ltr"><div class="gmail-_3xX726aBn29LDbsDtzr_6E gmail-_1Ap4F5maDtT1E1YuCiaO0r gmail-D3IL3FD0RFy_mkKLPwL4" style="max-width:800px"><div class="gmail-_292iotee39Lmt0MkQZ2hPV gmail-RichTextJSON-root"><p class="gmail-_1qeIAgB0cPwnLhDF9XSiJM">Hi, I want to have two devices on the same SPI bus.</p><p class="gmail-_1qeIAgB0cPwnLhDF9XSiJM">These devices are:</p><p class="gmail-_1qeIAgB0cPwnLhDF9XSiJM">- SPI nor flash (QSPI compatible)</p><p class="gmail-_1qeIAgB0cPwnLhDF9XSiJM">- my custom device (SPI compatible).</p><p class="gmail-_1qeIAgB0cPwnLhDF9XSiJM">For SPI NOR flash I have the driver in the kernel, for my custom device I do not have such a driver. <br></p><p class="gmail-_1qeIAgB0cPwnLhDF9XSiJM">My question is - how the access to this particular SPI peripheral can be serialized between these two drivers in order to prevent simultaneous access that would result in a mess on the SPI? Do I have to modify the existing driver for SPI NOR flash or not? </p><p class="gmail-_1qeIAgB0cPwnLhDF9XSiJM">How about different configurations for these devices - as I mentioned one is QSPI compatible whereas the other one is SPI compatible. Can I reconfigure the SPI bus driver before each "transaction"?</p><p class="gmail-_1qeIAgB0cPwnLhDF9XSiJM"><br></p><p class="gmail-_1qeIAgB0cPwnLhDF9XSiJM">Best regards</p><p class="gmail-_1qeIAgB0cPwnLhDF9XSiJM">Patryk<br></p></div></div></div>