linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Joakim Linde <joakim.linde@touchtable.se>
To: linux-hotplug@vger.kernel.org
Subject: FT4232H semi-randomly fails to read EEPROM on cold reboot
Date: Mon, 10 Oct 2011 11:24:29 +0000	[thread overview]
Message-ID: <4E92D5ED.9060201@touchtable.se> (raw)

Hi,

I have a very odd problem with FT4242H devices, which I hope someone
recognizes.

The FT4242H uses an external EEPROM for things like vendor/product
strings and serial number. Without the external EEPROM the
vendor/product strings reverts to defaults and there is no support for a
serial number (which is the thing I'm really interested in). Typically I
keep 4 separate devices conneced (so a total of 16 ports). On a cold
reboot only about half of the FT4242H devices will read the EEPROM
contents. The rest of them will just report defaults when examined with
udevadm info. When one of the devices, which failed to report a serial
number, is unplugged and plugged back in it will always succeed in
reading the EEPROM contents, and will report the stored serial number.
I've seen this issue turn up in both kernel 2.6.32.26 and 2.6.40.4.

The problem does not seem to be tied to particular devices. For example,
if I swap a working and a non-working board the problem usually does not
move with the board. If anything, specific USB ports seems to work
better than others, but that's not the full explanation either. So far
I've not been able to spot any significant difference between a
successful and failed read in dmesg or messages.

Is there anyone here who is familiar with this type of problem?

As a workaround I've tried to use udevadm trigger to simulate unplug +
re-plug without any success. The default product string is 'Quad RS232-HS'
so I've tried

	udevadm trigger --verbose  --attr-match=interface=Quad*

which seems to match only they devices that have failed to read the EEPROM.
Unfortunately no combination of remove, add or change has successfully simulated
a unplug + re-plug. Is this entirely the wrong approach, or what am I doing wrong?


Best regards,

-- 
Joakim Linde
Tangiamo AB (formerly TouchTable AB)

mail    :  joakim.linde@touchtable.se
office  :  +46-(0)31 515730
mobile  :  +46-(0)730 790054
Skype   :  joakim_linde_at_work


                 reply	other threads:[~2011-10-10 11:24 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=4E92D5ED.9060201@touchtable.se \
    --to=joakim.linde@touchtable.se \
    --cc=linux-hotplug@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).