Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 354277
b: refs/heads/master
c: d835618
h: refs/heads/master
i:
  354275: 80c2891
v: v3
  • Loading branch information
Peter Hurley authored and Greg Kroah-Hartman committed Jan 30, 2013
1 parent 5359174 commit 92edeeb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5d110d92961317c1f289396473be3c26d01f171c
refs/heads/master: d83561894db22ee9c40fdd85d49eb5ee573125cc
4 changes: 2 additions & 2 deletions trunk/drivers/staging/fwserial/fwserial.h
Original file line number Diff line number Diff line change
Expand Up @@ -377,8 +377,8 @@ static inline void fwtty_bind_console(struct fwtty_port *port,
*/
static inline int link_speed_to_max_payload(unsigned speed)
{
speed = clamp(speed, (unsigned) SCODE_100, (unsigned) SCODE_800);
return 1 << (speed + 9);
/* Max async payload is 4096 - see IEEE 1394-2008 tables 6-4, 16-18 */
return min(512 << speed, 4096);
}

#endif /* _FIREWIRE_FWSERIAL_H */

0 comments on commit 92edeeb

Please sign in to comment.