drivers: ethernet: ksz8863 Fix wrong register for tail tag enable
A wrong register address was used to enable tail tagging for the ksz8863 device. Signed-off-by: Matthias Alleman <matthias.alleman@basalte.be>
This commit is contained in:
parent
5f938228fd
commit
8ae0934470
|
@ -281,9 +281,9 @@ static int dsa_ksz8xxx_switch_setup(const struct ksz8xxx_data *pdev)
|
|||
|
||||
#if defined(CONFIG_DSA_KSZ_TAIL_TAGGING)
|
||||
/* Enable tail tag feature */
|
||||
dsa_ksz8xxx_read_reg(pdev, KSZ8863_GLOBAL_CTRL10, &tmp);
|
||||
dsa_ksz8xxx_read_reg(pdev, KSZ8863_GLOBAL_CTRL1, &tmp);
|
||||
tmp |= KSZ8863_GLOBAL_CTRL1_TAIL_TAG_EN;
|
||||
dsa_ksz8xxx_write_reg(pdev, KSZ8863_GLOBAL_CTRL10, tmp);
|
||||
dsa_ksz8xxx_write_reg(pdev, KSZ8863_GLOBAL_CTRL1, tmp);
|
||||
#else
|
||||
/* Disable tail tag feature */
|
||||
dsa_ksz8xxx_read_reg(pdev, KSZ8863_GLOBAL_CTRL1, &tmp);
|
||||
|
|
Loading…
Reference in New Issue