Re: [PATCH] misc: eeprom: at25: add Cypress FRAM functionality

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Oct 06, 2015 at 04:01:32PM +0200, Jiri Prchal wrote:
> This patch adds functionality for Cypress FRAMs on SPI bus, such as FM25V05,
> FM25V10 etc.

I'm not entirely sure why I got CCed on this?

> +	mutex_lock(&at25->lock);
> +
> +	status = spi_sync(at25->spi, &m);
> +	dev_dbg(&at25->spi->dev,
> +		"read %Zd bytes of ID --> %d\n",
> +	 FM25_ID_LEN, (int) status);
> +
> +	mutex_unlock(&at25->lock);

There is no point in holding a lock around spi_sync(), the SPI framework
has locking which will ensure spi_sync() and spi_async() calls will be
serialised.

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux