drivers/net/phy/aquantia/aquantia_leds.c

Source file repositories/reference/linux-study-clean/drivers/net/phy/aquantia/aquantia_leds.c

File Facts

System
Linux kernel
Corpus path
drivers/net/phy/aquantia/aquantia_leds.c
Extension
.c
Size
4287 bytes
Lines
161
Domain
Driver Families
Bucket
drivers/net
Inferred role
Driver Families: implementation source
Status
source implementation candidate

Why This File Exists

Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.

Dependency Surface

Detected Declarations

Annotated Snippet

switch (mode) {
		case PHY_LED_ACTIVE_LOW:
			force_active_low = true;
			break;
		case PHY_LED_ACTIVE_HIGH:
			force_active_high = true;
			break;
		default:
			return -EINVAL;
		}
	}

	/* Save LED driver vdd state to restore on SW reset */
	if (force_active_low)
		priv->leds_active_low |= BIT(index);

	if (force_active_high)
		priv->leds_active_high |= BIT(index);

	if (force_active_high || force_active_low)
		return aqr_phy_led_active_low_set(phydev, index, force_active_low);

	return -EINVAL;
}

Annotation

Implementation Notes