Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
378f2b61
Commit
378f2b61
authored
Oct 06, 2023
by
Ilpo Järvinen
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'pdx86/platform-drivers-x86-mellanox-init' into review-ilpo
parents
a41357ad
8634c111
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
14 deletions
+15
-14
drivers/platform/x86/mlx-platform.c
drivers/platform/x86/mlx-platform.c
+15
-14
No files found.
drivers/platform/x86/mlx-platform.c
View file @
378f2b61
...
...
@@ -368,7 +368,7 @@ struct mlxplat_priv {
};
static
struct
platform_device
*
mlxplat_dev
;
static
int
mlxplat_i2c_main_compl
i
tion_notify
(
void
*
handle
,
int
id
);
static
int
mlxplat_i2c_main_compl
e
tion_notify
(
void
*
handle
,
int
id
);
static
void
__iomem
*
i2c_bridge_addr
,
*
jtag_bridge_addr
;
/* Regions for LPC I2C controller and LPC base register space */
...
...
@@ -384,7 +384,7 @@ static const struct resource mlxplat_lpc_resources[] = {
/* Platform systems default i2c data */
static
struct
mlxreg_core_hotplug_platform_data
mlxplat_mlxcpld_i2c_default_data
=
{
.
completion_notify
=
mlxplat_i2c_main_compl
i
tion_notify
,
.
completion_notify
=
mlxplat_i2c_main_compl
e
tion_notify
,
};
/* Platform i2c next generation systems data */
...
...
@@ -409,7 +409,7 @@ static struct mlxreg_core_hotplug_platform_data mlxplat_mlxcpld_i2c_ng_data = {
.
mask
=
MLXPLAT_CPLD_AGGR_MASK_COMEX
,
.
cell_low
=
MLXPLAT_CPLD_LPC_REG_AGGRCO_OFFSET
,
.
mask_low
=
MLXPLAT_CPLD_LOW_AGGR_MASK_I2C
,
.
completion_notify
=
mlxplat_i2c_main_compl
i
tion_notify
,
.
completion_notify
=
mlxplat_i2c_main_compl
e
tion_notify
,
};
/* Platform default channels */
...
...
@@ -6291,7 +6291,7 @@ static void mlxplat_pci_fpga_devices_exit(void)
}
static
int
mlxplat_
pre
_init
(
struct
resource
**
hotplug_resources
,
unsigned
int
*
hotplug_resources_size
)
mlxplat_
logicdev
_init
(
struct
resource
**
hotplug_resources
,
unsigned
int
*
hotplug_resources_size
)
{
int
err
;
...
...
@@ -6302,7 +6302,7 @@ mlxplat_pre_init(struct resource **hotplug_resources, unsigned int *hotplug_reso
return
err
;
}
static
void
mlxplat_
post
_exit
(
void
)
static
void
mlxplat_
logicdev
_exit
(
void
)
{
if
(
lpc_bridge
)
mlxplat_pci_fpga_devices_exit
();
...
...
@@ -6310,7 +6310,7 @@ static void mlxplat_post_exit(void)
mlxplat_lpc_cpld_device_exit
();
}
static
int
mlxplat_p
ost
_init
(
struct
mlxplat_priv
*
priv
)
static
int
mlxplat_p
latdevs
_init
(
struct
mlxplat_priv
*
priv
)
{
int
i
=
0
,
err
;
...
...
@@ -6407,7 +6407,7 @@ static int mlxplat_post_init(struct mlxplat_priv *priv)
return
err
;
}
static
void
mlxplat_p
re
_exit
(
struct
mlxplat_priv
*
priv
)
static
void
mlxplat_p
latdevs
_exit
(
struct
mlxplat_priv
*
priv
)
{
int
i
;
...
...
@@ -6429,7 +6429,7 @@ mlxplat_i2c_mux_complition_notify(void *handle, struct i2c_adapter *parent,
{
struct
mlxplat_priv
*
priv
=
handle
;
return
mlxplat_p
ost
_init
(
priv
);
return
mlxplat_p
latdevs
_init
(
priv
);
}
static
int
mlxplat_i2c_mux_topology_init
(
struct
mlxplat_priv
*
priv
)
...
...
@@ -6471,7 +6471,7 @@ static void mlxplat_i2c_mux_topology_exit(struct mlxplat_priv *priv)
}
}
static
int
mlxplat_i2c_main_compl
i
tion_notify
(
void
*
handle
,
int
id
)
static
int
mlxplat_i2c_main_compl
e
tion_notify
(
void
*
handle
,
int
id
)
{
struct
mlxplat_priv
*
priv
=
handle
;
...
...
@@ -6514,6 +6514,7 @@ static int mlxplat_i2c_main_init(struct mlxplat_priv *priv)
return
0
;
fail_mlxplat_i2c_mux_topology_init:
platform_device_unregister
(
priv
->
pdev_i2c
);
fail_platform_i2c_register:
fail_mlxplat_mlxcpld_verify_bus_topology:
return
err
;
...
...
@@ -6521,6 +6522,7 @@ static int mlxplat_i2c_main_init(struct mlxplat_priv *priv)
static
void
mlxplat_i2c_main_exit
(
struct
mlxplat_priv
*
priv
)
{
mlxplat_platdevs_exit
(
priv
);
mlxplat_i2c_mux_topology_exit
(
priv
);
if
(
priv
->
pdev_i2c
)
platform_device_unregister
(
priv
->
pdev_i2c
);
...
...
@@ -6542,7 +6544,7 @@ static int mlxplat_probe(struct platform_device *pdev)
mlxplat_dev
=
pdev
;
}
err
=
mlxplat_
pre
_init
(
&
hotplug_resources
,
&
hotplug_resources_size
);
err
=
mlxplat_
logicdev
_init
(
&
hotplug_resources
,
&
hotplug_resources_size
);
if
(
err
)
return
err
;
...
...
@@ -6597,11 +6599,11 @@ static int mlxplat_probe(struct platform_device *pdev)
fail_register_reboot_notifier:
fail_regcache_sync:
mlxplat_
pre
_exit
(
priv
);
mlxplat_
i2c_main
_exit
(
priv
);
fail_mlxplat_i2c_main_init:
fail_regmap_write:
fail_alloc:
mlxplat_
post
_exit
();
mlxplat_
logicdev
_exit
();
return
err
;
}
...
...
@@ -6614,9 +6616,8 @@ static void mlxplat_remove(struct platform_device *pdev)
pm_power_off
=
NULL
;
if
(
mlxplat_reboot_nb
)
unregister_reboot_notifier
(
mlxplat_reboot_nb
);
mlxplat_pre_exit
(
priv
);
mlxplat_i2c_main_exit
(
priv
);
mlxplat_
post
_exit
();
mlxplat_
logicdev
_exit
();
}
static
const
struct
acpi_device_id
mlxplat_acpi_table
[]
=
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment