Thursday, 2015-07-02

*** tpb has joined #timvideos00:00
shenkimithro: good work01:46
shenkimithro: so setting the minor to 0 will cause the tty layer to allocate the number for you?01:47
mithroshenki: yeah01:47
shenkimithro: did you verify that you can have that connected while the fx2 cdc device is active?01:47
mithroshenki: yes01:47
shenkisweet01:47
mithroshenki: the hard parts where01:47
mithroa) I found instructions for dynamically allocating major/minor device nodes - but couldn't figure out why handing them to the tty stuff always said "in use"01:48
mithroI eventually dug into the tty code and discovered that it was calling the very same functions I was calling manually01:49
mithrowhich is how I discovered just setting 0 will do dynamic allocation01:49
mithrob) Figuring out how to the usb subsystem deals with multiple modules which can both deal with the same device01:50
mithroI actually think the usb subsystem does it wrong at the moment and would love to patch / update it so it does the right thing - but that is more work then I want to take on :)01:51
shenkihehe okay01:52
shenkiyou should tell me about it, and i'll work on it01:52
mithroshenki: basically the issue is that the code does something like01:55
mithrofor driver in drivers: if driver.matches(device): driver.assign(device)01:55
mithroThe problem is that it doesn't take into account the *type* of match - so one driver could match via class, the other one via vid+pid01:56
mithroThe USB code already has the idea that a "more specific match wins" - but that happens inside an individual driver rather than at a global level01:57
shenkiah right01:57
mithroSo, we get the case where if you load the vizzini driver *first* then the cdc-acm driver, everthing works01:57
*** CarlFK has quit IRC03:42
*** hyades has joined #timvideos04:17
*** tija has joined #timvideos06:43
*** _florent_ has joined #timvideos07:57
*** tija has quit IRC09:14
*** tija has joined #timvideos09:42
mithro_florent_: ping - I just sent two patches to the m-labs list for programming the Atlys board using the onboard USB JTAG programmer12:47
mithro_florent_: also see https://github.com/timvideos/HDMI2USB-misoc-firmware/pull/112:54
tpbTitle: Adding support for programming with onboard USB JTAG. by mithro · Pull Request #1 · timvideos/HDMI2USB-misoc-firmware · GitHub (at github.com)12:54
_florent_mithro: OK thanks13:27
mithro_florent_: https://github.com/timvideos/HDMI2USB-misoc-firmware/issues/213:28
tpbTitle: Build fails at commit 72dbf3cad04e97e4080a6ada3184f78d7a9fbc75 and later. · Issue #2 · timvideos/HDMI2USB-misoc-firmware · GitHub (at github.com)13:28
_florent_you just have to update migen13:31
_florent_:)13:31
mithro_florent_: migen or misoc?13:34
_florent_migen13:34
*** tija has quit IRC13:34
_florent_https://github.com/m-labs/migen/commit/7afa3d61d90eb43cc438573ad56278fe5173866c13:34
*** CarlFK has joined #timvideos14:03
*** ChanServ sets mode: +v CarlFK14:03
*** _florent_ has quit IRC15:48
*** sb0 has joined #timvideos17:33
*** hyades has quit IRC20:11

Generated by irclog2html.py 2.13.1 by Marius Gedminas - find it at mg.pov.lt!