[PATCH] ata: pata_at91.c bugfix for high master clock

Igor Plyatov plyatov at gmail.com
Sat Dec 11 15:51:34 EST 2010


Dear Sergey,

> > @@ -109,6 +111,11 @@ static void set_smc_timing(struct device *dev,
> >  	/* (CS0, CS1, DIR, OE) <= (CFCE1, CFCE2, CFRNW, NCSX)
> > timings */ ncs_read_setup = 1;
> >  	ncs_read_pulse = read_cycle - 2;
> > +	if (ncs_read_pulse > NCS_RD_PULSE_LIMIT) {
> > +		ncs_read_pulse = NCS_RD_PULSE_LIMIT;
> > +		dev_dbg(dev, "ncs_read_pulse limited to maximal
> > value %lu\n",
> 
> arguably 'dev_warn' would be better in this case

Done as "PATCH v2".

Best regards!
--
Igor Plyatov





More information about the linux-arm-kernel mailing list