Re: [PATCH net-next v1 5/5] hinic: add support to get eeprom information

From: luobin (L)
Date: Tue Jun 23 2020 - 02:48:40 EST


On 2020/6/23 6:15, Jakub Kicinski wrote:
> On Sat, 20 Jun 2020 17:42:58 +0800 Luo bin wrote:
>> diff --git a/drivers/net/ethernet/huawei/hinic/hinic_port.h b/drivers/net/ethernet/huawei/hinic/hinic_port.h
>> index 5c916875f295..0d0354241345 100644
>> --- a/drivers/net/ethernet/huawei/hinic/hinic_port.h
>> +++ b/drivers/net/ethernet/huawei/hinic/hinic_port.h
>> @@ -677,6 +677,37 @@ struct hinic_led_info {
>> u8 reset;
>> };
>>
>> +#define MODULE_TYPE_SFP 0x3
>> +#define MODULE_TYPE_QSFP28 0x11
>> +#define MODULE_TYPE_QSFP 0x0C
>> +#define MODULE_TYPE_QSFP_PLUS 0x0D
>> +
>> +#define STD_SFP_INFO_MAX_SIZE 640
>
> Please use the existing defines, e.g. from #include <linux/sfp.h>
> there is no need for every driver to redefine those constants.
> .
>
Will fix. Thanks for your review.