Re: [Bug 5808] aic7xxx - half speed/frequency

James Bottomley
2006-01-06T21:47:00Z

On Fri, 2006-01-06 at 20:45 +0100, Miroslav Zajíc wrote:
> I try u suggestion, but not success.
> echo 50 > /sys/class/spi_transport/target0:0:0/period
> This dont change content and is still on 100.

It's not supposed to. The content reflects the current rate. Unless
you send an I/O to the device to force a negotiation to occur, it won't
change.

So you need to do

echo 50 > /sys/class/spi_transport/target0:0:0/period

fdisk /dev/sda

cat /sys/class/spi_transport/target0:0:0/period

the fdisk will force a partition table read down to the device.