Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1 +1 @@
!include $ONL_TEMPLATES/platform-modules.yml VENDOR=accton BASENAME=x86-64-accton-as7535-28xb ARCH=amd64 KERNELS="onl-kernel-6.1-lts-x86-64-all:amd64"
!include $ONL_TEMPLATES/platform-modules.yml VENDOR=accton BASENAME=x86-64-accton-as7535-28xb ARCH=amd64 KERNELS="onl-kernel-6.12-lts-x86-64-all:amd64"
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
KERNELS := onl-kernel-6.1-lts-x86-64-all:amd64
KERNELS := onl-kernel-6.12-lts-x86-64-all:amd64
KMODULES := src
VENDOR := accton
BASENAME := x86-64-accton-as7535-28xb
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -740,9 +740,9 @@ static ssize_t show_version(struct device *dev, struct device_attribute *da,
}


static int as7535_28xb_cpld_probe(struct i2c_client *client,
const struct i2c_device_id *dev_id)
static int as7535_28xb_cpld_probe(struct i2c_client *client)
{
const struct i2c_device_id *dev_id = i2c_client_get_device_id(client);
int status;
struct as7535_28xb_cpld_data *data = NULL;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ static ssize_t show_dir(struct device *dev, struct device_attribute *da,
static ssize_t show_threshold(struct device *dev, struct device_attribute *da,
char *buf);
static int as7535_28xb_fan_probe(struct platform_device *pdev);
static int as7535_28xb_fan_remove(struct platform_device *pdev);
static void as7535_28xb_fan_remove(struct platform_device *pdev);

enum fan_id {
FAN_1,
Expand Down Expand Up @@ -503,11 +503,9 @@ static int as7535_28xb_fan_probe(struct platform_device *pdev)
return 0;
}

static int as7535_28xb_fan_remove(struct platform_device *pdev)
static void as7535_28xb_fan_remove(struct platform_device *pdev)
{
sysfs_remove_group(&pdev->dev.kobj, &as7535_28xb_fan_group);

return 0;
}

static int __init as7535_28xb_fan_init(void)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -319,9 +319,9 @@ static ssize_t access(struct device *dev, struct device_attribute *da,
return status;
}

static int as7535_28xb_fpga_probe(struct i2c_client *client,
const struct i2c_device_id *dev_id)
static int as7535_28xb_fpga_probe(struct i2c_client *client)
{
const struct i2c_device_id *dev_id = i2c_client_get_device_id(client);
int status;
struct as7535_28xb_fpga_data *data = NULL;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ static ssize_t set_led(struct device *dev, struct device_attribute *da,
static ssize_t show_led(struct device *dev, struct device_attribute *attr,
char *buf);
static int as7535_28xb_led_probe(struct platform_device *pdev);
static int as7535_28xb_led_remove(struct platform_device *pdev);
static void as7535_28xb_led_remove(struct platform_device *pdev);

struct as7535_28xb_led_data {
struct platform_device *pdev;
Expand Down Expand Up @@ -322,11 +322,9 @@ static int as7535_28xb_led_probe(struct platform_device *pdev)
return status;
}

static int as7535_28xb_led_remove(struct platform_device *pdev)
static void as7535_28xb_led_remove(struct platform_device *pdev)
{
sysfs_remove_group(&pdev->dev.kobj, &as7535_28xb_led_group);

return 0;
}

static int __init as7535_28xb_led_init(void)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ static ssize_t show_psu_info(struct device *dev, struct device_attribute *attr,
static ssize_t show_string(struct device *dev, struct device_attribute *attr,
char *buf);
static int as7535_28xb_psu_probe(struct platform_device *pdev);
static int as7535_28xb_psu_remove(struct platform_device *pdev);
static void as7535_28xb_psu_remove(struct platform_device *pdev);

enum psu_id {
PSU_1,
Expand Down Expand Up @@ -784,10 +784,9 @@ static int as7535_28xb_psu_probe(struct platform_device *pdev)
return 0;
}

static int as7535_28xb_psu_remove(struct platform_device *pdev)
static void as7535_28xb_psu_remove(struct platform_device *pdev)
{
sysfs_remove_group(&pdev->dev.kobj, &as7535_28xb_psu_group);
return 0;
}

static int __init as7535_28xb_psu_init(void)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
#define IPMI_CPLD_READ_REG_CMD 0x22

static int as7535_28xb_sys_probe(struct platform_device *pdev);
static int as7535_28xb_sys_remove(struct platform_device *pdev);
static void as7535_28xb_sys_remove(struct platform_device *pdev);
static ssize_t show_version(struct device *dev,
struct device_attribute *da, char *buf);
static ssize_t show_bios_flash_id(struct device *dev,
Expand Down Expand Up @@ -418,12 +418,10 @@ static int as7535_28xb_sys_probe(struct platform_device *pdev)
return status;
}

static int as7535_28xb_sys_remove(struct platform_device *pdev)
static void as7535_28xb_sys_remove(struct platform_device *pdev)
{
sysfs_eeprom_cleanup(&pdev->dev.kobj, &data->eeprom);
sysfs_remove_group(&pdev->dev.kobj, &as7535_28xb_sys_group);

return 0;
}

static int __init as7535_28xb_sys_init(void)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ static ssize_t show_temp(struct device *dev, struct device_attribute *attr,
static ssize_t set_max(struct device *dev, struct device_attribute *da,
const char *buf, size_t count);
static int as7535_28xb_thermal_probe(struct platform_device *pdev);
static int as7535_28xb_thermal_remove(struct platform_device *pdev);
static void as7535_28xb_thermal_remove(struct platform_device *pdev);

static int get_pcb_id(void);
static int g_pcb_id = 0;
Expand Down Expand Up @@ -252,10 +252,9 @@ static int as7535_28xb_thermal_probe(struct platform_device *pdev)
return 0;
}

static int as7535_28xb_thermal_remove(struct platform_device *pdev)
static void as7535_28xb_thermal_remove(struct platform_device *pdev)
{
sysfs_remove_group(&pdev->dev.kobj, &as7535_28xb_thermal_group);
return 0;
}

static int __init as7535_28xb_thermal_init(void)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ onlp_sysi_platform_info_get(onlp_platform_info_t* pi)
int bmc_major = 0, bmc_minor = 0;
unsigned int bmc_aux[4] = {0};
char bmc_ver[16] = "";
onlp_onie_info_t onie;
onlp_onie_info_t onie = {0};
char *bios_ver = NULL;

for (i = 0; i < AIM_ARRAYSIZE(cpld_ver_path); i++) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ x86-64-accton-as7535-28xb-r0:
--stop=1

kernel:
<<: *kernel-6-1
<<: *kernel-6-12

args: >-
console=ttyS0,115200n8
Expand Down