mac.c (07fa3fa2572f2dee85beb8137f90ccf33d7206af) mac.c (3c1bcc8614db10803f1f57ef0295363917448cb2)
1/* Copyright 2008-2015 Freescale Semiconductor, Inc.
2 *
3 * Redistribution and use in source and binary forms, with or without
4 * modification, are permitted provided that the following conditions are met:
5 * * Redistributions of source code must retain the above copyright
6 * notice, this list of conditions and the following disclaimer.
7 * * Redistributions in binary form must reproduce the above copyright
8 * notice, this list of conditions and the following disclaimer in the

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

388 return;
389 }
390
391 /* Else if PAUSE autonegotiation is enabled, the TX/RX PAUSE
392 * settings depend on the result of the link negotiation.
393 */
394
395 /* get local capabilities */
1/* Copyright 2008-2015 Freescale Semiconductor, Inc.
2 *
3 * Redistribution and use in source and binary forms, with or without
4 * modification, are permitted provided that the following conditions are met:
5 * * Redistributions of source code must retain the above copyright
6 * notice, this list of conditions and the following disclaimer.
7 * * Redistributions in binary form must reproduce the above copyright
8 * notice, this list of conditions and the following disclaimer in the

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

388 return;
389 }
390
391 /* Else if PAUSE autonegotiation is enabled, the TX/RX PAUSE
392 * settings depend on the result of the link negotiation.
393 */
394
395 /* get local capabilities */
396 lcl_adv = ethtool_adv_to_lcl_adv_t(phy_dev->advertising);
396 lcl_adv = linkmode_adv_to_lcl_adv_t(phy_dev->advertising);
397
398 /* get link partner capabilities */
399 rmt_adv = 0;
400 if (phy_dev->pause)
401 rmt_adv |= LPA_PAUSE_CAP;
402 if (phy_dev->asym_pause)
403 rmt_adv |= LPA_PAUSE_ASYM;
404

--- 483 unchanged lines hidden ---
397
398 /* get link partner capabilities */
399 rmt_adv = 0;
400 if (phy_dev->pause)
401 rmt_adv |= LPA_PAUSE_CAP;
402 if (phy_dev->asym_pause)
403 rmt_adv |= LPA_PAUSE_ASYM;
404

--- 483 unchanged lines hidden ---