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
a6e757e3
Commit
a6e757e3
authored
Nov 05, 2021
by
Jiri Kosina
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'for-5.16/amd-sfh' into for-linus
- code cleanups (Basavaraj Natikar, Christophe JAILLET)
parents
43775e62
f75203cd
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
26 additions
and
14 deletions
+26
-14
drivers/hid/amd-sfh-hid/amd_sfh_client.c
drivers/hid/amd-sfh-hid/amd_sfh_client.c
+2
-1
drivers/hid/amd-sfh-hid/amd_sfh_hid.c
drivers/hid/amd-sfh-hid/amd_sfh_hid.c
+2
-0
drivers/hid/amd-sfh-hid/amd_sfh_hid.h
drivers/hid/amd-sfh-hid/amd_sfh_hid.h
+2
-0
drivers/hid/amd-sfh-hid/amd_sfh_pcie.c
drivers/hid/amd-sfh-hid/amd_sfh_pcie.c
+12
-9
drivers/hid/amd-sfh-hid/amd_sfh_pcie.h
drivers/hid/amd-sfh-hid/amd_sfh_pcie.h
+2
-1
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_desc.c
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_desc.c
+2
-1
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_desc.h
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_desc.h
+2
-1
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_report_desc.h
.../hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_report_desc.h
+2
-1
No files found.
drivers/hid/amd-sfh-hid/amd_sfh_client.c
View file @
a6e757e3
// SPDX-License-Identifier: GPL-2.0-or-later
/*
* AMD SFH Client Layer
* Copyright 2020 Advanced Micro Devices, Inc.
* Copyright 2020
-2021
Advanced Micro Devices, Inc.
* Authors: Nehal Bakulchandra Shah <Nehal-Bakulchandra.Shah@amd.com>
* Sandeep Singh <Sandeep.singh@amd.com>
* Basavaraj Natikar <Basavaraj.Natikar@amd.com>
*/
#include <linux/dma-mapping.h>
...
...
drivers/hid/amd-sfh-hid/amd_sfh_hid.c
View file @
a6e757e3
...
...
@@ -2,8 +2,10 @@
/*
* AMD MP2 Sensors transport driver
*
* Copyright 2020-2021 Advanced Micro Devices, Inc.
* Authors: Nehal Bakulchandra Shah <Nehal-bakulchandra.shah@amd.com>
* Sandeep Singh <sandeep.singh@amd.com>
* Basavaraj Natikar <Basavaraj.Natikar@amd.com>
*/
#include <linux/hid.h>
#include <linux/wait.h>
...
...
drivers/hid/amd-sfh-hid/amd_sfh_hid.h
View file @
a6e757e3
...
...
@@ -2,8 +2,10 @@
/*
* AMD MP2 Sensors transport driver
*
* Copyright 2020-2021 Advanced Micro Devices, Inc.
* Authors: Nehal Bakulchandra Shah <Nehal-bakulchandra.shah@amd.com>
* Sandeep Singh <sandeep.singh@amd.com>
* Basavaraj Natikar <Basavaraj.Natikar@amd.com>
*/
#ifndef AMDSFH_HID_H
...
...
drivers/hid/amd-sfh-hid/amd_sfh_pcie.c
View file @
a6e757e3
// SPDX-License-Identifier: GPL-2.0-or-later
/*
* AMD MP2 PCIe communication driver
* Copyright 2020 Advanced Micro Devices, Inc.
* Copyright 2020
-2021
Advanced Micro Devices, Inc.
*
* Authors: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
* Sandeep Singh <Sandeep.singh@amd.com>
* Basavaraj Natikar <Basavaraj.Natikar@amd.com>
*/
#include <linux/bitops.h>
...
...
@@ -234,7 +235,7 @@ static int amd_mp2_pci_probe(struct pci_dev *pdev, const struct pci_device_id *i
return
-
ENOMEM
;
privdata
->
pdev
=
pdev
;
pci_set_drvdata
(
p
dev
,
privdata
);
dev_set_drvdata
(
&
pdev
->
dev
,
privdata
);
rc
=
pcim_enable_device
(
pdev
);
if
(
rc
)
return
rc
;
...
...
@@ -245,10 +246,13 @@ static int amd_mp2_pci_probe(struct pci_dev *pdev, const struct pci_device_id *i
privdata
->
mmio
=
pcim_iomap_table
(
pdev
)[
2
];
pci_set_master
(
pdev
);
rc
=
pci_set_dma_mask
(
p
dev
,
DMA_BIT_MASK
(
64
));
rc
=
dma_set_mask_and_coherent
(
&
pdev
->
dev
,
DMA_BIT_MASK
(
64
));
if
(
rc
)
{
rc
=
pci_set_dma_mask
(
pdev
,
DMA_BIT_MASK
(
32
));
return
rc
;
rc
=
dma_set_mask_and_coherent
(
&
pdev
->
dev
,
DMA_BIT_MASK
(
32
));
if
(
rc
)
{
dev_err
(
&
pdev
->
dev
,
"failed to set DMA mask
\n
"
);
return
rc
;
}
}
privdata
->
cl_data
=
devm_kzalloc
(
&
pdev
->
dev
,
sizeof
(
struct
amdtp_cl_data
),
GFP_KERNEL
);
...
...
@@ -266,8 +270,7 @@ static int amd_mp2_pci_probe(struct pci_dev *pdev, const struct pci_device_id *i
static
int
__maybe_unused
amd_mp2_pci_resume
(
struct
device
*
dev
)
{
struct
pci_dev
*
pdev
=
to_pci_dev
(
dev
);
struct
amd_mp2_dev
*
mp2
=
pci_get_drvdata
(
pdev
);
struct
amd_mp2_dev
*
mp2
=
dev_get_drvdata
(
dev
);
struct
amdtp_cl_data
*
cl_data
=
mp2
->
cl_data
;
struct
amd_mp2_sensor_info
info
;
int
i
,
status
;
...
...
@@ -292,8 +295,7 @@ static int __maybe_unused amd_mp2_pci_resume(struct device *dev)
static
int
__maybe_unused
amd_mp2_pci_suspend
(
struct
device
*
dev
)
{
struct
pci_dev
*
pdev
=
to_pci_dev
(
dev
);
struct
amd_mp2_dev
*
mp2
=
pci_get_drvdata
(
pdev
);
struct
amd_mp2_dev
*
mp2
=
dev_get_drvdata
(
dev
);
struct
amdtp_cl_data
*
cl_data
=
mp2
->
cl_data
;
int
i
,
status
;
...
...
@@ -334,3 +336,4 @@ MODULE_DESCRIPTION(DRIVER_DESC);
MODULE_LICENSE
(
"Dual BSD/GPL"
);
MODULE_AUTHOR
(
"Shyam Sundar S K <Shyam-sundar.S-k@amd.com>"
);
MODULE_AUTHOR
(
"Sandeep Singh <Sandeep.singh@amd.com>"
);
MODULE_AUTHOR
(
"Basavaraj Natikar <Basavaraj.Natikar@amd.com>"
);
drivers/hid/amd-sfh-hid/amd_sfh_pcie.h
View file @
a6e757e3
/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* AMD MP2 PCIe communication driver
* Copyright 2020 Advanced Micro Devices, Inc.
* Copyright 2020
-2021
Advanced Micro Devices, Inc.
* Authors: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
* Sandeep Singh <Sandeep.singh@amd.com>
* Basavaraj Natikar <Basavaraj.Natikar@amd.com>
*/
#ifndef PCIE_MP2_AMD_H
...
...
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_desc.c
View file @
a6e757e3
// SPDX-License-Identifier: GPL-2.0-or-later
/*
* AMD SFH Report Descriptor generator
* Copyright 2020 Advanced Micro Devices, Inc.
* Copyright 2020
-2021
Advanced Micro Devices, Inc.
* Authors: Nehal Bakulchandra Shah <Nehal-Bakulchandra.Shah@amd.com>
* Sandeep Singh <sandeep.singh@amd.com>
* Basavaraj Natikar <Basavaraj.Natikar@amd.com>
*/
#include <linux/kernel.h>
...
...
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_desc.h
View file @
a6e757e3
/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* HID report descriptors, structures and routines
* Copyright 2020 Advanced Micro Devices, Inc.
* Copyright 2020
-2021
Advanced Micro Devices, Inc.
* Authors: Nehal Bakulchandra Shah <Nehal-bakulchandra.shah@amd.com>
* Sandeep Singh <Sandeep.singh@amd.com>
* Basavaraj Natikar <Basavaraj.Natikar@amd.com>
*/
#ifndef AMD_SFH_HID_DESCRIPTOR_H
...
...
drivers/hid/amd-sfh-hid/hid_descriptor/amd_sfh_hid_report_desc.h
View file @
a6e757e3
/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* HID descriptor stuructures
* Copyright 2020 Advanced Micro Devices, Inc.
* Copyright 2020
-2021
Advanced Micro Devices, Inc.
* Authors: Nehal Bakulchandra Shah <Nehal-bakulchandra.shah@amd.com>
* Sandeep Singh <Sandeep.singh@amd.com>
* Basavaraj Natikar <Basavaraj.Natikar@amd.com>
*/
#ifndef AMD_SFH_HID_REPORT_DESCRIPTOR_H
...
...
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