Skip to contentSkip to conversation

omap3 crypto fixes

PATCH Applied Pali Rohár 6 participants 50 messages Feb 26, 2015 – Jun 2, 2015

Subsystems (7)
lore
Share & tools
lore
#0 lore raw

cover omap3 crypto fixes

This patch series fix crypto support for omap3 devices which use DT.

It enables AES and SHAM on N9/N950 and SHAM on N900. AES is still disabled for N900.

Pali Rohár (10):
ARM: OMAP2+: Return correct error values from device and hwmod
ARM: OMAP3: Fix crypto support for HS devices
crypto: omap-sham: Add support for omap3 devices
crypto: omap-sham: Check for return value from pm_runtime_get_sync
ARM: dts: omap3 hs: Remove timer12
ARM: dts: omap3: Add missing dmas for crypto
ARM: dts: n9/n950: Enable omap crypto support
ARM: dts: n900: Enable omap sham and include directly omap34xx.dtsi
ARM: dts: omap3-tao3530: Include directly omap34xx.dtsi
ARM: dts: Remove files omap34xx-hs.dtsi and omap36xx-hs.dtsi

 arch/arm/boot/dts/omap3-n900.dts           |   16 +++++-
 arch/arm/boot/dts/omap3-n950-n9.dtsi       |    2 +-
 arch/arm/boot/dts/omap3-tao3530.dtsi       |   11 +++-
 arch/arm/boot/dts/omap3.dtsi               |    4 ++
 arch/arm/boot/dts/omap34xx-hs.dtsi         |   16 ------
 arch/arm/boot/dts/omap36xx-hs.dtsi         |   16 ------
 arch/arm/mach-omap2/omap_device.c          |   30 ++++++-----
 arch/arm/mach-omap2/omap_hwmod.c           |   10 ++--
 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c |   79 +++++++++++++++++++++++-----
 drivers/crypto/omap-sham.c                 |   13 ++++-
 10 files changed, 131 insertions(+), 66 deletions(-)
 delete mode 100644 arch/arm/boot/dts/omap34xx-hs.dtsi
 delete mode 100644 arch/arm/boot/dts/omap36xx-hs.dtsi
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/10 ARM: OMAP2+: Return correct error values from device and hwmod

Without this patch function pm_runtime_get_sync() returns 0 even when some omap subfunction fails. This patch properly propagate error codes from omap functions back to caller.

This patch fix problem, when loading omap-aes driver in qemu cause kernel oops.

---
 arch/arm/mach-omap2/omap_device.c |   30 +++++++++++++++++-------------
 arch/arm/mach-omap2/omap_hwmod.c  |   10 ++++++----
 2 files changed, 23 insertions(+), 17 deletions(-)
arch/arm/mach-omap2/omap_device.c +17 -13
index be9541e..9fd47a9 100644
@@ -224,13 +224,13 @@ static int _omap_device_notifier_call(struct notifier_block *nb,
  */
 static int _omap_device_enable_hwmods(struct omap_device *od)
 {
+	int ret = 0;
 	int i;
 
 	for (i = 0; i < od->hwmods_cnt; i++)
-		omap_hwmod_enable(od->hwmods[i]);
+		ret |= omap_hwmod_enable(od->hwmods[i]);
 
-	/* XXX pass along return value here? */
-	return 0;
+	return ret;
 }
 
 /**
@@ -241,13 +241,13 @@ static int _omap_device_enable_hwmods(struct omap_device *od)
  */
 static int _omap_device_idle_hwmods(struct omap_device *od)
 {
+	int ret = 0;
 	int i;
 
 	for (i = 0; i < od->hwmods_cnt; i++)
-		omap_hwmod_idle(od->hwmods[i]);
+		ret |= omap_hwmod_idle(od->hwmods[i]);
 
-	/* XXX pass along return value here? */
-	return 0;
+	return ret;
 }
 
 /* Public functions for use by core code */
@@ -595,18 +595,20 @@ static int _od_runtime_suspend(struct device *dev)
 	int ret;
 
 	ret = pm_generic_runtime_suspend(dev);
+	if (ret)
+		return ret;
 
-	if (!ret)
-		omap_device_idle(pdev);
-
-	return ret;
+	return omap_device_idle(pdev);
 }
 
 static int _od_runtime_resume(struct device *dev)
 {
 	struct platform_device *pdev = to_platform_device(dev);
+	int ret;
 
-	omap_device_enable(pdev);
+	ret = omap_device_enable(pdev);
+	if (ret)
+		return ret;
 
 	return pm_generic_runtime_resume(dev);
 }
@@ -740,7 +742,8 @@ int omap_device_enable(struct platform_device *pdev)
 
 	ret = _omap_device_enable_hwmods(od);
 
-	od->_state = OMAP_DEVICE_STATE_ENABLED;
+	if (ret == 0)
+		od->_state = OMAP_DEVICE_STATE_ENABLED;
 
 	return ret;
 }
@@ -770,7 +773,8 @@ int omap_device_idle(struct platform_device *pdev)
 
 	ret = _omap_device_idle_hwmods(od);
 
-	od->_state = OMAP_DEVICE_STATE_IDLE;
+	if (ret == 0)
+		od->_state = OMAP_DEVICE_STATE_IDLE;
 
 	return ret;
 }
arch/arm/mach-omap2/omap_hwmod.c +6 -4
index 92afb72..870e984 100644
@@ -3350,16 +3350,17 @@ int omap_hwmod_enable(struct omap_hwmod *oh)
  */
 int omap_hwmod_idle(struct omap_hwmod *oh)
 {
+	int r;
 	unsigned long flags;
 
 	if (!oh)
 		return -EINVAL;
 
 	spin_lock_irqsave(&oh->_lock, flags);
-	_idle(oh);
+	r = _idle(oh);
 	spin_unlock_irqrestore(&oh->_lock, flags);
 
-	return 0;
+	return r;
 }
 
 /**
@@ -3372,16 +3373,17 @@ int omap_hwmod_idle(struct omap_hwmod *oh)
  */
 int omap_hwmod_shutdown(struct omap_hwmod *oh)
 {
+	int r;
 	unsigned long flags;
 
 	if (!oh)
 		return -EINVAL;
 
 	spin_lock_irqsave(&oh->_lock, flags);
-	_shutdown(oh);
+	r = _shutdown(oh);
 	spin_unlock_irqrestore(&oh->_lock, flags);
 
-	return 0;
+	return r;
 }
 
 /*
Signature · 1 line
1.7.9.5
#2 lore raw

Re: [PATCH 01/10] ARM: OMAP2+: Return correct error values from device and hwmod

Quoted 130 lines · On Thursday 26 February 2015 14:49:51 Pali Rohár wrote:

Without this patch function pm_runtime_get_sync() returns 0 even when some omap subfunction fails. This patch properly propagate error codes from omap functions back to caller.

This patch fix problem, when loading omap-aes driver in qemu cause kernel oops.

---
 arch/arm/mach-omap2/omap_device.c |   30 +++++++++++++++++-------------
 arch/arm/mach-omap2/omap_hwmod.c  |   10 ++++++----
 2 files changed, 23 insertions(+), 17 deletions(-)
arch/arm/mach-omap2/omap_device.c +17 -13
index be9541e..9fd47a9 100644
@@ -224,13 +224,13 @@ static int _omap_device_notifier_call(struct notifier_block *nb,
  */
 static int _omap_device_enable_hwmods(struct omap_device *od)
 {
+	int ret = 0;
 	int i;
 
 	for (i = 0; i < od->hwmods_cnt; i++)
-		omap_hwmod_enable(od->hwmods[i]);
+		ret |= omap_hwmod_enable(od->hwmods[i]);
 
-	/* XXX pass along return value here? */
-	return 0;
+	return ret;
 }
 
 /**
@@ -241,13 +241,13 @@ static int _omap_device_enable_hwmods(struct omap_device *od)
  */
 static int _omap_device_idle_hwmods(struct omap_device *od)
 {
+	int ret = 0;
 	int i;
 
 	for (i = 0; i < od->hwmods_cnt; i++)
-		omap_hwmod_idle(od->hwmods[i]);
+		ret |= omap_hwmod_idle(od->hwmods[i]);
 
-	/* XXX pass along return value here? */
-	return 0;
+	return ret;
 }
 
 /* Public functions for use by core code */
@@ -595,18 +595,20 @@ static int _od_runtime_suspend(struct device *dev)
 	int ret;
 
 	ret = pm_generic_runtime_suspend(dev);
+	if (ret)
+		return ret;
 
-	if (!ret)
-		omap_device_idle(pdev);
-
-	return ret;
+	return omap_device_idle(pdev);
 }
 
 static int _od_runtime_resume(struct device *dev)
 {
 	struct platform_device *pdev = to_platform_device(dev);
+	int ret;
 
-	omap_device_enable(pdev);
+	ret = omap_device_enable(pdev);
+	if (ret)
+		return ret;
 
 	return pm_generic_runtime_resume(dev);
 }
@@ -740,7 +742,8 @@ int omap_device_enable(struct platform_device *pdev)
 
 	ret = _omap_device_enable_hwmods(od);
 
-	od->_state = OMAP_DEVICE_STATE_ENABLED;
+	if (ret == 0)
+		od->_state = OMAP_DEVICE_STATE_ENABLED;
 
 	return ret;
 }
@@ -770,7 +773,8 @@ int omap_device_idle(struct platform_device *pdev)
 
 	ret = _omap_device_idle_hwmods(od);
 
-	od->_state = OMAP_DEVICE_STATE_IDLE;
+	if (ret == 0)
+		od->_state = OMAP_DEVICE_STATE_IDLE;
 
 	return ret;
 }
arch/arm/mach-omap2/omap_hwmod.c +4 -2
index 92afb72..870e984 100644
@@ -3350,16 +3350,17 @@ int omap_hwmod_enable(struct omap_hwmod *oh)
  */
 int omap_hwmod_idle(struct omap_hwmod *oh)
 {
+	int r;
 	unsigned long flags;
 
 	if (!oh)
 		return -EINVAL;
 
 	spin_lock_irqsave(&oh->_lock, flags);
-	_idle(oh);
+	r = _idle(oh);
 	spin_unlock_irqrestore(&oh->_lock, flags);
 
-	return 0;
+	return r;
 }
 
 /**
@@ -3372,16 +3373,17 @@ int omap_hwmod_idle(struct omap_hwmod *oh)
  */
 int omap_hwmod_shutdown(struct omap_hwmod *oh)
 {
+	int r;
 	unsigned long flags;
 
 	if (!oh)
 		return -EINVAL;
 

arch/arm/mach-omap2/omap_hwmod.c int omap_hwmod_idle(struct omap_hwmod *oh) · line 3389

Quoted 10 lines
arch/arm/mach-omap2/omap_hwmod.c +2 -2
 	spin_lock_irqsave(&oh->_lock, flags);
-	_shutdown(oh);
+	r = _shutdown(oh);
 	spin_unlock_irqrestore(&oh->_lock, flags);
 
-	return 0;
+	return r;
 }
 
 /*

Hello Paul, can you apply this patch?

Signature · 2 lines
Pali Rohár
[email protected]
#3 lore raw

PATCH 2/10 ARM: OMAP3: Fix crypto support for HS devices

In reply to Pali Rohár

Register crypto hwmod links only if they are not disabled in DT. If DT information is missing, enable them only for GP devices.

Before this patch crypto hwmod links were always disabled for all HS devices and it was not possible to use omap-aes and omap-sham linux drivers.

---
 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c |   79 +++++++++++++++++++++++-----
 1 file changed, 66 insertions(+), 13 deletions(-)
arch/arm/mach-omap2/omap_hwmod_3xxx_data.c +66 -13
index 4e8e93c..de13a06 100644
@@ -3744,29 +3744,54 @@ static struct omap_hwmod_ocp_if *omap3xxx_hwmod_ocp_ifs[] __initdata = {
 /* GP-only hwmod links */
 static struct omap_hwmod_ocp_if *omap34xx_gp_hwmod_ocp_ifs[] __initdata = {
 	&omap3xxx_l4_sec__timer12,
-	&omap3xxx_l4_core__sham,
-	&omap3xxx_l4_core__aes,
 	NULL
 };
 
 static struct omap_hwmod_ocp_if *omap36xx_gp_hwmod_ocp_ifs[] __initdata = {
 	&omap3xxx_l4_sec__timer12,
-	&omap3xxx_l4_core__sham,
-	&omap3xxx_l4_core__aes,
 	NULL
 };
 
 static struct omap_hwmod_ocp_if *am35xx_gp_hwmod_ocp_ifs[] __initdata = {
 	&omap3xxx_l4_sec__timer12,
-	/*
-	 * Apparently the SHA/MD5 and AES accelerator IP blocks are
-	 * only present on some AM35xx chips, and no one knows which
-	 * ones.  See
-	 * http://www.spinics.net/lists/arm-kernel/msg215466.html So
-	 * if you need these IP blocks on an AM35xx, try uncommenting
-	 * the following lines.
-	 */
+	NULL
+};
+
+/* crypto hwmod links */
+static struct omap_hwmod_ocp_if *omap34xx_sham_hwmod_ocp_ifs[] __initdata = {
+	&omap3xxx_l4_core__sham,
+	NULL
+};
+
+static struct omap_hwmod_ocp_if *omap34xx_aes_hwmod_ocp_ifs[] __initdata = {
+	&omap3xxx_l4_core__aes,
+	NULL
+};
+
+static struct omap_hwmod_ocp_if *omap36xx_sham_hwmod_ocp_ifs[] __initdata = {
+	&omap3xxx_l4_core__sham,
+	NULL
+};
+
+static struct omap_hwmod_ocp_if *omap36xx_aes_hwmod_ocp_ifs[] __initdata = {
+	&omap3xxx_l4_core__aes,
+	NULL
+};
+
+/*
+ * Apparently the SHA/MD5 and AES accelerator IP blocks are
+ * only present on some AM35xx chips, and no one knows which
+ * ones.  See
+ * http://www.spinics.net/lists/arm-kernel/msg215466.html So
+ * if you need these IP blocks on an AM35xx, try uncommenting
+ * the following lines.
+ */
+static struct omap_hwmod_ocp_if *am35xx_sham_hwmod_ocp_ifs[] __initdata = {
 	/* &omap3xxx_l4_core__sham, */
+	NULL
+};
+
+static struct omap_hwmod_ocp_if *am35xx_aes_hwmod_ocp_ifs[] __initdata = {
 	/* &omap3xxx_l4_core__aes, */
 	NULL
 };
@@ -3871,7 +3896,8 @@ static struct omap_hwmod_ocp_if *omap3xxx_dss_hwmod_ocp_ifs[] __initdata = {
 int __init omap3xxx_hwmod_init(void)
 {
 	int r;
-	struct omap_hwmod_ocp_if **h = NULL, **h_gp = NULL;
+	struct omap_hwmod_ocp_if **h = NULL, **h_gp = NULL, **h_sham = NULL, **h_aes = NULL;
+	struct device_node *bus = NULL;
 	unsigned int rev;
 
 	omap_hwmod_init();
@@ -3893,13 +3919,19 @@ int __init omap3xxx_hwmod_init(void)
 	    rev == OMAP3430_REV_ES3_1 || rev == OMAP3430_REV_ES3_1_2) {
 		h = omap34xx_hwmod_ocp_ifs;
 		h_gp = omap34xx_gp_hwmod_ocp_ifs;
+		h_sham = omap34xx_sham_hwmod_ocp_ifs;
+		h_aes = omap34xx_aes_hwmod_ocp_ifs;
 	} else if (rev == AM35XX_REV_ES1_0 || rev == AM35XX_REV_ES1_1) {
 		h = am35xx_hwmod_ocp_ifs;
 		h_gp = am35xx_gp_hwmod_ocp_ifs;
+		h_sham = am35xx_sham_hwmod_ocp_ifs;
+		h_aes = am35xx_aes_hwmod_ocp_ifs;
 	} else if (rev == OMAP3630_REV_ES1_0 || rev == OMAP3630_REV_ES1_1 ||
 		   rev == OMAP3630_REV_ES1_2) {
 		h = omap36xx_hwmod_ocp_ifs;
 		h_gp = omap36xx_gp_hwmod_ocp_ifs;
+		h_sham = omap36xx_sham_hwmod_ocp_ifs;
+		h_aes = omap36xx_aes_hwmod_ocp_ifs;
 	} else {
 		WARN(1, "OMAP3 hwmod family init: unknown chip type\n");
 		return -EINVAL;
@@ -3916,6 +3948,27 @@ int __init omap3xxx_hwmod_init(void)
 			return r;
 	}
 
+	/*
+	 * Register crypto hwmod links only if they are not disabled in DT.
+	 * If DT information is missing, enable them only for GP devices.
+	 */
+
+	if (of_have_populated_dt())
+		bus = of_find_node_by_name(NULL, "ocp");
+
+	if (h_sham && ((!bus && omap_type() == OMAP2_DEVICE_TYPE_GP) ||
+	    (bus && of_device_is_available(of_find_node_by_name(bus, "sham"))))) {
+		r = omap_hwmod_register_links(h_sham);
+		if (r < 0)
+			return r;
+	}
+
+	if (h_aes && ((!bus && omap_type() == OMAP2_DEVICE_TYPE_GP) ||
+	    (bus && of_device_is_available(of_find_node_by_name(bus, "aes"))))) {
+		r = omap_hwmod_register_links(h_aes);
+		if (r < 0)
+			return r;
+	}
 
 	/*
 	 * Register hwmod links specific to certain ES levels of a
Signature · 1 line
1.7.9.5
Acked-by on v1 2/10
#4 lore raw

Re: [PATCH 02/10] ARM: OMAP3: Fix crypto support for HS devices

Quoted 7 lines · Pali Rohár

Register crypto hwmod links only if they are not disabled in DT. If DT information is missing, enable them only for GP devices.

Before this patch crypto hwmod links were always disabled for all HS devices and it was not possible to use omap-aes and omap-sham linux drivers.

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
#5 lore raw

Re: [PATCH 02/10] ARM: OMAP3: Fix crypto support for HS devices

Hi Paul,

this patch is also for omap2... Can you review it too?

Quoted 11 lines · On Saturday 28 February 2015 17:24:36 Pavel Machek wrote:
Quoted 7 lines · Pali Rohár

Register crypto hwmod links only if they are not disabled in DT. If DT information is missing, enable them only for GP devices.

Before this patch crypto hwmod links were always disabled for all HS devices and it was not possible to use omap-aes and omap-sham linux drivers.

Signature · 2 lines
Pali Rohár
[email protected]
maintainer Acked-by Pavel Machek
#6 lore raw

Re: [PATCH 02/10] ARM: OMAP3: Fix crypto support for HS devices

Quoted 16 lines · Pali Rohár

Hi Paul,

this patch is also for omap2... Can you review it too?

Quoted 11 lines · On Saturday 28 February 2015 17:24:36 Pavel Machek wrote:
Quoted 7 lines · Pali Rohár

Register crypto hwmod links only if they are not disabled in DT. If DT information is missing, enable them only for GP devices.

Before this patch crypto hwmod links were always disabled for all HS devices and it was not possible to use omap-aes and omap-sham linux drivers.

Sent to Tony for v4.2, after tweaking it a bit (below)

- Paul

Subject: [PATCH] ARM: OMAP3: Fix crypto support for HS devices

Register crypto hwmod links only if they are not disabled in DT. If DT information is missing, enable them only for GP devices.

Before this patch crypto hwmod links were always disabled for all HS devices and it was not possible to use omap-aes and omap-sham linux drivers.

[[email protected]: move the complex IP-block presence heuristics into their
own function to simplify the code; fix some checkpatch warnings]

---
 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c | 107 +++++++++++++++++++++++++----
 1 file changed, 94 insertions(+), 13 deletions(-)
arch/arm/mach-omap2/omap_hwmod_3xxx_data.c +94 -13
index 0ca4d3fb7df6..dc55f8dedf2c 100644
@@ -3736,29 +3736,54 @@ static struct omap_hwmod_ocp_if *omap3xxx_hwmod_ocp_ifs[] __initdata = {
 /* GP-only hwmod links */
 static struct omap_hwmod_ocp_if *omap34xx_gp_hwmod_ocp_ifs[] __initdata = {
 	&omap3xxx_l4_sec__timer12,
-	&omap3xxx_l4_core__sham,
-	&omap3xxx_l4_core__aes,
 	NULL
 };
 
 static struct omap_hwmod_ocp_if *omap36xx_gp_hwmod_ocp_ifs[] __initdata = {
 	&omap3xxx_l4_sec__timer12,
-	&omap3xxx_l4_core__sham,
-	&omap3xxx_l4_core__aes,
 	NULL
 };
 
 static struct omap_hwmod_ocp_if *am35xx_gp_hwmod_ocp_ifs[] __initdata = {
 	&omap3xxx_l4_sec__timer12,
-	/*
-	 * Apparently the SHA/MD5 and AES accelerator IP blocks are
-	 * only present on some AM35xx chips, and no one knows which
-	 * ones.  See
-	 * http://www.spinics.net/lists/arm-kernel/msg215466.html So
-	 * if you need these IP blocks on an AM35xx, try uncommenting
-	 * the following lines.
-	 */
+	NULL
+};
+
+/* crypto hwmod links */
+static struct omap_hwmod_ocp_if *omap34xx_sham_hwmod_ocp_ifs[] __initdata = {
+	&omap3xxx_l4_core__sham,
+	NULL
+};
+
+static struct omap_hwmod_ocp_if *omap34xx_aes_hwmod_ocp_ifs[] __initdata = {
+	&omap3xxx_l4_core__aes,
+	NULL
+};
+
+static struct omap_hwmod_ocp_if *omap36xx_sham_hwmod_ocp_ifs[] __initdata = {
+	&omap3xxx_l4_core__sham,
+	NULL
+};
+
+static struct omap_hwmod_ocp_if *omap36xx_aes_hwmod_ocp_ifs[] __initdata = {
+	&omap3xxx_l4_core__aes,
+	NULL
+};
+
+/*
+ * Apparently the SHA/MD5 and AES accelerator IP blocks are
+ * only present on some AM35xx chips, and no one knows which
+ * ones.  See
+ * http://www.spinics.net/lists/arm-kernel/msg215466.html So
+ * if you need these IP blocks on an AM35xx, try uncommenting
+ * the following lines.
+ */
+static struct omap_hwmod_ocp_if *am35xx_sham_hwmod_ocp_ifs[] __initdata = {
 	/* &omap3xxx_l4_core__sham, */
+	NULL
+};
+
+static struct omap_hwmod_ocp_if *am35xx_aes_hwmod_ocp_ifs[] __initdata = {
 	/* &omap3xxx_l4_core__aes, */
 	NULL
 };
@@ -3860,10 +3885,41 @@ static struct omap_hwmod_ocp_if *omap3xxx_dss_hwmod_ocp_ifs[] __initdata = {
 	NULL
 };
 
+/**
+ * omap3xxx_hwmod_is_hs_ip_block_usable - is a security IP block accessible?
+ * @bus: struct device_node * for the top-level OMAP DT data
+ * @dev_name: device name used in the DT file
+ *
+ * Determine whether a "secure" IP block @dev_name is usable by Linux.
+ * There doesn't appear to be a 100% reliable way to determine this,
+ * so we rely on heuristics.  If @bus is null, meaning there's no DT
+ * data, then we only assume the IP block is accessible if the OMAP is
+ * fused as a 'general-purpose' SoC.  If however DT data is present,
+ * test to see if the IP block is described in the DT data and set to
+ * 'status = "okay"'.  If so then we assume the ODM has configured the
+ * OMAP firewalls to allow access to the IP block.
+ *
+ * Return: 0 if device named @dev_name is not likely to be accessible,
+ * or 1 if it is likely to be accessible.
+ */
+static int __init omap3xxx_hwmod_is_hs_ip_block_usable(struct device_node *bus,
+						       const char *dev_name)
+{
+	if (!bus)
+		return (omap_type() == OMAP2_DEVICE_TYPE_GP) ? 1 : 0;
+
+	if (of_device_is_available(of_find_node_by_name(bus, dev_name)))
+		return 1;
+
+	return 0;
+}
+
 int __init omap3xxx_hwmod_init(void)
 {
 	int r;
-	struct omap_hwmod_ocp_if **h = NULL, **h_gp = NULL;
+	struct omap_hwmod_ocp_if **h = NULL, **h_gp = NULL, **h_sham = NULL;
+	struct omap_hwmod_ocp_if **h_aes = NULL;
+	struct device_node *bus = NULL;
 	unsigned int rev;
 
 	omap_hwmod_init();
@@ -3885,13 +3941,19 @@ int __init omap3xxx_hwmod_init(void)
 	    rev == OMAP3430_REV_ES3_1 || rev == OMAP3430_REV_ES3_1_2) {
 		h = omap34xx_hwmod_ocp_ifs;
 		h_gp = omap34xx_gp_hwmod_ocp_ifs;
+		h_sham = omap34xx_sham_hwmod_ocp_ifs;
+		h_aes = omap34xx_aes_hwmod_ocp_ifs;
 	} else if (rev == AM35XX_REV_ES1_0 || rev == AM35XX_REV_ES1_1) {
 		h = am35xx_hwmod_ocp_ifs;
 		h_gp = am35xx_gp_hwmod_ocp_ifs;
+		h_sham = am35xx_sham_hwmod_ocp_ifs;
+		h_aes = am35xx_aes_hwmod_ocp_ifs;
 	} else if (rev == OMAP3630_REV_ES1_0 || rev == OMAP3630_REV_ES1_1 ||
 		   rev == OMAP3630_REV_ES1_2) {
 		h = omap36xx_hwmod_ocp_ifs;
 		h_gp = omap36xx_gp_hwmod_ocp_ifs;
+		h_sham = omap36xx_sham_hwmod_ocp_ifs;
+		h_aes = omap36xx_aes_hwmod_ocp_ifs;
 	} else {
 		WARN(1, "OMAP3 hwmod family init: unknown chip type\n");
 		return -EINVAL;
@@ -3908,6 +3970,25 @@ int __init omap3xxx_hwmod_init(void)
 			return r;
 	}
 
+	/*
+	 * Register crypto hwmod links only if they are not disabled in DT.
+	 * If DT information is missing, enable them only for GP devices.
+	 */
+
+	if (of_have_populated_dt())
+		bus = of_find_node_by_name(NULL, "ocp");
+
+	if (h_sham && omap3xxx_hwmod_is_hs_ip_block_usable(bus, "sham")) {
+		r = omap_hwmod_register_links(h_sham);
+		if (r < 0)
+			return r;
+	}
+
+	if (h_aes && omap3xxx_hwmod_is_hs_ip_block_usable(bus, "aes")) {
+		r = omap_hwmod_register_links(h_aes);
+		if (r < 0)
+			return r;
+	}
 
 	/*
 	 * Register hwmod links specific to certain ES levels of a
Signature · 1 line
2.1.4
#7 lore raw

PATCH 3/10 crypto: omap-sham: Add support for omap3 devices

In reply to Pali Rohár

omap3 support is same as omap2, just with different IO address (specified in DT)

---
 drivers/crypto/omap-sham.c |    4 ++++
 1 file changed, 4 insertions(+)
drivers/crypto/omap-sham.c +4 -0
index 3c76696..b20e374 100644
@@ -1792,6 +1792,10 @@ static const struct of_device_id omap_sham_of_match[] = {
 		.data		= &omap_sham_pdata_omap2,
 	},
 	{
+		.compatible	= "ti,omap3-sham",
+		.data		= &omap_sham_pdata_omap2,
+	},
+	{
 		.compatible	= "ti,omap4-sham",
 		.data		= &omap_sham_pdata_omap4,
 	},
Signature · 1 line
1.7.9.5
Acked-by on v1 3/10
#8 lore raw

Re: [PATCH 03/10] crypto: omap-sham: Add support for omap3 devices

Quoted 3 lines · Pali Rohár

omap3 support is same as omap2, just with different IO address (specified in DT)

Quoted 11 lines
drivers/crypto/omap-sham.c +4 -0
@@ -1792,6 +1792,10 @@ static const struct of_device_id omap_sham_of_match[] = {
 		.data		= &omap_sham_pdata_omap2,
 	},
 	{
+		.compatible	= "ti,omap3-sham",
+		.data		= &omap_sham_pdata_omap2,
+	},
+	{
 		.compatible	= "ti,omap4-sham",
 		.data		= &omap_sham_pdata_omap4,
 	},
Signature · 6 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#9 lore raw

Re: [PATCH 03/10] crypto: omap-sham: Add support for omap3 devices

Quoted 7 lines · On Saturday 28 February 2015 17:25:02 Pavel Machek wrote:
Quoted 3 lines · Pali Rohár

omap3 support is same as omap2, just with different IO address (specified in DT)

Quoted 12 lines

drivers/crypto/omap-sham.c static const struct of_device_id omap_sham_of_match[] = { · line 1801

Quoted 11 lines
drivers/crypto/omap-sham.c +4 -0
@@ -1792,6 +1792,10 @@ static const struct of_device_id omap_sham_of_match[] = {
 		.data		= &omap_sham_pdata_omap2,
 	},
 	{
+		.compatible	= "ti,omap3-sham",
+		.data		= &omap_sham_pdata_omap2,
+	},
+	{
 		.compatible	= "ti,omap4-sham",
 		.data		= &omap_sham_pdata_omap4,
 	},

Herbert, this is second crypto patch in this series, can you apply it too?

Signature · 6 lines
Pali Rohár
[email protected]
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
maintainer Applied
#10 lore raw

Re: [PATCH 03/10] crypto: omap-sham: Add support for omap3 devices

Quoted 21 lines · Pali Rohár
Quoted 7 lines · On Saturday 28 February 2015 17:25:02 Pavel Machek wrote:
Quoted 3 lines · Pali Rohár

omap3 support is same as omap2, just with different IO address (specified in DT)

Quoted 12 lines

drivers/crypto/omap-sham.c static const struct of_device_id omap_sham_of_match[] = { · line 1801

Quoted 11 lines
drivers/crypto/omap-sham.c +4 -0
@@ -1792,6 +1792,10 @@ static const struct of_device_id omap_sham_of_match[] = {
 		.data		= &omap_sham_pdata_omap2,
 	},
 	{
+		.compatible	= "ti,omap3-sham",
+		.data		= &omap_sham_pdata_omap2,
+	},
+	{
 		.compatible	= "ti,omap4-sham",
 		.data		= &omap_sham_pdata_omap4,
 	},
Quoted 1 line

Herbert, this is second crypto patch in this series, can you apply it too?

Applied.

Signature · 7 lines
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#11 lore raw

PATCH 4/10 crypto: omap-sham: Check for return value from pm_runtime_get_sync

In reply to Pali Rohár

Function pm_runtime_get_sync could fail and we need to check return value to prevent kernel crash.

---
 drivers/crypto/omap-sham.c |    9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
drivers/crypto/omap-sham.c +8 -1
index b20e374..5573a1c 100644
@@ -1949,7 +1949,13 @@ static int omap_sham_probe(struct platform_device *pdev)
 	dd->flags |= dd->pdata->flags;
 
 	pm_runtime_enable(dev);
-	pm_runtime_get_sync(dev);
+
+	err = pm_runtime_get_sync(dev);
+	if (err < 0) {
+		dev_err(dev, "failed to get sync: %d\n", err);
+		goto err_pm;
+	}
+
 	rev = omap_sham_read(dd, SHA_REG_REV(dd));
 	pm_runtime_put_sync(&pdev->dev);
 
@@ -1979,6 +1985,7 @@ err_algs:
 		for (j = dd->pdata->algs_info[i].registered - 1; j >= 0; j--)
 			crypto_unregister_ahash(
 					&dd->pdata->algs_info[i].algs_list[j]);
+err_pm:
 	pm_runtime_disable(dev);
 	if (dd->dma_lch)
 		dma_release_channel(dd->dma_lch);
Signature · 1 line
1.7.9.5
Acked-by on v1 4/10
#12 lore raw

Re: [PATCH 04/10] crypto: omap-sham: Check for return value from pm_runtime_get_sync

Quoted 4 lines · Pali Rohár

Function pm_runtime_get_sync could fail and we need to check return value to prevent kernel crash.

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
#13 lore raw

PATCH v2 1/1 crypto: omap-sham: Check for return value from pm_runtime_get_sync

In reply to Pali Rohár

Function pm_runtime_get_sync could fail and we need to check return value to prevent kernel crash.

---
v2: Check return value for all pm_runtime_get_sync() calls

---
 drivers/crypto/omap-sham.c |   23 ++++++++++++++++++++---
 1 file changed, 20 insertions(+), 3 deletions(-)
drivers/crypto/omap-sham.c +20 -3
index b20e374..c5df53d 100644
@@ -362,7 +362,13 @@ static void omap_sham_copy_ready_hash(struct ahash_request *req)
 
 static int omap_sham_hw_init(struct omap_sham_dev *dd)
 {
-	pm_runtime_get_sync(dd->dev);
+	int err;
+
+	err = pm_runtime_get_sync(dd->dev);
+	if (err < 0) {
+		dev_err(dd->dev, "failed to get sync: %d\n", err);
+		return err;
+	}
 
 	if (!test_bit(FLAGS_INIT, &dd->flags)) {
 		set_bit(FLAGS_INIT, &dd->flags);
@@ -1949,7 +1955,13 @@ static int omap_sham_probe(struct platform_device *pdev)
 	dd->flags |= dd->pdata->flags;
 
 	pm_runtime_enable(dev);
-	pm_runtime_get_sync(dev);
+
+	err = pm_runtime_get_sync(dev);
+	if (err < 0) {
+		dev_err(dev, "failed to get sync: %d\n", err);
+		goto err_pm;
+	}
+
 	rev = omap_sham_read(dd, SHA_REG_REV(dd));
 	pm_runtime_put_sync(&pdev->dev);
 
@@ -1979,6 +1991,7 @@ err_algs:
 		for (j = dd->pdata->algs_info[i].registered - 1; j >= 0; j--)
 			crypto_unregister_ahash(
 					&dd->pdata->algs_info[i].algs_list[j]);
+err_pm:
 	pm_runtime_disable(dev);
 	if (dd->dma_lch)
 		dma_release_channel(dd->dma_lch);
@@ -2021,7 +2034,11 @@ static int omap_sham_suspend(struct device *dev)
 
 static int omap_sham_resume(struct device *dev)
 {
-	pm_runtime_get_sync(dev);
+	int err = pm_runtime_get_sync(dev);
+	if (err < 0) {
+		dev_err(dev, "failed to get sync: %d\n", err);
+		return err;
+	}
 	return 0;
 }
 #endif
Signature · 1 line
1.7.9.5
Acked-by on v2 1/1
#14 lore raw

Re: [PATCH v2] crypto: omap-sham: Check for return value from pm_runtime_get_sync

Quoted 4 lines · Pali Rohár

Function pm_runtime_get_sync could fail and we need to check return value to prevent kernel crash.

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
#15 lore raw

Re: [PATCH v2] crypto: omap-sham: Check for return value from pm_runtime_get_sync

In reply to Pali Rohár
Quoted 66 lines · On Sunday 08 March 2015 11:01:01 Pali Rohár wrote:

Function pm_runtime_get_sync could fail and we need to check return value to prevent kernel crash.

---
v2: Check return value for all pm_runtime_get_sync() calls

---
 drivers/crypto/omap-sham.c |   23 ++++++++++++++++++++---
 1 file changed, 20 insertions(+), 3 deletions(-)
drivers/crypto/omap-sham.c +7 -1
index b20e374..c5df53d 100644
@@ -362,7 +362,13 @@ static void omap_sham_copy_ready_hash(struct
 ahash_request *req)
 
 static int omap_sham_hw_init(struct omap_sham_dev *dd)
 {
-	pm_runtime_get_sync(dd->dev);
+	int err;
+
+	err = pm_runtime_get_sync(dd->dev);
+	if (err < 0) {
+		dev_err(dd->dev, "failed to get sync: %d\n", err);
+		return err;
+	}
 
 	if (!test_bit(FLAGS_INIT, &dd->flags)) {
drivers/crypto/omap-sham.c +13 -2
 		set_bit(FLAGS_INIT, &dd->flags);
@@ -1949,7 +1955,13 @@ static int omap_sham_probe(struct
 platform_device *pdev) dd->flags |= dd->pdata->flags;
 
 	pm_runtime_enable(dev);
-	pm_runtime_get_sync(dev);
+
+	err = pm_runtime_get_sync(dev);
+	if (err < 0) {
+		dev_err(dev, "failed to get sync: %d\n", err);
+		goto err_pm;
+	}
+
 	rev = omap_sham_read(dd, SHA_REG_REV(dd));
 	pm_runtime_put_sync(&pdev->dev);
 
@@ -1979,6 +1991,7 @@ err_algs:
 		for (j = dd->pdata->algs_info[i].registered - 1; j >= 0; j--)
 			crypto_unregister_ahash(
 					&dd->pdata->algs_info[i].algs_list[j]);
+err_pm:
 	pm_runtime_disable(dev);
 	if (dd->dma_lch)
 		dma_release_channel(dd->dma_lch);
@@ -2021,7 +2034,11 @@ static int omap_sham_suspend(struct device
 *dev)
 
 static int omap_sham_resume(struct device *dev)
 {
-	pm_runtime_get_sync(dev);
+	int err = pm_runtime_get_sync(dev);
+	if (err < 0) {
+		dev_err(dev, "failed to get sync: %d\n", err);
+		return err;
+	}
 	return 0;
 }
Quoted 1 line

#endif

Herbert, can you apply this patch?

Signature · 2 lines
Pali Rohár
[email protected]
maintainer
#16 lore raw

Re: [PATCH v2] crypto: omap-sham: Check for return value from pm_runtime_get_sync

Quoted 2 lines · Pali Rohár

Herbert, can you apply this patch?

OK I dug this out of patchwork for you. In future please post patches that you want me to apply separately.

Thanks,

Signature · 3 lines
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
maintainer Applied
#17 lore raw

Re: [PATCH v2] crypto: omap-sham: Check for return value from pm_runtime_get_sync

In reply to Pali Rohár
Quoted 5 lines · Pali Rohár
Quoted 4 lines · On Sunday 08 March 2015 11:01:01 Pali Rohár wrote:

Function pm_runtime_get_sync could fail and we need to check return value to prevent kernel crash.

Applied.

Signature · 3 lines
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
#18 lore raw

Re: [PATCH v2] crypto: omap-sham: Check for return value from pm_runtime_get_sync

Quoted 8 lines · On Friday 15 May 2015 15:02:29 Herbert Xu wrote:
Quoted 5 lines · Pali Rohár
Quoted 4 lines · On Sunday 08 March 2015 11:01:01 Pali Rohár wrote:

Function pm_runtime_get_sync could fail and we need to check return value to prevent kernel crash.

Applied.

Thanks! In this patch series is also another one patch for crypto subsystem. I replied to that patch email.

Signature · 2 lines
Pali Rohár
[email protected]
#19 lore raw

PATCH 5/10 ARM: dts: omap3 hs: Remove timer12

In reply to Pali Rohár

Device timer12 is automatically disabled on all HS devices via DTS property "ti,timer-secure" in file omap3.dtsi so it can be safely removed. We do not need to disable it on another place.

---
 arch/arm/boot/dts/omap34xx-hs.dtsi |    4 ----
 arch/arm/boot/dts/omap36xx-hs.dtsi |    4 ----
 2 files changed, 8 deletions(-)
arch/arm/boot/dts/omap34xx-hs.dtsi +0 -4
index 1ff6264..d4be302 100644
@@ -10,7 +10,3 @@
 &sham {
 	status = "disabled";
 };
-
-&timer12 {
-	status = "disabled";
-};
arch/arm/boot/dts/omap36xx-hs.dtsi +0 -4
index 2c7febb..e93ff8d 100644
@@ -10,7 +10,3 @@
 &sham {
 	status = "disabled";
 };
-
-&timer12 {
-	status = "disabled";
-};
Signature · 1 line
1.7.9.5
#20 lore raw

Re: [PATCH 05/10] ARM: dts: omap3 hs: Remove timer12

Quoted 3 lines · Pali Rohár

Device timer12 is automatically disabled on all HS devices via DTS property "ti,timer-secure" in file omap3.dtsi so it can be safely removed. We do not need to disable it on another place.

Dunno. Theoretically, Linux is not the only user of dts... so even if linux handles ti,timer-secure as "don't use it", that may not be right for bootloaders etc.

Quoted 24 lines
arch/arm/boot/dts/omap34xx-hs.dtsi +0 -4
index 1ff6264..d4be302 100644
@@ -10,7 +10,3 @@
 &sham {
 	status = "disabled";
 };
-
-&timer12 {
-	status = "disabled";
-};
arch/arm/boot/dts/omap36xx-hs.dtsi +0 -4
index 2c7febb..e93ff8d 100644
@@ -10,7 +10,3 @@
 &sham {
 	status = "disabled";
 };
-
-&timer12 {
-	status = "disabled";
-};
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
#21 lore raw

PATCH 6/10 ARM: dts: omap3: Add missing dmas for crypto

In reply to Pali Rohár

This patch adds missing dma DTS definitions for omap aes and sham drivers. Without it kernel drivers do not work.

---
 arch/arm/boot/dts/omap3.dtsi |    4 ++++
 1 file changed, 4 insertions(+)
arch/arm/boot/dts/omap3.dtsi +4 -0
index 60e6d6b..6e8b58f 100644
@@ -92,6 +92,8 @@
 			ti,hwmods = "aes";
 			reg = <0x480c5000 0x50>;
 			interrupts = <0>;
+			dmas = <&sdma 65 &sdma 66>;
+			dma-names = "tx", "rx";
 		};
 
 		prm: prm@48306000 {
@@ -551,6 +553,8 @@
 			ti,hwmods = "sham";
 			reg = <0x480c3000 0x64>;
 			interrupts = <49>;
+			dmas = <&sdma 69>;
+			dma-names = "rx";
 		};
 
 		smartreflex_core: smartreflex@480cb000 {
Signature · 1 line
1.7.9.5
Acked-by on v1 6/10
#22 lore raw

Re: [PATCH 06/10] ARM: dts: omap3: Add missing dmas for crypto

Quoted 4 lines · Pali Rohár

This patch adds missing dma DTS definitions for omap aes and sham drivers. Without it kernel drivers do not work.

Signature · 6 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
maintainer
#23 lore raw

Re: [PATCH 06/10] ARM: dts: omap3: Add missing dmas for crypto

Quoted 7 lines · Pavel Machek
Quoted 4 lines · Pali Rohár

This patch adds missing dma DTS definitions for omap aes and sham drivers. Without it kernel drivers do not work.

Applying this into omap-for-v4.0/fixes to remove the regression for legacy vs DT based booting for GP omap3 boards.

Tony

#24 lore raw

PATCH 7/10 ARM: dts: n9/n950: Enable omap crypto support

In reply to Pali Rohár

Harmattan system on Nokia N9 and N950 devices uses omap crypto support. Bootloader on those devices is known that it enables HW crypto support. This patch just include omap36xx.dtsi directly, so aes and sham is enabled.

---
 arch/arm/boot/dts/omap3-n950-n9.dtsi |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/omap3-n950-n9.dtsi +1 -1
index c41db94..800b379 100644
@@ -8,7 +8,7 @@
  * published by the Free Software Foundation.
  */
 
-#include "omap36xx-hs.dtsi"
+#include "omap36xx.dtsi"
 
 / {
 	cpus {
Signature · 6 lines
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
maintainer
#25 lore raw

Re: [PATCH 07/10] ARM: dts: n9/n950: Enable omap crypto support

Quoted 3 lines · Pali Rohár

Harmattan system on Nokia N9 and N950 devices uses omap crypto support. Bootloader on those devices is known that it enables HW crypto support. This patch just include omap36xx.dtsi directly, so aes and sham is enabled.

Let's also remove omap36xx-hs.dtsi with this patch if no other users.

Regards,

Tony

Quoted 21 lines
---
 arch/arm/boot/dts/omap3-n950-n9.dtsi |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/omap3-n950-n9.dtsi +1 -1
index c41db94..800b379 100644
@@ -8,7 +8,7 @@
  * published by the Free Software Foundation.
  */
 
-#include "omap36xx-hs.dtsi"
+#include "omap36xx.dtsi"
 
 / {
 	cpus {
Signature · 1 line
1.7.9.5
#26 lore raw

Re: [PATCH 07/10] ARM: dts: n9/n950: Enable omap crypto support

Quoted 9 lines · On Friday 27 February 2015 16:43:20 Tony Lindgren wrote:
Quoted 4 lines · Pali Rohár

Harmattan system on Nokia N9 and N950 devices uses omap crypto support. Bootloader on those devices is known that it enables HW crypto support. This patch just include omap36xx.dtsi directly, so aes and sham is enabled.

Let's also remove omap36xx-hs.dtsi with this patch if no other users.

Removing both -hs files is done by last patch in this series.

Signature · 2 lines
Pali Rohár
[email protected]
maintainer
#27 lore raw

Re: [PATCH 07/10] ARM: dts: n9/n950: Enable omap crypto support

Quoted 7 lines · Pali Rohár
Quoted 6 lines · On Friday 27 February 2015 16:43:20 Tony Lindgren wrote:
Quoted 4 lines · Pali Rohár

Harmattan system on Nokia N9 and N950 devices uses omap crypto support. Bootloader on those devices is known that it enables HW crypto support. This patch just include omap36xx.dtsi directly, so aes and sham is enabled.

Quoted 5 lines
Quoted 3 lines

Let's also remove omap36xx-hs.dtsi with this patch if no other users.

Removing both -hs files is done by last patch in this series.

Yes just noticed thanks, no need to change.

Regards,

Tony
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Acked-by on v1 7/10
#28 lore raw

Re: [PATCH 07/10] ARM: dts: n9/n950: Enable omap crypto support

In reply to Pali Rohár
Quoted 5 lines · Pali Rohár

Harmattan system on Nokia N9 and N950 devices uses omap crypto support. Bootloader on those devices is known that it enables HW crypto support. This patch just include omap36xx.dtsi directly, so aes and sham is enabled.

Quoted 11 lines
arch/arm/boot/dts/omap3-n950-n9.dtsi +1 -1
@@ -8,7 +8,7 @@
  * published by the Free Software Foundation.
  */
 
-#include "omap36xx-hs.dtsi"
+#include "omap36xx.dtsi"
 
 / {
 	cpus {
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
maintainer
#29 lore raw

Re: [PATCH 07/10] ARM: dts: n9/n950: Enable omap crypto support

Quoted 8 lines · Pavel Machek
Quoted 5 lines · Pali Rohár

Harmattan system on Nokia N9 and N950 devices uses omap crypto support. Bootloader on those devices is known that it enables HW crypto support. This patch just include omap36xx.dtsi directly, so aes and sham is enabled.

I'm picking patches 7 - 10 into omap-for-v4.1/dt branch thanks.

Tony
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#30 lore raw

PATCH 8/10 ARM: dts: n900: Enable omap sham and include directly omap34xx.dtsi

In reply to Pali Rohár

This patch moves content of file omap34xx-hs.dtsi into omap3-n900.dts and enable omap sham support (omap HW support for SHA + MD5). After testing both omap hwmod and omap-sham.ko drivers it looks like signed Nokia X-Loader enable L3 firewall for omap sham. There is no kernel crash with both official bootloader and crypto enable bootloader. So we can safely enable sham code.

---
 arch/arm/boot/dts/omap3-n900.dts |   16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)
arch/arm/boot/dts/omap3-n900.dts +15 -1
index d16aa9c..10d5305 100644
@@ -9,9 +9,23 @@
 
 /dts-v1/;
 
-#include "omap34xx-hs.dtsi"
+#include "omap34xx.dtsi"
 #include <dt-bindings/input/input.h>
 
+/*
+ * Default secure signed bootloader (Nokia X-Loader) does not enable L3 firewall
+ * for omap AES HW crypto support. When linux kernel try to access memory of AES
+ * blocks then kernel receive "Unhandled fault: external abort on non-linefetch"
+ * and crash. Until somebody fix omap-aes.c and omap_hwmod_3xxx_data.c code (no
+ * crash anymore) omap AES support will be disabled for all Nokia N900 devices.
+ * There is "unofficial" version of bootloader which enables AES in L3 firewall
+ * but it is not widely used and to prevent kernel crash rather AES is disabled.
+ * There is also no runtime detection code if AES is disabled in L3 firewall...
+ */
+&aes {
+	status = "disabled";
+};
+
 / {
 	model = "Nokia N900";
 	compatible = "nokia,omap3-n900", "ti,omap3430", "ti,omap3";
Signature · 1 line
1.7.9.5
Acked-by on v1 8/10
#31 lore raw

Re: [PATCH 08/10] ARM: dts: n900: Enable omap sham and include directly omap34xx.dtsi

Quoted 8 lines · Pali Rohár

This patch moves content of file omap34xx-hs.dtsi into omap3-n900.dts and enable omap sham support (omap HW support for SHA + MD5). After testing both omap hwmod and omap-sham.ko drivers it looks like signed Nokia X-Loader enable L3 firewall for omap sham. There is no kernel crash with both official bootloader and crypto enable bootloader. So we can safely enable sham code.

Quoted 3 lines

+/*
+ * Default secure signed bootloader (Nokia X-Loader) does not enable L3 firewall
+ * for omap AES HW crypto support. When linux kernel try to access memory of AES

When Linux Kernel tries...

Quoted 1 line

+ * blocks then kernel receive "Unhandled fault: external abort on non-linefetch"

, the kernel receives

Quoted 1 line

+ * and crash. Until somebody fix omap-aes.c and omap_hwmod_3xxx_data.c code (no

and crashes. Until somebody fixes

Quoted 2 lines

+ * crash anymore) omap AES support will be disabled for all Nokia N900 devices.
+ * There is "unofficial" version of bootloader which enables AES in L3 firewall

firewall,

Quoted 10 lines

+ * but it is not widely used and to prevent kernel crash rather AES is disabled.
+ * There is also no runtime detection code if AES is disabled in L3 firewall...
+ */
+&aes {

arch/arm/boot/dts/omap3-n900.dts +3 -0
+	status = "disabled";
+};
+
 / {
 	model = "Nokia N900";
 	compatible = "nokia,omap3-n900", "ti,omap3430", "ti,omap3";
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
#32 lore raw

PATCH 9/10 ARM: dts: omap3-tao3530: Include directly omap34xx.dtsi

In reply to Pali Rohár

This patch just move content of file omap34xx-hs.dtsi into omap3-tao3530.dts. There is no code change, patch is just preparation for removing -hs file.

---
 arch/arm/boot/dts/omap3-tao3530.dtsi |   11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
arch/arm/boot/dts/omap3-tao3530.dtsi +10 -1
index e89820a..873aa10 100644
@@ -8,7 +8,16 @@
  */
 /dts-v1/;
 
-#include "omap34xx-hs.dtsi"
+#include "omap34xx.dtsi"
+
+/* Secure omaps have some devices inaccessible depending on the firmware */
+&aes {
+	status = "disabled";
+};
+
+&sham {
+	status = "disabled";
+};
 
 / {
 	cpus {
Signature · 1 line
1.7.9.5
Acked-by on v1 9/10
#33 lore raw

Re: [PATCH 09/10] ARM: dts: omap3-tao3530: Include directly omap34xx.dtsi

Quoted 4 lines · Pali Rohár

This patch just move content of file omap34xx-hs.dtsi into omap3-tao3530.dts. There is no code change, patch is just preparation for removing -hs file.

Quoted 20 lines
arch/arm/boot/dts/omap3-tao3530.dtsi +10 -1
@@ -8,7 +8,16 @@
  */
 /dts-v1/;
 
-#include "omap34xx-hs.dtsi"
+#include "omap34xx.dtsi"
+
+/* Secure omaps have some devices inaccessible depending on the firmware */
+&aes {
+	status = "disabled";
+};
+
+&sham {
+	status = "disabled";
+};
 
 / {
 	cpus {
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
#34 lore raw

PATCH 10/10 ARM: dts: Remove files omap34xx-hs.dtsi and omap36xx-hs.dtsi

In reply to Pali Rohár

These files are not used by any DTS file anymore.

---
 arch/arm/boot/dts/omap34xx-hs.dtsi |   12 ------------
 arch/arm/boot/dts/omap36xx-hs.dtsi |   12 ------------
 2 files changed, 24 deletions(-)
 delete mode 100644 arch/arm/boot/dts/omap34xx-hs.dtsi
 delete mode 100644 arch/arm/boot/dts/omap36xx-hs.dtsi
arch/arm/boot/dts/omap34xx-hs.dtsi deleted +0 -12
deleted file mode 100644
index d4be302..0000000
@@ -1,12 +0,0 @@
-/* Disabled modules for secure omaps */
-
-#include "omap34xx.dtsi"
-
-/* Secure omaps have some devices inaccessible depending on the firmware */
-&aes {
-	status = "disabled";
-};
-
-&sham {
-	status = "disabled";
-};
arch/arm/boot/dts/omap36xx-hs.dtsi deleted +0 -12
deleted file mode 100644
index e93ff8d..0000000
@@ -1,12 +0,0 @@
-/* Disabled modules for secure omaps */
-
-#include "omap36xx.dtsi"
-
-/* Secure omaps have some devices inaccessible depending on the firmware */
-&aes {
-	status = "disabled";
-};
-
-&sham {
-	status = "disabled";
-};
Signature · 1 line
1.7.9.5
Acked-by on v1 10/10
#35 lore raw

Re: [PATCH 10/10] ARM: dts: Remove files omap34xx-hs.dtsi and omap36xx-hs.dtsi

Quoted 3 lines · Pali Rohár

These files are not used by any DTS file anymore.

Quoted 43 lines
---
 arch/arm/boot/dts/omap34xx-hs.dtsi |   12 ------------
 arch/arm/boot/dts/omap36xx-hs.dtsi |   12 ------------
 2 files changed, 24 deletions(-)
 delete mode 100644 arch/arm/boot/dts/omap34xx-hs.dtsi
 delete mode 100644 arch/arm/boot/dts/omap36xx-hs.dtsi
arch/arm/boot/dts/omap34xx-hs.dtsi deleted +0 -12
deleted file mode 100644
index d4be302..0000000
@@ -1,12 +0,0 @@
-/* Disabled modules for secure omaps */
-
-#include "omap34xx.dtsi"
-
-/* Secure omaps have some devices inaccessible depending on the firmware */
-&aes {
-	status = "disabled";
-};
-
-&sham {
-	status = "disabled";
-};
arch/arm/boot/dts/omap36xx-hs.dtsi deleted +0 -12
deleted file mode 100644
index e93ff8d..0000000
@@ -1,12 +0,0 @@
-/* Disabled modules for secure omaps */
-
-#include "omap36xx.dtsi"
-
-/* Secure omaps have some devices inaccessible depending on the firmware */
-&aes {
-	status = "disabled";
-};
-
-&sham {
-	status = "disabled";
-};
Signature · 6 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
maintainer Tested-by on the v1 series
#36 lore raw
In reply to Pali Rohár

Hi,

Quoted 3 lines · Pali Rohár

This patch series fix crypto support for omap3 devices which use DT.

It enables AES and SHAM on N9/N950 and SHAM on N900. AES is still disabled for N900.

(Please format your lines somewhere near < 76 chars, especially in commit logs, otherwise "git log" looks ugly on 80 char terminals.)

I tested these with stock bootloaders, and devices boot normally and I can now modprobe omap-aes (on N9 and N950) and omap-sham (on all three):

	omap-aes 480c5000.aes: OMAP AES hw accel rev: 2.6
	omap-sham 480c3000.sham: hw accel on OMAP rev 0.9

However I get these when CONFIG_CRYPTO_MANAGER_DISABLE_TESTS is not set:

alg: hash: Chunking test 1 failed for omap-sha1
alg: hash: Chunking test 1 failed for omap-md5
alg: hash: Chunking test 1 failed for omap-hmac-sha1
alg: hash: Chunking test 1 failed for omap-hmac-md5

But that's probably unrelated to this series. For patches 1-8, feel free to add:

A.

#37 lore raw
Quoted 28 lines · On Thursday 26 February 2015 23:46:05 Aaro Koskinen wrote:

Hi,

Quoted 5 lines · Pali Rohár

This patch series fix crypto support for omap3 devices which use DT.

It enables AES and SHAM on N9/N950 and SHAM on N900. AES is still disabled for N900.

(Please format your lines somewhere near < 76 chars, especially in commit logs, otherwise "git log" looks ugly on 80 char terminals.)

I tested these with stock bootloaders, and devices boot normally and I can now modprobe omap-aes (on N9 and N950) and omap-sham (on all three):

	omap-aes 480c5000.aes: OMAP AES hw accel rev: 2.6
	omap-sham 480c3000.sham: hw accel on OMAP rev 0.9

However I get these when CONFIG_CRYPTO_MANAGER_DISABLE_TESTS is not set:

alg: hash: Chunking test 1 failed for omap-sha1
alg: hash: Chunking test 1 failed for omap-md5
alg: hash: Chunking test 1 failed for omap-hmac-sha1
alg: hash: Chunking test 1 failed for omap-hmac-md5

Quoted 6 lines

But that's probably unrelated to this series. For patches 1-8, feel free to add:

A.

Hi, thanks for testing!

Now I'm happy that I can load omap-aes and omap-sham drivers on real n900 device, qemu n900 and after your tests also on real n9 and n950 without any kernel crash or oops. Of course omap-aes is disabled on n900, but loading omap-aes.ko (accidentally) does not hurt.

It looks like there are other parts in md5 and sha broken, but first step is load & register all drivers without kernel crash. And this is working now.

Signature · 2 lines
Pali Rohár
[email protected]
maintainer
#38 lore raw

Hi,

Quoted 7 lines · Pali Rohár
Quoted 7 lines

However I get these when CONFIG_CRYPTO_MANAGER_DISABLE_TESTS is not set:

alg: hash: Chunking test 1 failed for omap-sha1
alg: hash: Chunking test 1 failed for omap-md5
alg: hash: Chunking test 1 failed for omap-hmac-sha1
alg: hash: Chunking test 1 failed for omap-hmac-md5

BTW, it seems these errors are reported to be introduced possibly somewhere between 3.11 and 3.15:

	https://lists.fedoraproject.org/pipermail/arm/2014-August/008240.html 

A.
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

maintainer
#39 lore raw
In reply to Pali Rohár
Quoted 16 lines · Pali Rohár

This patch series fix crypto support for omap3 devices which use DT.

It enables AES and SHAM on N9/N950 and SHAM on N900. AES is still disabled for N900.

Pali Rohár (10):
ARM: OMAP2+: Return correct error values from device and hwmod
ARM: OMAP3: Fix crypto support for HS devices
crypto: omap-sham: Add support for omap3 devices
crypto: omap-sham: Check for return value from pm_runtime_get_sync
ARM: dts: omap3 hs: Remove timer12
ARM: dts: omap3: Add missing dmas for crypto
ARM: dts: n9/n950: Enable omap crypto support
ARM: dts: n900: Enable omap sham and include directly omap34xx.dtsi
ARM: dts: omap3-tao3530: Include directly omap34xx.dtsi
ARM: dts: Remove files omap34xx-hs.dtsi and omap36xx-hs.dtsi

Quoted 13 lines
 arch/arm/boot/dts/omap3-n900.dts           |   16 +++++-
 arch/arm/boot/dts/omap3-n950-n9.dtsi       |    2 +-
 arch/arm/boot/dts/omap3-tao3530.dtsi       |   11 +++-
 arch/arm/boot/dts/omap3.dtsi               |    4 ++
 arch/arm/boot/dts/omap34xx-hs.dtsi         |   16 ------
 arch/arm/boot/dts/omap36xx-hs.dtsi         |   16 ------
 arch/arm/mach-omap2/omap_device.c          |   30 ++++++-----
 arch/arm/mach-omap2/omap_hwmod.c           |   10 ++--
 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c |   79 +++++++++++++++++++++++-----
 drivers/crypto/omap-sham.c                 |   13 ++++-
 10 files changed, 131 insertions(+), 66 deletions(-)
 delete mode 100644 arch/arm/boot/dts/omap34xx-hs.dtsi
 delete mode 100644 arch/arm/boot/dts/omap36xx-hs.dtsi

Are there any fixes in this series that should go into v4.0-rc series, or can it all wait for v4.1?

Regards,

Tony
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#40 lore raw
Quoted 35 lines · On Friday 06 March 2015 19:36:32 Tony Lindgren wrote:
Quoted 30 lines · Pali Rohár

This patch series fix crypto support for omap3 devices which use DT.

It enables AES and SHAM on N9/N950 and SHAM on N900. AES is still disabled for N900.

Pali Rohár (10):
ARM: OMAP2+: Return correct error values from device and hwmod ARM: OMAP3: Fix crypto support for HS devices
crypto: omap-sham: Add support for omap3 devices
crypto: omap-sham: Check for return value from pm_runtime_get_sync ARM: dts: omap3 hs: Remove timer12
ARM: dts: omap3: Add missing dmas for crypto
ARM: dts: n9/n950: Enable omap crypto support
ARM: dts: n900: Enable omap sham and include directly omap34xx.dtsi ARM: dts: omap3-tao3530: Include directly omap34xx.dtsi ARM: dts: Remove files omap34xx-hs.dtsi and omap36xx-hs.dtsi

 arch/arm/boot/dts/omap3-n900.dts           |   16 +++++-
 arch/arm/boot/dts/omap3-n950-n9.dtsi       |    2 +-
 arch/arm/boot/dts/omap3-tao3530.dtsi       |   11 +++-
 arch/arm/boot/dts/omap3.dtsi               |    4 ++
 arch/arm/boot/dts/omap34xx-hs.dtsi         |   16 ------
 arch/arm/boot/dts/omap36xx-hs.dtsi         |   16 ------
 arch/arm/mach-omap2/omap_device.c          |   30
 ++++++----- arch/arm/mach-omap2/omap_hwmod.c           |  
 10 ++-- arch/arm/mach-omap2/omap_hwmod_3xxx_data.c |   79
 +++++++++++++++++++++++----- drivers/crypto/omap-sham.c   
              |   13 ++++- 10 files changed, 131
Quoted 3 lines

insertions(+), 66 deletions(-) delete mode 100644 arch/arm/boot/dts/omap34xx-hs.dtsi delete mode 100644 arch/arm/boot/dts/omap36xx-hs.dtsi

Quoted 6 lines

Are there any fixes in this series that should go into v4.0-rc series, or can it all wait for v4.1?

Regards,

Tony

I do not know which patches are you sending to 4.0-rc series, but omap crypto is totally broken in linus tree for both GP & HS omap3 devices when DT booting is used. This patch series fix that problem.

Signature · 2 lines
Pali Rohár
[email protected]
maintainer
#41 lore raw
Quoted 39 lines · Pali Rohár
Quoted 38 lines · On Friday 06 March 2015 19:36:32 Tony Lindgren wrote:
Quoted 30 lines · Pali Rohár

This patch series fix crypto support for omap3 devices which use DT.

It enables AES and SHAM on N9/N950 and SHAM on N900. AES is still disabled for N900.

Pali Rohár (10):
ARM: OMAP2+: Return correct error values from device and hwmod ARM: OMAP3: Fix crypto support for HS devices
crypto: omap-sham: Add support for omap3 devices
crypto: omap-sham: Check for return value from pm_runtime_get_sync ARM: dts: omap3 hs: Remove timer12
ARM: dts: omap3: Add missing dmas for crypto
ARM: dts: n9/n950: Enable omap crypto support
ARM: dts: n900: Enable omap sham and include directly omap34xx.dtsi ARM: dts: omap3-tao3530: Include directly omap34xx.dtsi ARM: dts: Remove files omap34xx-hs.dtsi and omap36xx-hs.dtsi

 arch/arm/boot/dts/omap3-n900.dts           |   16 +++++-
 arch/arm/boot/dts/omap3-n950-n9.dtsi       |    2 +-
 arch/arm/boot/dts/omap3-tao3530.dtsi       |   11 +++-
 arch/arm/boot/dts/omap3.dtsi               |    4 ++
 arch/arm/boot/dts/omap34xx-hs.dtsi         |   16 ------
 arch/arm/boot/dts/omap36xx-hs.dtsi         |   16 ------
 arch/arm/mach-omap2/omap_device.c          |   30
 ++++++----- arch/arm/mach-omap2/omap_hwmod.c           |  
 10 ++-- arch/arm/mach-omap2/omap_hwmod_3xxx_data.c |   79
 +++++++++++++++++++++++----- drivers/crypto/omap-sham.c   
              |   13 ++++- 10 files changed, 131
Quoted 3 lines

insertions(+), 66 deletions(-) delete mode 100644 arch/arm/boot/dts/omap34xx-hs.dtsi delete mode 100644 arch/arm/boot/dts/omap36xx-hs.dtsi

Are there any fixes in this series that should go into v4.0-rc series, or can it all wait for v4.1?

Quoted 8 lines
Quoted 3 lines

Regards,

Tony

I do not know which patches are you sending to 4.0-rc series, but omap crypto is totally broken in linus tree for both GP & HS omap3 devices when DT booting is used. This patch series fix that problem.

OK so the whole series is needed then. It seems too intrusive for the v4.0-rc series unless this fixes a regression with some earlier commit.

Regards,

Tony

maintainer
#42 lore raw
In reply to Tony Lindgren

Hi,

Quoted 2 lines · Tony Lindgren

Are there any fixes in this series that should go into v4.0-rc series, or can it all wait for v4.1?

I think these all should wait for v4.1.

A.

#43 lore raw
Quoted 9 lines · On Friday 06 March 2015 23:23:06 Aaro Koskinen wrote:

Hi,

Quoted 2 lines · Tony Lindgren

Are there any fixes in this series that should go into v4.0-rc series, or can it all wait for v4.1?

I think these all should wait for v4.1.

A.

I would suggest to include at least patches 01, 04, 06. Probably those could go to -stable tree... but this decision is up to you.

Signature · 2 lines
Pali Rohár
[email protected]
maintainer
#44 lore raw
Quoted 11 lines · Pali Rohár
Quoted 7 lines · On Friday 06 March 2015 23:23:06 Aaro Koskinen wrote:
Quoted 2 lines · Tony Lindgren

Are there any fixes in this series that should go into v4.0-rc series, or can it all wait for v4.1?

I think these all should wait for v4.1.

A.

I would suggest to include at least patches 01, 04, 06. Probably those could go to -stable tree... but this decision is up to you.

I'm not sure patch 1 is a fix. As far as I know we haven't run into any issues with it on real hardware - only on QEMU - unless you know otherwise, Pali? Are we sure that the QEMU model behavior matches the hardware?

- Paul

#45 lore raw
Quoted 3 lines · On Sunday 08 March 2015 17:35:13 Paul Walmsley wrote:
Quoted 2 lines · Pali Rohár
Quoted 1 line · On Friday 06 March 2015 23:23:06 Aaro Koskinen wrote:

On Fri, Mar 06, 2015 at 10:36:32AM -0800, Tony Lindgren

Quoted 11 lines · wrote:
Quoted 10 lines
Quoted 6 lines
Quoted 2 lines

Are there any fixes in this series that should go into v4.0-rc series, or can it all wait for v4.1?

I think these all should wait for v4.1.

A.

I would suggest to include at least patches 01, 04, 06. Probably those could go to -stable tree... but this decision is up to you.

Quoted 7 lines

I'm not sure patch 1 is a fix. As far as I know we haven't run into any issues with it on real hardware - only on QEMU - unless you know otherwise, Pali? Are we sure that the QEMU model behavior matches the hardware?

- Paul

Patch 1 check for return value of more functions. If real HW or software emulated HW (in qemu) does not support e.g. aes then kernel show oops message, because kernel does not check return values and try to touch non-existent HW. So I think patch 1 is really fix. In my opinion if something can fail, then kernel should check if it failed. And not expect that function call always pass.

Signature · 2 lines
Pali Rohár
[email protected]
#46 lore raw
In reply to Aaro Koskinen
Quoted 9 lines · On Friday 06 March 2015 23:23:06 Aaro Koskinen wrote:

Hi,

Quoted 2 lines · Tony Lindgren

Are there any fixes in this series that should go into v4.0-rc series, or can it all wait for v4.1?

I think these all should wait for v4.1.

A.

4.1-rc3 was released and this patch series is still not included...

Signature · 2 lines
Pali Rohár
[email protected]
maintainer
#47 lore raw
Quoted 4 lines · Pali Rohár
Quoted 3 lines · On Friday 06 March 2015 23:23:06 Aaro Koskinen wrote:

Hi,

On Fri, Mar 06, 2015 at 10:36:32AM -0800, Tony Lindgren wrote:

Quoted 8 lines
Quoted 6 lines
Quoted 2 lines

Are there any fixes in this series that should go into v4.0-rc series, or can it all wait for v4.1?

I think these all should wait for v4.1.

A.

4.1-rc3 was released and this patch series is still not included...

The dts changes should be merged?

I suggest you repost the driver fixes so Herbert can queue them.

Regards,

Tony

#48 lore raw
Quoted 8 lines · On Thursday 14 May 2015 23:34:19 Tony Lindgren wrote:
Quoted 7 lines · Pali Rohár
Quoted 6 lines · On Friday 06 March 2015 23:23:06 Aaro Koskinen wrote:

Hi,

Quoted 2 lines · Tony Lindgren

Are there any fixes in this series that should go into v4.0-rc series, or can it all wait for v4.1?

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

I think these all should wait for v4.1.

A.

4.1-rc3 was released and this patch series is still not included...

The dts changes should be merged?

Looks like yes, but first two arch/arm/mach-omap2 patches not.

Quoted 2 lines

I suggest you repost the driver fixes so Herbert can queue them.

Ok.

Quoted 3 lines

Regards,

Tony

Signature · 2 lines
Pali Rohár
[email protected]
maintainer
#49 lore raw
Quoted 11 lines · Pali Rohár
Quoted 10 lines · On Thursday 14 May 2015 23:34:19 Tony Lindgren wrote:
Quoted 9 lines · Pali Rohár
Quoted 8 lines · On Friday 06 March 2015 23:23:06 Aaro Koskinen wrote:

Hi,

Quoted 2 lines · Tony Lindgren

Are there any fixes in this series that should go into v4.0-rc series, or can it all wait for v4.1?

I think these all should wait for v4.1.

Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
Quoted 1 line

A.

4.1-rc3 was released and this patch series is still not included...

The dts changes should be merged?

Looks like yes, but first two arch/arm/mach-omap2 patches not.

I suggest you repost those to separately so Paul can take a look at them. It seems they can be merged separately from the driver changes?

Regards,

Tony
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html