[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CA+Px+wUV89KO8JJd3+HpOrgFRSc7sdg-DBW44C31262Qx9NzVg@mail.gmail.com>
Date: Wed, 19 Aug 2020 23:42:27 +0800
From: Tzung-Bi Shih <tzungbi@...gle.com>
To: Mark Brown <broonie@...nel.org>
Cc: Jiaxin Yu <jiaxin.yu@...iatek.com>,
Matthias Brugger <matthias.bgg@...il.com>,
Rob Herring <robh+dt@...nel.org>,
Takashi Iwai <tiwai@...e.com>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
ALSA development <alsa-devel@...a-project.org>,
linux-arm-kernel@...ts.infradead.org,
linux-mediatek@...ts.infradead.org, howie.huang@...iatek.com,
eason.yen@...iatek.com, shane.chien@...iatek.com,
bicycle.tsai@...iatek.com
Subject: Re: [PATCH v5 2/2] dt-bindings: mediatek: mt6359: add codec document
On Wed, Aug 19, 2020 at 6:38 PM Mark Brown <broonie@...nel.org> wrote:
>
> On Mon, Aug 17, 2020 at 04:11:03PM +0800, Tzung-Bi Shih wrote:
> > I misunderstood. It still needs the compatible string to match the
> > corresponding driver.
>
> No, it doesn't. The MFD should be registering the platform device.
I guess I see. It lists the mfd_cell when calling
devm_mfd_add_devices() in drivers/mfd/mt6397-core.c. It falls back to
use driver name and device name to match. As long as the name
provided in mfd_cell matches the platform driver name, it works.
But I found struct mfd_cell also contains member .of_compatible. What
is the difference if we use compatible string (as is) for this device
instead of falling back to use device name to match?
Powered by blists - more mailing lists