ehci-sysfs.c (41be702a542a0d14bb0b1c16e824fa9ed27616ec) ehci-sysfs.c (6774def6422f6eac53f1828c317bf3b08a8f5a60)
1/*
2 * Copyright (C) 2007 by Alan Stern
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the
6 * Free Software Foundation; either version 2 of the License, or (at your
7 * option) any later version.
8 *

--- 118 unchanged lines hidden (view full) ---

127 u8 allocated_max = 0;
128
129 for (uframe = 0; uframe < EHCI_BANDWIDTH_SIZE; ++uframe)
130 allocated_max = max(allocated_max,
131 ehci->bandwidth[uframe]);
132
133 if (allocated_max > uframe_periodic_max) {
134 ehci_info(ehci,
1/*
2 * Copyright (C) 2007 by Alan Stern
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the
6 * Free Software Foundation; either version 2 of the License, or (at your
7 * option) any later version.
8 *

--- 118 unchanged lines hidden (view full) ---

127 u8 allocated_max = 0;
128
129 for (uframe = 0; uframe < EHCI_BANDWIDTH_SIZE; ++uframe)
130 allocated_max = max(allocated_max,
131 ehci->bandwidth[uframe]);
132
133 if (allocated_max > uframe_periodic_max) {
134 ehci_info(ehci,
135 "cannot decrease uframe_periodic_max becase "
135 "cannot decrease uframe_periodic_max because "
136 "periodic bandwidth is already allocated "
137 "(%u > %u)\n",
138 allocated_max, uframe_periodic_max);
139 goto out_unlock;
140 }
141 }
142
143 /* increasing is always ok */

--- 44 unchanged lines hidden ---
136 "periodic bandwidth is already allocated "
137 "(%u > %u)\n",
138 allocated_max, uframe_periodic_max);
139 goto out_unlock;
140 }
141 }
142
143 /* increasing is always ok */

--- 44 unchanged lines hidden ---