* A question on serial driver
@ 2012-08-07 8:22 Shashidhar Hiremath
2012-08-07 8:26 ` Dan Luedtke
2012-08-07 8:36 ` richard -rw- weinberger
0 siblings, 2 replies; 10+ messages in thread
From: Shashidhar Hiremath @ 2012-08-07 8:22 UTC (permalink / raw)
To: lkml
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
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: A question on serial driver
2012-08-07 8:22 A question on serial driver Shashidhar Hiremath
@ 2012-08-07 8:26 ` Dan Luedtke
2012-08-07 9:08 ` Jiri Slaby
2012-08-07 8:36 ` richard -rw- weinberger
1 sibling, 1 reply; 10+ messages in thread
From: Dan Luedtke @ 2012-08-07 8:26 UTC (permalink / raw)
To: Shashidhar Hiremath; +Cc: lkml
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
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: A question on serial driver
2012-08-07 8:26 ` Dan Luedtke
@ 2012-08-07 9:08 ` Jiri Slaby
2012-08-07 9:51 ` Shashidhar Hiremath
0 siblings, 1 reply; 10+ messages in thread
From: Jiri Slaby @ 2012-08-07 9:08 UTC (permalink / raw)
To: Dan Luedtke; +Cc: Shashidhar Hiremath, lkml
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
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: A question on serial driver
2012-08-07 9:08 ` Jiri Slaby
@ 2012-08-07 9:51 ` Shashidhar Hiremath
2012-08-07 10:38 ` richard -rw- weinberger
2012-08-07 10:42 ` Jiri Slaby
0 siblings, 2 replies; 10+ messages in thread
From: Shashidhar Hiremath @ 2012-08-07 9:51 UTC (permalink / raw)
To: Jiri Slaby; +Cc: Dan Luedtke, lkml
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 <jslaby@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
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: A question on serial driver
2012-08-07 9:51 ` Shashidhar Hiremath
@ 2012-08-07 10:38 ` richard -rw- weinberger
2012-08-07 10:42 ` Jiri Slaby
1 sibling, 0 replies; 10+ messages in thread
From: richard -rw- weinberger @ 2012-08-07 10:38 UTC (permalink / raw)
To: Shashidhar Hiremath; +Cc: Jiri Slaby, Dan Luedtke, lkml
On Tue, Aug 7, 2012 at 11:51 AM, Shashidhar Hiremath
<shashidharh@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
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: A question on serial driver
2012-08-07 9:51 ` Shashidhar Hiremath
2012-08-07 10:38 ` richard -rw- weinberger
@ 2012-08-07 10:42 ` Jiri Slaby
2012-08-08 4:50 ` Shashidhar Hiremath
1 sibling, 1 reply; 10+ messages in thread
From: Jiri Slaby @ 2012-08-07 10:42 UTC (permalink / raw)
To: Shashidhar Hiremath; +Cc: Dan Luedtke, lkml
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
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: A question on serial driver
2012-08-07 10:42 ` Jiri Slaby
@ 2012-08-08 4:50 ` Shashidhar Hiremath
0 siblings, 0 replies; 10+ messages in thread
From: Shashidhar Hiremath @ 2012-08-08 4:50 UTC (permalink / raw)
To: Jiri Slaby; +Cc: Dan Luedtke, lkml
thanks guys, got it to work. the receive interrupt was somehow getting disabled.
On Tue, Aug 7, 2012 at 4:12 PM, Jiri Slaby <jslaby@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
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: A question on serial driver
2012-08-07 8:22 A question on serial driver Shashidhar Hiremath
2012-08-07 8:26 ` Dan Luedtke
@ 2012-08-07 8:36 ` richard -rw- weinberger
2012-08-07 8:49 ` Shashidhar Hiremath
1 sibling, 1 reply; 10+ messages in thread
From: richard -rw- weinberger @ 2012-08-07 8:36 UTC (permalink / raw)
To: Shashidhar Hiremath; +Cc: lkml
On Tue, Aug 7, 2012 at 10:22 AM, Shashidhar Hiremath
<shashidharh@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
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: A question on serial driver
2012-08-07 8:36 ` richard -rw- weinberger
@ 2012-08-07 8:49 ` Shashidhar Hiremath
2012-08-07 8:59 ` richard -rw- weinberger
0 siblings, 1 reply; 10+ messages in thread
From: Shashidhar Hiremath @ 2012-08-07 8:49 UTC (permalink / raw)
To: richard -rw- weinberger; +Cc: lkml
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.weinberger@gmail.com> wrote:
> On Tue, Aug 7, 2012 at 10:22 AM, Shashidhar Hiremath
> <shashidharh@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
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2012-08-08 4:50 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-07 8:22 A question on serial driver Shashidhar Hiremath
2012-08-07 8:26 ` Dan Luedtke
2012-08-07 9:08 ` Jiri Slaby
2012-08-07 9:51 ` Shashidhar Hiremath
2012-08-07 10:38 ` richard -rw- weinberger
2012-08-07 10:42 ` Jiri Slaby
2012-08-08 4:50 ` Shashidhar Hiremath
2012-08-07 8:36 ` richard -rw- weinberger
2012-08-07 8:49 ` Shashidhar Hiremath
2012-08-07 8:59 ` richard -rw- weinberger
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.