public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* w1 driver for omap error -- reversed byte sequence in netlink slave message
@ 2011-04-22  1:53 Paul Alfille
  2011-04-25  6:05 ` Andrew Morton
  0 siblings, 1 reply; 2+ messages in thread
From: Paul Alfille @ 2011-04-22  1:53 UTC (permalink / raw)
  To: linux-kernel

OWFS (one-wire filesystem -- www.owfs.org) seems to be the only user
of the w1 netlink messages. We use them to extend the kernel 1-wire
system from a simple temperature sensor to a complete 1-wire bus
master. Thus we've uncovered a bug -- byte reversal -- in one of the
sub-modules.

1-wire devices have a unique 64-bit address (including an 8-bit CRC)
that is reported by the netlink W1_CMD_SEARCH message. For the omap
bus master, and only the omap bus master, the slave addresses are
byte-order reversed. If the slave byte order is reversed in that case,
the CRC8 is then correct, the slave address then matches the actual
device address lettered on the device, and all other commands work
correctly.

The driver is in kernel/drivers/w1/masters/omap_hdq.c

Paul Alfille

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-04-25  6:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-22  1:53 w1 driver for omap error -- reversed byte sequence in netlink slave message Paul Alfille
2011-04-25  6:05 ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox