Ticket #260 (closed defect: fixed)

Opened 12 years ago

Last modified 22 months ago

implement 100mA charging in Linux

Reported by: laforge@… Owned by: stefan@…
Priority: high Milestone:
Component: kernel Version: current svn head
Severity: normal Keywords:
Cc: buglog@…, werner@… Blocked By:
Blocking: Estimated Completion (week):
HasPatchForReview: PatchReviewResult:
Reproducible:

Description

Linux should export two USB configuration descriptors that are completely
identical, with one difference: power consumption. The first config descriptor
should indicate 250 units (500mA), whereas the second one should indicate 50
units (100mA).

Please also note that we should verify that the 'self powered' flag in both
configurations is switched off.

Currently, we only export one descriptor with 500mA. This means that if you
attach your fully-booted Neo1973 to a bus-powered hub (such as the DebugBoard?
v2), it will not enumerate on the USB [since the host cannot provde 500mA but
the device only exports one configuration with that high current].

Attachments

two-usb-power-configs.patch (5.4 KB) - added by stefan@… 12 years ago.
Two configs, oine for high and one for low power

Change History

comment:1 Changed 12 years ago by stefan@…

  • Status changed from new to assigned

We need to implemet this in all gadget driver we like to use. Current drivers do
the following:

g_ether: 50 units (250 units in our tree due to Haralds high power patch)
g_serial: 1 unit, selfpowered
g_file_storage: 1 unit, selfpowered

gmidi and zero are also selfpowered only, but uninteresting for us.

I'll start with g_ether, as this is the one we use in our standard images and
makes most sense.

comment:2 Changed 12 years ago by laforge@…

Yes, since this needs to be done for all drivers, I guess a quick hack should do
fine now. In the long term it's interesting to think of something more generic,
i.e. a part of the core gadget layer that can re-export the same config
descriptor multiple times, but with different power settings.

comment:3 Changed 12 years ago by stefan@…

After a chat with one of the g_ether authors I have some more ideas for the long
term solution.

We have three different types of power settings: Selfpowered, 100mA and 500mA.

For device safety we should be able to define the highest power limit during
compile time. (No override for this limit).

Beside setting the value during compile time a sysfs entry should allow setting
all values within the limit.

To have this functionality available in all gadget drivers it should be done in
the gadget core files which every driver use to build the config.

comment:4 Changed 12 years ago by stefan@…

Changed 12 years ago by stefan@…

Two configs, oine for high and one for low power

comment:5 Changed 12 years ago by stefan@…

  • Status changed from assigned to closed
  • Resolution set to fixed

With the two different configs the 100mA and 500mA charging is fixed.

comment:6 Changed 22 months ago by Kennescoma

Dbc <a href=http://doxycycline.ccrpdc.com/vibramycin-100mg.php>Vibramycin 100mg</a> Cephalexin While Breastfeeding Keflex For Staph Infection <a href=http://kama1.xyz/kamagra-online.php>Kamagra Online</a> Xenical Over The Counter Preisvergleich Cialis Tadalafil <a href=http://propecia.ccrpdc.com/propecia-drug.php>Propecia Drug</a> When Will Alli Be Available Again 2014 Vendita Viagra Originale <a href=http://viag1.xyz/viagra-online-fast.php>Viagra Online Fast</a> Levitra Es Malo Cialis Contrareembolso Espana <a href=http://cial5mg.xyz/buy-cialis-online-usa.php>Buy Cialis Online Usa</a> Buy Propecia Merck Comprar Viagra Cialis Barato <a href=http://viag1.xyz/order-viagra-onlines.php>Order Viagra Onlines</a> Amoxicillin 500mg Side Effects Propecia Mental Side Effects Sleep <a href=http://cial1.xyz/ordina-cialis-online.php>Ordina Cialis Online</a> Finasteride Website 75 Mil Indocin Online Canadian Pharmacy <a href=http://viag1.xyz/compra-viagra-online.php>Compra Viagra Online</a> Viagra 100mg Filmtabletten Apotheke Viagra Et Cannabis <a href=http://zol1.xyz/buy-zoloft-on-line.php>Buy Zoloft On Line</a> Provera Best Website Amex Accepted how to purchase accutane <a href=http://cial1.xyz/buy-cheap-generic-cialis.php>Buy Cheap Generic Cialis</a> Purchase No Prescription Generic Flagyl In New Haven Byetta And Gastric Dumping <a href=http://cial5mg.xyz/cialis-order.php>Cialis Order</a> Zithromax Half Life Amoxicillin Single Dose Before Dentist <a href=http://kama1.xyz/kamagra-online-fast.php>Kamagra Online Fast</a> Achat Levitra Medicament Medicine Pricing <a href=http://kamagra.ccrpdc.com/buy-kamagra-online.php>Buy Kamagra Online</a> Propecia Dosage Reversible Bactrim For Uti 3 Days <a href=http://cial1.xyz/tadalafil-generic.php>Tadalafil Generic</a> Cialis Rezeptfrei Internet Admission Post Clomid <a href=http://zol1.xyz/cheap-zoloft-without-prescription.php>Cheap Zoloft Without Prescription</a> Levitra Zapfchen Cialis Disfuncion <a href=http://kama1.xyz/purchase-kamagra.php>Purchase Kamagra</a> Acheter Cialis A Lyon Generic Pharmacy Rts <a href=http://cial1.xyz/purchase-generic-cialis.php>Purchase Generic Cialis</a> Kamagra Oral Jelly 5mg Mary'S Pharmacy Algodones Mexico <a href=http://zoloft.ccrpdc.com/order-generic-zoloft.php>Order Generic Zoloft</a> Buy Antibiotics Cialis Apotheke Ohne Rezept <a href=http://viag1.xyz/price-of-viagra.php>Price Of Viagra</a> Cheapest Viagra Prices Licensed Pharmacies Vega H <a href=http://nolvadex.ccrpdc.com/tamoxifen-citrate.php>Tamoxifen Citrate</a> Mejor Viagra Best National Pharmacy <a href=http://cial5mg.xyz/cialis-viagra.php>Cialis Viagra</a> Will Mobic Make You Gain Weight Generika Cialis De <a href=http://cial5mg.xyz>Buy Cialis</a> Propecia Causas Donde Comprar Cialis Seguro En Espana <a href=http://cial1.xyz/buy-tadalafil.php>Buy Tadalafil</a> Cialis Mastercard buy accutane uk online <a href=http://zithromax.ccrpdc.com/cheap-zithromax.php>Cheap Zithromax</a> Prescriptions Medications Online Sky Pharmacy <a href=http://lasix.ccrpdc.com/lasix-online-prices.php>Lasix Online Prices</a> Where Can I Buy Progesterone Mastercard Accepted Achat Propecia Moins Cher <a href=http://cial1.xyz/order-cialis-tablets.php>Order Cialis Tablets</a> Canada Medications

Note: See TracTickets for help on using tickets.