USB: EHCI: Allow users to override 80% max periodic bandwidth
Subsystems (3)
v2 cover USB: EHCI: Allow users to override 80% max periodic bandwidth
Changes since v1:
- dropped RFC status as "this seems like the sort of feature somebody might reasonably want to use -- if they know exactly what they're doing";
- new preparatory patch (1/2) which moves already-in-there sysfs code into ehci-sysfs.c;
- moved uframe_periodic_max parameter from module option to sysfs attribute, so that it can be set per controller and at runtime, added validity checks;
- clarified a bit bandwith analysis for 96% max periodic setup as noticed by Alan Stern;
- clarified patch description saying that set in stone 80% max periodic is specified by USB 2.0;
Kirill Smelkov (2):
USB: EHCI: Move sysfs related bits into ehci-sysfs.c
USB: EHCI: Allow users to override 80% max periodic bandwidth
drivers/usb/host/ehci-hcd.c | 11 ++- drivers/usb/host/ehci-hub.c | 75 ----------------- drivers/usb/host/ehci-sched.c | 17 ++-- drivers/usb/host/ehci-sysfs.c | 184 +++++++++++++++++++++++++++++++++++++++++ drivers/usb/host/ehci.h | 2 + 5 files changed, 202 insertions(+), 87 deletions(-) create mode 100644 drivers/usb/host/ehci-sysfs.c
Signature · 1 line
1.7.6.rc3
PATCH v2 1/2 USB: EHCI: Move sysfs related bits into ehci-sysfs.c
The only sysfs attr implemented so far is "companion" from ehci-hub.c, but in the next patch we are going to add another sysfs file, so prior to that let's structure things and move already-in-there sysfs code to separate file.
--- drivers/usb/host/ehci-hcd.c | 5 +- drivers/usb/host/ehci-hub.c | 75 -------------------------------- drivers/usb/host/ehci-sysfs.c | 94 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 97 insertions(+), 77 deletions(-) create mode 100644 drivers/usb/host/ehci-sysfs.c
drivers/usb/host/ehci-hcd.c +3 -2
@@ -336,6 +336,7 @@ static void ehci_work(struct ehci_hcd *ehci);#include "ehci-mem.c" #include "ehci-q.c" #include "ehci-sched.c" +#include "ehci-sysfs.c" /*-------------------------------------------------------------------------*/
@@ -520,7 +521,7 @@ static void ehci_stop (struct usb_hcd *hcd)ehci_reset (ehci);spin_unlock_irq (&ehci->lock); -remove_companion_file (ehci); +remove_sysfs_files (ehci);remove_debug_files (ehci);/* root hub is shut down separately (first, when possible) */
@@ -754,7 +755,7 @@ static int ehci_run (struct usb_hcd *hcd)* since the class device isn't created that early. */ create_debug_files (ehci); -create_companion_file (ehci); +create_sysfs_files (ehci);return 0 ; }
drivers/usb/host/ehci-hub.c +0 -75
87 lines not on this page · raw message
drivers/usb/host/ehci-sysfs.c new file +94 -0
94 lines not on this page · raw message
Signature · 1 line
1.7.6.rc3
PATCH v2 2/2 USB: EHCI: Allow users to override 80% max periodic bandwidth
In reply to Kirill SmelkovThere are cases, when 80% max isochronous bandwidth is too limiting.
For example I have two USB video capture cards which stream uncompressed video, and to stream full NTSC + PAL videos we'd need
NTSC 640x480 YUV422 @30fps ~17.6 MB/s
PAL 720x576 YUV422 @25fps ~19.7 MB/sisoc bandwidth.
Now, due to limited alt settings in capture devices NTSC one ends up streaming with max_pkt_size=2688 and PAL with max_pkt_size=2892, both with interval=1. In terms of microframe time allocation this gives
NTSC ~53us
PAL ~57us
and together
~110us > 100us == 80% of 125us uframe time.
So those two devices can't work together simultaneously because the'd over allocate isochronous bandwidth.
80% seemed a bit arbitrary to me, and I've tried to raise it to 90% and both devices started to work together, so I though sometimes it would be a good idea for users to override hardcoded default of max 80% isoc bandwidth.
After all, isn't it a user who should decide how to load the bus? If I can live with 10% or even 5% bulk bandwidth that should be ok. I'm a USB newcomer, but that 80% set in stone by USB 2.0 specification seems to be chosen pretty arbitrary to me, just to serve as a reasonable default.
NOTE: for two streams with max_pkt_size=3072 (worst case) both time allocation would be 60us+60us=120us which is 96% periodic bandwidth leaving 4% for bulk and control. Alan Stern suggested that bulk then would be problematic (less than 300*8 bittimes left per microframe), but I think that is still enough for control traffic.
--- drivers/usb/host/ehci-hcd.c | 6 +++ drivers/usb/host/ehci-sched.c | 17 +++---- drivers/usb/host/ehci-sysfs.c | 98 +++++++++++++++++++++++++++++++++++++++-- drivers/usb/host/ehci.h | 2 + 4 files changed, 109 insertions(+), 14 deletions(-)
drivers/usb/host/ehci-hcd.c +6 -0
@@ -572,6 +572,12 @@ static int ehci_init(struct usb_hcd *hcd) hcc_params =ehci_readl (ehci, &ehci->caps->hcc_params);/* +* by default set standard 80% (== 100 usec/uframe) max periodic +* bandwidth as required by USB 2.0 +*/ + ehci->uframe_periodic_max =100 ; + +/* * hw default: 1K periodic list heads, one per frame. * periodic_size can shrink by USBCMD update if hcc_params allows. */
drivers/usb/host/ehci-sched.c +7 -10
@@ -172,7 +172,7 @@ periodic_usecs (struct ehci_hcd *ehci, unsigned frame, unsigned uframe) } }#ifdef DEBUG -if (usecs >100 ) +if (usecs > ehci->uframe_periodic_max)ehci_err (ehci,"uframe %d sched overrun: %d usecs\n" , frame *8 + uframe, usecs);#endif
@@ -709,11 +709,8 @@ static int check_period (if (uframe >=8 )return 0 ; -/* -* 80% periodic == 100 usec/uframe available -* convert "usecs we need" to "max already claimed" -*/ - usecs =100 - usecs; +/* convert "usecs we need" to "max already claimed" */ + usecs = ehci->uframe_periodic_max - usecs;/* we "know" 2 and 4 uframe intervals were rejected; so * for period 0, check _every_ microframe in the schedule.
@@ -1286,9 +1283,9 @@ itd_slot_ok ( { uframe %= period; do { - /* can't commit more than 80% periodic == 100 usec */ + /* can't commit more than uframe_periodic_max usec */ if (periodic_usecs (ehci, uframe >> 3, uframe & 0x7) - > (100 - usecs)) + > (ehci->uframe_periodic_max - usecs)) return 0; /* we know urb->interval is 2^N uframes */
@@ -1345,7 +1342,7 @@ sitd_slot_ok (#endif /* check starts (OUT uses more than one) */ - max_used =100 - stream->usecs; + max_used = ehci->uframe_periodic_max - stream->usecs;for (tmp = stream->raw_mask &0xff ; tmp; tmp >>=1 , uf++) {if (periodic_usecs (ehci, frame, uf) > max_used)return 0 ;
@@ -1354,7 +1351,7 @@ sitd_slot_ok (/* for IN, check CSPLIT */ if (stream->c_usecs) { uf = uframe &7 ; - max_used =100 - stream->c_usecs; + max_used = ehci->uframe_periodic_max - stream->c_usecs; do { tmp = 1 << uf; tmp <<= 8;
drivers/usb/host/ehci-sysfs.c +94 -4
115 lines not on this page · raw message
drivers/usb/host/ehci.h +2 -0
@@ -87,6 +87,8 @@ struct ehci_hcd { /* one per controller */union ehci_shadow *pshadow;/* mirror hw periodic table */ int next_uframe;/* scan periodic, start here */ unsigned periodic_sched;/* periodic activity count */ +unsigned uframe_periodic_max;/* max periodic time per uframe */ +/* list of itds & sitds completed while clock_frame was still active */ struct list_head cached_itd_list;
Signature · 1 line
1.7.6.rc3
Alan Stern
maintainerRe: [PATCH 1/2] USB: EHCI: Move sysfs related bits into ehci-sysfs.c
In reply to Kirill SmelkovQuoted 12 lines · Kirill Smelkov
The only sysfs attr implemented so far is "companion" from
ehci-hub.c, but in the next patch we are going to add another sysfs file, so prior to that let's structure things and move already-in-there sysfs code to separate file.Signed-off-by Kirill Smelkov <[email protected]>drivers/usb/host/ehci-sysfs.c new file +0
-0
drivers/usb/host/ehci-sysfs.c line 2
Quoted 2 lines
drivers/usb/host/ehci-sysfs.c new file +2
-0@@ -0,0 +1,94 @@ +/* +* Copyright (C) 2001-2004 by David Brownell
One little note... It's understandable that you put this line here, but it isn't really appropriate. All the code you're moving into this new file was written by me.
Apart from that one issue,
Re: [PATCH 1/2] USB: EHCI: Move sysfs related bits into ehci-sysfs.c
Quoted 7 lines · Alan Stern
Quoted 5 lines · Kirill Smelkov
The only sysfs attr implemented so far is "companion" from
ehci-hub.c, but in the next patch we are going to add another sysfs file, so prior to that let's structure things and move already-in-there sysfs code to separate file.
Quoted 13 lines
drivers/usb/host/ehci-sysfs.c line 2
Quoted 9 lines
Signed-off-by Kirill Smelkov <[email protected]>drivers/usb/host/ehci-sysfs.c new file +2
-0@@ -0,0 +1,94 @@ +/* +* Copyright (C) 2001-2004 by David Brownell One little note... It's understandable that you put this line here, but it isn't really appropriate. All the code you're moving into this new file was written by me.
Now I see, yes, in 57e06c11 (EHCI: force high-speed devices to run at full speed; Jan 16 2007).
Quoted 3 lines
Apart from that one issue,
Acked-off-by Alan Stern <[email protected]>
Thanks.
What should we do with this patch now? Should I put
Copyright (C) 2007 by Alan Stern
there? Or something else?
Or maybe drop that copyright notice altogether becase usually it gets outdated very quickly, and who made what is visible through git log/blame?
I'm ok with any case, please just tell me how to proceed.
And what about main "[PATCH v2 2/2] USB: EHCI: Allow users to override 80% max periodic bandwidth"?
Was it Acked together with this one, or not and review is pending? Curious because I'm new here...
Thanks,
Kirill
Alan Stern
maintainerRe: [PATCH 1/2] USB: EHCI: Move sysfs related bits into ehci-sysfs.c
Quoted 4 lines · Kirill Smelkov
Quoted 3 lines
Apart from that one issue,
Acked-off-by Alan Stern <[email protected]>
Quoted 8 lines
Thanks.
What should we do with this patch now? Should I put
Copyright (C) 2007 by Alan Stern
there? Or something else?
Yes, put that in.
Quoted 3 lines
Or maybe drop that copyright notice altogether becase usually it gets outdated very quickly, and who made what is visible through git log/blame?
Copyright information is important, and it must be present in the actual file -- not somewhere else (such as a changelog).
Quoted 8 lines
I'm ok with any case, please just tell me how to proceed.
And what about main "[PATCH v2 2/2] USB: EHCI: Allow users to override 80% max periodic bandwidth"?
Was it Acked together with this one, or not and review is pending? Curious because I'm new here...
I haven't taken the time to review it yet, sorry...
Mostly it looks okay. In store_uframe_periodic_max(), you can use kstrtouint() instead of sscanf() -- that seems to be the trend these days.
Also, when decreasing the schedule limit, do you think it is really necessary to check that the current allocation doesn't exceed the new limit? I think it would be sufficient to apply the new limit just to new bandwidth allocation requests. After all, this API is meant for experts only.
Alan Stern
Re: [PATCH 1/2] USB: EHCI: Move sysfs related bits into ehci-sysfs.c
Quoted 15 lines · Alan Stern
Quoted 4 lines · Kirill Smelkov
Quoted 3 lines
Apart from that one issue,
Acked-off-by Alan Stern <[email protected]>Quoted 8 lines
Thanks.
What should we do with this patch now? Should I put
Copyright (C) 2007 by Alan Stern
there? Or something else?
Quoted 8 lines
Yes, put that in.
Quoted 3 lines
Or maybe drop that copyright notice altogether becase usually it gets outdated very quickly, and who made what is visible through git log/blame?
Copyright information is important, and it must be present in the actual file -- not somewhere else (such as a changelog).
Ok, I've put that in.
Quoted 10 lines
Quoted 8 lines
I'm ok with any case, please just tell me how to proceed.
And what about main "[PATCH v2 2/2] USB: EHCI: Allow users to override 80% max periodic bandwidth"?
Was it Acked together with this one, or not and review is pending? Curious because I'm new here...
I haven't taken the time to review it yet, sorry...
Nevermind, I've just pinged.
Quoted 3 lines
Mostly it looks okay. In
store_uframe_periodic_max(), you can usekstrtouint()instead ofsscanf()-- that seems to be the trend these days.
Thanks for the advice - changed to kstrtouint (which as it turned out, with base=0 can read oct/hex/dec data as specified by user).
Quoted 5 lines
Also, when decreasing the schedule limit, do you think it is really necessary to check that the current allocation doesn't exceed the new limit? I think it would be sufficient to apply the new limit just to new bandwidth allocation requests. After all, this API is meant for experts only.
I think yes, it is needed. E.g. because there is this check in periodic_usecs():
#ifdef DEBUG
if (usecs > ehci->uframe_periodic_max)
ehci_err (ehci, "uframe %d sched overrun: %d usecs\n",
frame * 8 + uframe, usecs);
#endif
return usecs;
}and periodic_usecs() is called in e.g. this chain:
itd_submit
iso_stream_schedule
itd_slot_ok
periodic_usecs
and others.
I'd leave this check as is - to me it would be useful in debug mode to verify that we've not overallocated a period.
Also, even if this knob would be useful only to experts, it would be better to put feedback onto the knob so that people could know whether thir request could be served or not.
What do you think?
Kirill
Alan Stern
maintainerRe: [PATCH 1/2] USB: EHCI: Move sysfs related bits into ehci-sysfs.c
Quoted 17 lines · Kirill Smelkov
Quoted 5 lines
Also, when decreasing the schedule limit, do you think it is really necessary to check that the current allocation doesn't exceed the new limit? I think it would be sufficient to apply the new limit just to new bandwidth allocation requests. After all, this API is meant for experts only.
I think yes, it is needed. E.g. because there is this check in
periodic_usecs():#ifdef DEBUG if (usecs > ehci->uframe_periodic_max) ehci_err (ehci, "uframe %d sched overrun: %d usecs\n", frame * 8 + uframe, usecs); #endif return usecs; }
Quoted 8 lines
and
periodic_usecs()is called in e.g. this chain:
itd_submit
iso_stream_schedule
itd_slot_ok
periodic_usecsand others.
That won't matter unless DEBUG is defined.
Quoted 8 lines
I'd leave this check as is - to me it would be useful in debug mode to verify that we've not overallocated a period.
Also, even if this knob would be useful only to experts, it would be better to put feedback onto the knob so that people could know whether thir request could be served or not.
What do you think?
Can you make that check conditional on DEBUG being set?
Alan Stern
Re: [PATCH 1/2] USB: EHCI: Move sysfs related bits into ehci-sysfs.c
Quoted 21 lines · Alan Stern
Quoted 19 lines · Kirill Smelkov
Quoted 5 lines
Also, when decreasing the schedule limit, do you think it is really necessary to check that the current allocation doesn't exceed the new limit? I think it would be sufficient to apply the new limit just to new bandwidth allocation requests. After all, this API is meant for experts only.
I think yes, it is needed. E.g. because there is this check in
periodic_usecs():#ifdef DEBUG if (usecs > ehci->uframe_periodic_max) ehci_err (ehci, "uframe %d sched overrun: %d usecs\n", frame * 8 + uframe, usecs); #endif return usecs; }and
periodic_usecs()is called in e.g. this chain:
Quoted 8 lines
Quoted 6 lines
itd_submit
iso_stream_schedule
itd_slot_ok
periodic_usecsand others.
That won't matter unless DEBUG is defined.
Yes, but still it would be good to always keep the invariant
allocated <= uframe_periodic_max
and that debug is there to catch when this breaks.
Quoted 10 lines
Quoted 8 lines
I'd leave this check as is - to me it would be useful in debug mode to verify that we've not overallocated a period.
Also, even if this knob would be useful only to experts, it would be better to put feedback onto the knob so that people could know whether thir request could be served or not.
What do you think?
Can you make that check conditional on DEBUG being set?
Yes I can, but it seems to me we are starting to complicate the code.
What's the problem with returning error on setting uframe_periodic_max < already allocated usb bandwith?
Kirill
P.S.
The checking is not a priority for me here, so if you think it's better not to check or do it under #ifdef - let's do it. Though of course we all have our preferences :)
Alan Stern
maintainerRe: [PATCH 1/2] USB: EHCI: Move sysfs related bits into ehci-sysfs.c
Quoted 5 lines · Kirill Smelkov
Yes, but still it would be good to always keep the invariant
allocated <=
uframe_periodic_maxand that debug is there to catch when this breaks.
Then perhaps it should print out the maximum number of microseconds already allocated for any uframe, instead of stopping as soon as it finds something above the new limit.
Quoted 6 lines
Quoted 1 line
Can you make that check conditional on DEBUG being set?
Yes I can, but it seems to me we are starting to complicate the code.
What's the problem with returning error on setting
uframe_periodic_max< already allocated usb bandwith?
No problem, really.
Quoted 3 lines
The checking is not a priority for me here, so if you think it's better not to check or do it under #ifdef - let's do it. Though of course we all have our preferences :)
Yes, it's just a matter of taste. I prefer to add as little code as possible for a feature that won't be used much.
Alan Stern
Quoted 10 lines · Kirill Smelkov
Changes since v1:
- dropped RFC status as "this seems like the sort of feature somebody might reasonably want to use -- if they know exactly what they're doing";
- new preparatory patch (1/2) which moves already-in-there sysfs code into
ehci-sysfs.c;
Quoted 8 lines
- moved
uframe_periodic_maxparameter from module option to sysfs attribute, so that it can be set per controller and at runtime, added validity checks;- clarified a bit bandwith analysis for 96% max periodic setup as noticed by Alan Stern;
- clarified patch description saying that set in stone 80% max periodic is specified by USB 2.0;
Have you tested this patch by maxing out this bandwidth on various types of host controllers? It's entirely possible that you'll run into vendor-specific bugs if you try to pack the schedule with isochronous transfers. I don't think any hardware designer would seriously test or validate their hardware with a schedule that is basically a violation of the USB bus spec (more than 80% for periodic transfers).
But if Alan is fine with giving users a way to shoot themselves in the foot, and it's disabled by default, then I don't particularly mind this patch.
Sarah Sharp
Quoted 20 lines · Sarah Sharp
Quoted 10 lines · Kirill Smelkov
Changes since v1:
- dropped RFC status as "this seems like the sort of feature somebody might reasonably want to use -- if they know exactly what they're doing";
- new preparatory patch (1/2) which moves already-in-there sysfs code into
ehci-sysfs.c;Quoted 8 lines
- moved
uframe_periodic_maxparameter from module option to sysfs attribute, so that it can be set per controller and at runtime, added validity checks;- clarified a bit bandwith analysis for 96% max periodic setup as noticed by Alan Stern;
- clarified patch description saying that set in stone 80% max periodic is specified by USB 2.0;
Quoted 6 lines
Have you tested this patch by maxing out this bandwidth on various types of host controllers? It's entirely possible that you'll run into vendor-specific bugs if you try to pack the schedule with isochronous transfers. I don't think any hardware designer would seriously test or validate their hardware with a schedule that is basically a violation of the USB bus spec (more than 80% for periodic transfers).
I've only tested it to work on my HP Mini 5103 with N10 chipset:
kirr@mini:~$ lspci
00:00.0 Host bridge: Intel Corporation N10 Family DMI Bridge
00:02.0 VGA compatible controller: Intel Corporation N10 Family Integrated Graphics Controller
00:02.1 Display controller: Intel Corporation N10 Family Integrated Graphics Controller
00:1b.0 Audio device: Intel Corporation N10/ICH 7 Family High Definition Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 1 (rev 02)
00:1c.3 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 4 (rev 02)
00:1d.0 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #3 (rev 02)
00:1d.3 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #4 (rev 02)
00:1d.7 USB Controller: Intel Corporation N10/ICH 7 Family USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2)
00:1f.0 ISA bridge: Intel Corporation NM10 Family LPC Controller (rev 02)
00:1f.2 SATA controller: Intel Corporation N10/ICH7 Family SATA AHCI Controller (rev 02)
01:00.0 Network controller: Broadcom Corporation BCM4313 802.11b/g/n Wireless LAN Controller (rev 01)
02:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8059 PCI-E Gigabit Ethernet Controller (rev 11)The system works stable with 110us/uframe (~88%) isoc bandwith allocated for integrated UVC webcam and external EM28XX based capture board.
Quoted 3 lines
But if Alan is fine with giving users a way to shoot themselves in the foot, and it's disabled by default, then I don't particularly mind this patch.
Yes, it is disabled by default, I mean max periodic bandwidth is set to 100us/uframe by default exactly as it was before the patch. So only those of us who need the extreme settings are taking the risk - normal users who do not alter uframe_periodic_max attribute should not see any change at all.
Thanks for commenting. I'll extend my testing information and notes on do-not-do-harm bahaviour in updated patch.
Kirill
Re: [PATCH 1/2] USB: EHCI: Move sysfs related bits into ehci-sysfs.c
In reply to Alan SternQuoted 11 lines · Alan Stern
Quoted 5 lines · Kirill Smelkov
Yes, but still it would be good to always keep the invariant
allocated <=
uframe_periodic_maxand that debug is there to catch when this breaks.
Then perhaps it should print out the maximum number of microseconds already allocated for any uframe, instead of stopping as soon as it finds something above the new limit.
Yes, this makes sense, thanks. I've adjusted the patch accordingly.
Quoted 7 lines
Quoted 6 lines
Quoted 1 line
Can you make that check conditional on DEBUG being set?
Yes I can, but it seems to me we are starting to complicate the code.
What's the problem with returning error on setting
uframe_periodic_max< already allocated usb bandwith?
Quoted 8 lines
No problem, really.
Quoted 3 lines
The checking is not a priority for me here, so if you think it's better not to check or do it under #ifdef - let's do it. Though of course we all have our preferences :)
Yes, it's just a matter of taste. I prefer to add as little code as possible for a feature that won't be used much.
Look: we have 3 choices: to check or not to check, and if we are checking whether it is under #ifdef DEBUG. Not checking at all makes the code inconsistent with the check in periodic_usecs(). Then, if we are checking, putting it under #ifdef DEBUG goes against minimum complexity / "to add as little code as possible ...". It looks the good balance is to leave the checking as is module you above remark.
And with the above-mentioned correction and comments inspired by Sarah's concern I'm resending the whole series as v3. Can we do it this way, please?
Thanks,
Kirill
Alan Stern
maintainerRe: [PATCH 1/2] USB: EHCI: Move sysfs related bits into ehci-sysfs.c
Quoted 15 lines · Kirill Smelkov
Quoted 6 lines
Quoted 3 lines
The checking is not a priority for me here, so if you think it's better not to check or do it under #ifdef - let's do it. Though of course we all have our preferences :)
Yes, it's just a matter of taste. I prefer to add as little code as possible for a feature that won't be used much.
Look: we have 3 choices: to check or not to check, and if we are checking whether it is under #ifdef DEBUG. Not checking at all makes the code inconsistent with the check in
periodic_usecs(). Then, if we are checking, putting it under #ifdef DEBUG goes against minimum complexity / "to add as little code as possible ...". It looks the good balance is to leave the checking as is module you above remark.
Quoted 3 lines
And with the above-mentioned correction and comments inspired by Sarah's concern I'm resending the whole series as v3. Can we do it this way, please?
Okay, you can add my Acked-by to the 2/2 patch.
Alan Stern
Re: [PATCH 1/2] USB: EHCI: Move sysfs related bits into ehci-sysfs.c
Quoted 17 lines · Alan Stern
Quoted 15 lines · Kirill Smelkov
Quoted 6 lines
Quoted 3 lines
The checking is not a priority for me here, so if you think it's better not to check or do it under #ifdef - let's do it. Though of course we all have our preferences :)
Yes, it's just a matter of taste. I prefer to add as little code as possible for a feature that won't be used much.
Look: we have 3 choices: to check or not to check, and if we are checking whether it is under #ifdef DEBUG. Not checking at all makes the code inconsistent with the check in
periodic_usecs(). Then, if we are checking, putting it under #ifdef DEBUG goes against minimum complexity / "to add as little code as possible ...". It looks the good balance is to leave the checking as is module you above remark.
Quoted 5 lines
Quoted 3 lines
And with the above-mentioned correction and comments inspired by Sarah's concern I'm resending the whole series as v3. Can we do it this way, please?
Okay, you can add my Acked-by to the 2/2 patch.
Thanks a lot!
By the way, is it "Acked-off-by" (as you wrote for 1/2) or "Acked-by" (as you write here)?
Thanks again,
Kirill
Alan Stern
maintainerRe: [PATCH 1/2] USB: EHCI: Move sysfs related bits into ehci-sysfs.c
Quoted 6 lines · Kirill Smelkov
Quoted 1 line
Okay, you can add my Acked-by to the 2/2 patch.
Thanks a lot!
By the way, is it "Acked-off-by" (as you wrote for 1/2) or "Acked-by" (as you write here)?
It's supposed to be "Acked-by". If I wrote "Acked-off-by" earlier, it was by mistake.
Alan Stern
Re: [PATCH 1/2] USB: EHCI: Move sysfs related bits into ehci-sysfs.c
Quoted 11 lines · Alan Stern
Quoted 6 lines · Kirill Smelkov
Quoted 1 line
Okay, you can add my Acked-by to the 2/2 patch.
Thanks a lot!
By the way, is it "Acked-off-by" (as you wrote for 1/2) or "Acked-by" (as you write here)?
It's supposed to be "Acked-by". If I wrote "Acked-off-by" earlier, it was by mistake.
Corrected, thanks.
Kirill