From: Thomas Chou <thomas@wytron.com.tw>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v5 2/3] cfi_flash: convert to driver model
Date: Mon, 7 Dec 2015 17:11:28 +0800 [thread overview]
Message-ID: <56654D40.8070908@wytron.com.tw> (raw)
In-Reply-To: <CAD6G_RSy+PSnb=qETWpHhpja_yPJ1T5XOZefCRAgav-ZJWTXuA@mail.gmail.com>
Hi Jagan,
On 2015?12?06? 23:03, Jagan Teki wrote:
> On 6 December 2015 at 19:05, Thomas Chou <thomas@wytron.com.tw> wrote:
>> Hi Jagan,
>>
>> On 2015?12?06? 21:10, Jagan Teki wrote:
>>>>
>>>> This probing is not specific to CFI flash. It will probe all flash
>>>> variants
>>>> of MTD uclass.
>>>
>>>
>>> This is something I'm unclear, suppose if I need to use MTD uclass in
>>> spi-flash drivers shall I enable CONFIG_CFI_FLASH? If so that depends
>>> on CONFIG_CFI_FLASH_DRIVER as well right? then it is not correct to
>>> enable CFI_FLASH_DRIVER for other flash variants like spi-flash right?
>>
>>
>> There is no need to select CFI_FLASH if there is no CFI flash. The probing
>> here is only because we want to display the size of parallel flash in
>> initr_flash() of board_r.c.
>
> So, this is the way drivers/mtd/altera_qspi.c getting probed?
Yes.
>
>>
>> Normally, devices are probed when they are used. You should be able to use
>> "sf probe" for MTD uclass in the same way you do for SPI_FLASH uclass.
>
> True, suppose if I wanted to probe spi-flash MTD uclass drivers w/o
> using "commands" like sf probe then I need to implement dm_scan node
> logic on mtd-uclass.c correct?
I am not sure whether the dm scan node should be on mtd uclass or
specific drivers. Could you give more details?
Best regards,
Thomas
next prev parent reply other threads:[~2015-12-07 9:11 UTC|newest]
Thread overview: 55+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-08 7:34 [U-Boot] [PATCH] dm: implement a cfi flash uclass Thomas Chou
2015-10-09 9:36 ` Simon Glass
2015-10-09 13:31 ` Thomas Chou
2015-10-11 5:16 ` Thomas Chou
2015-10-11 5:41 ` Bin Meng
2015-10-11 7:25 ` Thomas Chou
2015-10-11 7:30 ` [U-Boot] [PATCH v2] " Thomas Chou
2015-10-11 7:54 ` Bin Meng
2015-10-11 8:54 ` Thomas Chou
2015-10-11 9:10 ` Bin Meng
2015-10-11 12:24 ` Thomas Chou
2015-10-11 12:43 ` Bin Meng
2015-10-11 13:29 ` Thomas Chou
2015-10-11 21:47 ` Simon Glass
2015-10-12 0:07 ` Thomas Chou
2015-10-12 3:07 ` Bin Meng
2015-10-11 9:35 ` Thomas Chou
2015-10-30 13:33 ` [U-Boot] [PATCH v3 1/3] dm: implement a MTD uclass Thomas Chou
2015-10-30 13:33 ` [U-Boot] [PATCH v3 2/3] cfi_flash: convert to driver model Thomas Chou
2015-11-02 8:20 ` Stefan Roese
2015-11-03 0:23 ` Thomas Chou
2015-11-03 5:56 ` Stefan Roese
2015-11-03 6:25 ` Thomas Chou
2015-11-03 7:22 ` Stefan Roese
2015-10-30 13:33 ` [U-Boot] [PATCH v3 3/3] nios2: use cfi flash " Thomas Chou
2015-11-03 13:09 ` [U-Boot] [PATCH v4 1/3] dm: implement a MTD uclass Thomas Chou
2015-11-03 13:09 ` [U-Boot] [PATCH v4 2/3] cfi_flash: convert to driver model Thomas Chou
2015-11-03 13:54 ` Stefan Roese
2015-11-06 1:09 ` Thomas Chou
2015-11-06 6:04 ` Stefan Roese
2015-11-06 6:33 ` Thomas Chou
2015-11-06 3:15 ` Simon Glass
2015-11-06 4:34 ` Thomas Chou
2015-11-06 23:58 ` Simon Glass
2015-11-03 13:09 ` [U-Boot] [PATCH v4 3/3] nios2: use cfi flash " Thomas Chou
2015-11-03 14:41 ` [U-Boot] [PATCH v4 1/3] dm: implement a MTD uclass Jagan Teki
2015-11-03 14:49 ` Thomas Chou
2015-11-03 14:55 ` Jagan Teki
2015-11-03 14:58 ` Jagan Teki
2015-11-04 3:12 ` Thomas Chou
2015-11-07 12:35 ` Jagan Teki
2015-11-07 13:43 ` Thomas Chou
2015-11-06 12:06 ` Simon Glass
2015-11-06 13:25 ` Thomas Chou
2015-11-06 23:58 ` Simon Glass
2015-11-07 7:57 ` [U-Boot] [PATCH v5 " Thomas Chou
2015-11-07 7:57 ` [U-Boot] [PATCH v5 2/3] cfi_flash: convert to driver model Thomas Chou
2015-11-09 20:24 ` Simon Glass
2015-12-06 8:23 ` Jagan Teki
2015-12-06 11:37 ` Thomas Chou
2015-12-06 13:10 ` Jagan Teki
2015-12-06 13:35 ` Thomas Chou
2015-12-06 15:03 ` Jagan Teki
2015-12-07 9:11 ` Thomas Chou [this message]
2015-11-07 7:57 ` [U-Boot] [PATCH v5 3/3] nios2: use cfi flash " Thomas Chou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=56654D40.8070908@wytron.com.tw \
--to=thomas@wytron.com.tw \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox