From: Yi Qingliang <niqingliang2003@gmail.com>
To: linux-serial@vger.kernel.org
Subject: close /dev/console casue 30seconds' hang
Date: Sun, 20 Jan 2013 19:28:42 +0800 [thread overview]
Message-ID: <5857088.8tFJrCsqj8@ll-pc> (raw)
I'm running 3.6.9 kernel on my s3c2442 board.
the sysvinit freeze 30seconds after print out "INIT:",
and then freeze 30seconds after print out "version 2.88 booting".
I checked it's code, the 'close(fd)' should be responsible for that.
same binary running well on mini2440(s3c2440 board).
Through several days hard work, I got the root cause.
the close called wait_until_sent with timeout(30seconds).
the uart clock source selection is different.
although both of the two boards selected 'pclk',
related register: UCON0[11:10] 0x50000004
s3c2440 use '10', s3c2442 use '00'.
on s3c2440, the '10' is selected in initialalize stage. on s3c2442, it
can't find propriate clock, so use default value '00'.
in initialize stage, it will found 'clk_uart_baud2", but not on s3c2442. I
checked 'arch/arm/mach-s3c24xx/clock-s3c2440.c', it is only registered
for s3c2440_subsys,
but not for s3c2442_sys. after registered 's3c2440_clk_lookup' for
s3c2442_subsys, everything OK.
problem:
1. I don't know the different between 00 and 10 of pck in register
UCON0[11:10].
2. why kernel code have not registered s3c2440_clk_lookup for s3c2442? and
also
dma-s3c2440.c.
I checked 'arch/arm/mach-s3c24xx/s3c2442.c', it is for the s3c2442's clock,
but why the file name is not 'clock-s3c2442.c'? an it only contain cam
related
clock, no uart related clock.
next reply other threads:[~2013-01-20 11:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-20 11:28 Yi Qingliang [this message]
2013-01-20 12:00 ` close /dev/console casue 30seconds' hang Denis 'GNUtoo' Carikli
2013-01-20 12:50 ` Yi Qingliang
2013-01-20 12:53 ` Yi Qingliang
2013-01-20 12:57 ` Yi Qingliang
2013-01-20 15:27 ` Denis 'GNUtoo' Carikli
2013-01-21 13:09 ` Yi Qingliang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5857088.8tFJrCsqj8@ll-pc \
--to=niqingliang2003@gmail.com \
--cc=linux-serial@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.