* [U-Boot] [PATCH v2 1/2] dm: sf: Save flash flags to struct spi_flash
@ 2015-04-24 11:51 Bin Meng
2015-04-28 8:04 ` Jagan Teki
0 siblings, 1 reply; 2+ messages in thread
From: Bin Meng @ 2015-04-24 11:51 UTC (permalink / raw)
To: u-boot
Add a new member 'flags' in struct spi_flash to store the flash flags
during spi_flash_validate_params().
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
---
Changes in v2:
- New patch to save flash flags to struct spi_flash
drivers/mtd/spi/sf_probe.c | 3 +++
include/spi_flash.h | 1 +
2 files changed, 4 insertions(+)
diff --git a/drivers/mtd/spi/sf_probe.c b/drivers/mtd/spi/sf_probe.c
index d19138d..ac93114 100644
--- a/drivers/mtd/spi/sf_probe.c
+++ b/drivers/mtd/spi/sf_probe.c
@@ -132,6 +132,9 @@ static int spi_flash_validate_params(struct spi_slave *spi, u8 *idcode,
flash->name = params->name;
flash->memory_map = spi->memory_map;
flash->dual_flash = flash->spi->option;
+#ifdef CONFIG_DM_SPI_FLASH
+ flash->flags = params->flags;
+#endif
/* Assign spi_flash ops */
#ifndef CONFIG_DM_SPI_FLASH
diff --git a/include/spi_flash.h b/include/spi_flash.h
index 218283f..ddce22a 100644
--- a/include/spi_flash.h
+++ b/include/spi_flash.h
@@ -65,6 +65,7 @@ struct spi_flash {
#ifdef CONFIG_DM_SPI_FLASH
struct spi_slave *spi;
struct udevice *dev;
+ u16 flags;
#else
struct spi_slave *spi;
#endif
--
1.8.2.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] [PATCH v2 1/2] dm: sf: Save flash flags to struct spi_flash
2015-04-24 11:51 [U-Boot] [PATCH v2 1/2] dm: sf: Save flash flags to struct spi_flash Bin Meng
@ 2015-04-28 8:04 ` Jagan Teki
0 siblings, 0 replies; 2+ messages in thread
From: Jagan Teki @ 2015-04-28 8:04 UTC (permalink / raw)
To: u-boot
On 24 April 2015 at 17:21, Bin Meng <bmeng.cn@gmail.com> wrote:
> Add a new member 'flags' in struct spi_flash to store the flash flags
> during spi_flash_validate_params().
>
> Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
>
> ---
>
> Changes in v2:
> - New patch to save flash flags to struct spi_flash
>
> drivers/mtd/spi/sf_probe.c | 3 +++
> include/spi_flash.h | 1 +
> 2 files changed, 4 insertions(+)
>
> diff --git a/drivers/mtd/spi/sf_probe.c b/drivers/mtd/spi/sf_probe.c
> index d19138d..ac93114 100644
> --- a/drivers/mtd/spi/sf_probe.c
> +++ b/drivers/mtd/spi/sf_probe.c
> @@ -132,6 +132,9 @@ static int spi_flash_validate_params(struct spi_slave *spi, u8 *idcode,
> flash->name = params->name;
> flash->memory_map = spi->memory_map;
> flash->dual_flash = flash->spi->option;
> +#ifdef CONFIG_DM_SPI_FLASH
> + flash->flags = params->flags;
> +#endif
>
> /* Assign spi_flash ops */
> #ifndef CONFIG_DM_SPI_FLASH
> diff --git a/include/spi_flash.h b/include/spi_flash.h
> index 218283f..ddce22a 100644
> --- a/include/spi_flash.h
> +++ b/include/spi_flash.h
> @@ -65,6 +65,7 @@ struct spi_flash {
> #ifdef CONFIG_DM_SPI_FLASH
> struct spi_slave *spi;
> struct udevice *dev;
> + u16 flags;
> #else
> struct spi_slave *spi;
> #endif
> --
> 1.8.2.1
>
Issue with patch, re-based on current.
Applied to u-boot-spi/master
thanks!
--
Jagan.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-04-28 8:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-24 11:51 [U-Boot] [PATCH v2 1/2] dm: sf: Save flash flags to struct spi_flash Bin Meng
2015-04-28 8:04 ` Jagan Teki
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.