[OpenWrt-Devel] Patch file for QCA8334 eth switch chip

Heiner Kallweit hkallweit1 at gmail.com
Tue May 19 00:55:53 EDT 2015


Am 19.05.2015 um 05:45 schrieb nam228:
> Hi all,
> 
> I have a board with a qca8334 eth switch chip.The chip is found by the ar8216 phy as an ar8337.
> 
> My board can not ping unless I remove the AR8337_PAD_MAC06_EXCHANGE_EN with a path file.
> 
> The patch file is:
> 
> --- a/drivers/net/phy/ar8327.c
> +++ b/drivers/net/phy/ar8327.c
> @@ -508,8 +508,8 @@ ar8327_hw_config_pdata(struct ar8xxx_pri
>          data->port6_status = ar8327_get_port_init_status(&pdata->port6_cfg);
> 
>          t = ar8327_get_pad_cfg(pdata->pad0_cfg);
> -       if (chip_is_ar8337(priv))
> -               t |= AR8337_PAD_MAC06_EXCHANGE_EN;
> +       //if (chip_is_ar8337(priv))
> +       //      t |= AR8337_PAD_MAC06_EXCHANGE_EN;
> 
>          ar8xxx_write(priv, AR8327_REG_PAD0_MODE, t);
>          t = ar8327_get_pad_cfg(pdata->pad5_cfg);
> 
> 
> Does anyone know if the qca8334 is different from the ar8337 ?
> 
> Thanks,
> 
> Nam.
> 
> P/S: my OpenWRT version is Chaos Calmer.
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel at lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
> 
With this patch you would break several AR8337-based devices.
A solution that covers both chips is waiting to be applied:
http://patchwork.ozlabs.org/patch/466209/

Heiner
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list