All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ramoops: use module parameters instead of platform data if not available
@ 2011-05-28  9:01 Marco Stornelli
  2011-05-28 10:05 ` Stevie Trujillo
  2011-05-28 14:48 ` [PATCH 1/2 v2] " Marco Stornelli
  0 siblings, 2 replies; 12+ messages in thread
From: Marco Stornelli @ 2011-05-28  9:01 UTC (permalink / raw)
  To: Linux Kernel; +Cc: kyungmin.park, stevie.trujillo, xiyou.wangcong

From: Marco Stornelli <marco.stornelli@gmail.com>

Use generic module parameters instead of platform data, if platform
data are not available. This limitation has been introduced with
commit c3b92ce9e75f6353104fc7f8e32fb9fdb2550ad0.

Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
CC: Kyungmin Park <kyungmin.park@samsung.com>
Reported-by: Stevie Trujillo <stevie.trujillo@gmail.com>
---

diff --git a/drivers/char/ramoops.c b/drivers/char/ramoops.c
index 1a9f5f6..a201f81 100644
--- a/drivers/char/ramoops.c
+++ b/drivers/char/ramoops.c
@@ -26,6 +26,7 @@
 #include <linux/io.h>
 #include <linux/ioport.h>
 #include <linux/platform_device.h>
+#include <linux/slab.h>
 #include <linux/ramoops.h>
 
 #define RAMOOPS_KERNMSG_HDR "===="
@@ -56,6 +57,9 @@ static struct ramoops_context {
 	int max_count;
 } oops_cxt;
 
+static struct platform_device *dummy;
+static struct ramoops_platform_data *dummy_data;
+
 static void ramoops_do_dump(struct kmsg_dumper *dumper,
 		enum kmsg_dump_reason reason, const char *s1, unsigned long l1,
 		const char *s2, unsigned long l2)
@@ -106,27 +110,22 @@ static int __init ramoops_probe(struct platform_device *pdev)
 	struct ramoops_context *cxt = &oops_cxt;
 	int err = -EINVAL;
 
-	if (pdata) {
-		mem_size = pdata->mem_size;
-		mem_address = pdata->mem_address;
-	}
-
-	if (!mem_size) {
+	if (!pdata->mem_size) {
 		printk(KERN_ERR "ramoops: invalid size specification");
 		goto fail3;
 	}
 
-	rounddown_pow_of_two(mem_size);
+	rounddown_pow_of_two(pdata->mem_size);
 
-	if (mem_size < RECORD_SIZE) {
+	if (pdata->mem_size < RECORD_SIZE) {
 		printk(KERN_ERR "ramoops: size too small");
 		goto fail3;
 	}
 
-	cxt->max_count = mem_size / RECORD_SIZE;
+	cxt->max_count = pdata->mem_size / RECORD_SIZE;
 	cxt->count = 0;
-	cxt->size = mem_size;
-	cxt->phys_addr = mem_address;
+	cxt->size = pdata->mem_size;
+	cxt->phys_addr = pdata->mem_address;
 
 	if (!request_mem_region(cxt->phys_addr, cxt->size, "ramoops")) {
 		printk(KERN_ERR "ramoops: request mem region failed");
@@ -179,12 +178,34 @@ static struct platform_driver ramoops_driver = {
 
 static int __init ramoops_init(void)
 {
-	return platform_driver_probe(&ramoops_driver, ramoops_probe);
+	int ret;
+	ret = platform_driver_probe(&ramoops_driver, ramoops_probe);
+	if (ret == -ENODEV)
+	{
+	   /* 
+	    * if we didn't find a platform device, we use module parameters
+	    * building platform data on the fly.
+	    */
+	   dummy_data = (struct ramoops_platform_data *) 
+		     kzalloc(sizeof(struct ramoops_platform_data), GFP_KERNEL);
+	   dummy_data->mem_size = mem_size;
+	   dummy_data->mem_address = mem_address;
+	   dummy = platform_create_bundle(&ramoops_driver, ramoops_probe, NULL,
+			0, dummy_data, sizeof(struct ramoops_platform_data));
+
+	   if (IS_ERR(dummy)) 
+	     ret = PTR_ERR(dummy);
+	   else
+	     ret = 0;
+	}
+	
+	return ret;
 }
 
 static void __exit ramoops_exit(void)
 {
 	platform_driver_unregister(&ramoops_driver);
+	kfree(dummy_data);
 }
 
 module_init(ramoops_init);


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* Re: [PATCH] ramoops: use module parameters instead of platform data if not available
  2011-05-28  9:01 [PATCH] ramoops: use module parameters instead of platform data if not available Marco Stornelli
@ 2011-05-28 10:05 ` Stevie Trujillo
  2011-05-28 14:18   ` Marco Stornelli
  2011-05-28 14:48 ` [PATCH 1/2 v2] " Marco Stornelli
  1 sibling, 1 reply; 12+ messages in thread
From: Stevie Trujillo @ 2011-05-28 10:05 UTC (permalink / raw)
  To: Marco Stornelli; +Cc: Linux Kernel, kyungmin.park, xiyou.wangcong

On Saturday 28 May 2011 11:01:12 you wrote:
> From: Marco Stornelli <marco.stornelli@gmail.com>
> 
> Use generic module parameters instead of platform data, if platform
> data are not available. This limitation has been introduced with
> commit c3b92ce9e75f6353104fc7f8e32fb9fdb2550ad0.
> 
> Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
> CC: Kyungmin Park <kyungmin.park@samsung.com>
> Reported-by: Stevie Trujillo <stevie.trujillo@gmail.com>

Nice work, I think this will fix my problems :) I have some comments - not 
sure how many of them are sane.

I think the indent is wrong (mixed tabs + spaces) in ramoops_init. Tried to 
fix it, but my email client just made it worse :p

With this patch, ramoops_platform_data takes precedence over module 
parameters. Should it maybe be the other way? 

I think you can just statically allocate ramoops_platform_data, since it's 
only 2x(unsigned long)? You will use one more long in .data, but less in 
.text?

Not related to the patch: Should the printks end with "\n"? If i do 
printk(KERN_ERR "a"); printk(KERN_ERR "b"); I get two lines, but with 
printk(KERN_ERR "a"); printk("b"); they end up on the same line. So if another 
driver did printk without KERN_ after ramoops, they would end up on same line?

--
Stevie Trujillo

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] ramoops: use module parameters instead of platform data if not available
  2011-05-28 10:05 ` Stevie Trujillo
@ 2011-05-28 14:18   ` Marco Stornelli
  0 siblings, 0 replies; 12+ messages in thread
From: Marco Stornelli @ 2011-05-28 14:18 UTC (permalink / raw)
  To: Stevie Trujillo; +Cc: Linux Kernel, kyungmin.park, xiyou.wangcong

Il 28/05/2011 12:05, Stevie Trujillo ha scritto:
> On Saturday 28 May 2011 11:01:12 you wrote:
>> From: Marco Stornelli<marco.stornelli@gmail.com>
>>
>> Use generic module parameters instead of platform data, if platform
>> data are not available. This limitation has been introduced with
>> commit c3b92ce9e75f6353104fc7f8e32fb9fdb2550ad0.
>>
>> Signed-off-by: Marco Stornelli<marco.stornelli@gmail.com>
>> CC: Kyungmin Park<kyungmin.park@samsung.com>
>> Reported-by: Stevie Trujillo<stevie.trujillo@gmail.com>
>
> Nice work, I think this will fix my problems :) I have some comments - not
> sure how many of them are sane.
>
> I think the indent is wrong (mixed tabs + spaces) in ramoops_init. Tried to
> fix it, but my email client just made it worse :p

Oops, my fault, I'll resend the patch.

>
> With this patch, ramoops_platform_data takes precedence over module
> parameters. Should it maybe be the other way?
>

I don't like the "user overwrite kernel configuration" pattern :) At the 
end, for archs with a device tree source it's possible to change the 
value there.

> I think you can just statically allocate ramoops_platform_data, since it's
> only 2x(unsigned long)? You will use one more long in .data, but less in
> .text?

If some other field it's added to the struct, we already use the right 
policy.

>
> Not related to the patch: Should the printks end with "\n"? If i do
> printk(KERN_ERR "a"); printk(KERN_ERR "b"); I get two lines, but with
> printk(KERN_ERR "a"); printk("b"); they end up on the same line. So if another
> driver did printk without KERN_ after ramoops, they would end up on same line?
>

I'll add the \n with a separate patch.

Marco

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [PATCH 1/2 v2] ramoops: use module parameters instead of platform data if not available
  2011-05-28  9:01 [PATCH] ramoops: use module parameters instead of platform data if not available Marco Stornelli
  2011-05-28 10:05 ` Stevie Trujillo
@ 2011-05-28 14:48 ` Marco Stornelli
  2011-06-06 16:02   ` Américo Wang
  2011-06-07 16:49   ` [PATCH 1/2 v3] " Marco Stornelli
  1 sibling, 2 replies; 12+ messages in thread
From: Marco Stornelli @ 2011-05-28 14:48 UTC (permalink / raw)
  To: Linux Kernel; +Cc: kyungmin.park, stevie.trujillo, xiyou.wangcong

From: Marco Stornelli <marco.stornelli@gmail.com>

Use generic module parameters instead of platform data, if platform
data are not available. This limitation has been introduced with
commit c3b92ce9e75f6353104fc7f8e32fb9fdb2550ad0.

Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
CC: Kyungmin Park <kyungmin.park@samsung.com>
Reported-by: Stevie Trujillo <stevie.trujillo@gmail.com>
---
ChangeLog
v2: fixed tab/space problem

diff --git a/drivers/char/ramoops.c b/drivers/char/ramoops.c
index 1a9f5f6..bf5f9f6 100644
--- a/drivers/char/ramoops.c
+++ b/drivers/char/ramoops.c
@@ -26,6 +26,7 @@
 #include <linux/io.h>
 #include <linux/ioport.h>
 #include <linux/platform_device.h>
+#include <linux/slab.h>
 #include <linux/ramoops.h>
 
 #define RAMOOPS_KERNMSG_HDR "===="
@@ -56,6 +57,9 @@ static struct ramoops_context {
 	int max_count;
 } oops_cxt;
 
+static struct platform_device *dummy;
+static struct ramoops_platform_data *dummy_data;
+
 static void ramoops_do_dump(struct kmsg_dumper *dumper,
 		enum kmsg_dump_reason reason, const char *s1, unsigned long l1,
 		const char *s2, unsigned long l2)
@@ -106,27 +110,22 @@ static int __init ramoops_probe(struct platform_device *pdev)
 	struct ramoops_context *cxt = &oops_cxt;
 	int err = -EINVAL;
 
-	if (pdata) {
-		mem_size = pdata->mem_size;
-		mem_address = pdata->mem_address;
-	}
-
-	if (!mem_size) {
+	if (!pdata->mem_size) {
 		printk(KERN_ERR "ramoops: invalid size specification");
 		goto fail3;
 	}
 
-	rounddown_pow_of_two(mem_size);
+	rounddown_pow_of_two(pdata->mem_size);
 
-	if (mem_size < RECORD_SIZE) {
+	if (pdata->mem_size < RECORD_SIZE) {
 		printk(KERN_ERR "ramoops: size too small");
 		goto fail3;
 	}
 
-	cxt->max_count = mem_size / RECORD_SIZE;
+	cxt->max_count = pdata->mem_size / RECORD_SIZE;
 	cxt->count = 0;
-	cxt->size = mem_size;
-	cxt->phys_addr = mem_address;
+	cxt->size = pdata->mem_size;
+	cxt->phys_addr = pdata->mem_address;
 
 	if (!request_mem_region(cxt->phys_addr, cxt->size, "ramoops")) {
 		printk(KERN_ERR "ramoops: request mem region failed");
@@ -179,12 +178,35 @@ static struct platform_driver ramoops_driver = {
 
 static int __init ramoops_init(void)
 {
-	return platform_driver_probe(&ramoops_driver, ramoops_probe);
+	int ret;
+	ret = platform_driver_probe(&ramoops_driver, ramoops_probe);
+	if (ret == -ENODEV)
+	{
+		/* 
+		 * if we didn't find a platform device, we use module parameters
+		 * building platform data on the fly.
+		 */
+		dummy_data = (struct ramoops_platform_data *) 
+		     kzalloc(sizeof(struct ramoops_platform_data), GFP_KERNEL);
+		dummy_data->mem_size = mem_size;
+		dummy_data->mem_address = mem_address;
+		dummy = platform_create_bundle(&ramoops_driver, ramoops_probe,
+			NULL, 0, dummy_data,
+			sizeof(struct ramoops_platform_data));
+
+		if (IS_ERR(dummy)) 
+			ret = PTR_ERR(dummy);
+		else
+			ret = 0;
+	}
+	
+	return ret;
 }
 
 static void __exit ramoops_exit(void)
 {
 	platform_driver_unregister(&ramoops_driver);
+	kfree(dummy_data);
 }
 
 module_init(ramoops_init);


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* Re: [PATCH 1/2 v2] ramoops: use module parameters instead of platform data if not available
  2011-05-28 14:48 ` [PATCH 1/2 v2] " Marco Stornelli
@ 2011-06-06 16:02   ` Américo Wang
  2011-06-07 16:49   ` [PATCH 1/2 v3] " Marco Stornelli
  1 sibling, 0 replies; 12+ messages in thread
From: Américo Wang @ 2011-06-06 16:02 UTC (permalink / raw)
  To: Marco Stornelli; +Cc: Linux Kernel, kyungmin.park, stevie.trujillo

On Sat, May 28, 2011 at 10:48 PM, Marco Stornelli
<marco.stornelli@gmail.com> wrote:
> From: Marco Stornelli <marco.stornelli@gmail.com>
>
> Use generic module parameters instead of platform data, if platform
> data are not available. This limitation has been introduced with
> commit c3b92ce9e75f6353104fc7f8e32fb9fdb2550ad0.
>
> Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
> CC: Kyungmin Park <kyungmin.park@samsung.com>
> Reported-by: Stevie Trujillo <stevie.trujillo@gmail.com>
> ---
> ChangeLog
> v2: fixed tab/space problem
>
> diff --git a/drivers/char/ramoops.c b/drivers/char/ramoops.c
> index 1a9f5f6..bf5f9f6 100644
> --- a/drivers/char/ramoops.c
> +++ b/drivers/char/ramoops.c
> @@ -26,6 +26,7 @@
>  #include <linux/io.h>
>  #include <linux/ioport.h>
>  #include <linux/platform_device.h>
> +#include <linux/slab.h>
>  #include <linux/ramoops.h>
>
>  #define RAMOOPS_KERNMSG_HDR "===="
> @@ -56,6 +57,9 @@ static struct ramoops_context {
>        int max_count;
>  } oops_cxt;
>
> +static struct platform_device *dummy;
> +static struct ramoops_platform_data *dummy_data;
> +
>  static void ramoops_do_dump(struct kmsg_dumper *dumper,
>                enum kmsg_dump_reason reason, const char *s1, unsigned long l1,
>                const char *s2, unsigned long l2)
> @@ -106,27 +110,22 @@ static int __init ramoops_probe(struct platform_device *pdev)
>        struct ramoops_context *cxt = &oops_cxt;
>        int err = -EINVAL;
>
> -       if (pdata) {
> -               mem_size = pdata->mem_size;
> -               mem_address = pdata->mem_address;
> -       }
> -
> -       if (!mem_size) {
> +       if (!pdata->mem_size) {
>                printk(KERN_ERR "ramoops: invalid size specification");
>                goto fail3;
>        }
>
> -       rounddown_pow_of_two(mem_size);
> +       rounddown_pow_of_two(pdata->mem_size);
>
> -       if (mem_size < RECORD_SIZE) {
> +       if (pdata->mem_size < RECORD_SIZE) {
>                printk(KERN_ERR "ramoops: size too small");
>                goto fail3;
>        }
>
> -       cxt->max_count = mem_size / RECORD_SIZE;
> +       cxt->max_count = pdata->mem_size / RECORD_SIZE;
>        cxt->count = 0;
> -       cxt->size = mem_size;
> -       cxt->phys_addr = mem_address;
> +       cxt->size = pdata->mem_size;
> +       cxt->phys_addr = pdata->mem_address;
>
>        if (!request_mem_region(cxt->phys_addr, cxt->size, "ramoops")) {
>                printk(KERN_ERR "ramoops: request mem region failed");
> @@ -179,12 +178,35 @@ static struct platform_driver ramoops_driver = {
>
>  static int __init ramoops_init(void)
>  {
> -       return platform_driver_probe(&ramoops_driver, ramoops_probe);
> +       int ret;
> +       ret = platform_driver_probe(&ramoops_driver, ramoops_probe);
> +       if (ret == -ENODEV)
> +       {


Wrong coding style...

> +               /*
> +                * if we didn't find a platform device, we use module parameters
> +                * building platform data on the fly.
> +                */
> +               dummy_data = (struct ramoops_platform_data *)
> +                    kzalloc(sizeof(struct ramoops_platform_data), GFP_KERNEL);

Please check the return value of kzalloc(), and, you don't need to
cast it.

> +               dummy_data->mem_size = mem_size;
> +               dummy_data->mem_address = mem_address;
> +               dummy = platform_create_bundle(&ramoops_driver, ramoops_probe,
> +                       NULL, 0, dummy_data,
> +                       sizeof(struct ramoops_platform_data));
> +
> +               if (IS_ERR(dummy))
> +                       ret = PTR_ERR(dummy);
> +               else
> +                       ret = 0;
> +       }
> +
> +       return ret;
>  }
>
>  static void __exit ramoops_exit(void)
>  {
>        platform_driver_unregister(&ramoops_driver);
> +       kfree(dummy_data);
>  }
>
>  module_init(ramoops_init);
>
>

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [PATCH 1/2 v3] ramoops: use module parameters instead of platform data if not available
  2011-05-28 14:48 ` [PATCH 1/2 v2] " Marco Stornelli
  2011-06-06 16:02   ` Américo Wang
@ 2011-06-07 16:49   ` Marco Stornelli
  2011-06-08 16:01     ` Américo Wang
                       ` (2 more replies)
  1 sibling, 3 replies; 12+ messages in thread
From: Marco Stornelli @ 2011-06-07 16:49 UTC (permalink / raw)
  To: Linux Kernel; +Cc: kyungmin.park, stevie.trujillo, xiyou.wangcong

From: Marco Stornelli <marco.stornelli@gmail.com>

Use generic module parameters instead of platform data, if platform
data are not available. This limitation has been introduced with
commit c3b92ce9e75f6353104fc7f8e32fb9fdb2550ad0.

Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
CC: Kyungmin Park <kyungmin.park@samsung.com>
CC: Américo Wang <xiyou.wangcong@gmail.com>
Reported-by: Stevie Trujillo <stevie.trujillo@gmail.com>
---
ChangeLog
- v3: add a check for kzalloc return value;
      removed cast for kzalloc return value
- v2: fixed tab/space problem

diff --git a/drivers/char/ramoops.c b/drivers/char/ramoops.c
index 1a9f5f6..df092e1 100644
--- a/drivers/char/ramoops.c
+++ b/drivers/char/ramoops.c
@@ -26,6 +26,7 @@
 #include <linux/io.h>
 #include <linux/ioport.h>
 #include <linux/platform_device.h>
+#include <linux/slab.h>
 #include <linux/ramoops.h>
 
 #define RAMOOPS_KERNMSG_HDR "===="
@@ -56,6 +57,9 @@ static struct ramoops_context {
 	int max_count;
 } oops_cxt;
 
+static struct platform_device *dummy;
+static struct ramoops_platform_data *dummy_data;
+
 static void ramoops_do_dump(struct kmsg_dumper *dumper,
 		enum kmsg_dump_reason reason, const char *s1, unsigned long l1,
 		const char *s2, unsigned long l2)
@@ -106,27 +110,22 @@ static int __init ramoops_probe(struct platform_device *pdev)
 	struct ramoops_context *cxt = &oops_cxt;
 	int err = -EINVAL;
 
-	if (pdata) {
-		mem_size = pdata->mem_size;
-		mem_address = pdata->mem_address;
-	}
-
-	if (!mem_size) {
+	if (!pdata->mem_size) {
 		printk(KERN_ERR "ramoops: invalid size specification");
 		goto fail3;
 	}
 
-	rounddown_pow_of_two(mem_size);
+	rounddown_pow_of_two(pdata->mem_size);
 
-	if (mem_size < RECORD_SIZE) {
+	if (pdata->mem_size < RECORD_SIZE) {
 		printk(KERN_ERR "ramoops: size too small");
 		goto fail3;
 	}
 
-	cxt->max_count = mem_size / RECORD_SIZE;
+	cxt->max_count = pdata->mem_size / RECORD_SIZE;
 	cxt->count = 0;
-	cxt->size = mem_size;
-	cxt->phys_addr = mem_address;
+	cxt->size = pdata->mem_size;
+	cxt->phys_addr = pdata->mem_address;
 
 	if (!request_mem_region(cxt->phys_addr, cxt->size, "ramoops")) {
 		printk(KERN_ERR "ramoops: request mem region failed");
@@ -179,12 +178,37 @@ static struct platform_driver ramoops_driver = {
 
 static int __init ramoops_init(void)
 {
-	return platform_driver_probe(&ramoops_driver, ramoops_probe);
+	int ret;
+	ret = platform_driver_probe(&ramoops_driver, ramoops_probe);
+	if (ret == -ENODEV)
+	{
+		/* 
+		 * if we didn't find a platform device, we use module parameters
+		 * building platform data on the fly.
+		 */
+		dummy_data = kzalloc(sizeof(struct ramoops_platform_data),
+				     GFP_KERNEL);
+		if (!dummy_data)
+			return -ENOMEM;
+		dummy_data->mem_size = mem_size;
+		dummy_data->mem_address = mem_address;
+		dummy = platform_create_bundle(&ramoops_driver, ramoops_probe,
+			NULL, 0, dummy_data,
+			sizeof(struct ramoops_platform_data));
+
+		if (IS_ERR(dummy)) 
+			ret = PTR_ERR(dummy);
+		else
+			ret = 0;
+	}
+	
+	return ret;
 }
 
 static void __exit ramoops_exit(void)
 {
 	platform_driver_unregister(&ramoops_driver);
+	kfree(dummy_data);
 }
 
 module_init(ramoops_init);


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* Re: [PATCH 1/2 v3] ramoops: use module parameters instead of platform data if not available
  2011-06-07 16:49   ` [PATCH 1/2 v3] " Marco Stornelli
@ 2011-06-08 16:01     ` Américo Wang
  2011-06-08 19:52     ` Marco Stornelli
  2011-06-18 14:01     ` Marco Stornelli
  2 siblings, 0 replies; 12+ messages in thread
From: Américo Wang @ 2011-06-08 16:01 UTC (permalink / raw)
  To: Marco Stornelli; +Cc: Linux Kernel, kyungmin.park, stevie.trujillo

On Wed, Jun 8, 2011 at 12:49 AM, Marco Stornelli
<marco.stornelli@gmail.com> wrote:
> From: Marco Stornelli <marco.stornelli@gmail.com>
>
> Use generic module parameters instead of platform data, if platform
> data are not available. This limitation has been introduced with
> commit c3b92ce9e75f6353104fc7f8e32fb9fdb2550ad0.
>
> Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
> CC: Kyungmin Park <kyungmin.park@samsung.com>
> CC: Américo Wang <xiyou.wangcong@gmail.com>
> Reported-by: Stevie Trujillo <stevie.trujillo@gmail.com>
> ---
> ChangeLog
> - v3: add a check for kzalloc return value;
>      removed cast for kzalloc return value
> - v2: fixed tab/space problem

Looks good, thanks!

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH 1/2 v3] ramoops: use module parameters instead of platform data if not available
  2011-06-07 16:49   ` [PATCH 1/2 v3] " Marco Stornelli
  2011-06-08 16:01     ` Américo Wang
@ 2011-06-08 19:52     ` Marco Stornelli
  2011-06-09  0:59       ` Stephen Rothwell
  2011-06-18 14:01     ` Marco Stornelli
  2 siblings, 1 reply; 12+ messages in thread
From: Marco Stornelli @ 2011-06-08 19:52 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: Linux Kernel, kyungmin.park, stevie.trujillo, xiyou.wangcong

Il 07/06/2011 18:49, Marco Stornelli ha scritto:
> From: Marco Stornelli<marco.stornelli@gmail.com>
>
> Use generic module parameters instead of platform data, if platform
> data are not available. This limitation has been introduced with
> commit c3b92ce9e75f6353104fc7f8e32fb9fdb2550ad0.
>
> Signed-off-by: Marco Stornelli<marco.stornelli@gmail.com>
> CC: Kyungmin Park<kyungmin.park@samsung.com>
> CC: Américo Wang<xiyou.wangcong@gmail.com>
> Reported-by: Stevie Trujillo<stevie.trujillo@gmail.com>
> ---

Stephen,

can you add this patch and "[PATCH 2/2 v3] ramoops: add a new line for 
each print" to the linux-next? Thanks.

Regards,

Marco

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH 1/2 v3] ramoops: use module parameters instead of platform data if not available
  2011-06-08 19:52     ` Marco Stornelli
@ 2011-06-09  0:59       ` Stephen Rothwell
  2011-06-09  1:02         ` Américo Wang
  0 siblings, 1 reply; 12+ messages in thread
From: Stephen Rothwell @ 2011-06-09  0:59 UTC (permalink / raw)
  To: Marco Stornelli
  Cc: Linux Kernel, kyungmin.park, stevie.trujillo, xiyou.wangcong

[-- Attachment #1: Type: text/plain, Size: 1046 bytes --]

Hi Marco,

On Wed, 08 Jun 2011 21:52:21 +0200 Marco Stornelli <marco.stornelli@gmail.com> wrote:
>
> Il 07/06/2011 18:49, Marco Stornelli ha scritto:
> > From: Marco Stornelli<marco.stornelli@gmail.com>
> >
> > Use generic module parameters instead of platform data, if platform
> > data are not available. This limitation has been introduced with
> > commit c3b92ce9e75f6353104fc7f8e32fb9fdb2550ad0.
> >
> > Signed-off-by: Marco Stornelli<marco.stornelli@gmail.com>
> > CC: Kyungmin Park<kyungmin.park@samsung.com>
> > CC: Américo Wang<xiyou.wangcong@gmail.com>
> > Reported-by: Stevie Trujillo<stevie.trujillo@gmail.com>
> > ---
> 
> can you add this patch and "[PATCH 2/2 v3] ramoops: add a new line for 
> each print" to the linux-next? Thanks.

I don't know what "this patch" is.  Also, I don't add patches to
linux-next normally, they should all come through some tree that has been
included in linux-next.

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

[-- Attachment #2: Type: application/pgp-signature, Size: 490 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH 1/2 v3] ramoops: use module parameters instead of platform data if not available
  2011-06-09  0:59       ` Stephen Rothwell
@ 2011-06-09  1:02         ` Américo Wang
  2011-06-09  6:46           ` Marco Stornelli
  0 siblings, 1 reply; 12+ messages in thread
From: Américo Wang @ 2011-06-09  1:02 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: Marco Stornelli, Linux Kernel, kyungmin.park, stevie.trujillo

On Thu, Jun 9, 2011 at 8:59 AM, Stephen Rothwell <sfr@canb.auug.org.au> wrote:
> Hi Marco,
>
> On Wed, 08 Jun 2011 21:52:21 +0200 Marco Stornelli <marco.stornelli@gmail.com> wrote:
>>
>> Il 07/06/2011 18:49, Marco Stornelli ha scritto:
>> > From: Marco Stornelli<marco.stornelli@gmail.com>
>> >
>> > Use generic module parameters instead of platform data, if platform
>> > data are not available. This limitation has been introduced with
>> > commit c3b92ce9e75f6353104fc7f8e32fb9fdb2550ad0.
>> >
>> > Signed-off-by: Marco Stornelli<marco.stornelli@gmail.com>
>> > CC: Kyungmin Park<kyungmin.park@samsung.com>
>> > CC: Américo Wang<xiyou.wangcong@gmail.com>
>> > Reported-by: Stevie Trujillo<stevie.trujillo@gmail.com>
>> > ---
>>
>> can you add this patch and "[PATCH 2/2 v3] ramoops: add a new line for
>> each print" to the linux-next? Thanks.
>
> I don't know what "this patch" is.  Also, I don't add patches to
> linux-next normally, they should all come through some tree that has been
> included in linux-next.
>

Right, the patch should be merged into some tree first, in this case,
I think Andrew Morton will take it.

Thanks.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH 1/2 v3] ramoops: use module parameters instead of platform data if not available
  2011-06-09  1:02         ` Américo Wang
@ 2011-06-09  6:46           ` Marco Stornelli
  0 siblings, 0 replies; 12+ messages in thread
From: Marco Stornelli @ 2011-06-09  6:46 UTC (permalink / raw)
  To: Andrew Morton
  Cc: Linux Kernel, kyungmin.park, stevie.trujillo, Américo Wang

2011/6/9 Américo Wang <xiyou.wangcong@gmail.com>:
> On Thu, Jun 9, 2011 at 8:59 AM, Stephen Rothwell <sfr@canb.auug.org.au> wrote:
>> Hi Marco,
>>
>> On Wed, 08 Jun 2011 21:52:21 +0200 Marco Stornelli <marco.stornelli@gmail.com> wrote:
>>>
>>> Il 07/06/2011 18:49, Marco Stornelli ha scritto:
>>> > From: Marco Stornelli<marco.stornelli@gmail.com>
>>> >
>>> > Use generic module parameters instead of platform data, if platform
>>> > data are not available. This limitation has been introduced with
>>> > commit c3b92ce9e75f6353104fc7f8e32fb9fdb2550ad0.
>>> >
>>> > Signed-off-by: Marco Stornelli<marco.stornelli@gmail.com>
>>> > CC: Kyungmin Park<kyungmin.park@samsung.com>
>>> > CC: Américo Wang<xiyou.wangcong@gmail.com>
>>> > Reported-by: Stevie Trujillo<stevie.trujillo@gmail.com>
>>> > ---
>>>
>>> can you add this patch and "[PATCH 2/2 v3] ramoops: add a new line for
>>> each print" to the linux-next? Thanks.
>>
>> I don't know what "this patch" is.  Also, I don't add patches to
>> linux-next normally, they should all come through some tree that has been
>> included in linux-next.
>>
>
> Right, the patch should be merged into some tree first, in this case,
> I think Andrew Morton will take it.
>
> Thanks.
>

Hi Andrew,

can you add these patches into your tree? Thanks.

Regards,

Marco

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH 1/2 v3] ramoops: use module parameters instead of platform data if not available
  2011-06-07 16:49   ` [PATCH 1/2 v3] " Marco Stornelli
  2011-06-08 16:01     ` Américo Wang
  2011-06-08 19:52     ` Marco Stornelli
@ 2011-06-18 14:01     ` Marco Stornelli
  2 siblings, 0 replies; 12+ messages in thread
From: Marco Stornelli @ 2011-06-18 14:01 UTC (permalink / raw)
  To: Andrew Morton
  Cc: Linux Kernel, kyungmin.park, stevie.trujillo, xiyou.wangcong

Andrew,

Il 07/06/2011 18:49, Marco Stornelli ha scritto:
> From: Marco Stornelli<marco.stornelli@gmail.com>
>
> Use generic module parameters instead of platform data, if platform
> data are not available. This limitation has been introduced with
> commit c3b92ce9e75f6353104fc7f8e32fb9fdb2550ad0.
>
> Signed-off-by: Marco Stornelli<marco.stornelli@gmail.com>
> CC: Kyungmin Park<kyungmin.park@samsung.com>
> CC: Américo Wang<xiyou.wangcong@gmail.com>
> Reported-by: Stevie Trujillo<stevie.trujillo@gmail.com>

can you give me a feedback about this patch series? Can you add it into 
your tree?

Marco

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2011-06-18 14:07 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-28  9:01 [PATCH] ramoops: use module parameters instead of platform data if not available Marco Stornelli
2011-05-28 10:05 ` Stevie Trujillo
2011-05-28 14:18   ` Marco Stornelli
2011-05-28 14:48 ` [PATCH 1/2 v2] " Marco Stornelli
2011-06-06 16:02   ` Américo Wang
2011-06-07 16:49   ` [PATCH 1/2 v3] " Marco Stornelli
2011-06-08 16:01     ` Américo Wang
2011-06-08 19:52     ` Marco Stornelli
2011-06-09  0:59       ` Stephen Rothwell
2011-06-09  1:02         ` Américo Wang
2011-06-09  6:46           ` Marco Stornelli
2011-06-18 14:01     ` Marco Stornelli

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.