Commit 7b49acb3 authored by Jody McIntyre's avatar Jody McIntyre

From Stefan Richter:

In trunk/ohci1394.c, duplicate code has slipped in which sets 
max_packet_size to 512 and prints a log notice. See "Serial EEPROM 
Sanity check" further down in ohci_initialize(). Since the latter code 
is more appropriate, the former is deleted by the attached patch.
Signed-off-by: default avatarJody McIntyre <scjody@modernduck.com>
parent 7759ec82
...@@ -515,12 +515,6 @@ static void ohci_initialize(struct ti_ohci *ohci) ...@@ -515,12 +515,6 @@ static void ohci_initialize(struct ti_ohci *ohci)
/* Now get our max packet size */ /* Now get our max packet size */
ohci->max_packet_size = ohci->max_packet_size =
1<<(((reg_read(ohci, OHCI1394_BusOptions)>>12)&0xf)+1); 1<<(((reg_read(ohci, OHCI1394_BusOptions)>>12)&0xf)+1);
if (ohci->max_packet_size < 512) {
HPSB_ERR("warning: Invalid max packet size of %d, setting to 512",
ohci->max_packet_size);
ohci->max_packet_size = 512;
}
/* Don't accept phy packets into AR request context */ /* Don't accept phy packets into AR request context */
reg_write(ohci, OHCI1394_LinkControlClear, 0x00000400); reg_write(ohci, OHCI1394_LinkControlClear, 0x00000400);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment