qed: Remove BB_A0 references
A0 never went public, so no need to protect against it. Signed-off-by: Yuval Mintz <Yuval.Mintz@cavium.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
78cea9ffaa
commit
c31a314b23
|
@ -598,16 +598,11 @@ struct qed_dev {
|
||||||
enum qed_dev_type type;
|
enum qed_dev_type type;
|
||||||
/* Translate type/revision combo into the proper conditions */
|
/* Translate type/revision combo into the proper conditions */
|
||||||
#define QED_IS_BB(dev) ((dev)->type == QED_DEV_TYPE_BB)
|
#define QED_IS_BB(dev) ((dev)->type == QED_DEV_TYPE_BB)
|
||||||
#define QED_IS_BB_A0(dev) (QED_IS_BB(dev) && \
|
|
||||||
CHIP_REV_IS_A0(dev))
|
|
||||||
#define QED_IS_BB_B0(dev) (QED_IS_BB(dev) && \
|
#define QED_IS_BB_B0(dev) (QED_IS_BB(dev) && \
|
||||||
CHIP_REV_IS_B0(dev))
|
CHIP_REV_IS_B0(dev))
|
||||||
#define QED_IS_AH(dev) ((dev)->type == QED_DEV_TYPE_AH)
|
#define QED_IS_AH(dev) ((dev)->type == QED_DEV_TYPE_AH)
|
||||||
#define QED_IS_K2(dev) QED_IS_AH(dev)
|
#define QED_IS_K2(dev) QED_IS_AH(dev)
|
||||||
|
|
||||||
#define QED_GET_TYPE(dev) (QED_IS_BB_A0(dev) ? CHIP_BB_A0 : \
|
|
||||||
QED_IS_BB_B0(dev) ? CHIP_BB_B0 : CHIP_K2)
|
|
||||||
|
|
||||||
u16 vendor_id;
|
u16 vendor_id;
|
||||||
u16 device_id;
|
u16 device_id;
|
||||||
#define QED_DEV_ID_MASK 0xff00
|
#define QED_DEV_ID_MASK 0xff00
|
||||||
|
@ -621,7 +616,6 @@ struct qed_dev {
|
||||||
u16 chip_rev;
|
u16 chip_rev;
|
||||||
#define CHIP_REV_MASK 0xf
|
#define CHIP_REV_MASK 0xf
|
||||||
#define CHIP_REV_SHIFT 12
|
#define CHIP_REV_SHIFT 12
|
||||||
#define CHIP_REV_IS_A0(_cdev) (!(_cdev)->chip_rev)
|
|
||||||
#define CHIP_REV_IS_B0(_cdev) ((_cdev)->chip_rev == 1)
|
#define CHIP_REV_IS_B0(_cdev) ((_cdev)->chip_rev == 1)
|
||||||
|
|
||||||
u16 chip_metal;
|
u16 chip_metal;
|
||||||
|
|
|
@ -2812,12 +2812,6 @@ static int qed_get_dev_info(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt)
|
||||||
cdev->chip_num, cdev->chip_rev,
|
cdev->chip_num, cdev->chip_rev,
|
||||||
cdev->chip_bond_id, cdev->chip_metal);
|
cdev->chip_bond_id, cdev->chip_metal);
|
||||||
|
|
||||||
if (QED_IS_BB(cdev) && CHIP_REV_IS_A0(cdev)) {
|
|
||||||
DP_NOTICE(cdev->hwfns,
|
|
||||||
"The chip type/rev (BB A0) is not supported!\n");
|
|
||||||
return -EINVAL;
|
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue