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
7b7e4cee
Commit
7b7e4cee
authored
Nov 20, 2020
by
Manivannan Sadhasivam
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'mhi-ath11k-immutable' into mhi-next
parents
6cc17161
2ca7e30d
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
16 deletions
+6
-16
drivers/bus/mhi/core/init.c
drivers/bus/mhi/core/init.c
+0
-9
drivers/bus/mhi/core/internal.h
drivers/bus/mhi/core/internal.h
+0
-1
drivers/net/wireless/ath/ath11k/mhi.c
drivers/net/wireless/ath/ath11k/mhi.c
+0
-4
include/linux/mhi.h
include/linux/mhi.h
+0
-2
net/qrtr/mhi.c
net/qrtr/mhi.c
+6
-0
No files found.
drivers/bus/mhi/core/init.c
View file @
7b7e4cee
...
@@ -758,7 +758,6 @@ static int parse_ch_cfg(struct mhi_controller *mhi_cntrl,
...
@@ -758,7 +758,6 @@ static int parse_ch_cfg(struct mhi_controller *mhi_cntrl,
mhi_chan
->
offload_ch
=
ch_cfg
->
offload_channel
;
mhi_chan
->
offload_ch
=
ch_cfg
->
offload_channel
;
mhi_chan
->
db_cfg
.
reset_req
=
ch_cfg
->
doorbell_mode_switch
;
mhi_chan
->
db_cfg
.
reset_req
=
ch_cfg
->
doorbell_mode_switch
;
mhi_chan
->
pre_alloc
=
ch_cfg
->
auto_queue
;
mhi_chan
->
pre_alloc
=
ch_cfg
->
auto_queue
;
mhi_chan
->
auto_start
=
ch_cfg
->
auto_start
;
/*
/*
* If MHI host allocates buffers, then the channel direction
* If MHI host allocates buffers, then the channel direction
...
@@ -1169,11 +1168,6 @@ static int mhi_driver_probe(struct device *dev)
...
@@ -1169,11 +1168,6 @@ static int mhi_driver_probe(struct device *dev)
goto
exit_probe
;
goto
exit_probe
;
ul_chan
->
xfer_cb
=
mhi_drv
->
ul_xfer_cb
;
ul_chan
->
xfer_cb
=
mhi_drv
->
ul_xfer_cb
;
if
(
ul_chan
->
auto_start
)
{
ret
=
mhi_prepare_channel
(
mhi_cntrl
,
ul_chan
);
if
(
ret
)
goto
exit_probe
;
}
}
}
ret
=
-
EINVAL
;
ret
=
-
EINVAL
;
...
@@ -1207,9 +1201,6 @@ static int mhi_driver_probe(struct device *dev)
...
@@ -1207,9 +1201,6 @@ static int mhi_driver_probe(struct device *dev)
if
(
ret
)
if
(
ret
)
goto
exit_probe
;
goto
exit_probe
;
if
(
dl_chan
&&
dl_chan
->
auto_start
)
mhi_prepare_channel
(
mhi_cntrl
,
dl_chan
);
mhi_device_put
(
mhi_dev
);
mhi_device_put
(
mhi_dev
);
return
ret
;
return
ret
;
...
...
drivers/bus/mhi/core/internal.h
View file @
7b7e4cee
...
@@ -563,7 +563,6 @@ struct mhi_chan {
...
@@ -563,7 +563,6 @@ struct mhi_chan {
bool
configured
;
bool
configured
;
bool
offload_ch
;
bool
offload_ch
;
bool
pre_alloc
;
bool
pre_alloc
;
bool
auto_start
;
bool
wake_capable
;
bool
wake_capable
;
};
};
...
...
drivers/net/wireless/ath/ath11k/mhi.c
View file @
7b7e4cee
...
@@ -24,7 +24,6 @@ static struct mhi_channel_config ath11k_mhi_channels[] = {
...
@@ -24,7 +24,6 @@ static struct mhi_channel_config ath11k_mhi_channels[] = {
.
offload_channel
=
false
,
.
offload_channel
=
false
,
.
doorbell_mode_switch
=
false
,
.
doorbell_mode_switch
=
false
,
.
auto_queue
=
false
,
.
auto_queue
=
false
,
.
auto_start
=
false
,
},
},
{
{
.
num
=
1
,
.
num
=
1
,
...
@@ -39,7 +38,6 @@ static struct mhi_channel_config ath11k_mhi_channels[] = {
...
@@ -39,7 +38,6 @@ static struct mhi_channel_config ath11k_mhi_channels[] = {
.
offload_channel
=
false
,
.
offload_channel
=
false
,
.
doorbell_mode_switch
=
false
,
.
doorbell_mode_switch
=
false
,
.
auto_queue
=
false
,
.
auto_queue
=
false
,
.
auto_start
=
false
,
},
},
{
{
.
num
=
20
,
.
num
=
20
,
...
@@ -54,7 +52,6 @@ static struct mhi_channel_config ath11k_mhi_channels[] = {
...
@@ -54,7 +52,6 @@ static struct mhi_channel_config ath11k_mhi_channels[] = {
.
offload_channel
=
false
,
.
offload_channel
=
false
,
.
doorbell_mode_switch
=
false
,
.
doorbell_mode_switch
=
false
,
.
auto_queue
=
false
,
.
auto_queue
=
false
,
.
auto_start
=
true
,
},
},
{
{
.
num
=
21
,
.
num
=
21
,
...
@@ -69,7 +66,6 @@ static struct mhi_channel_config ath11k_mhi_channels[] = {
...
@@ -69,7 +66,6 @@ static struct mhi_channel_config ath11k_mhi_channels[] = {
.
offload_channel
=
false
,
.
offload_channel
=
false
,
.
doorbell_mode_switch
=
false
,
.
doorbell_mode_switch
=
false
,
.
auto_queue
=
true
,
.
auto_queue
=
true
,
.
auto_start
=
true
,
},
},
};
};
...
...
include/linux/mhi.h
View file @
7b7e4cee
...
@@ -214,7 +214,6 @@ enum mhi_db_brst_mode {
...
@@ -214,7 +214,6 @@ enum mhi_db_brst_mode {
* @offload_channel: The client manages the channel completely
* @offload_channel: The client manages the channel completely
* @doorbell_mode_switch: Channel switches to doorbell mode on M0 transition
* @doorbell_mode_switch: Channel switches to doorbell mode on M0 transition
* @auto_queue: Framework will automatically queue buffers for DL traffic
* @auto_queue: Framework will automatically queue buffers for DL traffic
* @auto_start: Automatically start (open) this channel
* @wake-capable: Channel capable of waking up the system
* @wake-capable: Channel capable of waking up the system
*/
*/
struct
mhi_channel_config
{
struct
mhi_channel_config
{
...
@@ -232,7 +231,6 @@ struct mhi_channel_config {
...
@@ -232,7 +231,6 @@ struct mhi_channel_config {
bool
offload_channel
;
bool
offload_channel
;
bool
doorbell_mode_switch
;
bool
doorbell_mode_switch
;
bool
auto_queue
;
bool
auto_queue
;
bool
auto_start
;
bool
wake_capable
;
bool
wake_capable
;
};
};
...
...
net/qrtr/mhi.c
View file @
7b7e4cee
...
@@ -76,6 +76,11 @@ static int qcom_mhi_qrtr_probe(struct mhi_device *mhi_dev,
...
@@ -76,6 +76,11 @@ static int qcom_mhi_qrtr_probe(struct mhi_device *mhi_dev,
struct
qrtr_mhi_dev
*
qdev
;
struct
qrtr_mhi_dev
*
qdev
;
int
rc
;
int
rc
;
/* start channels */
rc
=
mhi_prepare_for_transfer
(
mhi_dev
);
if
(
rc
)
return
rc
;
qdev
=
devm_kzalloc
(
&
mhi_dev
->
dev
,
sizeof
(
*
qdev
),
GFP_KERNEL
);
qdev
=
devm_kzalloc
(
&
mhi_dev
->
dev
,
sizeof
(
*
qdev
),
GFP_KERNEL
);
if
(
!
qdev
)
if
(
!
qdev
)
return
-
ENOMEM
;
return
-
ENOMEM
;
...
@@ -99,6 +104,7 @@ static void qcom_mhi_qrtr_remove(struct mhi_device *mhi_dev)
...
@@ -99,6 +104,7 @@ static void qcom_mhi_qrtr_remove(struct mhi_device *mhi_dev)
struct
qrtr_mhi_dev
*
qdev
=
dev_get_drvdata
(
&
mhi_dev
->
dev
);
struct
qrtr_mhi_dev
*
qdev
=
dev_get_drvdata
(
&
mhi_dev
->
dev
);
qrtr_endpoint_unregister
(
&
qdev
->
ep
);
qrtr_endpoint_unregister
(
&
qdev
->
ep
);
mhi_unprepare_from_transfer
(
mhi_dev
);
dev_set_drvdata
(
&
mhi_dev
->
dev
,
NULL
);
dev_set_drvdata
(
&
mhi_dev
->
dev
,
NULL
);
}
}
...
...
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