<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:10pt">Hi All,<br> I am using versatile express board and have tried t<span>o allocate four interrupts (36 to 39) using IRQF_SHARED and IRQF_TRIGGER_HIGH flags in spidev.c file. However only INT 38 and 39 gets registered. For 36 and 37 I am getting errno 16 (Resource busy). </span><span><span>In versatile express motherb</span>oard.h file INT 36 is RTC and 37 is UART0.Please help<br><br>Regards,<br>Amit.<br></span><div style="display: block;" class="yahoo_quoted"> <br> <br> <div style="font-family: times new roman, new york, times, serif; font-size: 10pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> On Saturday, 15 February 2014 12:21 AM, Anand Moon <moon.linux@yahoo.com>
wrote:<br> </font> </div> <div class="y_msg_container"><div id="yiv8498101471"><div><div style="color:#000;background-color:#fff;font-family:lucida console, sans-serif;font-size:10pt;"><div><span>Hi All,</span></div><div><span><br clear="none"></span></div><div><span>You can use netlink socket to send data from kernel to user space.</span></div><div><span><br clear="none"></span></div><div><span>-Anand Moon</span></div><div class="yiv8498101471yahoo_quoted" style="display:block;"> <br clear="none"> <br clear="none"> <div style="font-family:lucida console, sans-serif;font-size:10pt;"> <div style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt;"> <div class="yiv8498101471yqt9308356701" id="yiv8498101471yqt39428"><div dir="ltr"> <font face="Arial" size="2"> On Friday, February 14, 2014 11:51 AM, Nilesh Bacchewar <b.nilesh2005@gmail.com> wrote:<br clear="none"> </font> </div> <div
class="yiv8498101471y_msg_container"><div id="yiv8498101471"><div><div dir="ltr"><div>you can use Asynchronous notification , FASYNC .</div><div> </div><div><a rel="nofollow" shape="rect" target="_blank" href="http://www.makelinux.net/ldd3/chp-6-sect-4">http://www.makelinux.net/ldd3/chp-6-sect-4</a></div><div> </div><div>Regards,</div>
<div>Nilesh</div></div><div class="yiv8498101471gmail_extra"><br clear="none"><br clear="none"><div class="yiv8498101471yqt7369959696" id="yiv8498101471yqtfd07196"><div class="yiv8498101471gmail_quote">On Tue, Jan 28, 2014 at 9:47 PM, Vishwanath Govind <span dir="ltr"><<a rel="nofollow" shape="rect" ymailto="mailto:vishwanath.govind@gmail.com" target="_blank" href="mailto:vishwanath.govind@gmail.com">vishwanath.govind@gmail.com</a>></span> wrote:<br clear="none">
<blockquote class="yiv8498101471gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204, 204, 204);border-left-width:1px;border-left-style:solid;"><div dir="ltr"><div><div>You can implement irq handler in spi driver itself. SPI specific platform data can pass it from board file.<br clear="none">
</div>Regards<br clear="none"></div>Vishwa <br clear="none"></div><div class="yiv8498101471HOEnZb"><div class="yiv8498101471h5"><div class="yiv8498101471gmail_extra"><br clear="none"><br clear="none"><div class="yiv8498101471gmail_quote">
On Tue, Jan 28, 2014 at 9:24 PM, Richard Weinberger <span dir="ltr"><<a rel="nofollow" shape="rect" ymailto="mailto:richard@nod.at" target="_blank" href="mailto:richard@nod.at">richard@nod.at</a>></span> wrote:<br clear="none"><blockquote class="yiv8498101471gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204, 204, 204);border-left-width:1px;border-left-style:solid;">
Am <a href="" rel="nofollow" shape="rect">28.01.2014</a> 15:12, schrieb Amit Mahadik:<br clear="none">
<div>> Thanks Richard. One more question. If I register an SPI irq struct spi_board_info spi_board_info[] structure in machine board.c file; then the request irq api and irq handler<br clear="none">
> should be written in board.c file or in the spidev driver.<br clear="none">
<br clear="none">
</div>Never do any programming in the board file.<br clear="none">
The purpose if the board file it describing the hardware.<br clear="none">
Please note, board files go away, device tree is the way to go.<br clear="none">
<div><br clear="none">
Thanks,<br clear="none">
//richard<br clear="none">
<br clear="none">
_______________________________________________<br clear="none">
Kernelnewbies mailing list<br clear="none">
<a rel="nofollow" shape="rect" ymailto="mailto:Kernelnewbies@kernelnewbies.org" target="_blank" href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br clear="none">
</div><a rel="nofollow" shape="rect" target="_blank" href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br clear="none">
</blockquote></div><br clear="none"></div>
</div></div><br clear="none">_______________________________________________<br clear="none">
Kernelnewbies mailing list<br clear="none">
<a rel="nofollow" shape="rect" ymailto="mailto:Kernelnewbies@kernelnewbies.org" target="_blank" href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br clear="none">
<a rel="nofollow" shape="rect" target="_blank" href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br clear="none">
<br clear="none"></blockquote></div><br clear="none"></div></div></div></div><br clear="none"><div class="yiv8498101471yqt7369959696" id="yiv8498101471yqtfd08429">_______________________________________________<br clear="none">Kernelnewbies mailing list<br clear="none"><a rel="nofollow" shape="rect" ymailto="mailto:Kernelnewbies@kernelnewbies.org" target="_blank" href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br clear="none"><a rel="nofollow" shape="rect" target="_blank" href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br clear="none"></div><br clear="none"><br clear="none"></div></div> </div> </div> </div> </div></div></div><br><div class="yqt9308356701" id="yqt03552">_______________________________________________<br clear="none">Kernelnewbies mailing list<br clear="none"><a shape="rect"
ymailto="mailto:Kernelnewbies@kernelnewbies.org" href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br clear="none"><a shape="rect" href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br clear="none"></div><br><br></div> </div> </div> </div> </div></body></html>