Visit Jeremy's Blog.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 11-21-2011, 07:16 AM   #1
Darshan P
LQ Newbie
Registered: Oct 2011
Posts: 14

Rep: Reputation: Disabled
Question UART Interrupt get Masked,when Ethernet link is connected and disconnected-AT91SAM9G4

Hi every one,

I am developing a system, which includes AT91SAM9G45 with Linux kernel 2.6.30.
I am using a uart for communication with master device,and also one in built Ethernet and three external Ethernet(ax88796).

I have written driver for uart, uart runs on interrupt.I have used ax88796 kernel driver for external Ethernet ports.

My communication on uart is like this:
1>Master device poll by sending 0x00 with parity bit one.
2>As my device receives it, it sends 0x00 with parity bit zero to master device. Note that my device has to answer with in 2 ms after receiving 0x00 with parity bit one from master device.If my device fails than master device declare my device absent OR even if my device do not answer any poll command than also master declare my device absent.

The issue is that when i connect and disconnect Ethernet cable from switch to any of my four Ethernet port randomly.Than Some times my uart interrupt get masked and my device fails to answer master device with in 2 ms.So master device declare my device as absent one.

I am not sure but i think it may be due to Ethernet interrupt, when kernel execute Ethernet related code it disables all other interrupts, is it so..

kindly direct me in right way.

Best Regards
Rohit Savaliya
Old 11-30-2011, 09:40 AM   #2
Darshan P
LQ Newbie
Registered: Oct 2011
Posts: 14

Original Poster
Rep: Reputation: Disabled
No one has ability to resolve this issue?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
AT91RM9200 UART interrupt latency problem yhu Linux - Embedded & Single-board computer 1 04-21-2011 04:24 PM
UART Polling/Interrupt jdhar Linux - Software 1 06-10-2010 03:55 PM
Chnage from UART to Ethernet console harshkn Linux - Newbie 3 07-12-2009 11:02 AM
UART Interrupt Handler devajyotibarman Linux - Hardware 2 01-03-2009 12:12 AM
Problem in interrupt handler for uart 16550 mrinal mishra Linux - Kernel 3 05-05-2006 01:00 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:45 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration