[PATCH 00/27] Fix common bug in most nand drivers not showing a device in sysfs

2014-05-26 Thread Alexander Holler
The overall stat is 27 files changed, 36 insertions(+), 80 deletions(-) and it fixes 21 of these bugs. Regards, Alexander Holler -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org

[PATCH 02/27] mtd: nand: orion_nand: show device structure in sysfs

2014-05-26 Thread Alexander Holler
Fix a common error in nand-drivers which do not set up a parent device for the mtd-device by using a new inline function. Signed-off-by: Alexander Holler hol...@ahsoftware.de --- drivers/mtd/nand/orion_nand.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/mtd

[PATCH 05/27] mtd: nand: gpio: show device structure in sysfs

2014-05-26 Thread Alexander Holler
Fix a common error in nand-drivers which do not set up a parent device for the mtd-device by using a new inline function. Signed-off-by: Alexander Holler hol...@ahsoftware.de --- drivers/mtd/nand/gpio.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/mtd/nand

[PATCH 06/27] mtd: nand: fsmc: show device structure in sysfs

2014-05-26 Thread Alexander Holler
Fix a common error in nand-drivers which do not set up a parent device for the mtd-device by using a new inline function. Signed-off-by: Alexander Holler hol...@ahsoftware.de --- drivers/mtd/nand/fsmc_nand.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/mtd/nand

[PATCH 03/27] mtd: nand: omap2: show device structure in sysfs

2014-05-26 Thread Alexander Holler
Fix a common error in nand-drivers which do not set up a parent device for the mtd-device by using a new inline function. Signed-off-by: Alexander Holler hol...@ahsoftware.de --- drivers/mtd/nand/omap2.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/mtd/nand/omap2

[PATCH 04/27] mtd: nand: atmel_nand: show device structure in sysfs

2014-05-26 Thread Alexander Holler
Fix a common error in nand-drivers which do not set up a parent device for the mtd-device by using a new inline function. Signed-off-by: Alexander Holler hol...@ahsoftware.de --- drivers/mtd/nand/atmel_nand.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/mtd/nand

[PATCH 07/27] mtd: nand: gpmi: show device structure in sysfs

2014-05-26 Thread Alexander Holler
Fix a common error in nand-drivers which do not set up a parent device for the mtd-device by using a new inline function. Signed-off-by: Alexander Holler hol...@ahsoftware.de --- drivers/mtd/nand/gpmi-nand/gpmi-nand.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git

[PATCH 15/27] mtd: nand: davinci: use mtd_setup_common_members()

2014-05-26 Thread Alexander Holler
Use the new common function mtd_setup_common_members() Signed-off-by: Alexander Holler hol...@ahsoftware.de --- drivers/mtd/nand/davinci_nand.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/mtd/nand/davinci_nand.c b/drivers/mtd/nand/davinci_nand.c index b922c8e

[PATCH 11/27] mtd: nand: sh_flctl: show device structure in sysfs

2014-05-26 Thread Alexander Holler
Fix a common error in nand-drivers which do not set up a parent device for the mtd-device by using a new inline function. Signed-off-by: Alexander Holler hol...@ahsoftware.de --- drivers/mtd/nand/sh_flctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand

[PATCH 13/27] mtd: nand: tmio: show device structure in sysfs

2014-05-26 Thread Alexander Holler
Fix a common error in nand-drivers which do not set up a parent device for the mtd-device by using a new inline function. Signed-off-by: Alexander Holler hol...@ahsoftware.de --- drivers/mtd/nand/tmio_nand.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/mtd/nand

[PATCH 10/27] mtd: nand: s3c2410: show device structure in sysfs

2014-05-26 Thread Alexander Holler
Fix a common error in nand-drivers which do not set up a parent device for the mtd-device by using a new inline function. Signed-off-by: Alexander Holler hol...@ahsoftware.de --- drivers/mtd/nand/s3c2410.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/mtd/nand

[PATCH 08/27] mtd: nand: plat: show device structure in sysfs

2014-05-26 Thread Alexander Holler
Fix a common error in nand-drivers which do not set up a parent device for the mtd-device by using a new inline function. Signed-off-by: Alexander Holler hol...@ahsoftware.de --- drivers/mtd/nand/plat_nand.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/mtd/nand

[PATCH 12/27] mtd: nand: sharpsl: show device structure in sysfs

2014-05-26 Thread Alexander Holler
Fix a common error in nand-drivers which do not set up a parent device for the mtd-device by using a new inline function. Signed-off-by: Alexander Holler hol...@ahsoftware.de --- drivers/mtd/nand/sharpsl.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/mtd/nand

[PATCH 09/27] mtd: nand: pxa3xx: show device structure in sysfs

2014-05-26 Thread Alexander Holler
Fix a common error in nand-drivers which do not set up a parent device for the mtd-device by using a new inline function. Signed-off-by: Alexander Holler hol...@ahsoftware.de --- drivers/mtd/nand/pxa3xx_nand.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/mtd/nand

[PATCH 18/27] mtd: nand: mxc: use mtd_setup_common_members()

2014-05-26 Thread Alexander Holler
Use the new common function mtd_setup_common_members() Signed-off-by: Alexander Holler hol...@ahsoftware.de --- drivers/mtd/nand/mxc_nand.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/mtd/nand/mxc_nand.c b/drivers/mtd/nand/mxc_nand.c index dba262b..31114db4

[PATCH 14/27] mtd: nand: docg4: show device structure in sysfs

2014-05-26 Thread Alexander Holler
Fix a common error in nand-drivers which do not set up a parent device for the mtd-device by using a new inline function. Signed-off-by: Alexander Holler hol...@ahsoftware.de --- drivers/mtd/nand/docg4.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/mtd/nand/docg4

[PATCH 16/27] mtd: nand: lpc32xx_mlc: use mtd_setup_common_members()

2014-05-26 Thread Alexander Holler
Use the new common function mtd_setup_common_members() Signed-off-by: Alexander Holler hol...@ahsoftware.de --- drivers/mtd/nand/lpc32xx_mlc.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/mtd/nand/lpc32xx_mlc.c b/drivers/mtd/nand/lpc32xx_mlc.c index 687478c

[PATCH 27/27] mtd: nand: socrates: use mtd_setup_common_members()

2014-05-26 Thread Alexander Holler
Use the new common function mtd_setup_common_members(). Signed-off-by: Alexander Holler hol...@ahsoftware.de --- drivers/mtd/nand/socrates_nand.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/mtd/nand/socrates_nand.c b/drivers/mtd/nand/socrates_nand.c index

[PATCH 22/27] mtd: nand: fsl_ifc: show device structure in sysfs

2014-05-26 Thread Alexander Holler
Fix a common error in nand-drivers which do not set up a parent device for the mtd-device by using a new inline function. Signed-off-by: Alexander Holler hol...@ahsoftware.de --- drivers/mtd/nand/fsl_ifc_nand.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/mtd

[PATCH 25/27] mtd: nand: ndfc: show device structure in sysfs

2014-05-26 Thread Alexander Holler
Fix a common error in nand-drivers which do not set up a parent device for the mtd-device by using a new inline function. Signed-off-by: Alexander Holler hol...@ahsoftware.de --- drivers/mtd/nand/ndfc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/mtd/nand

[PATCH 23/27] mtd: nand: jz4740: show device structure in sysfs

2014-05-26 Thread Alexander Holler
Fix a common error in nand-drivers which do not set up a parent device for the mtd-device by using a new inline function. Signed-off-by: Alexander Holler hol...@ahsoftware.de --- drivers/mtd/nand/jz4740_nand.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/mtd

[PATCH 20/27] mtd: nand: fsl_elbc: show device structure in sysfs

2014-05-26 Thread Alexander Holler
Fix a common error in nand-drivers which do not set up a parent device for the mtd-device by using a new inline function. Signed-off-by: Alexander Holler hol...@ahsoftware.de --- drivers/mtd/nand/fsl_elbc_nand.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/mtd

[PATCH 24/27] mtd: nand: mpc5121_nfc: show device structure in sysfs

2014-05-26 Thread Alexander Holler
Fix a common error in nand-drivers which do not set up a parent device for the mtd-device by using a new inline function. Signed-off-by: Alexander Holler hol...@ahsoftware.de --- drivers/mtd/nand/mpc5121_nfc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand

[PATCH 19/27] mtd: nand: bcm47: show device structure in sysfs

2014-05-26 Thread Alexander Holler
Fix a common error in nand-drivers which do not set up a parent device for the mtd-device by using a new inline function. Signed-off-by: Alexander Holler hol...@ahsoftware.de --- drivers/mtd/nand/bcm47xxnflash/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers

[PATCH 26/27] mtd: nand: txx9ndfmc: show device structure in sysfs

2014-05-26 Thread Alexander Holler
Fix a common error in nand-drivers which do not set up a parent device for the mtd-device by using a new inline function. Signed-off-by: Alexander Holler hol...@ahsoftware.de --- drivers/mtd/nand/txx9ndfmc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/mtd/nand

[PATCH 21/27] mtd: nand: fsl_upm: show device structure in sysfs

2014-05-26 Thread Alexander Holler
Fix a common error in nand-drivers which do not set up a parent device for the mtd-device by using a new inline function. Signed-off-by: Alexander Holler hol...@ahsoftware.de --- drivers/mtd/nand/fsl_upm.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/mtd/nand

[PATCH 17/27] mtd: nand: lpc32xx_slc: use mtd_setup_common_members()

2014-05-26 Thread Alexander Holler
Use the new common function mtd_setup_common_members() Signed-off-by: Alexander Holler hol...@ahsoftware.de --- drivers/mtd/nand/lpc32xx_slc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/mtd/nand/lpc32xx_slc.c b/drivers/mtd/nand/lpc32xx_slc.c index 53a6742

Re: [RFC PATCH 1/9] dt: deps: dtc: Automatically add new property 'dependencies' which contains a list of referenced phandles

2014-05-19 Thread Alexander Holler
topological sorted) list. That wouldn't be much effort. But currently I don't think any DT enabled device is in need of having to avoid doing the topological sort itself. Regards, Alexander Holler HTH, jdl On Mon, May 19, 2014 at 7:35 AM, Alexander Holler wrote: Am 17.05.2014 14:16, schrieb

Re: [RFC PATCH 1/9] dt: deps: dtc: Automatically add new property 'dependencies' which contains a list of referenced phandles

2014-05-19 Thread Alexander Holler
patches). And thinking about that again, I think I was wrong and doing so have been some kind of evil premature optimization I did in order to spare a few dependencies/edges. But changing this can done by removing a few lines in the code for dtc (patch 1). Regards, Alexander Holler

Re: [RFC PATCH 2/9] dt: deps: dependency based device creation

2014-05-19 Thread Alexander Holler
been just an idea which wouldn't offer much motivation to actually look at it. Regards, Alexander Holler -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majo

Re: [RFC PATCH 2/9] dt: deps: dependency based device creation

2014-05-19 Thread Alexander Holler
which wouldn't offer much motivation to actually look at it. Regards, Alexander Holler -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read

Re: [RFC PATCH 1/9] dt: deps: dtc: Automatically add new property 'dependencies' which contains a list of referenced phandles

2014-05-19 Thread Alexander Holler
patches). And thinking about that again, I think I was wrong and doing so have been some kind of evil premature optimization I did in order to spare a few dependencies/edges. But changing this can done by removing a few lines in the code for dtc (patch 1). Regards, Alexander Holler

Re: [RFC PATCH 1/9] dt: deps: dtc: Automatically add new property 'dependencies' which contains a list of referenced phandles

2014-05-19 Thread Alexander Holler
topological sorted) list. That wouldn't be much effort. But currently I don't think any DT enabled device is in need of having to avoid doing the topological sort itself. Regards, Alexander Holler HTH, jdl On Mon, May 19, 2014 at 7:35 AM, Alexander Holler hol...@ahsoftware.dewrote: Am

Re: [RFC PATCH 2/9] dt: deps: dependency based device creation

2014-05-18 Thread Alexander Holler
Am 16.05.2014 13:00, schrieb Grant Likely: On Wed, 14 May 2014 23:10:39 +0200, Alexander Holler wrote: Am 14.05.2014 22:06, schrieb Grant Likely: On Wed, 14 May 2014 16:49:05 +0200, Alexander Holler wrote: Am 14.05.2014 16:05, schrieb Grant Likely: On Mon, 12 May 2014 18:47:53 +0200

Re: [RFC PATCH 2/9] dt: deps: dependency based device creation

2014-05-18 Thread Alexander Holler
Am 16.05.2014 13:00, schrieb Grant Likely: On Wed, 14 May 2014 23:10:39 +0200, Alexander Holler hol...@ahsoftware.de wrote: Am 14.05.2014 22:06, schrieb Grant Likely: On Wed, 14 May 2014 16:49:05 +0200, Alexander Holler hol...@ahsoftware.de wrote: Am 14.05.2014 16:05, schrieb Grant Likely

Re: [PATCH 2/2] bluetooth: raise HCI_CMD_TIMEOUT from 2s to 8s

2014-05-15 Thread Alexander Holler
Am 15.05.2014 17:19, schrieb Alexander Holler: Am 15.05.2014 16:50, schrieb Alexander Holler: Am 15.05.2014 14:54, schrieb Luiz Augusto von Dentz: This timeout seems arbitrary so I suppose we can increase it if we feel it is necessary but we used already different timeout for different

Auction for commit slots

2014-05-15 Thread Alexander Holler
Hello, I think the Linux Foundation should start to auctioning commit slots. So people would be freed from the burden having to convince, bribe or to buy Linux kernel maintainers. I'm pretty sure the quality won't suffer. Alexander Holler -- To unsubscribe from this list: send the line

Re: [PATCH 2/2] bluetooth: raise HCI_CMD_TIMEOUT from 2s to 8s

2014-05-15 Thread Alexander Holler
Am 15.05.2014 16:50, schrieb Alexander Holler: Am 15.05.2014 14:54, schrieb Luiz Augusto von Dentz: This timeout seems arbitrary so I suppose we can increase it if we feel it is necessary but we used already different timeout for different commands like HCI_POWER_OFF_TIMEOUT, so perhaps if we

Re: [PATCH 2/2] bluetooth: raise HCI_CMD_TIMEOUT from 2s to 8s

2014-05-15 Thread Alexander Holler
Am 15.05.2014 14:54, schrieb Luiz Augusto von Dentz: > Hi Alexander, > > On Wed, May 14, 2014 at 5:00 PM, Alexander Holler > wrote: >> The reasoning to do this is the following: >> >> - If a timeout occurs, the HCI-communication is broken afterwards and the &g

Rename EPROBE_DEFER to ENOTHING_TO_SEE_WE_SOLVE_EVERYTHING_LATER

2014-05-15 Thread Alexander Holler
res out of them. Convinced? ;) Alexander Holler PS: And no, I don't throw chairs around. I just think sometimes a joke is a good thing. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo

Rename EPROBE_DEFER to ENOTHING_TO_SEE_WE_SOLVE_EVERYTHING_LATER

2014-05-15 Thread Alexander Holler
out of them. Convinced? ;) Alexander Holler PS: And no, I don't throw chairs around. I just think sometimes a joke is a good thing. -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http

Re: [PATCH 2/2] bluetooth: raise HCI_CMD_TIMEOUT from 2s to 8s

2014-05-15 Thread Alexander Holler
Am 15.05.2014 14:54, schrieb Luiz Augusto von Dentz: Hi Alexander, On Wed, May 14, 2014 at 5:00 PM, Alexander Holler hol...@ahsoftware.de wrote: The reasoning to do this is the following: - If a timeout occurs, the HCI-communication is broken afterwards and the dongle isn't usable

Re: [PATCH 2/2] bluetooth: raise HCI_CMD_TIMEOUT from 2s to 8s

2014-05-15 Thread Alexander Holler
Am 15.05.2014 16:50, schrieb Alexander Holler: Am 15.05.2014 14:54, schrieb Luiz Augusto von Dentz: This timeout seems arbitrary so I suppose we can increase it if we feel it is necessary but we used already different timeout for different commands like HCI_POWER_OFF_TIMEOUT, so perhaps if we

Auction for commit slots

2014-05-15 Thread Alexander Holler
Hello, I think the Linux Foundation should start to auctioning commit slots. So people would be freed from the burden having to convince, bribe or to buy Linux kernel maintainers. I'm pretty sure the quality won't suffer. Alexander Holler -- To unsubscribe from this list: send the line

Re: [PATCH 2/2] bluetooth: raise HCI_CMD_TIMEOUT from 2s to 8s

2014-05-15 Thread Alexander Holler
Am 15.05.2014 17:19, schrieb Alexander Holler: Am 15.05.2014 16:50, schrieb Alexander Holler: Am 15.05.2014 14:54, schrieb Luiz Augusto von Dentz: This timeout seems arbitrary so I suppose we can increase it if we feel it is necessary but we used already different timeout for different

Re: [RFC PATCH 0/9] dt: dependencies (for deterministic driver initialization order based on the DT)

2014-05-14 Thread Alexander Holler
Am 14.05.2014 21:24, schrieb Alexander Holler: > Am 14.05.2014 21:06, schrieb Rob Herring: >> I still have not seen an example of A depends on B, deferred probe >> fails because of ? and here is the code for A that works around the >> problem. >> >>> Anyw

Re: [RFC PATCH 0/9] dt: dependencies (for deterministic driver initialization order based on the DT)

2014-05-14 Thread Alexander Holler
Am 14.05.2014 21:06, schrieb Rob Herring: > On Wed, May 14, 2014 at 12:45 PM, Alexander Holler > wrote: >> Am 14.05.2014 19:30, schrieb Rob Herring: >> >>> On Wed, May 14, 2014 at 11:23 AM, Alexander Holler >>> wrote: >>>> >>>> Am 14

Re: [RFC PATCH 2/9] dt: deps: dependency based device creation

2014-05-14 Thread Alexander Holler
Am 14.05.2014 22:06, schrieb Grant Likely: > On Wed, 14 May 2014 16:49:05 +0200, Alexander Holler > wrote: >> Am 14.05.2014 16:05, schrieb Grant Likely: >>> On Mon, 12 May 2014 18:47:53 +0200, Alexander Holler >>> wrote: >> Hmm, I don't really care if that

Re: [RFC PATCH 0/9] dt: dependencies (for deterministic driver initialization order based on the DT)

2014-05-14 Thread Alexander Holler
Am 14.05.2014 21:06, schrieb Rob Herring: On Wed, May 14, 2014 at 12:45 PM, Alexander Holler wrote: Am 14.05.2014 19:30, schrieb Rob Herring: On Wed, May 14, 2014 at 11:23 AM, Alexander Holler wrote: Am 14.05.2014 18:05, schrieb Grant Likely: On Wed, May 14, 2014 at 4:02 PM, Alexander

Re: [RFC PATCH 0/9] dt: dependencies (for deterministic driver initialization order based on the DT)

2014-05-14 Thread Alexander Holler
Am 14.05.2014 20:16, schrieb Alexander Holler: Am 14.05.2014 19:53, schrieb Alexander Holler: Am 14.05.2014 19:45, schrieb Alexander Holler: One of the biggest problem of the deferred probe stuff is the problem how to identify real problems if everything ends up with a deferred probe when

Re: [RFC PATCH 0/9] dt: dependencies (for deterministic driver initialization order based on the DT)

2014-05-14 Thread Alexander Holler
Am 14.05.2014 19:53, schrieb Alexander Holler: Am 14.05.2014 19:45, schrieb Alexander Holler: One of the biggest problem of the deferred probe stuff is the problem how to identify real problems if everything ends up with a deferred probe when an error occurs? That means if you display an error

Re: [RFC PATCH 0/9] dt: dependencies (for deterministic driver initialization order based on the DT)

2014-05-14 Thread Alexander Holler
Am 14.05.2014 19:45, schrieb Alexander Holler: One of the biggest problem of the deferred probe stuff is the problem how to identify real problems if everything ends up with a deferred probe when an error occurs? That means if you display an error whenever something is deferred, the log becomes

Re: [RFC PATCH 0/9] dt: dependencies (for deterministic driver initialization order based on the DT)

2014-05-14 Thread Alexander Holler
Am 14.05.2014 19:30, schrieb Rob Herring: On Wed, May 14, 2014 at 11:23 AM, Alexander Holler wrote: Am 14.05.2014 18:05, schrieb Grant Likely: On Wed, May 14, 2014 at 4:02 PM, Alexander Holler wrote: Am 14.05.2014 16:19, schrieb Grant Likely: Rather than a dtb schema change

Re: [RFC PATCH 2/9] dt: deps: dependency based device creation

2014-05-14 Thread Alexander Holler
Am 14.05.2014 16:49, schrieb Alexander Holler: Am 14.05.2014 16:05, schrieb Grant Likely: On Mon, 12 May 2014 18:47:53 +0200, Alexander Holler wrote: Personally, I think the parts of this patch that manipulate the device registration order is entirely the wrong way to handle it. If anything

Re: [RFC PATCH 0/9] dt: dependencies (for deterministic driver initialization order based on the DT)

2014-05-14 Thread Alexander Holler
Am 14.05.2014 18:05, schrieb Grant Likely: On Wed, May 14, 2014 at 4:02 PM, Alexander Holler wrote: Am 14.05.2014 16:19, schrieb Grant Likely: Rather than a dtb schema change, for the most common properties (irqs, clocks, gpios), we could extract dependencies at boot time. I don't like

Re: [RFC PATCH 2/9] dt: deps: dependency based device creation

2014-05-14 Thread Alexander Holler
uff before. ;) Regards, Alexander Holler -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [RFC PATCH 0/9] dt: dependencies (for deterministic driver initialization order based on the DT)

2014-05-14 Thread Alexander Holler
aggrees how to start. Regards, Alexander Holler -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [RFC PATCH 5/9] dt: deps: register drivers based on the initialization order based on DT

2014-05-14 Thread Alexander Holler
Am 14.05.2014 16:13, schrieb Grant Likely: On Mon, 12 May 2014 18:47:56 +0200, Alexander Holler wrote: The init system currently calls unknown functions with almost unknown functionality in an almost random order. Correct, we've got a module system. Some would say that is a strength

Re: [RFC PATCH 2/9] dt: deps: dependency based device creation

2014-05-14 Thread Alexander Holler
Am 14.05.2014 16:05, schrieb Grant Likely: On Mon, 12 May 2014 18:47:53 +0200, Alexander Holler wrote: Use the properties named 'dependencies' in binary device tree blobs to build a dependency based initialization order for platform devices and drivers. This is done by building a directed

[PATCH 1/2] bluetooth: don't include local processing of HCI commands in the command timeout

2014-05-14 Thread Alexander Holler
by the timeout, because the hung task would be killed by the timeout before the hung task would be detected (by other means). Signed-off-by: Alexander Holler --- net/bluetooth/hci_event.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/net/bluetooth/hci_event.c b/net

[PATCH 2/2] bluetooth: raise HCI_CMD_TIMEOUT from 2s to 8s

2014-05-14 Thread Alexander Holler
command (and doesn't include the time the kernel needs to process the answer to an HCI command), my problems were gone. Signed-off-by: Alexander Holler --- include/net/bluetooth/hci.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth

dt: deps: some tips about how to debug/evaluate this feature

2014-05-14 Thread Alexander Holler
platform_driver_register(drv); + pr_info("DEPS: driver %s registered\n", drv->name); + } if (dev->parent) device_lock(dev->

Re: [RFC PATCH 0/9] dt: dependencies (for deterministic driver initialization order based on the DT)

2014-05-14 Thread Alexander Holler
Am 14.05.2014 21:24, schrieb Alexander Holler: Am 14.05.2014 21:06, schrieb Rob Herring: I still have not seen an example of A depends on B, deferred probe fails because of ? and here is the code for A that works around the problem. Anyway, this feature is totally independ of the deferred

dt: deps: some tips about how to debug/evaluate this feature

2014-05-14 Thread Alexander Holler
); + pr_info(DEPS: driver %s registered\n, drv-name); + } if (dev-parent) device_lock(dev-parent); rc = device_attach(dev); Regards, Alexander Holler

[PATCH 2/2] bluetooth: raise HCI_CMD_TIMEOUT from 2s to 8s

2014-05-14 Thread Alexander Holler
command (and doesn't include the time the kernel needs to process the answer to an HCI command), my problems were gone. Signed-off-by: Alexander Holler hol...@ahsoftware.de --- include/net/bluetooth/hci.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/net/bluetooth/hci.h b

[PATCH 1/2] bluetooth: don't include local processing of HCI commands in the command timeout

2014-05-14 Thread Alexander Holler
by the timeout, because the hung task would be killed by the timeout before the hung task would be detected (by other means). Signed-off-by: Alexander Holler hol...@ahsoftware.de --- net/bluetooth/hci_event.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/net/bluetooth

Re: [RFC PATCH 2/9] dt: deps: dependency based device creation

2014-05-14 Thread Alexander Holler
Am 14.05.2014 16:05, schrieb Grant Likely: On Mon, 12 May 2014 18:47:53 +0200, Alexander Holler hol...@ahsoftware.de wrote: Use the properties named 'dependencies' in binary device tree blobs to build a dependency based initialization order for platform devices and drivers. This is done

Re: [RFC PATCH 5/9] dt: deps: register drivers based on the initialization order based on DT

2014-05-14 Thread Alexander Holler
Am 14.05.2014 16:13, schrieb Grant Likely: On Mon, 12 May 2014 18:47:56 +0200, Alexander Holler hol...@ahsoftware.de wrote: The init system currently calls unknown functions with almost unknown functionality in an almost random order. Correct, we've got a module system. Some would say

Re: [RFC PATCH 0/9] dt: dependencies (for deterministic driver initialization order based on the DT)

2014-05-14 Thread Alexander Holler
aggrees how to start. Regards, Alexander Holler -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [RFC PATCH 2/9] dt: deps: dependency based device creation

2014-05-14 Thread Alexander Holler
. ;) Regards, Alexander Holler -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [RFC PATCH 0/9] dt: dependencies (for deterministic driver initialization order based on the DT)

2014-05-14 Thread Alexander Holler
Am 14.05.2014 18:05, schrieb Grant Likely: On Wed, May 14, 2014 at 4:02 PM, Alexander Holler hol...@ahsoftware.de wrote: Am 14.05.2014 16:19, schrieb Grant Likely: Rather than a dtb schema change, for the most common properties (irqs, clocks, gpios), we could extract dependencies at boot

Re: [RFC PATCH 2/9] dt: deps: dependency based device creation

2014-05-14 Thread Alexander Holler
Am 14.05.2014 16:49, schrieb Alexander Holler: Am 14.05.2014 16:05, schrieb Grant Likely: On Mon, 12 May 2014 18:47:53 +0200, Alexander Holler hol...@ahsoftware.de wrote: Personally, I think the parts of this patch that manipulate the device registration order is entirely the wrong way

Re: [RFC PATCH 0/9] dt: dependencies (for deterministic driver initialization order based on the DT)

2014-05-14 Thread Alexander Holler
Am 14.05.2014 19:30, schrieb Rob Herring: On Wed, May 14, 2014 at 11:23 AM, Alexander Holler hol...@ahsoftware.de wrote: Am 14.05.2014 18:05, schrieb Grant Likely: On Wed, May 14, 2014 at 4:02 PM, Alexander Holler hol...@ahsoftware.de wrote: Am 14.05.2014 16:19, schrieb Grant Likely

Re: [RFC PATCH 0/9] dt: dependencies (for deterministic driver initialization order based on the DT)

2014-05-14 Thread Alexander Holler
Am 14.05.2014 19:45, schrieb Alexander Holler: One of the biggest problem of the deferred probe stuff is the problem how to identify real problems if everything ends up with a deferred probe when an error occurs? That means if you display an error whenever something is deferred, the log becomes

Re: [RFC PATCH 0/9] dt: dependencies (for deterministic driver initialization order based on the DT)

2014-05-14 Thread Alexander Holler
Am 14.05.2014 19:53, schrieb Alexander Holler: Am 14.05.2014 19:45, schrieb Alexander Holler: One of the biggest problem of the deferred probe stuff is the problem how to identify real problems if everything ends up with a deferred probe when an error occurs? That means if you display an error

Re: [RFC PATCH 0/9] dt: dependencies (for deterministic driver initialization order based on the DT)

2014-05-14 Thread Alexander Holler
Am 14.05.2014 20:16, schrieb Alexander Holler: Am 14.05.2014 19:53, schrieb Alexander Holler: Am 14.05.2014 19:45, schrieb Alexander Holler: One of the biggest problem of the deferred probe stuff is the problem how to identify real problems if everything ends up with a deferred probe when

Re: [RFC PATCH 0/9] dt: dependencies (for deterministic driver initialization order based on the DT)

2014-05-14 Thread Alexander Holler
Am 14.05.2014 21:06, schrieb Rob Herring: On Wed, May 14, 2014 at 12:45 PM, Alexander Holler hol...@ahsoftware.de wrote: Am 14.05.2014 19:30, schrieb Rob Herring: On Wed, May 14, 2014 at 11:23 AM, Alexander Holler hol...@ahsoftware.de wrote: Am 14.05.2014 18:05, schrieb Grant Likely

Re: [RFC PATCH 2/9] dt: deps: dependency based device creation

2014-05-14 Thread Alexander Holler
Am 14.05.2014 22:06, schrieb Grant Likely: On Wed, 14 May 2014 16:49:05 +0200, Alexander Holler hol...@ahsoftware.de wrote: Am 14.05.2014 16:05, schrieb Grant Likely: On Mon, 12 May 2014 18:47:53 +0200, Alexander Holler hol...@ahsoftware.de wrote: Hmm, I don't really care

Re: [RFC PATCH 0/9] dt: dependencies (for deterministic driver initialization order based on the DT)

2014-05-14 Thread Alexander Holler
Am 14.05.2014 21:06, schrieb Rob Herring: On Wed, May 14, 2014 at 12:45 PM, Alexander Holler hol...@ahsoftware.de wrote: Am 14.05.2014 19:30, schrieb Rob Herring: On Wed, May 14, 2014 at 11:23 AM, Alexander Holler hol...@ahsoftware.de wrote: Am 14.05.2014 18:05, schrieb Grant Likely

[RFC PATCH 11/9] dt: deps: dtc: introduce new (virtual) property no-dependencies

2014-05-13 Thread Alexander Holler
The property 'no-dependencies' is virtual property and will not be added to any output file. Signed-off-by: Alexander Holler --- scripts/dtc/dependencies.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/scripts/dtc/dependencies.c b/scripts/dtc/dependencies.c index 4579

[PATCH 10/9] dt: deps: fix bug not registering late drivers when OF_DEPENDENCIES is disabled

2014-05-13 Thread Alexander Holler
The subject says all. Patch 5/9 has a bug which avoids registering late drivers if OF_DEPENDENCIES is disabled. This also explains the large differences in boot times I've experienced when comparing boot times with and without DT dependency based initialization order. Signed-off-by: Alexander

[PATCH 10/9] dt: deps: fix bug not registering late drivers when OF_DEPENDENCIES is disabled

2014-05-13 Thread Alexander Holler
The subject says all. Patch 5/9 has a bug which avoids registering late drivers if OF_DEPENDENCIES is disabled. This also explains the large differences in boot times I've experienced when comparing boot times with and without DT dependency based initialization order. Signed-off-by: Alexander

[RFC PATCH 11/9] dt: deps: dtc: introduce new (virtual) property no-dependencies

2014-05-13 Thread Alexander Holler
'no-dependencies' is virtual property and will not be added to any output file. Signed-off-by: Alexander Holler hol...@ahsoftware.de --- scripts/dtc/dependencies.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/scripts/dtc/dependencies.c b/scripts/dtc/dependencies.c

Re: [RFC PATCH 3/9] dt: deps: dtc: Add option to print initialization order

2014-05-12 Thread Alexander Holler
edback if people do like this stuff at all. Do you already want those 3 patches for the standalone dtc? Regards, Alexander Holler -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http:/

[RFC PATCH 7/9] dt: deps: kirkwood: make it possible to use CONFIG_OF_DEPENDENCIES

2014-05-12 Thread Alexander Holler
Use the feature of dependency based initialization order for drivers if CONFIG_OF_DEPENDENCIES is enabled. Signed-off-by: Alexander Holler --- arch/arm/mach-kirkwood/board-dt.c | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/mach-kirkwood/board-dt.c b/arch/arm/mach

[RFC PATCH 9/9] dt: deps: omap2: make it possible to use CONFIG_OF_DEPENDENCIES

2014-05-12 Thread Alexander Holler
-by: Alexander Holler --- arch/arm/mach-omap2/pdata-quirks.c | 8 drivers/pwm/pwm-tipwmss.c | 5 + 2 files changed, 13 insertions(+) diff --git a/arch/arm/mach-omap2/pdata-quirks.c b/arch/arm/mach-omap2/pdata-quirks.c index c33e07e..80becdb 100644 --- a/arch/arm/mach-omap2/pdata

[RFC PATCH 6/9] dt: deps: WIP: well done drivers

2014-05-12 Thread Alexander Holler
-by: Alexander Holler --- drivers/dma/mv_xor.c | 2 +- drivers/dma/omap-dma.c | 2 +- drivers/gpio/gpio-mvebu.c | 2 +- drivers/gpio/gpio-twl4030.c| 2 +- drivers/i2c/busses/i2c-omap.c | 2 +- drivers/iommu/omap-iommu.c

[RFC PATCH 8/9] dt: deps: dts: kirkwood: dockstar: add dependency ehci -> usb power regulator

2014-05-12 Thread Alexander Holler
with the fact that the regulator will be initialized after ehci. Fix this by adding one dependency to the .dts. Signed-off-by: Alexander Holler --- arch/arm/boot/dts/kirkwood-dockstar.dts | 4 arch/arm/boot/dts/kirkwood.dtsi | 2 +- 2 files changed, 5 insertions(+), 1 deletion

[RFC PATCH 5/9] dt: deps: register drivers based on the initialization order based on DT

2014-05-12 Thread Alexander Holler
rnel platform drivers, instead of just initcalls. This will be easy if all platform drivers have become "well done". Unfortunately there are some drivers which will need quiet some changes to become "well done". As an example for such an initcall look e.g. at drivers/tty/serial/

[RFC PATCH 3/9] dt: deps: dtc: Add option to print initialization order

2014-05-12 Thread Alexander Holler
to for cycles in the dependency graph, this is now done too. Signed-off-by: Alexander Holler --- scripts/dtc/dependencies.c | 346 + scripts/dtc/dtc.c | 24 +++- scripts/dtc/dtc.h | 2 + 3 files changed, 371 insertions(+), 1 deletion

[RFC PATCH 4/9] dt: deps: dtc: Add option to print dependency graph as dot (Graphviz)

2014-05-12 Thread Alexander Holler
. E.g. CROSS_COMPILE=gcc-foo ARCH=arm make foo.dtb scripts/dtc/dtc -I dtb -T arch/arm/boot/dts/foo.dtb would print the dot file. Signed-off-by: Alexander Holler --- scripts/dtc/dependencies.c | 48 -- scripts/dtc/dtc.c | 19

[RFC PATCH 2/9] dt: deps: dependency based device creation

2014-05-12 Thread Alexander Holler
/drivers should be created/initialized. Signed-off-by: Alexander Holler --- arch/arm/kernel/setup.c | 20 +- drivers/of/Kconfig | 10 + drivers/of/Makefile | 1 + drivers/of/of_dependencies.c| 403 drivers/of/platform.c

[RFC PATCH 1/9] dt: deps: dtc: Automatically add new property 'dependencies' which contains a list of referenced phandles

2014-05-12 Thread Alexander Holler
. References to phandles of parent or child nodes will not be added to this property, because this information is already contained in the blob (in the form of the tree itself). No dependencies to disabled nodes will be added. Signed-off-by: Alexander Holler --- scripts/dtc/Makefile | 3

[RFC PATCH 0/9] dt: dependencies (for deterministic driver initialization order based on the DT)

2014-05-12 Thread Alexander Holler
. regulator) to the .dts. This shows how such could be done without any changes on the drivers source code. If you ask why I did those patches: For the same reason a mountain climber does climb a mountain. That also explains my limited motivation and resources. ;) Regards, Alexander Holler LKML-d

[RFC PATCH 1/9] dt: deps: dtc: Automatically add new property 'dependencies' which contains a list of referenced phandles

2014-05-12 Thread Alexander Holler
. References to phandles of parent or child nodes will not be added to this property, because this information is already contained in the blob (in the form of the tree itself). No dependencies to disabled nodes will be added. Signed-off-by: Alexander Holler hol...@ahsoftware.de --- scripts/dtc

[RFC PATCH 0/9] dt: dependencies (for deterministic driver initialization order based on the DT)

2014-05-12 Thread Alexander Holler
how such could be done without any changes on the drivers source code. If you ask why I did those patches: For the same reason a mountain climber does climb a mountain. That also explains my limited motivation and resources. ;) Regards, Alexander Holler LKML-disclaimer (unfortunately

[RFC PATCH 2/9] dt: deps: dependency based device creation

2014-05-12 Thread Alexander Holler
/drivers should be created/initialized. Signed-off-by: Alexander Holler hol...@ahsoftware.de --- arch/arm/kernel/setup.c | 20 +- drivers/of/Kconfig | 10 + drivers/of/Makefile | 1 + drivers/of/of_dependencies.c| 403

[RFC PATCH 3/9] dt: deps: dtc: Add option to print initialization order

2014-05-12 Thread Alexander Holler
to for cycles in the dependency graph, this is now done too. Signed-off-by: Alexander Holler hol...@ahsoftware.de --- scripts/dtc/dependencies.c | 346 + scripts/dtc/dtc.c | 24 +++- scripts/dtc/dtc.h | 2 + 3 files changed, 371 insertions

[RFC PATCH 4/9] dt: deps: dtc: Add option to print dependency graph as dot (Graphviz)

2014-05-12 Thread Alexander Holler
. E.g. CROSS_COMPILE=gcc-foo ARCH=arm make foo.dtb scripts/dtc/dtc -I dtb -T arch/arm/boot/dts/foo.dtb would print the dot file. Signed-off-by: Alexander Holler hol...@ahsoftware.de --- scripts/dtc/dependencies.c | 48 -- scripts/dtc

[RFC PATCH 5/9] dt: deps: register drivers based on the initialization order based on DT

2014-05-12 Thread Alexander Holler
initcalls. This will be easy if all platform drivers have become well done. Unfortunately there are some drivers which will need quiet some changes to become well done. As an example for such an initcall look e.g. at drivers/tty/serial/8250/8250_core.c. Signed-off-by: Alexander Holler hol

<    2   3   4   5   6   7   8   9   10   11   >