linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: l.stach@pengutronix.de (Lucas Stach)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v7 4/6] dt-bindings: mailbox: imx-mu: add i.MX6SX and i.MX7S SoCs.
Date: Thu, 26 Jul 2018 13:54:25 +0200	[thread overview]
Message-ID: <1532606065.32306.34.camel@pengutronix.de> (raw)
In-Reply-To: <CABb+yY0LbLfK2SEdTeuDmaGc+PsVn0AREQ=E=c4UZgxa5K95qQ@mail.gmail.com>

Am Donnerstag, den 26.07.2018, 17:16 +0530 schrieb Jassi Brar:
> > On Thu, Jul 26, 2018 at 5:05 PM, Lucas Stach <l.stach@pengutronix.de> wrote:
> > Am Donnerstag, den 26.07.2018, 16:45 +0530 schrieb Jassi Brar:
> > > On Thu, Jul 26, 2018 at 4:11 PM, Lucas Stach <l.stach@pengutronix.de>
> > > wrote:
> > > > Hi Jassi,
> > > > 
> > > > Am Donnerstag, den 26.07.2018, 15:25 +0530 schrieb Jassi Brar:
> > > > > On Thu, Jul 26, 2018 at 12:23 PM, Oleksij Rempel
> > > > > > > > > > > > <o.rempel@pengutronix.de> wrote:
> > > > > > This are currently tested SoCs with imx-mailbox driver.
> > > > > > 
> > > > > > > > Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
> > > > > > 
> > > > > > ---
> > > > > > ?Documentation/devicetree/bindings/mailbox/fsl,mu.txt | 2 +-
> > > > > > ?1 file changed, 1 insertion(+), 1 deletion(-)
> > > > > > 
> > > > > > diff --git
> > > > > > a/Documentation/devicetree/bindings/mailbox/fsl,mu.txt
> > > > > > b/Documentation/devicetree/bindings/mailbox/fsl,mu.txt
> > > > > > index 113d6ab931ef..5616d2afca45 100644
> > > > > > --- a/Documentation/devicetree/bindings/mailbox/fsl,mu.txt
> > > > > > +++ b/Documentation/devicetree/bindings/mailbox/fsl,mu.txt
> > > > > > @@ -18,7 +18,7 @@ Messaging Unit Device Node:
> > > > > > ?Required properties:
> > > > > > ?-------------------
> > > > > > ?- compatible : should be "fsl,<chip>-mu", the supported chips
> > > > > > include
> > > > > > -???????????????imx8qxp, imx8qm.
> > > > > > +???????????????imx6sx, imx7s, imx8qxp, imx8qm.
> > > > > > 
> > > > > 
> > > > > This is not scalable. Do we add every new SoC that contains the
> > > > > same controller?
> > > > 
> > > > Yes, we do. This is a policy direction from the DT maintainers.
> > > > 
> > > 
> > > I would love to read the post/documentation.
> > > 
> > > Consider the same h/w - controller and platforms, but only the the MU
> > > chapter said the controller name is, say, 'MU121'. I am sure now you
> > > will see it correct to call it "fsl,mu121" compatible.
> > > What changed? just the name, right?
> > > 
> > > 
> > > > If we
> > > > ever going to want to validate DTs against the binding, all
> > > > compatibles
> > > > used in the DTs must be specified in the binding.
> > > > 
> > > > As we can't really tell if the controller is exactly the same or
> > > > even
> > > > has some SoC integration bugs, we generally add a new compatible
> > > > for
> > > > each SoC to key off any workarounds necessary in the driver without
> > > > the
> > > > need to change the DTs, breaking compatibility.
> > > > 
> > > 
> > > I think if the h/w resources and behaviour remain the same and the
> > > documentation does not call it by a different name -- it is safe to
> > > assume its the same IP. Especially when the driver is absolutely
> > > indifferent to the 5 SoC names.
> > 
> > Even if it is the same IP core, the SoC integration might have bugs
> > that need different behavior from the driver. We've already had that
> > case with the i.MX6 SPI controller.
> > 
> 
> For h/w quirks/bugs, a new "has-that-bug" property makes better sense.
> Or, if you insist, a new compatible based on the first soc that has
> the buggy block.
> 

Hardware bugs might not be known at the the time the DT is deployed.
The DT is not part of the kernel, but might be part of a fixed device
firmware.

> > > If/when we find the controller changes, we could revisit the binding
> > > and add another compatible option and modify the driver to catch that
> > > and adapt.
> > 
> > That's way too late. If we want to keep DTs stable
> > 
> 
> How do you keep the DT stable by explicitly defining every new SoC to
> the compatible list in DT, _add_ to the driver.... only to have the
> driver absolutely not care which SoC is it?
> Which is the situation right now with this patchset.

It means we can later, in a newer kernel change the driver to use the
compatible to change behavior without the need to update the DT at that
point.

Regards,
Lucas

  parent reply	other threads:[~2018-07-26 11:54 UTC|newest]

Thread overview: 75+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-26  6:53 [PATCH v7 0/6] add mailbox support for i.MX7D Oleksij Rempel
2018-07-26  6:53 ` [PATCH v7 1/6] dt-bindings: mailbox: allow mbox-cells to be equal to 0 Oleksij Rempel
2018-07-26  9:41   ` Jassi Brar
2018-07-26 11:00     ` A.s. Dong
2018-07-26 11:36       ` Jassi Brar
2018-07-26 11:55         ` A.s. Dong
2018-07-26 12:04           ` Jassi Brar
2018-07-26  6:53 ` [PATCH v7 2/6] dt-bindings: arm: fsl: add mu binding doc Oleksij Rempel
2018-07-26  9:56   ` Jassi Brar
2018-07-26  6:53 ` [PATCH v7 3/6] dt-bindings: mailbox: imx-mu: add generic MU channel support Oleksij Rempel
2018-07-26  9:49   ` Jassi Brar
2018-07-26 10:57     ` Oleksij Rempel
2018-07-26 11:28       ` Jassi Brar
2018-07-26 11:51     ` A.s. Dong
2018-07-26 12:26       ` Jassi Brar
2018-07-26 13:34         ` A.s. Dong
2018-07-26 13:49       ` Jassi Brar
2018-07-26 14:13         ` A.s. Dong
2018-07-26 15:44       ` Jassi Brar
2018-07-27  4:02         ` A.s. Dong
2018-07-27  4:55           ` Jassi Brar
2018-07-27  6:00             ` A.s. Dong
2018-07-27  6:46               ` Jassi Brar
2018-07-27  8:42                 ` A.s. Dong
2018-07-27  9:05                   ` A.s. Dong
2018-07-28 13:09                   ` Jassi Brar
2018-07-30  7:35                     ` Oleksij Rempel
2018-07-30  8:42                       ` A.s. Dong
2018-07-30 13:04                       ` Jassi Brar
2018-07-30 14:14                         ` A.s. Dong
2018-07-30 14:27                           ` A.s. Dong
2018-07-30 14:17                         ` A.s. Dong
2018-07-30 14:44                         ` Oleksij Rempel
2018-07-30 15:02                           ` Jassi Brar
2018-07-30 15:36                             ` A.s. Dong
2018-07-30 16:18                             ` Jassi Brar
2018-07-30 16:49                               ` Oleksij Rempel
2018-07-31  2:51                                 ` Jassi Brar
2018-07-31  7:21                               ` A.s. Dong
2018-07-31 10:15                                 ` Jassi Brar
2018-07-31 12:42                                   ` Jassi Brar
2018-08-02  9:24                                     ` A.s. Dong
2018-08-09  2:22                                       ` A.s. Dong
2018-08-09  2:55                                         ` Jassi Brar
2018-08-09  6:45                                           ` A.s. Dong
2018-07-30  8:29                     ` A.s. Dong
2018-07-30  8:39         ` A.s. Dong
2018-07-26  6:53 ` [PATCH v7 4/6] dt-bindings: mailbox: imx-mu: add i.MX6SX and i.MX7S SoCs Oleksij Rempel
2018-07-26  8:16   ` A.s. Dong
2018-07-26  9:55   ` Jassi Brar
2018-07-26 10:41     ` Lucas Stach
2018-07-26 11:15       ` Jassi Brar
2018-07-26 11:35         ` Lucas Stach
2018-07-26 11:46           ` Jassi Brar
2018-07-26 11:51             ` Vladimir Zapolskiy
2018-07-26 12:00               ` Jassi Brar
2018-07-26 12:10                 ` Vladimir Zapolskiy
2018-07-26 11:54             ` Lucas Stach [this message]
2018-07-26 11:44         ` Vladimir Zapolskiy
2018-07-26 11:52           ` Jassi Brar
2018-07-26 11:55             ` Vladimir Zapolskiy
2018-07-26 12:10               ` Jassi Brar
2018-07-26 12:41                 ` Vladimir Zapolskiy
2018-07-30 22:22     ` Rob Herring
2018-07-31 10:16       ` Jassi Brar
2018-07-31 10:18       ` Jassi Brar
2018-07-26  6:53 ` [PATCH v7 5/6] ARM: dts: imx7s: add i.MX7 messaging unit support Oleksij Rempel
2018-07-26  8:11   ` Lucas Stach
2018-07-26  6:53 ` [PATCH v7 6/6] mailbox: Add support for i.MX7D messaging unit Oleksij Rempel
2018-07-26  8:07   ` Lucas Stach
2018-07-26 10:15   ` Jassi Brar
2018-07-26 10:51     ` Oleksij Rempel
2018-07-26 11:09       ` Jassi Brar
2018-07-26 11:42         ` Oleksij Rempel
2018-07-26 12:17           ` Jassi Brar

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=1532606065.32306.34.camel@pengutronix.de \
    --to=l.stach@pengutronix.de \
    --cc=linux-arm-kernel@lists.infradead.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).