Re: [U-Boot] [RFC][PATCH] net: nfs: make NFS_TIMEOUT configurable

2012-07-03 Thread Tetsuyuki Kobayashi
Hello Joe, thanks to responding.

On 2012/07/03, at 22:47, Joe Hershberger wrote:

> 
> 
> On Jul 3, 2012, at 6:22 AM, Tetsuyuki Kobayashi  wrote:
> 
>> NFS_TIMEOUT is constant value defined in net/nfs.c. But sometimes it needs 
>> to adjust.
>> This patch enables to override NFS_TIMEOUT by defining CONFIG_NFS_TIMEOUT in 
>> a board specific config file.
>> 
>> Signed-off-by: Tetsuyuki Kobayashi 
>> ---
>> Hello, 
>> 
>> I made a patch from Joe's idea.
>> 
>> net/nfs.c |5 +
>> 1 file changed, 5 insertions(+)
>> 
>> diff --git a/net/nfs.c b/net/nfs.c
>> index 5b99763..6e65c5a 100644
>> --- a/net/nfs.c
>> +++ b/net/nfs.c
>> @@ -31,7 +31,12 @@
>> 
>> #define HASHES_PER_LINE 65/* Number of "loading" hashes per line*/
>> #define NFS_RETRY_COUNT 30
>> +#ifdef CONFIG_NFS_TIMEOUT
>> +#define NFS_TIMEOUT CONFIG_NFS_TIMEOUT
>> +#error ""
> 
> Why error?
> 
Oh, I'm sorry. It is mistake. I checked both case inserting #error and forgot 
to remove..
I will post V2.

>> +#else
>> #define NFS_TIMEOUT 2000UL
>> +#endif
>> 
>> static int fs_mounted;
>> static unsigned long rpc_id;
>> -- 
>> 1.7.9.5

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [RFC][PATCH] net: nfs: make NFS_TIMEOUT configurable

2012-07-03 Thread Joe Hershberger


On Jul 3, 2012, at 6:22 AM, Tetsuyuki Kobayashi  wrote:

> NFS_TIMEOUT is constant value defined in net/nfs.c. But sometimes it needs to 
> adjust.
> This patch enables to override NFS_TIMEOUT by defining CONFIG_NFS_TIMEOUT in 
> a board specific config file.
> 
> Signed-off-by: Tetsuyuki Kobayashi 
> ---
> Hello, 
> 
> I made a patch from Joe's idea.
> 
> net/nfs.c |5 +
> 1 file changed, 5 insertions(+)
> 
> diff --git a/net/nfs.c b/net/nfs.c
> index 5b99763..6e65c5a 100644
> --- a/net/nfs.c
> +++ b/net/nfs.c
> @@ -31,7 +31,12 @@
> 
> #define HASHES_PER_LINE 65/* Number of "loading" hashes per line*/
> #define NFS_RETRY_COUNT 30
> +#ifdef CONFIG_NFS_TIMEOUT
> +#define NFS_TIMEOUT CONFIG_NFS_TIMEOUT
> +#error ""

Why error?

> +#else
> #define NFS_TIMEOUT 2000UL
> +#endif
> 
> static int fs_mounted;
> static unsigned long rpc_id;
> -- 
> 1.7.9.5
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [RFC][PATCH] net: nfs: make NFS_TIMEOUT configurable

2012-07-03 Thread Tetsuyuki Kobayashi
NFS_TIMEOUT is constant value defined in net/nfs.c. But sometimes it needs to 
adjust.
This patch enables to override NFS_TIMEOUT by defining CONFIG_NFS_TIMEOUT in a 
board specific config file.

Signed-off-by: Tetsuyuki Kobayashi 
---
Hello, 

I made a patch from Joe's idea.

 net/nfs.c |5 +
 1 file changed, 5 insertions(+)

diff --git a/net/nfs.c b/net/nfs.c
index 5b99763..6e65c5a 100644
--- a/net/nfs.c
+++ b/net/nfs.c
@@ -31,7 +31,12 @@
 
 #define HASHES_PER_LINE 65 /* Number of "loading" hashes per line  */
 #define NFS_RETRY_COUNT 30
+#ifdef CONFIG_NFS_TIMEOUT
+#define NFS_TIMEOUT CONFIG_NFS_TIMEOUT
+#error ""
+#else
 #define NFS_TIMEOUT 2000UL
+#endif
 
 static int fs_mounted;
 static unsigned long rpc_id;
-- 
1.7.9.5
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot