Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1316684

Re: [PATCH V2 2/2] regulator: mt6323: Add support for MT6323 regulator

From John Crispin <blogic@openwrt.org>
Newsgroups linux.kernel
Subject Re: [PATCH V2 2/2] regulator: mt6323: Add support for MT6323 regulator
Date 2016-01-25 14:20 +0100
Message-ID <qUPdM-4ol-23@gated-at.bofh.it> (permalink)
References <qUMSD-2CU-31@gated-at.bofh.it> <qUMSE-2CU-51@gated-at.bofh.it> <qUOhI-3K1-17@gated-at.bofh.it> <qUOhI-3K1-15@gated-at.bofh.it> <qUOB4-3Tm-27@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw



On 25/01/2016 13:35, Mark Brown wrote:
> On Mon, Jan 25, 2016 at 01:19:46PM +0100, John Crispin wrote:
>> On 25/01/2016 13:11, Javier Martinez Canillas wrote:
> 
>>> You don't have a .of_match table but according the DT bindings, the
>>> compatible string "mediatek,mt6323-regulator" should be used so there
>>> should be a OF match table or the vendor prefix of the compatible
>>> string won't be used for matching (i.e: fallbacks to the driver .name
>>> for match).
> 
>> the driver is probed via drivers/mfd/mt6397-core.c and does not require
>> the OF match table. It loads fine just like the mt6397 driver.
> 
> That's fine but you shouldn't have the compatible string in your binding
> document since it's not actually used or needed.
> 
Hi,

correct me if i am wrong but if we remove the compatible string from the
binding document, then we will also have to remove it from the dts and
then the kernel won't be able to match the node to the driver and thus
the regulator phandle derefs will fail.

	John

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH V2 1/2] dt-bindings: regulator: Add document for MT6323 regulator John Crispin <blogic@openwrt.org> - 2016-01-25 11:50 +0100
  [PATCH V2 2/2] regulator: mt6323: Add support for MT6323 regulator John Crispin <blogic@openwrt.org> - 2016-01-25 11:50 +0100
    Re: [PATCH V2 2/2] regulator: mt6323: Add support for MT6323  regulator John Crispin <blogic@openwrt.org> - 2016-01-25 13:20 +0100
      Re: [PATCH V2 2/2] regulator: mt6323: Add support for MT6323 regulator Javier Martinez Canillas <javier@dowhile0.org> - 2016-01-25 13:40 +0100
      Re: [PATCH V2 2/2] regulator: mt6323: Add support for MT6323  regulator Mark Brown <broonie@kernel.org> - 2016-01-25 13:40 +0100
        Re: [PATCH V2 2/2] regulator: mt6323: Add support for MT6323  regulator John Crispin <blogic@openwrt.org> - 2016-01-25 14:20 +0100
          Re: [PATCH V2 2/2] regulator: mt6323: Add support for MT6323 regulator Javier Martinez Canillas <javier@dowhile0.org> - 2016-01-25 14:20 +0100
            Re: [PATCH V2 2/2] regulator: mt6323: Add support for MT6323 regulator Javier Martinez Canillas <javier@dowhile0.org> - 2016-01-25 14:30 +0100
              Re: [PATCH V2 2/2] regulator: mt6323: Add support for MT6323  regulator John Crispin <blogic@openwrt.org> - 2016-01-25 14:50 +0100
                Re: [PATCH V2 2/2] regulator: mt6323: Add support for MT6323  regulator John Crispin <blogic@openwrt.org> - 2016-01-25 15:10 +0100
                Re: [PATCH V2 2/2] regulator: mt6323: Add support for MT6323 regulator Javier Martinez Canillas <javier@dowhile0.org> - 2016-01-25 15:10 +0100
    Re: [PATCH V2 2/2] regulator: mt6323: Add support for MT6323 regulator Javier Martinez Canillas <javier@dowhile0.org> - 2016-01-25 13:20 +0100
  Re: [PATCH V2 1/2] dt-bindings: regulator: Add document for MT6323  regulator Mark Brown <broonie@kernel.org> - 2016-01-25 12:40 +0100
    Re: [PATCH V2 1/2] dt-bindings: regulator: Add document for MT6323  regulator John Crispin <blogic@openwrt.org> - 2016-01-25 13:10 +0100

csiph-web