linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: mcuelenaere@gmail.com (Maurus Cuelenaere)
To: linux-arm-kernel@lists.infradead.org
Subject: S3C6410 board (SmartQ 7) USB host issues
Date: Fri, 30 Oct 2009 01:24:32 +0100	[thread overview]
Message-ID: <4AEA3240.10105@gmail.com> (raw)

Hi,

I'm working on getting mainline Linux working on the SmartQ 7, a Samsung 
S3C6410 board.

I'm having issues getting USB host to work, when I try to attach a 
device (Logitech mouse in this case) to it I get "device descriptor 
read/64, error -62" errors. Then it gets a new address assigned and gets 
back to the same error (this loops around 4 times, then Linux seems to 
give up).

This board doesn't have a separate 48M clock source, so I'm currently 
changing the USB host clock source to EPLL in my board config like this:


struct clk * usb_clock, * mout_epll;

usb_clock = clk_get(NULL, "usb-bus-host");
if(usb_clock == NULL) {
     pr_err("%s: failed to get usb-bus-host clock\n", __func__);
     return -ENXIO;
}
mout_epll = clk_get(NULL, "mout_epll");
if(mout_epll == NULL) {
     pr_err("%s: failed to get mout_epll clock\n", __func__);
     clk_put(usb_clock);
     return -ENXIO;
}

/* setup clock */
clk_set_parent(usb_clock, mout_epll);
clk_set_rate(usb_clock, 48000000);

clk_put(usb_clock);
clk_put(mout_epll);


Any ideas what I could be doing wrong?

Thanks,

Maurus Cuelenaere

             reply	other threads:[~2009-10-30  0:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-30  0:24 Maurus Cuelenaere [this message]
2009-10-30  0:36 ` S3C6410 board (SmartQ 7) USB host issues Ben Dooks
2009-10-30  1:40   ` Maurus Cuelenaere
2009-10-30  1:43     ` Ben Dooks
2009-10-30  2:25   ` jassi brar

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=4AEA3240.10105@gmail.com \
    --to=mcuelenaere@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.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).