From: Conor Dooley <conor@kernel.org>
To: Ilya Orazov <ilordash02@gmail.com>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>,
mkl@pengutronix.de, mailhol.vincent@wanadoo.fr, vkoul@kernel.org,
kishon@kernel.org, robh@kernel.org, krzk+dt@kernel.org,
a-govindraju@ti.com, linux-can@vger.kernel.org,
linux-phy@lists.infradead.org, devicetree@vger.kernel.org
Subject: Re: [PATCH 1/2] dt-bindings: phy: ti,tcan104x-can: Document Microchip ATA6561
Date: Mon, 5 Aug 2024 11:11:16 +0100 [thread overview]
Message-ID: <20240805-fruit-chip-cf08a0e166a3@spud> (raw)
In-Reply-To: <CAGCz5H=gDfJpfAhH-QbxN5VSDyVtwGU6Zt16z7=sqpTdjkeGqA@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2600 bytes --]
On Sat, Aug 03, 2024 at 03:31:52PM +0300, Ilya Orazov wrote:
> > > > > > I made my patch according to a similar one that adds support for
> > > > > > nxp,tjr1443. You can find it's conversation on
> > > > > > https://lore.kernel.org/all/6ee5e2ce00019bd3f77d6a702b38bab1a45f3bb0.1674037830.git.geert+renesas@glider.be/t/#u.
> > > > >
> > > > > > I thought we want to hold all PHY chip names in one compatible enum
> > > > > > and each in its own of_device_id struct in driver and extend them
> > > > > > where appropriate.
> > > > >
> > > > > Nah, fallbacks are preferred when the programming model is either
> > > > > identical or a "compatible superset" of an existing device. New
> > > > > of_device_id structs should only be used where we need to account for
> > > > > differences in the programming model.
> > > >
> > > > However, I am curious as to why the NXP CAN PHY transceiver was not
> > > > included as fallback compatible. Geert, could you please share your
> > > > thoughts on this matter?
> > >
> > > The TJR1443 looked sufficiently similar to the TCAN1043 to use the
> > > same driver configuration (which is limited to having standby and/or
> > > enable signals or not). However, I'm not sure it behaves exactly
> > > the same, e.g. in case of reporting an error condition (which is not
> > > yet supported by the driver). The part numbers are also different,
> > > so this is not a simple case of SN74HCxx vs. CD74HCxx.
> > >
> > > Summary: I don't know if they are identical, or if TJR1443 is a
> > > compatible superset of TCAN1043, or vice versa. Hence I went for the
> > > safest way....
> >
> > If we don't know for sure what the craic is with compatibility, then we
> > should leave the existing tjr1443 compatible as-is I think.
>
> If I understood the kernel documentation correctly, we use fallback
> compatibles when devices are similar or there is an iterative
> relationship between them. In my case, the TCAN1042 and ATA6561 are
> from different manufacturers, and I'm not sure about their fully
> identical functionality.
It's about programming models being compatible, not identical. The
manufacturer also doesn't matter.
> Therefore, I'll go back to the original idea where I shouldn't use a
> fallback compatible here and must leave it as another compatible
> property with its own of_device_id struct.
>
> What do you think about it? In my opinion, this is not a case for
> fallback compatibility.
Why is it not a case, other than the reasons you already mentioned that
I don't agree with?
Cheers,
Conor.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
next prev parent reply other threads:[~2024-08-05 10:11 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-18 21:03 [PATCH 0/2] phy: Add support for Microchip ATA6561 CAN Transceiver Ilya Orazov
2024-07-18 21:03 ` [PATCH 1/2] dt-bindings: phy: ti,tcan104x-can: Document Microchip ATA6561 Ilya Orazov
2024-07-19 15:07 ` Conor Dooley
2024-07-23 17:20 ` IlorDash
2024-07-23 18:50 ` Conor Dooley
2024-07-23 19:55 ` Ilya Orazov
2024-07-23 20:14 ` Conor Dooley
2024-07-28 8:52 ` Ilya Orazov
2024-07-29 8:51 ` Geert Uytterhoeven
2024-08-01 15:12 ` Conor Dooley
2024-08-03 12:31 ` Ilya Orazov
2024-08-05 10:11 ` Conor Dooley [this message]
2024-08-07 18:02 ` [PATCH v2 0/1] phy: Add support for Microchip ATA6561 CAN Transceiver Ilya Orazov
2024-08-07 18:02 ` [PATCH v2 1/1] dt-bindings: phy: ti,tcan104x-can: Document Microchip ATA6561 Ilya Orazov
2024-08-07 18:09 ` [PATCH v2 0/1] phy: Add support for Microchip ATA6561 CAN Transceiver Ilya Orazov
2024-08-07 18:09 ` [PATCH v2 1/1] dt-bindings: phy: ti,tcan104x-can: Document Microchip ATA6561 Ilya Orazov
2024-08-07 19:12 ` Rob Herring (Arm)
2024-08-08 15:48 ` Conor Dooley
2024-08-08 16:40 ` Krzysztof Kozlowski
2024-08-08 19:17 ` [PATCH v3 " Ilya Orazov
2024-08-09 14:57 ` Conor Dooley
2024-08-13 17:14 ` Ilya Orazov
2024-08-14 9:03 ` Krzysztof Kozlowski
2024-08-14 16:56 ` Ilya Orazov
2024-07-18 21:03 ` [PATCH 2/2] phy: phy-can-transceiver: Add support for " Ilya Orazov
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=20240805-fruit-chip-cf08a0e166a3@spud \
--to=conor@kernel.org \
--cc=a-govindraju@ti.com \
--cc=devicetree@vger.kernel.org \
--cc=geert@linux-m68k.org \
--cc=ilordash02@gmail.com \
--cc=kishon@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-can@vger.kernel.org \
--cc=linux-phy@lists.infradead.org \
--cc=mailhol.vincent@wanadoo.fr \
--cc=mkl@pengutronix.de \
--cc=robh@kernel.org \
--cc=vkoul@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).