Re: [PATCH net-next-2.6 1/2] can: add driver for Softing card

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: David Miller
Date: Tuesday, January 4, 2011 - 10:31 am

From: Marc Kleine-Budde <mkl@pengutronix.de>
Date: Tue, 04 Jan 2011 11:54:42 +0100


No.  And there will never be.

Because it's never well defined whether it is safe to break up an
I/O operation into two sub-operations, nor in what order those
sub-operations can be done in.

For example, just reading one byte of a two-byte register might
clear the status bits in other byte if the two bytes are read in
the wrong order.

On some chips, avoiding losing information might be completely
impossible.

You have to do it by hand in your driver, because only you know
what implementation will work correctly.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH net-next-2.6 1/2] can: add driver for Softing card, Kurt Van Dijck, (Thu Dec 23, 2:43 am)
Re: [PATCH net-next-2.6 1/2] can: add driver for Softing card, Marc Kleine-Budde, (Thu Dec 23, 7:25 am)
Re: [PATCH net-next-2.6 1/2] can: add driver for Softing card, Marc Kleine-Budde, (Fri Dec 24, 4:44 am)
Re: [PATCH net-next-2.6 1/2] can: add driver for Softing card, Marc Kleine-Budde, (Tue Jan 4, 3:54 am)
Re: [PATCH net-next-2.6 1/2] can: add driver for Softing card, Marc Kleine-Budde, (Tue Jan 4, 5:25 am)
Re: [PATCH net-next-2.6 1/2] can: add driver for Softing card, David Miller, (Tue Jan 4, 10:31 am)