lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20161021072236.GD2670@ulmo.ba.sec>
Date:   Fri, 21 Oct 2016 09:22:36 +0200
From:   Thierry Reding <thierry.reding@...il.com>
To:     Rob Herring <robh@...nel.org>
Cc:     Jian Yuan <yuanjian12@...ilicon.com>, mark.rutland@....com,
        linux-pwm@...r.kernel.org, devicetree@...r.kernel.org,
        linux-kernel@...r.kernel.org, xuejiancheng@...ilicon.com,
        kevin.lixu@...ilicon.com, jalen.hsu@...ilicon.com
Subject: Re: [PATCH v4] pwm: add pwm driver for HiSilicon BVT SOCs

On Mon, Oct 10, 2016 at 04:53:39PM -0500, Rob Herring wrote:
> On Mon, Oct 10, 2016 at 07:05:16PM +0800, Jian Yuan wrote:
> > From: yuanjian <yuanjian12@...ilicon.com>
> > 
> > Add PWM driver for the PWM controller found on HiSilicon BVT SOCs, like Hi3519V100, Hi3516CV300, etc.
> > The PWM controller is primarily in charge of controlling P-Iris lens.
> > 
> > Reviewed-by: Jiancheng Xue <xuejiancheng@...ilicon.com>
> > Signed-off-by: Jian Yuan <yuanjian12@...ilicon.com>
> > ---
> > Change Log:
> > v4:
> > Add #pwm-cells in the bindings document.
> > v3:
> > fixed issues pointed by thierry.
> > Add PWM compatible string for Hi3519V100.
> > Implement .apply() function which support atomic, instead of .enable()/.disable()/.config().
> > v2:
> > The number of PWMs is change to be probeable based on the compatible string.
> > 
> >  .../devicetree/bindings/pwm/pwm-hibvt.txt          |  23 ++
> >  drivers/pwm/Kconfig                                |   9 +
> >  drivers/pwm/Makefile                               |   1 +
> >  drivers/pwm/pwm-hibvt.c                            | 270 +++++++++++++++++++++
> >  4 files changed, 303 insertions(+)
> >  create mode 100644 Documentation/devicetree/bindings/pwm/pwm-hibvt.txt
> >  create mode 100644 drivers/pwm/pwm-hibvt.c
> > 
> > diff --git a/Documentation/devicetree/bindings/pwm/pwm-hibvt.txt b/Documentation/devicetree/bindings/pwm/pwm-hibvt.txt
> > new file mode 100644
> > index 0000000..609284f
> > --- /dev/null
> > +++ b/Documentation/devicetree/bindings/pwm/pwm-hibvt.txt
> > @@ -0,0 +1,23 @@
> > +Hisilicon PWM controller
> > +
> > +Required properties:
> > +-compatible: should contain one SoC specific compatible string and one generic compatible
> > +string "hisilicon, hibvt-pwm". The SoC specific strings supported including:
> 
> Extra space          ^
> 
> With that, for the binding:
> 
> Acked-by: Rob Herring <robh@...nel.org>

I'm wondering what the use is of the generic compatible string? Not only
is the driver not listing it, nor is it in any way useful since there is
nothing the driver could do based on the generic compatible string (each
version of the IP currently supported has a different number of PWM
channels).

Should I just remove that from the above text and the example?

Thierry

> > +	"hisilicon,hi3516cv300-pwm"
> > +	"hisilicon,hi3519v100-pwm"
> > +- reg: physical base address and length of the controller's registers.
> > +- clocks: phandle and clock specifier of the PWM reference clock.
> > +- resets: phandle and reset specifier for the PWM controller reset.
> > +- #pwm-cells: Should be 2. See pwm.txt in this directory for a description of
> > +  the cells format.
> > +
> > +Example:
> > +	pwm: pwm@...30000 {
> > +
> > +		compatible = "hisilicon,hi3516cv300-pwm", "hisilicon,hibvt-pwm";
> > +		compatible = "hisilicon,hi3519v100-pwm", "hisilicon,hibvt-pwm";
> > +		reg = <0x12130000 0x10000>;
> > +		clocks = <&crg_ctrl HI3516CV300_PWM_CLK>;
> > +		resets = <&crg_ctrl 0x38 0>;
> > +		#pwm-cells = <2>;
> > +	};

Download attachment "signature.asc" of type "application/pgp-signature" (802 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ