linux-serial.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Yi Qingliang <niqingliang2003@gmail.com>
To: linux-serial@vger.kernel.org
Subject: sysvinit freeze 30seconds on close /dev/console
Date: Sat, 19 Jan 2013 10:16:46 +0800	[thread overview]
Message-ID: <1978342.XoIOWg0br0@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 the 30 seconds.

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.

Yi Qingliang
Nanjing Jilong
niqingliang2003@gmai.com






                 reply	other threads:[~2013-01-19  2:16 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1978342.XoIOWg0br0@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).