[flashrom] [PATCH] Do not abuse cs_bit

2018-11-22 Thread Vicente Bergas
"cs_bit[s]" variable stores the bit location for Chip Select, as implied by the name. A new variable "cfg" is added for static configuration bits, like Output Enables. If outputs are disabled during operation, then the result will depend on the target having proper pull-up resistors, which is

Re: [flashrom] Raspberry Pi spidev failure

2018-11-22 Thread Nico Huber
Hi Sean, > 1) I'm completely unable to access any SPI chips. This appears to be > due to a bug in the kernel driver, which always yanks the CS line high > despite the cs_change set to 0. A workaround I've come up with is to do > everything as a single transaction, which seems to fix the problem

Re: [flashrom] Raspberry Pi spidev failure

2018-11-22 Thread Sean Cross
-- Original Message -- From: "Nico Huber" To: "Sean Cross" ; flashrom@flashrom.org Sent: 22/11/2018 5:28:37 PM Subject: Re: [flashrom] Raspberry Pi spidev failure Hi Sean, 1) I'm completely unable to access any SPI chips. This appears to be due to a bug in the kernel driver, which

Re: [flashrom] Raspberry Pi spidev failure

2018-11-22 Thread Nico Huber
Hi, Am 22.11.18 um 10:46 schrieb Sean Cross: >>> 1) I'm completely unable to access any SPI chips.  This appears to be >>> due to a bug in the kernel driver, which always yanks the CS line high >>> despite the cs_change set to 0.  A workaround I've come up with is to do >>> everything as a single