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
edf978a5
Commit
edf978a5
authored
Jun 25, 2021
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'spi/for-5.13' into spi-linus
parents
04045c47
0d7993b2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
7 deletions
+15
-7
drivers/spi/spi-nxp-fspi.c
drivers/spi/spi-nxp-fspi.c
+5
-6
drivers/spi/spi-sun6i.c
drivers/spi/spi-sun6i.c
+5
-1
drivers/spi/spi-tegra20-slink.c
drivers/spi/spi-tegra20-slink.c
+5
-0
No files found.
drivers/spi/spi-nxp-fspi.c
View file @
edf978a5
...
@@ -1124,12 +1124,6 @@ static int nxp_fspi_probe(struct platform_device *pdev)
...
@@ -1124,12 +1124,6 @@ static int nxp_fspi_probe(struct platform_device *pdev)
goto
err_put_ctrl
;
goto
err_put_ctrl
;
}
}
/* Clear potential interrupts */
reg
=
fspi_readl
(
f
,
f
->
iobase
+
FSPI_INTR
);
if
(
reg
)
fspi_writel
(
f
,
reg
,
f
->
iobase
+
FSPI_INTR
);
/* find the resources - controller memory mapped space */
/* find the resources - controller memory mapped space */
if
(
is_acpi_node
(
f
->
dev
->
fwnode
))
if
(
is_acpi_node
(
f
->
dev
->
fwnode
))
res
=
platform_get_resource
(
pdev
,
IORESOURCE_MEM
,
1
);
res
=
platform_get_resource
(
pdev
,
IORESOURCE_MEM
,
1
);
...
@@ -1167,6 +1161,11 @@ static int nxp_fspi_probe(struct platform_device *pdev)
...
@@ -1167,6 +1161,11 @@ static int nxp_fspi_probe(struct platform_device *pdev)
}
}
}
}
/* Clear potential interrupts */
reg
=
fspi_readl
(
f
,
f
->
iobase
+
FSPI_INTR
);
if
(
reg
)
fspi_writel
(
f
,
reg
,
f
->
iobase
+
FSPI_INTR
);
/* find the irq */
/* find the irq */
ret
=
platform_get_irq
(
pdev
,
0
);
ret
=
platform_get_irq
(
pdev
,
0
);
if
(
ret
<
0
)
if
(
ret
<
0
)
...
...
drivers/spi/spi-sun6i.c
View file @
edf978a5
...
@@ -379,6 +379,10 @@ static int sun6i_spi_transfer_one(struct spi_master *master,
...
@@ -379,6 +379,10 @@ static int sun6i_spi_transfer_one(struct spi_master *master,
}
}
sun6i_spi_write
(
sspi
,
SUN6I_CLK_CTL_REG
,
reg
);
sun6i_spi_write
(
sspi
,
SUN6I_CLK_CTL_REG
,
reg
);
/* Finally enable the bus - doing so before might raise SCK to HIGH */
reg
=
sun6i_spi_read
(
sspi
,
SUN6I_GBL_CTL_REG
);
reg
|=
SUN6I_GBL_CTL_BUS_ENABLE
;
sun6i_spi_write
(
sspi
,
SUN6I_GBL_CTL_REG
,
reg
);
/* Setup the transfer now... */
/* Setup the transfer now... */
if
(
sspi
->
tx_buf
)
if
(
sspi
->
tx_buf
)
...
@@ -504,7 +508,7 @@ static int sun6i_spi_runtime_resume(struct device *dev)
...
@@ -504,7 +508,7 @@ static int sun6i_spi_runtime_resume(struct device *dev)
}
}
sun6i_spi_write
(
sspi
,
SUN6I_GBL_CTL_REG
,
sun6i_spi_write
(
sspi
,
SUN6I_GBL_CTL_REG
,
SUN6I_GBL_CTL_
BUS_ENABLE
|
SUN6I_GBL_CTL_
MASTER
|
SUN6I_GBL_CTL_TP
);
SUN6I_GBL_CTL_MASTER
|
SUN6I_GBL_CTL_TP
);
return
0
;
return
0
;
...
...
drivers/spi/spi-tegra20-slink.c
View file @
edf978a5
...
@@ -1118,6 +1118,11 @@ static int tegra_slink_probe(struct platform_device *pdev)
...
@@ -1118,6 +1118,11 @@ static int tegra_slink_probe(struct platform_device *pdev)
pm_runtime_put_noidle
(
&
pdev
->
dev
);
pm_runtime_put_noidle
(
&
pdev
->
dev
);
goto
exit_pm_disable
;
goto
exit_pm_disable
;
}
}
reset_control_assert
(
tspi
->
rst
);
udelay
(
2
);
reset_control_deassert
(
tspi
->
rst
);
tspi
->
def_command_reg
=
SLINK_M_S
;
tspi
->
def_command_reg
=
SLINK_M_S
;
tspi
->
def_command2_reg
=
SLINK_CS_ACTIVE_BETWEEN
;
tspi
->
def_command2_reg
=
SLINK_CS_ACTIVE_BETWEEN
;
tegra_slink_writel
(
tspi
,
tspi
->
def_command_reg
,
SLINK_COMMAND
);
tegra_slink_writel
(
tspi
,
tspi
->
def_command_reg
,
SLINK_COMMAND
);
...
...
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