From: Thomas Chou <thomas@wytron.com.tw>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] spi: ignore set speed and mode if not available
Date: Sun, 4 Oct 2015 20:16:06 +0800 [thread overview]
Message-ID: <56111886.20600@wytron.com.tw> (raw)
In-Reply-To: <CAPnjgZ3ukFqvEYsLVYY74YWWO63bAgDNEJxHc4OqPVr-=d5zXg@mail.gmail.com>
Hi Simon,
On 10/03/2015 10:28 PM, Simon Glass wrote:
> Hi Thomas,
>
> On 22 September 2015 at 08:41, Thomas Chou <thomas@wytron.com.tw> wrote:
>> Some cores, such as Altera SPI and QuadSPI, can not change
>> speed and mode at runtime. Ignore the operation which is
>> not available.
>>
>> Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
>> ---
>> drivers/spi/spi-uclass.c | 6 +-----
>> 1 file changed, 1 insertion(+), 5 deletions(-)
>
> This looks OK, but can you please update the method documentation for
> set_speed() and set_mode() to indicate that they are optional in the
> case where the hardware does not support it.
>
>>
>> diff --git a/drivers/spi/spi-uclass.c b/drivers/spi/spi-uclass.c
>> index d666272..5298073 100644
>> --- a/drivers/spi/spi-uclass.c
>> +++ b/drivers/spi/spi-uclass.c
>> @@ -21,13 +21,11 @@ DECLARE_GLOBAL_DATA_PTR;
>> static int spi_set_speed_mode(struct udevice *bus, int speed, int mode)
>
> Please add a comment to this function indicated that missing
> set_speed() and set_mode() methods are OK.
Thanks a lot for your review. The comments will be added.
Best regards,
Thomas Chou
next prev parent reply other threads:[~2015-10-04 12:16 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-22 7:41 [U-Boot] [PATCH] spi: ignore set speed and mode if not available Thomas Chou
2015-09-22 8:10 ` Marek Vasut
2015-09-28 8:44 ` Jagan Teki
2015-10-03 14:28 ` Simon Glass
2015-10-04 12:16 ` Thomas Chou [this message]
2015-10-04 12:23 ` [U-Boot] [PATCH v2] " Thomas Chou
2015-10-04 12:25 ` Simon Glass
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=56111886.20600@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