From: Youngmin Nam <ym0914@gmail.com>
To: Krzysztof Kozlowski <k.kozlowski@samsung.com>,
kgene@kernel.org, broonie@kernel.org
Cc: k.kozlowski.k@gmail.com, linux-samsung-soc@vger.kernel.org,
linux-spi@vger.kernel.org
Subject: Re: [PATCH] spi: s3c64xx: Get fifosize via device tree
Date: Sun, 14 Feb 2016 22:22:04 +0900 [thread overview]
Message-ID: <56C07F7C.5030907@gmail.com> (raw)
In-Reply-To: <56C03B78.1040100@samsung.com>
When I think about this patch, I was motivated by below patch.
commit 135f07c3252dc77d0245714d0b413ecc711cd823
Author: Naveen Krishna Chatradhi <ch.naveen@samsung.com>
Date: Mon Jul 14 17:07:16 2014 +0530
serial: samsung: get fifosize via device tree
UART modules on some SoCs only differ in the fifosize of each
UART channel. Its useless to duplicate the drv_data structure
or create a compatible name for such a change.
We can get fifosize via the device tree nodes (not mandating it).
Also updates the documentation.
Signed-off-by: Naveen Krishna Chatradhi <ch.naveen@samsung.com>
Reviewed-by: Tomasz Figa <t.figa@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
I thought we can apply above patch to SPI also.
The fifosize should be required for fifo_lvl_mask value in SPI of Exynos series.
I think this patch is useful when we port for the new exynos7xxx SoC come out.
Because SPI of new exynos7xxx SoC has only difference on fifosize.
Thanks.
On 2016년 02월 14일 17:31, Krzysztof Kozlowski wrote:
> W dniu 14.02.2016 o 17:13, Youngmin Nam pisze:
>> Hello Krzysztof,
>>
>> As you mentioned, spi fifosize is not configurable in the given SoC.
>> The point is we can set fifosize without changing driver code.
>> For example, if some SoC in exynos7 series has different spi fifosize of on each channel with current
>> our compatible, we can't cover this situation without adding new compatible into spi driver code.
>
> Yes, because new SoC is not compatible with old ones... so a new
> compatible is required!
>
>> Whenever new SoC kind of exynos7 come out, we should add new compatible into driver code only for fifosize change.
>> I think this is not efficient. I think we can reduces this works through DT handling.
>
> I agree that this is not the most efficient possible way of setting some
> specific properties of devices but this is the way how DT works.
>
> What if the property is not present on board with Exynos7? What value
> should be used?
>
> You did not want to add a new compatible but you are adding a
> compatible-like property which apparently is required for some devices.
>
> That looks bad. It's easy to make a mistake, messes with compatibles.
>
> Best regards,
> Krzysztof
>
>
next prev parent reply other threads:[~2016-02-14 13:22 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-09 15:26 [PATCH] spi: s3c64xx: Get fifosize via device tree Youngmin Nam
2016-02-09 16:10 ` Mark Brown
[not found] ` <20160209161036.GI13270-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2016-02-14 6:28 ` Youngmin Nam
2016-02-15 18:04 ` Mark Brown
[not found] ` <1455031585-11113-1-git-send-email-ym0914-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-02-14 7:01 ` Krzysztof Kozlowski
[not found] ` <56C02634.8020204-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
2016-02-14 8:13 ` Youngmin Nam
2016-02-14 8:31 ` Krzysztof Kozlowski
2016-02-14 13:22 ` Youngmin Nam [this message]
[not found] ` <56C07F7C.5030907-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-02-14 14:31 ` Krzysztof Kozlowski
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=56C07F7C.5030907@gmail.com \
--to=ym0914@gmail.com \
--cc=broonie@kernel.org \
--cc=k.kozlowski.k@gmail.com \
--cc=k.kozlowski@samsung.com \
--cc=kgene@kernel.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=linux-spi@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).