Re: A question on serial driver

2012-08-07 Thread Shashidhar Hiremath
thanks guys, got it to work. the receive interrupt was somehow getting disabled.

On Tue, Aug 7, 2012 at 4:12 PM, Jiri Slaby  wrote:
> A: Because it messes up the order in which people normally read text.
> Q: Why is top-posting such a bad thing?
> A: Top-posting.
> Q: What is the most annoying thing in e-mail?
>
> On 08/07/2012 11:51 AM, Shashidhar Hiremath wrote:
>> the code is a bit unclean to send directly.
>
> Whatever, just send it out. Otherwise sorry, you are on your own.
>
> regards,
> --
> js
> suse labs



-- 
regards,
Shashidhar Hiremath
--
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: A question on serial driver

2012-08-07 Thread Jiri Slaby
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

On 08/07/2012 11:51 AM, Shashidhar Hiremath wrote:
> the code is a bit unclean to send directly.

Whatever, just send it out. Otherwise sorry, you are on your own.

regards,
-- 
js
suse labs
--
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: A question on serial driver

2012-08-07 Thread richard -rw- weinberger
On Tue, Aug 7, 2012 at 11:51 AM, Shashidhar Hiremath
 wrote:
> the code is a bit unclean to send directly. But any information like
> "does driver change modes once it prompts for login"
> can be helpful for debugging since my code does not seem to work after login .

Then clean it up.
You have do to this task anyway.

> Behaviour : Driver prints charecter untill devel login on console. It
> accepts characters before login prompt but doesnot accept the
> charecters after it prompts for login. I enter the username and it is
> not displayed.

There are a gazillion things that could cause this behavior.

-- 
Thanks,
//richard
--
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: A question on serial driver

2012-08-07 Thread Shashidhar Hiremath
the code is a bit unclean to send directly. But any information like
"does driver change modes once it prompts for login"
can be helpful for debugging since my code does not seem to work after login .

Behaviour : Driver prints charecter untill devel login on console. It
accepts characters before login prompt but doesnot accept the
charecters after it prompts for login. I enter the username and it is
not displayed.

On Tue, Aug 7, 2012 at 2:38 PM, Jiri Slaby  wrote:
> On 08/07/2012 10:26 AM, Dan Luedtke wrote:
>> On Tue, 2012-08-07 at 13:52 +0530, Shashidhar Hiremath wrote:
>>> The driver for some reason does not
>>> print the content  I type on console after login prompt. Any reason
>>> why this might be happening ?
>>
>> I don't know if it is just me, but a code snippet might help
>> understanding what happens in your driver.
>
> Yea, without that we can barely help you.
>
> regards,
> --
> js
> suse labs



-- 
regards,
Shashidhar Hiremath
--
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: A question on serial driver

2012-08-07 Thread Jiri Slaby
On 08/07/2012 10:26 AM, Dan Luedtke wrote:
> On Tue, 2012-08-07 at 13:52 +0530, Shashidhar Hiremath wrote:
>> The driver for some reason does not
>> print the content  I type on console after login prompt. Any reason
>> why this might be happening ?
> 
> I don't know if it is just me, but a code snippet might help
> understanding what happens in your driver.

Yea, without that we can barely help you.

regards,
-- 
js
suse labs
--
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: A question on serial driver

2012-08-07 Thread richard -rw- weinberger
On Tue, Aug 7, 2012 at 10:49 AM, Shashidhar Hiremath
 wrote:
> Hi Richard,
>I am new to serial framework. Can you please elaborate on what you
> mean by implementing a hangup ?

struct tty_operations' hangup()

-- 
Thanks,
//richard
--
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: A question on serial driver

2012-08-07 Thread Shashidhar Hiremath
Hi Richard,
   I am new to serial framework. Can you please elaborate on what you
mean by implementing a hangup ?
On Tue, Aug 7, 2012 at 2:06 PM, richard -rw- weinberger
 wrote:
> On Tue, Aug 7, 2012 at 10:22 AM, Shashidhar Hiremath
>  wrote:
>> Hi,
>>  I have written a console driver where I also do the serial driver
>> registration and handling. The driver seems to work fine till the
>> login point(reads and writes). The driver for some reason does not
>> print the content  I type on console after login prompt. Any reason
>> why this might be happening ?
>
> login and getty do a lot of TTY black magic, maybe you forgot to implement
> something like hangup()...
> Use strace to find out what the login programs are doing.
>
> --
> Thanks,
> //richard



-- 
regards,
Shashidhar Hiremath
--
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: A question on serial driver

2012-08-07 Thread richard -rw- weinberger
On Tue, Aug 7, 2012 at 10:22 AM, Shashidhar Hiremath
 wrote:
> Hi,
>  I have written a console driver where I also do the serial driver
> registration and handling. The driver seems to work fine till the
> login point(reads and writes). The driver for some reason does not
> print the content  I type on console after login prompt. Any reason
> why this might be happening ?

login and getty do a lot of TTY black magic, maybe you forgot to implement
something like hangup()...
Use strace to find out what the login programs are doing.

-- 
Thanks,
//richard
--
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: A question on serial driver

2012-08-07 Thread Dan Luedtke
On Tue, 2012-08-07 at 13:52 +0530, Shashidhar Hiremath wrote:
> The driver for some reason does not
> print the content  I type on console after login prompt. Any reason
> why this might be happening ?

I don't know if it is just me, but a code snippet might help
understanding what happens in your driver.

regards
Dan
-- 
Dan Luedtke
http://www.danrl.de

--
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/


A question on serial driver

2012-08-07 Thread Shashidhar Hiremath
Hi,
 I have written a console driver where I also do the serial driver
registration and handling. The driver seems to work fine till the
login point(reads and writes). The driver for some reason does not
print the content  I type on console after login prompt. Any reason
why this might be happening ?

--
regards,
Shashidhar Hiremath
--
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/


A question on serial driver

2012-08-07 Thread Shashidhar Hiremath
Hi,
 I have written a console driver where I also do the serial driver
registration and handling. The driver seems to work fine till the
login point(reads and writes). The driver for some reason does not
print the content  I type on console after login prompt. Any reason
why this might be happening ?

--
regards,
Shashidhar Hiremath
--
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: A question on serial driver

2012-08-07 Thread Dan Luedtke
On Tue, 2012-08-07 at 13:52 +0530, Shashidhar Hiremath wrote:
 The driver for some reason does not
 print the content  I type on console after login prompt. Any reason
 why this might be happening ?

I don't know if it is just me, but a code snippet might help
understanding what happens in your driver.

regards
Dan
-- 
Dan Luedtke
http://www.danrl.de

--
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: A question on serial driver

2012-08-07 Thread richard -rw- weinberger
On Tue, Aug 7, 2012 at 10:22 AM, Shashidhar Hiremath
shashidh...@vayavyalabs.com wrote:
 Hi,
  I have written a console driver where I also do the serial driver
 registration and handling. The driver seems to work fine till the
 login point(reads and writes). The driver for some reason does not
 print the content  I type on console after login prompt. Any reason
 why this might be happening ?

login and getty do a lot of TTY black magic, maybe you forgot to implement
something like hangup()...
Use strace to find out what the login programs are doing.

-- 
Thanks,
//richard
--
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: A question on serial driver

2012-08-07 Thread Shashidhar Hiremath
Hi Richard,
   I am new to serial framework. Can you please elaborate on what you
mean by implementing a hangup ?
On Tue, Aug 7, 2012 at 2:06 PM, richard -rw- weinberger
richard.weinber...@gmail.com wrote:
 On Tue, Aug 7, 2012 at 10:22 AM, Shashidhar Hiremath
 shashidh...@vayavyalabs.com wrote:
 Hi,
  I have written a console driver where I also do the serial driver
 registration and handling. The driver seems to work fine till the
 login point(reads and writes). The driver for some reason does not
 print the content  I type on console after login prompt. Any reason
 why this might be happening ?

 login and getty do a lot of TTY black magic, maybe you forgot to implement
 something like hangup()...
 Use strace to find out what the login programs are doing.

 --
 Thanks,
 //richard



-- 
regards,
Shashidhar Hiremath
--
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: A question on serial driver

2012-08-07 Thread richard -rw- weinberger
On Tue, Aug 7, 2012 at 10:49 AM, Shashidhar Hiremath
shashidh...@vayavyalabs.com wrote:
 Hi Richard,
I am new to serial framework. Can you please elaborate on what you
 mean by implementing a hangup ?

struct tty_operations' hangup()

-- 
Thanks,
//richard
--
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: A question on serial driver

2012-08-07 Thread Jiri Slaby
On 08/07/2012 10:26 AM, Dan Luedtke wrote:
 On Tue, 2012-08-07 at 13:52 +0530, Shashidhar Hiremath wrote:
 The driver for some reason does not
 print the content  I type on console after login prompt. Any reason
 why this might be happening ?
 
 I don't know if it is just me, but a code snippet might help
 understanding what happens in your driver.

Yea, without that we can barely help you.

regards,
-- 
js
suse labs
--
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: A question on serial driver

2012-08-07 Thread Shashidhar Hiremath
the code is a bit unclean to send directly. But any information like
does driver change modes once it prompts for login
can be helpful for debugging since my code does not seem to work after login .

Behaviour : Driver prints charecter untill devel login on console. It
accepts characters before login prompt but doesnot accept the
charecters after it prompts for login. I enter the username and it is
not displayed.

On Tue, Aug 7, 2012 at 2:38 PM, Jiri Slaby jsl...@suse.cz wrote:
 On 08/07/2012 10:26 AM, Dan Luedtke wrote:
 On Tue, 2012-08-07 at 13:52 +0530, Shashidhar Hiremath wrote:
 The driver for some reason does not
 print the content  I type on console after login prompt. Any reason
 why this might be happening ?

 I don't know if it is just me, but a code snippet might help
 understanding what happens in your driver.

 Yea, without that we can barely help you.

 regards,
 --
 js
 suse labs



-- 
regards,
Shashidhar Hiremath
--
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: A question on serial driver

2012-08-07 Thread richard -rw- weinberger
On Tue, Aug 7, 2012 at 11:51 AM, Shashidhar Hiremath
shashidh...@vayavyalabs.com wrote:
 the code is a bit unclean to send directly. But any information like
 does driver change modes once it prompts for login
 can be helpful for debugging since my code does not seem to work after login .

Then clean it up.
You have do to this task anyway.

 Behaviour : Driver prints charecter untill devel login on console. It
 accepts characters before login prompt but doesnot accept the
 charecters after it prompts for login. I enter the username and it is
 not displayed.

There are a gazillion things that could cause this behavior.

-- 
Thanks,
//richard
--
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: A question on serial driver

2012-08-07 Thread Jiri Slaby
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

On 08/07/2012 11:51 AM, Shashidhar Hiremath wrote:
 the code is a bit unclean to send directly.

Whatever, just send it out. Otherwise sorry, you are on your own.

regards,
-- 
js
suse labs
--
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: A question on serial driver

2012-08-07 Thread Shashidhar Hiremath
thanks guys, got it to work. the receive interrupt was somehow getting disabled.

On Tue, Aug 7, 2012 at 4:12 PM, Jiri Slaby jsl...@suse.cz wrote:
 A: Because it messes up the order in which people normally read text.
 Q: Why is top-posting such a bad thing?
 A: Top-posting.
 Q: What is the most annoying thing in e-mail?

 On 08/07/2012 11:51 AM, Shashidhar Hiremath wrote:
 the code is a bit unclean to send directly.

 Whatever, just send it out. Otherwise sorry, you are on your own.

 regards,
 --
 js
 suse labs



-- 
regards,
Shashidhar Hiremath
--
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/