9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Sergey Reva <rs_rlab@mail.ru>
To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu>
Subject: Re: [9fans] usb or lp
Date: Tue, 30 Nov 2004 21:08:59 +0200	[thread overview]
Message-ID: <14816809671.20041130210859@mail.ru> (raw)
In-Reply-To: <ba37c1a60d15918d97aa26c7261bfebd@plan9.bell-labs.com>

Hello 9fans,

I find problem!

New usb driver not configure file epXdata for writing or inputing, old
driver do this. Why this happen?

When I run usb/usbd -v -d I can see this:

.... maxpkt 64 interval 0ms [OUT] [Bulk]                       #usbd know about direction on this endpoint
.... maxpkt 64 interval 0ms [IN] [Bulk]

But when I ls -l /dev/usb0/1 I get this:

--r--r--r U 0 rlab rlab 0 Sep 13 22:55 /dev/usb0/1/ep1data     #but not set direction for files
--r--r--r U 0 rlab rlab 0 Sep 13 22:55 /dev/usb0/1/ep2data

In old installation this looks like:
---w--w--w- U 0 rlab rlab 0 Sep 13 22:55 /dev/usb0/1/ep1data
--r--r--r-- U 0 rlab rlab 0 Sep 13 22:55 /dev/usb0/1/ep2data

When I set direction manually all works well:
echo -n 'ep 1 bulk w 64 32' >/dev/usb0/1/ctl

Thanks for help!
Sergey

-- 
http://rs-rlab.narod.ru                            mailto:rs_rlab@mail.ru



  reply	other threads:[~2004-11-30 19:08 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-28  8:54 Sergey Reva
2004-11-29  2:29 ` Kenji Okamoto
2004-11-29  3:00   ` Russ Cox
2004-11-29 13:21   ` Sergey Reva
2004-11-30  0:56     ` Kenji Okamoto
2004-11-30 15:07       ` Sape Mullender
2004-11-30 16:28         ` Sape Mullender
2004-11-30 19:08           ` Sergey Reva [this message]
2004-11-30 20:21             ` Sape Mullender
2004-12-01 17:20             ` Sape Mullender

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=14816809671.20041130210859@mail.ru \
    --to=rs_rlab@mail.ru \
    --cc=9fans@cse.psu.edu \
    /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).