* [PATCH 5/6] crypto: ux500/cryp - Enable DT probing of the driver [not found] <1368703646-26418-1-git-send-email-lee.jones@linaro.org> @ 2013-05-16 11:27 ` Lee Jones 2013-05-24 6:20 ` Linus Walleij 2013-05-24 6:26 ` Linus Walleij 2013-05-16 11:27 ` [PATCH 6/6] crypto: ux500/hash " Lee Jones 1 sibling, 2 replies; 7+ messages in thread From: Lee Jones @ 2013-05-16 11:27 UTC (permalink / raw) To: linux-arm-kernel, linux-kernel Cc: arnd, linus.walleij, srinidhi.kasagar, Lee Jones, Herbert Xu, linux-crypto By providing an OF match table with a suitable compatible string, we can ensure the ux500-crypt driver is probed by supplying an associated DT node in a given platform's Device Tree. Cc: Herbert Xu <herbert@gondor.apana.org.au> Cc: linux-crypto@vger.kernel.org Signed-off-by: Lee Jones <lee.jones@linaro.org> --- drivers/crypto/ux500/cryp/cryp_core.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/crypto/ux500/cryp/cryp_core.c b/drivers/crypto/ux500/cryp/cryp_core.c index 4f8b11a..d3940b7 100644 --- a/drivers/crypto/ux500/cryp/cryp_core.c +++ b/drivers/crypto/ux500/cryp/cryp_core.c @@ -1772,6 +1772,11 @@ static int ux500_cryp_resume(struct device *dev) static SIMPLE_DEV_PM_OPS(ux500_cryp_pm, ux500_cryp_suspend, ux500_cryp_resume); +static const struct of_device_id ux500_cryp_match[] = { + { .compatible = "stericsson,ux500-cryp" }, + { }, +}; + static struct platform_driver cryp_driver = { .probe = ux500_cryp_probe, .remove = ux500_cryp_remove, @@ -1779,6 +1784,7 @@ static struct platform_driver cryp_driver = { .driver = { .owner = THIS_MODULE, .name = "cryp1", + .of_match_table = ux500_cryp_match, .pm = &ux500_cryp_pm, } }; -- 1.7.10.4 ^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 5/6] crypto: ux500/cryp - Enable DT probing of the driver 2013-05-16 11:27 ` [PATCH 5/6] crypto: ux500/cryp - Enable DT probing of the driver Lee Jones @ 2013-05-24 6:20 ` Linus Walleij 2013-05-24 6:21 ` Herbert Xu 2013-05-24 8:32 ` Lee Jones 2013-05-24 6:26 ` Linus Walleij 1 sibling, 2 replies; 7+ messages in thread From: Linus Walleij @ 2013-05-24 6:20 UTC (permalink / raw) To: Lee Jones, Herbert Xu Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Arnd Bergmann, Linus WALLEIJ, Srinidhi KASAGAR, linux-crypto@vger.kernel.org On Thu, May 16, 2013 at 1:27 PM, Lee Jones <lee.jones@linaro.org> wrote: > By providing an OF match table with a suitable compatible string, we > can ensure the ux500-crypt driver is probed by supplying an associated > DT node in a given platform's Device Tree. > > Cc: Herbert Xu <herbert@gondor.apana.org.au> > Cc: linux-crypto@vger.kernel.org > Signed-off-by: Lee Jones <lee.jones@linaro.org> Herbert, can I have your ACK on patch 5 & 6 in this series to take it through the ARM SoC tree? Yours, Linus Walleij ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 5/6] crypto: ux500/cryp - Enable DT probing of the driver 2013-05-24 6:20 ` Linus Walleij @ 2013-05-24 6:21 ` Herbert Xu 2013-05-24 8:32 ` Lee Jones 1 sibling, 0 replies; 7+ messages in thread From: Herbert Xu @ 2013-05-24 6:21 UTC (permalink / raw) To: Linus Walleij Cc: Lee Jones, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Arnd Bergmann, Linus WALLEIJ, Srinidhi KASAGAR, linux-crypto@vger.kernel.org On Fri, May 24, 2013 at 08:20:38AM +0200, Linus Walleij wrote: > On Thu, May 16, 2013 at 1:27 PM, Lee Jones <lee.jones@linaro.org> wrote: > > > By providing an OF match table with a suitable compatible string, we > > can ensure the ux500-crypt driver is probed by supplying an associated > > DT node in a given platform's Device Tree. > > > > Cc: Herbert Xu <herbert@gondor.apana.org.au> > > Cc: linux-crypto@vger.kernel.org > > Signed-off-by: Lee Jones <lee.jones@linaro.org> > > Herbert, can I have your ACK on patch 5 & 6 in this series to take it > through the ARM SoC tree? Sure, Acked-by: Herbert Xu <herbert@gondor.apana.org.au> Thanks, -- Email: Herbert Xu <herbert@gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 5/6] crypto: ux500/cryp - Enable DT probing of the driver 2013-05-24 6:20 ` Linus Walleij 2013-05-24 6:21 ` Herbert Xu @ 2013-05-24 8:32 ` Lee Jones 2013-05-24 11:16 ` Linus Walleij 1 sibling, 1 reply; 7+ messages in thread From: Lee Jones @ 2013-05-24 8:32 UTC (permalink / raw) To: Linus Walleij Cc: Herbert Xu, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Arnd Bergmann, Linus WALLEIJ, Srinidhi KASAGAR, linux-crypto@vger.kernel.org On Fri, 24 May 2013, Linus Walleij wrote: > On Thu, May 16, 2013 at 1:27 PM, Lee Jones <lee.jones@linaro.org> wrote: > > > By providing an OF match table with a suitable compatible string, we > > can ensure the ux500-crypt driver is probed by supplying an associated > > DT node in a given platform's Device Tree. > > > > Cc: Herbert Xu <herbert@gondor.apana.org.au> > > Cc: linux-crypto@vger.kernel.org > > Signed-off-by: Lee Jones <lee.jones@linaro.org> > > Herbert, can I have your ACK on patch 5 & 6 in this series to take it > through the ARM SoC tree? Right, there are no bindings, so they don't need a document. -- Lee Jones Linaro ST-Ericsson Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 5/6] crypto: ux500/cryp - Enable DT probing of the driver 2013-05-24 8:32 ` Lee Jones @ 2013-05-24 11:16 ` Linus Walleij 0 siblings, 0 replies; 7+ messages in thread From: Linus Walleij @ 2013-05-24 11:16 UTC (permalink / raw) To: Lee Jones, devicetree-discuss@lists.ozlabs.org, Rob Herring Cc: Herbert Xu, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Arnd Bergmann, Linus WALLEIJ, Srinidhi KASAGAR, linux-crypto@vger.kernel.org On Fri, May 24, 2013 at 10:32 AM, Lee Jones <lee.jones@linaro.org> wrote: > On Fri, 24 May 2013, Linus Walleij wrote: >> On Thu, May 16, 2013 at 1:27 PM, Lee Jones <lee.jones@linaro.org> wrote: >> >> > By providing an OF match table with a suitable compatible string, we >> > can ensure the ux500-crypt driver is probed by supplying an associated >> > DT node in a given platform's Device Tree. >> > >> > Cc: Herbert Xu <herbert@gondor.apana.org.au> >> > Cc: linux-crypto@vger.kernel.org >> > Signed-off-by: Lee Jones <lee.jones@linaro.org> >> >> Herbert, can I have your ACK on patch 5 & 6 in this series to take it >> through the ARM SoC tree? > > Right, there are no bindings, so they don't need a document. Surely the requirement that the node must have <reg>, <irqs> and <regulator> for the driver to even probe is a binding? The fact that the drivers/of/* core on Linux will auto-populate platform devices with those properties is a pure Linux pecularity, and the bindings are there for OS independence. Whether we need to document it for such standard things is another thing, hopefully Rob or someone can answer that? Yours, Linus Walleij ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 5/6] crypto: ux500/cryp - Enable DT probing of the driver 2013-05-16 11:27 ` [PATCH 5/6] crypto: ux500/cryp - Enable DT probing of the driver Lee Jones 2013-05-24 6:20 ` Linus Walleij @ 2013-05-24 6:26 ` Linus Walleij 1 sibling, 0 replies; 7+ messages in thread From: Linus Walleij @ 2013-05-24 6:26 UTC (permalink / raw) To: Lee Jones Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Arnd Bergmann, Linus WALLEIJ, Srinidhi KASAGAR, Herbert Xu, linux-crypto@vger.kernel.org On Thu, May 16, 2013 at 1:27 PM, Lee Jones <lee.jones@linaro.org> wrote: > By providing an OF match table with a suitable compatible string, we > can ensure the ux500-crypt driver is probed by supplying an associated > DT node in a given platform's Device Tree. > > Cc: Herbert Xu <herbert@gondor.apana.org.au> > Cc: linux-crypto@vger.kernel.org > Signed-off-by: Lee Jones <lee.jones@linaro.org> > --- > drivers/crypto/ux500/cryp/cryp_core.c | 6 ++++++ W00t! No binding document? OK I guess it's just reg, irq ... but still it's compulsory, right? Yours, Linus Walleij ^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 6/6] crypto: ux500/hash - Enable DT probing of the driver [not found] <1368703646-26418-1-git-send-email-lee.jones@linaro.org> 2013-05-16 11:27 ` [PATCH 5/6] crypto: ux500/cryp - Enable DT probing of the driver Lee Jones @ 2013-05-16 11:27 ` Lee Jones 1 sibling, 0 replies; 7+ messages in thread From: Lee Jones @ 2013-05-16 11:27 UTC (permalink / raw) To: linux-arm-kernel, linux-kernel Cc: arnd, linus.walleij, srinidhi.kasagar, Lee Jones, Herbert Xu, linux-crypto By providing an OF match table with a suitable compatible string, we can ensure the ux500-hasht driver is probed by supplying an associated DT node in a given platform's Device Tree. Cc: Herbert Xu <herbert@gondor.apana.org.au> Cc: linux-crypto@vger.kernel.org Signed-off-by: Lee Jones <lee.jones@linaro.org> --- drivers/crypto/ux500/hash/hash_core.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/crypto/ux500/hash/hash_core.c b/drivers/crypto/ux500/hash/hash_core.c index 9ca6fbb..f89fe8a 100644 --- a/drivers/crypto/ux500/hash/hash_core.c +++ b/drivers/crypto/ux500/hash/hash_core.c @@ -1981,6 +1981,11 @@ static int ux500_hash_resume(struct device *dev) static SIMPLE_DEV_PM_OPS(ux500_hash_pm, ux500_hash_suspend, ux500_hash_resume); +static const struct of_device_id ux500_hash_match[] = { + { .compatible = "stericsson,ux500-hash" }, + { }, +}; + static struct platform_driver hash_driver = { .probe = ux500_hash_probe, .remove = ux500_hash_remove, @@ -1988,6 +1993,7 @@ static struct platform_driver hash_driver = { .driver = { .owner = THIS_MODULE, .name = "hash1", + .of_match_table = ux500_hash_match, .pm = &ux500_hash_pm, } }; -- 1.7.10.4 ^ permalink raw reply related [flat|nested] 7+ messages in thread
end of thread, other threads:[~2013-05-24 11:16 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1368703646-26418-1-git-send-email-lee.jones@linaro.org>
2013-05-16 11:27 ` [PATCH 5/6] crypto: ux500/cryp - Enable DT probing of the driver Lee Jones
2013-05-24 6:20 ` Linus Walleij
2013-05-24 6:21 ` Herbert Xu
2013-05-24 8:32 ` Lee Jones
2013-05-24 11:16 ` Linus Walleij
2013-05-24 6:26 ` Linus Walleij
2013-05-16 11:27 ` [PATCH 6/6] crypto: ux500/hash " Lee Jones
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox