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
84275775
Commit
84275775
authored
Feb 28, 2022
by
Ulf Hansson
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fixes' into next
parents
bee15491
f0d2f153
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
drivers/mmc/host/meson-gx-mmc.c
drivers/mmc/host/meson-gx-mmc.c
+8
-7
No files found.
drivers/mmc/host/meson-gx-mmc.c
View file @
84275775
...
@@ -173,6 +173,8 @@ struct meson_host {
...
@@ -173,6 +173,8 @@ struct meson_host {
int
irq
;
int
irq
;
bool
vqmmc_enabled
;
bool
vqmmc_enabled
;
bool
needs_pre_post_req
;
};
};
#define CMD_CFG_LENGTH_MASK GENMASK(8, 0)
#define CMD_CFG_LENGTH_MASK GENMASK(8, 0)
...
@@ -663,6 +665,8 @@ static void meson_mmc_request_done(struct mmc_host *mmc,
...
@@ -663,6 +665,8 @@ static void meson_mmc_request_done(struct mmc_host *mmc,
struct
meson_host
*
host
=
mmc_priv
(
mmc
);
struct
meson_host
*
host
=
mmc_priv
(
mmc
);
host
->
cmd
=
NULL
;
host
->
cmd
=
NULL
;
if
(
host
->
needs_pre_post_req
)
meson_mmc_post_req
(
mmc
,
mrq
,
0
);
mmc_request_done
(
host
->
mmc
,
mrq
);
mmc_request_done
(
host
->
mmc
,
mrq
);
}
}
...
@@ -880,7 +884,7 @@ static int meson_mmc_validate_dram_access(struct mmc_host *mmc, struct mmc_data
...
@@ -880,7 +884,7 @@ static int meson_mmc_validate_dram_access(struct mmc_host *mmc, struct mmc_data
static
void
meson_mmc_request
(
struct
mmc_host
*
mmc
,
struct
mmc_request
*
mrq
)
static
void
meson_mmc_request
(
struct
mmc_host
*
mmc
,
struct
mmc_request
*
mrq
)
{
{
struct
meson_host
*
host
=
mmc_priv
(
mmc
);
struct
meson_host
*
host
=
mmc_priv
(
mmc
);
bool
needs_pre_post_req
=
mrq
->
data
&&
host
->
needs_pre_post_req
=
mrq
->
data
&&
!
(
mrq
->
data
->
host_cookie
&
SD_EMMC_PRE_REQ_DONE
);
!
(
mrq
->
data
->
host_cookie
&
SD_EMMC_PRE_REQ_DONE
);
/*
/*
...
@@ -896,22 +900,19 @@ static void meson_mmc_request(struct mmc_host *mmc, struct mmc_request *mrq)
...
@@ -896,22 +900,19 @@ static void meson_mmc_request(struct mmc_host *mmc, struct mmc_request *mrq)
}
}
}
}
if
(
needs_pre_post_req
)
{
if
(
host
->
needs_pre_post_req
)
{
meson_mmc_get_transfer_mode
(
mmc
,
mrq
);
meson_mmc_get_transfer_mode
(
mmc
,
mrq
);
if
(
!
meson_mmc_desc_chain_mode
(
mrq
->
data
))
if
(
!
meson_mmc_desc_chain_mode
(
mrq
->
data
))
needs_pre_post_req
=
false
;
host
->
needs_pre_post_req
=
false
;
}
}
if
(
needs_pre_post_req
)
if
(
host
->
needs_pre_post_req
)
meson_mmc_pre_req
(
mmc
,
mrq
);
meson_mmc_pre_req
(
mmc
,
mrq
);
/* Stop execution */
/* Stop execution */
writel
(
0
,
host
->
regs
+
SD_EMMC_START
);
writel
(
0
,
host
->
regs
+
SD_EMMC_START
);
meson_mmc_start_cmd
(
mmc
,
mrq
->
sbc
?:
mrq
->
cmd
);
meson_mmc_start_cmd
(
mmc
,
mrq
->
sbc
?:
mrq
->
cmd
);
if
(
needs_pre_post_req
)
meson_mmc_post_req
(
mmc
,
mrq
,
0
);
}
}
static
void
meson_mmc_read_resp
(
struct
mmc_host
*
mmc
,
struct
mmc_command
*
cmd
)
static
void
meson_mmc_read_resp
(
struct
mmc_host
*
mmc
,
struct
mmc_command
*
cmd
)
...
...
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