Skip to contentSkip to conversation

spi: Keep chipselect assertion during one message

PATCH Applied Kyoungil Kim 2 participants 2 messages May 23, 2012 – May 25, 2012 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 spi: Keep chipselect assertion during one message

During all transfers in one message, the device will not be chagned. So we don't need to deassert chipselect during one message.

---
 drivers/spi/spi-s3c64xx.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
drivers/spi/spi-s3c64xx.c +0 -2
index 972a94c..0f79f5b 100644
@@ -745,8 +745,6 @@ static int s3c64xx_spi_transfer_one_message(struct spi_master *master,
 			if (list_is_last(&xfer->transfer_list,
 						&msg->transfers))
 				cs_toggle = 1;
-			else
-				disable_cs(sdd, spi);
 		}
 
 		msg->actual_length += xfer->len;
Signature · 1 line
1.7.1

A message that is not in the archive (sent off-list or not yet received): 00a001cd38e0$57efde60$07cf9b20$%[email protected]

Applied
#2 lore raw
Quoted 4 lines · Kyoungil Kim

During all transfers in one message, the device will not be chagned. So we don't need to deassert chipselect during one message.

Applied, thanks.

g.

Quoted 21 lines
---
 drivers/spi/spi-s3c64xx.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
drivers/spi/spi-s3c64xx.c +0 -2
index 972a94c..0f79f5b 100644
@@ -745,8 +745,6 @@ static int s3c64xx_spi_transfer_one_message(struct spi_master *master,
 			if (list_is_last(&xfer->transfer_list,
 						&msg->transfers))
 				cs_toggle = 1;
-			else
-				disable_cs(sdd, spi);
 		}
 
 		msg->actual_length += xfer->len;
Signature · 1 line
1.7.1
Signature · 9 lines
Grant Likely, B.Sc, P.Eng.
Secret Lab Technologies, Ltd.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/