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
689dc7eb
Commit
689dc7eb
authored
Aug 30, 2017
by
Ulf Hansson
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fixes' into next
parents
906d5ff6
99c14fc3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
3 deletions
+22
-3
drivers/mmc/core/block.c
drivers/mmc/core/block.c
+3
-3
drivers/mmc/host/sdhci-xenon.c
drivers/mmc/host/sdhci-xenon.c
+19
-0
No files found.
drivers/mmc/core/block.c
View file @
689dc7eb
...
...
@@ -1223,7 +1223,7 @@ static void mmc_blk_issue_drv_op(struct mmc_queue *mq, struct request *req)
break
;
}
mq_rq
->
drv_op_result
=
ret
;
blk_end_request_all
(
req
,
ret
);
blk_end_request_all
(
req
,
ret
?
BLK_STS_IOERR
:
BLK_STS_OK
);
}
static
void
mmc_blk_issue_discard_rq
(
struct
mmc_queue
*
mq
,
struct
request
*
req
)
...
...
@@ -1728,9 +1728,9 @@ static bool mmc_blk_rw_cmd_err(struct mmc_blk_data *md, struct mmc_card *card,
if
(
err
)
req_pending
=
old_req_pending
;
else
req_pending
=
blk_end_request
(
req
,
0
,
blocks
<<
9
);
req_pending
=
blk_end_request
(
req
,
BLK_STS_OK
,
blocks
<<
9
);
}
else
{
req_pending
=
blk_end_request
(
req
,
0
,
brq
->
data
.
bytes_xfered
);
req_pending
=
blk_end_request
(
req
,
BLK_STS_OK
,
brq
->
data
.
bytes_xfered
);
}
return
req_pending
;
}
...
...
drivers/mmc/host/sdhci-xenon.c
View file @
689dc7eb
...
...
@@ -210,8 +210,27 @@ static void xenon_set_uhs_signaling(struct sdhci_host *host,
sdhci_writew
(
host
,
ctrl_2
,
SDHCI_HOST_CONTROL2
);
}
static
void
xenon_set_power
(
struct
sdhci_host
*
host
,
unsigned
char
mode
,
unsigned
short
vdd
)
{
struct
mmc_host
*
mmc
=
host
->
mmc
;
u8
pwr
=
host
->
pwr
;
sdhci_set_power_noreg
(
host
,
mode
,
vdd
);
if
(
host
->
pwr
==
pwr
)
return
;
if
(
host
->
pwr
==
0
)
vdd
=
0
;
if
(
!
IS_ERR
(
mmc
->
supply
.
vmmc
))
mmc_regulator_set_ocr
(
mmc
,
mmc
->
supply
.
vmmc
,
vdd
);
}
static
const
struct
sdhci_ops
sdhci_xenon_ops
=
{
.
set_clock
=
sdhci_set_clock
,
.
set_power
=
xenon_set_power
,
.
set_bus_width
=
sdhci_set_bus_width
,
.
reset
=
xenon_reset
,
.
set_uhs_signaling
=
xenon_set_uhs_signaling
,
...
...
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