LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 11-21-2011, 06: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.

PROBLEM:
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, 08: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?
 
  


Reply



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 03:24 PM
UART Polling/Interrupt jdhar Linux - Software 1 06-10-2010 02:55 PM
Chnage from UART to Ethernet console harshkn Linux - Newbie 3 07-12-2009 10:02 AM
UART Interrupt Handler devajyotibarman Linux - Hardware 2 01-02-2009 11:12 PM
Problem in interrupt handler for uart 16550 mrinal mishra Linux - Kernel 3 05-05-2006 12:00 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:41 AM.

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