[Xenomai-git] New commits on branch next

2018-04-19 Thread git repository hosting
URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=5e449ed0f8374fd333688f2a71a896d92e244783
Author: Jan Kiszka 
Date:   Wed Apr 18 14:51:00 2018 +0200

cobalt/synch: Clear PP boost prior to handing over the ownership

Otherwise we first add the synch object to the new owner's boost list
before we remove it from the old one's, corrupting the list.

Signed-off-by: Jan Kiszka 

URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=5ea21568d44049d3998e42171b100177d77feb5f
Author: Jan Kiszka 
Date:   Wed Apr 18 14:51:00 2018 +0200

testsuite/smokey: Add handover test for prio-ceiling mutexes

This triggers a bug in the PP implementation.

Signed-off-by: Jan Kiszka 

URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=caf3e34a6f75f9d992a0ce2891f23ae8a9bc012c
Author: Philippe Gerum 
Date:   Fri Mar 30 15:01:40 2018 +0200

net/via-rhine: add adapter symlink into sysfs attributes

URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=3a7473f23a21fe2d8e20a05eff2918a5737307b4
Author: Philippe Gerum 
Date:   Fri Mar 30 15:01:30 2018 +0200

net/tulip: add adapter symlink into sysfs attributes

URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=01087b02d57e751c04679ed147329bcaaf98a11a
Author: Philippe Gerum 
Date:   Fri Mar 30 15:01:23 2018 +0200

net/r8169: add adapter symlink into sysfs attributes

URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=46fc232c5c75e0b24bf3f8edb6c553fe443f61b4
Author: Philippe Gerum 
Date:   Fri Mar 30 15:01:10 2018 +0200

net/pcnet32: add adapter symlink into sysfs attributes

URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=1d6932042b183d580790eed9ecc8dbfd5ab6584b
Author: Philippe Gerum 
Date:   Fri Mar 30 15:01:02 2018 +0200

net/natsemi: add adapter symlink into sysfs attributes

URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=ca3cbf6cd5a5ab5aa9b7d4e97c74eae5f197c9db
Author: Philippe Gerum 
Date:   Fri Mar 30 15:00:56 2018 +0200

net/macb: add adapter symlink into sysfs attributes

URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=1a7615f6fa1fdbd931a1af44f640c16c0ec8e5d4
Author: Philippe Gerum 
Date:   Fri Mar 30 15:00:48 2018 +0200

net/fec: add adapter symlink into sysfs attributes

URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=bab48fee1673970a84ec6ac1127767ede88d1776
Author: Philippe Gerum 
Date:   Fri Mar 30 15:00:39 2018 +0200

net/eepro100: add adapter symlink into sysfs attributes

URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=696186819b8ef54656717e27ef811cfb5ee4aad1
Author: Philippe Gerum 
Date:   Fri Mar 30 15:00:26 2018 +0200

net/e1000: add adapter symlink into sysfs attributes

URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=42fbe0da79bfb0ddeda45dd5efe56fd593b902c8
Author: Philippe Gerum 
Date:   Fri Mar 30 15:00:02 2018 +0200

net/at91: add adapter symlink into sysfs attributes

URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=fc81d238d1c115b7cfd230fd3377240890295f40
Author: Philippe Gerum 
Date:   Fri Mar 30 14:59:51 2018 +0200

net/8139too: add adapter symlink into sysfs attributes

URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=5172100950b74ef30cc6215d514d6844e56f0b50
Author: Philippe Gerum 
Date:   Fri Mar 30 13:09:19 2018 +0200

net/igb: add adapter symlink into sysfs attributes

URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=ca7f18d465e1579b91a09efc75d05e5a4cdbbc19
Author: Philippe Gerum 
Date:   Fri Mar 30 12:53:34 2018 +0200

net: create sysfs nodes for net devices

Each rtnet device registered with the stack is represented by a node
into /sys/devices/virtual/rtnet/.

Setting the address of the real device probed by the kernel into the
rtnet_device.sysbind field before calling rt_register_rtnetdev(),
causes the "adapter" symlink to be installed in the newly created
attribute directory, pointing at that device.

e.g.

static int probe_handler(struct pci_dev *pdev, const struct pci_device_id 
*ent)
{
...
rtdev->sysbind = >dev;
...
ret = rt_register_rtnetdev(rtdev);
...
}

$ ls -l /sys/devices/virtual/rtnet/
total 0
drwxr-xr-x2 root root 0 Mar 30 12:50 enp1s0
drwxr-xr-x2 root root 0 Mar 30 12:50 rtlo

$ ls -l /sys/devices/virtual/rtnet/enp1s0/
total 0
lrwxrwxrwx1 root root 0 Mar 30 12:51 adapter -> 
../../../pci:00/:00:13.0/:01:00.0
lrwxrwxrwx1 root root 0 Mar 30 12:51 

[Xenomai-git] Philippe Gerum : Revert "copperplate/heapobj-pshared: fix memory limit"

2018-04-19 Thread git repository hosting
Module: xenomai-3
Branch: stable-3.0.x
Commit: 63621418456fa55a7ce1825bbcc8550bc5c275a6
URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=63621418456fa55a7ce1825bbcc8550bc5c275a6

Author: Philippe Gerum 
Date:   Thu Apr 19 19:18:28 2018 +0200

Revert "copperplate/heapobj-pshared: fix memory limit"

This reverts commit 5b0c3677fa15397ab7d8e609685f8b4259d62fde which was
wrong and fortunately did not survive the upcoming memcheck tests.

---

 lib/copperplate/heapobj-pshared.c |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/copperplate/heapobj-pshared.c 
b/lib/copperplate/heapobj-pshared.c
index 0a3c24e..a3c5484 100644
--- a/lib/copperplate/heapobj-pshared.c
+++ b/lib/copperplate/heapobj-pshared.c
@@ -226,7 +226,7 @@ static int init_heap(struct shared_heap *heap, void *base,
extent->bitmap = __shoff(base, mem) + bmapoff;
extent->bitwords = bmapwords;
extent->membase = __shoff(base, mem) + metasz;
-   extent->memlim = __shoff(base, mem) + size;
+   extent->memlim = extent->membase + size;
init_extent(base, extent);
__list_append(base, >link, >extents);
 


___
Xenomai-git mailing list
Xenomai-git@xenomai.org
https://xenomai.org/mailman/listinfo/xenomai-git


[Xenomai-git] New commits on branch next

2018-04-19 Thread git repository hosting
URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=11be709384b4bd8b905a6416e54018c58be1ec0c
Author: Jan Kiszka 
Date:   Wed Apr 18 14:51:00 2018 +0200

cobalt/synch: Clear PP boost prior to handing over the ownership

Otherwise we first add the synch object to the new owner's boost list
before we remove it from the old one's, corrupting the list.

Signed-off-by: Jan Kiszka 

URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=f10fa418179ba745d4dd035793fe11a3da97a7d0
Author: Jan Kiszka 
Date:   Wed Apr 18 14:51:00 2018 +0200

testsuite/smokey: Add handover test for prio-ceiling mutexes

This triggers a bug in the PP implementation.

Signed-off-by: Jan Kiszka 

URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=07c5612c7203772ccb00d72b5151ec6fddd5b016
Author: Philippe Gerum 
Date:   Fri Mar 30 15:01:40 2018 +0200

net/via-rhine: add adapter symlink into sysfs attributes

URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=495fed5cc7265e2abc2243ca78640a93b99f3cfb
Author: Philippe Gerum 
Date:   Fri Mar 30 15:01:30 2018 +0200

net/tulip: add adapter symlink into sysfs attributes

URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=a817725d153c64cf6d0370561390b9292ea1f956
Author: Philippe Gerum 
Date:   Fri Mar 30 15:01:23 2018 +0200

net/r8169: add adapter symlink into sysfs attributes

URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=190293fff00faeecb8da6ba384340a6dbc89f380
Author: Philippe Gerum 
Date:   Fri Mar 30 15:01:10 2018 +0200

net/pcnet32: add adapter symlink into sysfs attributes

URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=cf865dca3a14f20c72d9994f5410cfcd66235e19
Author: Philippe Gerum 
Date:   Fri Mar 30 15:01:02 2018 +0200

net/natsemi: add adapter symlink into sysfs attributes

URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=c225161387ece92eb2b0c1261de8a34dadda2ad8
Author: Philippe Gerum 
Date:   Fri Mar 30 15:00:56 2018 +0200

net/macb: add adapter symlink into sysfs attributes

URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=c94128bd5a4912f5b64cca3905b8a11a4c923d12
Author: Philippe Gerum 
Date:   Fri Mar 30 15:00:48 2018 +0200

net/fec: add adapter symlink into sysfs attributes

URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=b4ad59ee7f857fa11307e78acd3ba25f71c640e7
Author: Philippe Gerum 
Date:   Fri Mar 30 15:00:39 2018 +0200

net/eepro100: add adapter symlink into sysfs attributes

URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=361434d97909704551b56a1990a437496305b6b3
Author: Philippe Gerum 
Date:   Fri Mar 30 15:00:26 2018 +0200

net/e1000: add adapter symlink into sysfs attributes

URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=989539aa897a0d96570feee043455c81f11a8914
Author: Philippe Gerum 
Date:   Fri Mar 30 15:00:02 2018 +0200

net/at91: add adapter symlink into sysfs attributes

URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=b24180b04b1e3ad1477fb4e5ddb41a4ffe833961
Author: Philippe Gerum 
Date:   Fri Mar 30 14:59:51 2018 +0200

net/8139too: add adapter symlink into sysfs attributes

URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=e8abb0cb89338e128eb2a771b6133207aa9ed2c8
Author: Philippe Gerum 
Date:   Fri Mar 30 13:09:19 2018 +0200

net/igb: add adapter symlink into sysfs attributes

URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=20e11a6dfdfe30032d79a20d768c72e44970a136
Author: Philippe Gerum 
Date:   Fri Mar 30 12:53:34 2018 +0200

net: create sysfs nodes for net devices

Each rtnet device registered with the stack is represented by a node
into /sys/devices/virtual/rtnet/.

Setting the address of the real device probed by the kernel into the
rtnet_device.sysbind field before calling rt_register_rtnetdev(),
causes the "adapter" symlink to be installed in the newly created
attribute directory, pointing at that device.

e.g.

static int probe_handler(struct pci_dev *pdev, const struct pci_device_id 
*ent)
{
...
rtdev->sysbind = >dev;
...
ret = rt_register_rtnetdev(rtdev);
...
}

$ ls -l /sys/devices/virtual/rtnet/
total 0
drwxr-xr-x2 root root 0 Mar 30 12:50 enp1s0
drwxr-xr-x2 root root 0 Mar 30 12:50 rtlo

$ ls -l /sys/devices/virtual/rtnet/enp1s0/
total 0
lrwxrwxrwx1 root root 0 Mar 30 12:51 adapter -> 
../../../pci:00/:00:13.0/:01:00.0
lrwxrwxrwx1 root root 0 Mar 30 12:51 

[Xenomai-git] Philippe Gerum : copperplate/heapobj-pshared: fix off-by-one error in pagemap reset

2018-04-19 Thread git repository hosting
Module: xenomai-3
Branch: stable-3.0.x
Commit: 5abb09dab0035263b0f6233d54795230cdb8f37e
URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=5abb09dab0035263b0f6233d54795230cdb8f37e

Author: Philippe Gerum 
Date:   Thu Apr 19 11:01:49 2018 +0200

copperplate/heapobj-pshared: fix off-by-one error in pagemap reset

---

 lib/copperplate/heapobj-pshared.c |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/copperplate/heapobj-pshared.c 
b/lib/copperplate/heapobj-pshared.c
index e523ce8..0a3c24e 100644
--- a/lib/copperplate/heapobj-pshared.c
+++ b/lib/copperplate/heapobj-pshared.c
@@ -156,7 +156,7 @@ static void init_extent(void *base, struct shared_extent 
*extent)
assert(lastpgnum >= 1);
 
/* Mark all pages as free in the page map. */
-   memset(extent->pagemap, 0, lastpgnum * sizeof(struct page_entry));
+   memset(extent->pagemap, 0, (lastpgnum + 1) * sizeof(struct page_entry));
 
/* Clear the allocation bitmap. */
p = __shref(base, extent->bitmap);


___
Xenomai-git mailing list
Xenomai-git@xenomai.org
https://xenomai.org/mailman/listinfo/xenomai-git


[Xenomai-git] Greg Gallagher : cobalt/rtdm: Increase RTDM_MAX_MINOR to 4096 form 1024

2018-04-19 Thread git repository hosting
Module: xenomai-3
Branch: stable-3.0.x
Commit: 0e0dee05a511e14139b8c1c1e25b84662feed4d3
URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=0e0dee05a511e14139b8c1c1e25b84662feed4d3

Author: Greg Gallagher 
Date:   Thu Apr 19 06:14:00 2018 +0200

cobalt/rtdm: Increase RTDM_MAX_MINOR to 4096 form 1024

Increase the number of RTDM devices that are allowed to be registered to 4096 
to allow gpio drivers with higher pin numbers to be able to register in rtdm 
space.

---

 include/cobalt/kernel/rtdm/driver.h |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/cobalt/kernel/rtdm/driver.h 
b/include/cobalt/kernel/rtdm/driver.h
index 63beb48..5a20585 100644
--- a/include/cobalt/kernel/rtdm/driver.h
+++ b/include/cobalt/kernel/rtdm/driver.h
@@ -94,7 +94,7 @@ enum rtdm_selecttype;
 /** @} Device Flags */
 
 /** Maximum number of named devices per driver. */
-#define RTDM_MAX_MINOR 1024
+#define RTDM_MAX_MINOR 4096
 
 /** @} rtdm_device_register */
 


___
Xenomai-git mailing list
Xenomai-git@xenomai.org
https://xenomai.org/mailman/listinfo/xenomai-git


[Xenomai-git] Philippe Gerum : copperplate/heapobj-pshared: fix memory limit

2018-04-19 Thread git repository hosting
Module: xenomai-3
Branch: stable-3.0.x
Commit: 5b0c3677fa15397ab7d8e609685f8b4259d62fde
URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=5b0c3677fa15397ab7d8e609685f8b4259d62fde

Author: Philippe Gerum 
Date:   Thu Apr 19 11:00:06 2018 +0200

copperplate/heapobj-pshared: fix memory limit

---

 lib/copperplate/heapobj-pshared.c |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/copperplate/heapobj-pshared.c 
b/lib/copperplate/heapobj-pshared.c
index 03d6eaa..e523ce8 100644
--- a/lib/copperplate/heapobj-pshared.c
+++ b/lib/copperplate/heapobj-pshared.c
@@ -226,7 +226,7 @@ static int init_heap(struct shared_heap *heap, void *base,
extent->bitmap = __shoff(base, mem) + bmapoff;
extent->bitwords = bmapwords;
extent->membase = __shoff(base, mem) + metasz;
-   extent->memlim = extent->membase + size;
+   extent->memlim = __shoff(base, mem) + size;
init_extent(base, extent);
__list_append(base, >link, >extents);
 


___
Xenomai-git mailing list
Xenomai-git@xenomai.org
https://xenomai.org/mailman/listinfo/xenomai-git


[Xenomai-git] Philippe Gerum : scripts: histo.gp: fix spelling in label

2018-04-19 Thread git repository hosting
Module: xenomai-3
Branch: stable-3.0.x
Commit: e34036b36908eef04b1c788d6e53fdd4adfdb944
URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=e34036b36908eef04b1c788d6e53fdd4adfdb944

Author: Philippe Gerum 
Date:   Thu Apr 19 10:15:10 2018 +0200

scripts: histo.gp: fix spelling in label

---

 scripts/histo.gp |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/histo.gp b/scripts/histo.gp
index bde779d..624a174 100644
--- a/scripts/histo.gp
+++ b/scripts/histo.gp
@@ -11,7 +11,7 @@ set output output_file
 
 set title graph_title
 set xlabel "user-space latency in microseconds"
-set ylabel "occurences + 1 (log)"
+set ylabel "occurrences + 1 (log)"
 set logscale y
 set key off
 set grid


___
Xenomai-git mailing list
Xenomai-git@xenomai.org
https://xenomai.org/mailman/listinfo/xenomai-git


[Xenomai-git] Philippe Gerum : drivers/gpio: mxc: look for imx7d devices

2018-04-19 Thread git repository hosting
Module: xenomai-3
Branch: stable-3.0.x
Commit: 2f07eda4df8d00b028c711fe94c7dc2091f6e4ff
URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=2f07eda4df8d00b028c711fe94c7dc2091f6e4ff

Author: Philippe Gerum 
Date:   Thu Apr 19 10:22:02 2018 +0200

drivers/gpio: mxc: look for imx7d devices

---

 kernel/drivers/gpio/gpio-mxc.c |   10 --
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/kernel/drivers/gpio/gpio-mxc.c b/kernel/drivers/gpio/gpio-mxc.c
index e204fe0..7b28111 100644
--- a/kernel/drivers/gpio/gpio-mxc.c
+++ b/kernel/drivers/gpio/gpio-mxc.c
@@ -20,10 +20,16 @@
 
 #define RTDM_SUBCLASS_MXC  2
 
+static const char *compat_array[] = {
+   "fsl,imx6q-gpio",
+   "fsl,imx7d-gpio",
+};
+
 static int __init mxc_gpio_init(void)
 {
-   return rtdm_gpiochip_scan_of(NULL, "fsl,imx6q-gpio",
-RTDM_SUBCLASS_MXC);
+   return rtdm_gpiochip_scan_array_of(NULL, compat_array,
+  ARRAY_SIZE(compat_array),
+  RTDM_SUBCLASS_MXC);
 }
 module_init(mxc_gpio_init);
 


___
Xenomai-git mailing list
Xenomai-git@xenomai.org
https://xenomai.org/mailman/listinfo/xenomai-git


[Xenomai-git] Philippe Gerum : drivers/gpio: core: add OF-based scanner searching for multiple compat strings

2018-04-19 Thread git repository hosting
Module: xenomai-3
Branch: stable-3.0.x
Commit: a2262d5b85f35df485b726c93783a28336024850
URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=a2262d5b85f35df485b726c93783a28336024850

Author: Philippe Gerum 
Date:   Thu Apr 19 10:21:01 2018 +0200

drivers/gpio: core: add OF-based scanner searching for multiple compat strings

---

 include/cobalt/kernel/rtdm/gpio.h |4 
 kernel/drivers/gpio/gpio-core.c   |   19 +++
 2 files changed, 23 insertions(+)

diff --git a/include/cobalt/kernel/rtdm/gpio.h 
b/include/cobalt/kernel/rtdm/gpio.h
index 378a678..cdb472f 100644
--- a/include/cobalt/kernel/rtdm/gpio.h
+++ b/include/cobalt/kernel/rtdm/gpio.h
@@ -65,6 +65,10 @@ int rtdm_gpiochip_post_event(struct rtdm_gpio_chip *rgc,
 int rtdm_gpiochip_scan_of(struct device_node *from,
  const char *compat, int type);
 
+int rtdm_gpiochip_scan_array_of(struct device_node *from,
+   const char *compat[],
+   int nentries, int type);
+
 void rtdm_gpiochip_remove_of(int type);
 
 #endif
diff --git a/kernel/drivers/gpio/gpio-core.c b/kernel/drivers/gpio/gpio-core.c
index 3e97547..a27c9ee 100644
--- a/kernel/drivers/gpio/gpio-core.c
+++ b/kernel/drivers/gpio/gpio-core.c
@@ -571,6 +571,25 @@ int rtdm_gpiochip_scan_of(struct device_node *from, const 
char *compat,
 }
 EXPORT_SYMBOL_GPL(rtdm_gpiochip_scan_of);
 
+int rtdm_gpiochip_scan_array_of(struct device_node *from,
+   const char *compat[],
+   int nentries, int type)
+{
+   int ret = -ENODEV, _ret, n;
+
+   for (n = 0; n < nentries; n++) {
+   _ret = rtdm_gpiochip_scan_of(from, compat[n], type);
+   if (_ret) {
+   if (_ret != -ENODEV)
+   return _ret;
+   } else
+   ret = 0;
+   }
+
+   return ret;
+}
+EXPORT_SYMBOL_GPL(rtdm_gpiochip_scan_array_of);
+
 void rtdm_gpiochip_remove_of(int type)
 {
struct rtdm_gpio_chip *rgc, *n;


___
Xenomai-git mailing list
Xenomai-git@xenomai.org
https://xenomai.org/mailman/listinfo/xenomai-git


[Xenomai-git] Philippe Gerum : drivers/gpio: core: lock gpio_chip list while scanning for removal

2018-04-19 Thread git repository hosting
Module: xenomai-3
Branch: stable-3.0.x
Commit: 144746346a118ac368935b8b9ea14f4677cf8e96
URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=144746346a118ac368935b8b9ea14f4677cf8e96

Author: Philippe Gerum 
Date:   Thu Apr 19 10:28:40 2018 +0200

drivers/gpio: core: lock gpio_chip list while scanning for removal

---

 kernel/drivers/gpio/gpio-core.c |6 ++
 1 file changed, 6 insertions(+)

diff --git a/kernel/drivers/gpio/gpio-core.c b/kernel/drivers/gpio/gpio-core.c
index a27c9ee..3ce73db 100644
--- a/kernel/drivers/gpio/gpio-core.c
+++ b/kernel/drivers/gpio/gpio-core.c
@@ -597,12 +597,18 @@ void rtdm_gpiochip_remove_of(int type)
if (!realtime_core_enabled())
return;
 
+   mutex_lock(_lock);
+
list_for_each_entry_safe(rgc, n, _gpio_chips, next) {
if (rgc->driver.profile_info.subclass_id == type) {
+   mutex_unlock(_lock);
rtdm_gpiochip_remove(rgc);
kfree(rgc);
+   mutex_lock(_lock);
}
}
+
+   mutex_unlock(_lock);
 }
 EXPORT_SYMBOL_GPL(rtdm_gpiochip_remove_of);
 


___
Xenomai-git mailing list
Xenomai-git@xenomai.org
https://xenomai.org/mailman/listinfo/xenomai-git