Re: [PATCH RFC net-next 6/7] net: dsa: mv88e6xxx: provide software node for default settings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> +static struct fwnode_handle *mv88e6xxx_port_get_fwnode(struct dsa_switch *ds,
> +						       int port,
> +						       struct fwnode_handle *h)
> +{
> +	struct mv88e6xxx_chip *chip = ds->priv;
> +	struct device_node *np, *phy_node;
> +	int speed, duplex, err;
> +	phy_interface_t mode;
> +	struct dsa_port *dp;
> +	unsigned long caps;
> +
> +	dp = dsa_to_port(ds, port);
> +	if (dsa_port_is_user(dp))
> +		return h;
> +
> +	/* No DT? Eh? */
> +	np = to_of_node(h);
> +	if (!np)
> +		return h;

I've not looked at the big picture yet, but you can have a simple
switch setup without DT. I have a couple of amd64 boards which use
platform data. The user ports all have internal PHYs, and the CPU port
defaults to 1G, it might even be strapped that way.

	 Andrew



[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]
  Powered by Linux