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: <20140930221440.GW28481@sonymobile.com>
Date:	Tue, 30 Sep 2014 15:14:41 -0700
From:	Bjorn Andersson <bjorn.andersson@...ymobile.com>
To:	Suman Anna <s-anna@...com>
CC:	Ohad Ben-Cohen <ohad@...ery.com>,
	Kumar Gala <galak@...eaurora.org>,
	Rob Herring <robh+dt@...nel.org>,
	Pawel Moll <pawel.moll@....com>,
	Mark Rutland <mark.rutland@....com>,
	Ian Campbell <ijc+devicetree@...lion.org.uk>,
	Grant Likely <grant.likely@...aro.org>,
	"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
	"linux-arm-msm@...r.kernel.org" <linux-arm-msm@...r.kernel.org>,
	Jeffrey Hugo <jhugo@...eaurora.org>,
	Eric Holmberg <eholmber@...eaurora.org>,
	"Cavin, Courtney" <Courtney.Cavin@...ymobile.com>
Subject: Re: [PATCH v4] hwspinlock: qcom: Add support for Qualcomm HW Mutex
 block

On Tue 30 Sep 14:48 PDT 2014, Suman Anna wrote:

> Hi Bjorn,
> 

Thanks for the review, I didn't find the generic binding until after I sent
this out.

> On 09/29/2014 11:35 PM, Bjorn Andersson wrote:

[..]

> > diff --git a/Documentation/devicetree/bindings/hwlock/qcom-hwspinlock.txt b/Documentation/devicetree/bindings/hwlock/qcom-hwspinlock.txt

[..]

> > +- qcom,num-locks:
> > +	Usage: required
> > +	Value type: <u32>
> > +	Definition: the number of locks/mutex available in this block
> 
> Please use the common hwlock-num-locks property defined in the common
> bindings, instead of a qcom specific property name.
> 

I'll update this and send out a new version as soon as the generic binding have
settled.

> > +
> > +Example:
> > +
> > +	hwlock@...84000 {
> > +		compatible = "qcom,tcsr-mutex";
> > +		reg = <0xfd484000 0x1000>;
> > +		reg-names = "mutex-base";
> > +		qcom,num-locks = <32>;
> 
> You also need to add the #hwlock-cells = <1>, without which you won't be
> able to parse a client user's lock id.
> 

Yeah, I noticed.

[..]

> > diff --git a/drivers/hwspinlock/qcom_hwspinlock.c b/drivers/hwspinlock/qcom_hwspinlock.c

[..]

> > +static int qcom_hwspinlock_probe(struct platform_device *pdev)
> > +{

[..]

> > +
> > +	ret = hwspin_lock_register(bank, &pdev->dev, &qcom_hwspinlock_ops,
> > +						BASE_ID, num_locks);
> 
> I had also done the registration for OMAP hwspinlock driver using a
> constant id in my v5, but had revised it based on Ohad's review comment,
> so you may have to revise here as well. Please see [1] for details.
> 

Okay, I can add that too.

> > +	if (ret)
> > +		pm_runtime_disable(&pdev->dev);
> > +
> > +	return ret;
> > +}
> > +

[..]

> [1] https://patchwork.kernel.org/patch/4096881/

Regards,
Bjorn
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ