-
Notifications
You must be signed in to change notification settings - Fork 170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When inserting linux spi driver as a module, failure to connect to a spi controller results in a crash #179
Comments
Hello @drosen-taranawireless , Noted. We have resolved this problem in NG. we will propogate the fix in FG. however, it looks like the SPI bus is unclaimable with your Linux. |
Can you please have a look at #165, where similar issue of spi bus unclaimable was observed? |
Hi @mantriyogesh,
I found this running on a prototype of a custom embedded system, using a
proprietary SPI controller that is under development. In this instance
there was a bug in our FPGA that caused the SPI controller to bail. We've
since fixed the FPGA and put in a safeguard in the SPI controller. But this
fix would have allowed the Espressif SPI protocol driver to exit
gracefully. I don't know the kernel version off hand; I can get you that
tomorrow.
Regards,
David Rosen
…On Thu, Dec 1, 2022 at 6:27 PM mantriyogesh ***@***.***> wrote:
Hello @drosen-taranawireless <https://github.com/drosen-taranawireless> ,
Noted. We have resolved this problem in NG. we will propogate the fix in
FG.
however, it looks like the SPI bus is unclaimable with your Linux.
May we know what platform & Linux kernel veraion do you use?
Most likely DT is not configured correct or spidev is not disabled.
—
Reply to this email directly, view it on GitHub
<#179 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A4QYN7MBFHSAR7SSMI6AJ5DWLFNAVANCNFSM6AAAAAASRL5KNY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Hi @mantriyogesh,
In my previous email, when I wrote "this fix" I was referring to pull
request #180, which I just submitted.
Regards,
David Rosen
On Thu, Dec 1, 2022 at 6:37 PM David Rosen ***@***.***>
wrote:
… Hi @mantriyogesh,
I found this running on a prototype of a custom embedded system, using a
proprietary SPI controller that is under development. In this instance
there was a bug in our FPGA that caused the SPI controller to bail. We've
since fixed the FPGA and put in a safeguard in the SPI controller. But this
fix would have allowed the Espressif SPI protocol driver to exit
gracefully. I don't know the kernel version off hand; I can get you that
tomorrow.
Regards,
David Rosen
On Thu, Dec 1, 2022 at 6:27 PM mantriyogesh ***@***.***>
wrote:
> Hello @drosen-taranawireless <https://github.com/drosen-taranawireless> ,
>
> Noted. We have resolved this problem in NG. we will propogate the fix in
> FG.
>
> however, it looks like the SPI bus is unclaimable with your Linux.
> May we know what platform & Linux kernel veraion do you use?
> Most likely DT is not configured correct or spidev is not disabled.
>
> —
> Reply to this email directly, view it on GitHub
> <#179 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/A4QYN7MBFHSAR7SSMI6AJ5DWLFNAVANCNFSM6AAAAAASRL5KNY>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
|
Yes.. Missed it.. Thank you @drosen-taranawireless for taking time and efforts for correction in the code. We appreciate your inputs. |
The problem seems to be in
spi_exit
which does not check for incomplete initializationThe text was updated successfully, but these errors were encountered: