~ubuntu-branches/ubuntu/wily/linux-ti-omap4/wily

« back to all changes in this revision

Viewing changes to drivers/net/ethernet/renesas/sh_eth.c

  • Committer: Package Import Robot
  • Author(s): Paolo Pisati, Paolo Pisati
  • Date: 2013-07-11 18:35:20 UTC
  • Revision ID: package-import@ubuntu.com-20130711183520-htnf1x4y5r11hndr
Tags: 3.5.0-229.42
* Release Tracking Bug
  - LP: #1199276

[ Paolo Pisati ]

* [Config] CONFIG_ATH9K_LEGACY_RATE_CONTROL is not set

Show diffs side-by-side

added added

removed removed

Lines of Context:
1027
1027
                desc_status = edmac_to_cpu(mdp, rxdesc->status);
1028
1028
                pkt_len = rxdesc->frame_length;
1029
1029
 
1030
 
#if defined(CONFIG_ARCH_R8A7740)
1031
 
                desc_status >>= 16;
1032
 
#endif
1033
 
 
1034
1030
                if (--boguscnt < 0)
1035
1031
                        break;
1036
1032
 
1037
1033
                if (!(desc_status & RDFEND))
1038
1034
                        ndev->stats.rx_length_errors++;
1039
1035
 
 
1036
#if defined(CONFIG_ARCH_R8A7740)
 
1037
                /*
 
1038
                 * In case of almost all GETHER/ETHERs, the Receive Frame State
 
1039
                 * (RFS) bits in the Receive Descriptor 0 are from bit 9 to
 
1040
                 * bit 0. However, in case of the R8A7740's GETHER, the RFS
 
1041
                 * bits are from bit 25 to bit 16. So, the driver needs right
 
1042
                 * shifting by 16.
 
1043
                 */
 
1044
                desc_status >>= 16;
 
1045
#endif
 
1046
 
1040
1047
                if (desc_status & (RD_RFS1 | RD_RFS2 | RD_RFS3 | RD_RFS4 |
1041
1048
                                   RD_RFS5 | RD_RFS6 | RD_RFS10)) {
1042
1049
                        ndev->stats.rx_errors++;