Re: lost interrupt and inb()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 7 Aug 2002, Ana Yuseepi wrote:

> save_flag();
> disable_interrupt();
> poll_or_read_or_get_input_from_IDE_status_register();
> enable_interrupt();
> restore_flags();

The enable_interrupt usage is broken and should be removed. Also disabling 
interrupts and polling a status register without some sort of timeout is 
asking for hardlocks.

> this program would run fine, but after the program is finished executing, it would display a message:
> ide_dmaproc: chipset supported ide_dma_lostirq func only: 13
> hdc: lost interrupt

Well you're messing around with the IDE state machine without really 
letting the driver (cause there is a driver handling it right then) in on 
the picture...

Cheers,
	Zwane
-- 
function.linuxpower.ca

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux