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
110bc220
Commit
110bc220
authored
Feb 12, 2021
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'spi/for-5.11' into spi-linus
parents
92bf2261
b3063203
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
11 deletions
+28
-11
drivers/spi/spi-dw-bt1.c
drivers/spi/spi-dw-bt1.c
+1
-1
drivers/spi/spi-fsl-spi.c
drivers/spi/spi-fsl-spi.c
+1
-1
drivers/spi/spi-pxa2xx-pci.c
drivers/spi/spi-pxa2xx-pci.c
+21
-8
drivers/spi/spi-synquacer.c
drivers/spi/spi-synquacer.c
+4
-0
drivers/spi/spi.c
drivers/spi/spi.c
+1
-1
No files found.
drivers/spi/spi-dw-bt1.c
View file @
110bc220
...
@@ -84,7 +84,7 @@ static void dw_spi_bt1_dirmap_copy_from_map(void *to, void __iomem *from, size_t
...
@@ -84,7 +84,7 @@ static void dw_spi_bt1_dirmap_copy_from_map(void *to, void __iomem *from, size_t
if
(
shift
)
{
if
(
shift
)
{
chunk
=
min_t
(
size_t
,
4
-
shift
,
len
);
chunk
=
min_t
(
size_t
,
4
-
shift
,
len
);
data
=
readl_relaxed
(
from
-
shift
);
data
=
readl_relaxed
(
from
-
shift
);
memcpy
(
to
,
&
data
+
shift
,
chunk
);
memcpy
(
to
,
(
char
*
)
&
data
+
shift
,
chunk
);
from
+=
chunk
;
from
+=
chunk
;
to
+=
chunk
;
to
+=
chunk
;
len
-=
chunk
;
len
-=
chunk
;
...
...
drivers/spi/spi-fsl-spi.c
View file @
110bc220
...
@@ -695,7 +695,7 @@ static void fsl_spi_cs_control(struct spi_device *spi, bool on)
...
@@ -695,7 +695,7 @@ static void fsl_spi_cs_control(struct spi_device *spi, bool on)
if
(
WARN_ON_ONCE
(
!
pinfo
->
immr_spi_cs
))
if
(
WARN_ON_ONCE
(
!
pinfo
->
immr_spi_cs
))
return
;
return
;
iowrite32be
(
on
?
SPI_BOOT_SEL_BIT
:
0
,
pinfo
->
immr_spi_cs
);
iowrite32be
(
on
?
0
:
SPI_BOOT_SEL_BIT
,
pinfo
->
immr_spi_cs
);
}
}
}
}
...
...
drivers/spi/spi-pxa2xx-pci.c
View file @
110bc220
...
@@ -21,7 +21,8 @@ enum {
...
@@ -21,7 +21,8 @@ enum {
PORT_BSW1
,
PORT_BSW1
,
PORT_BSW2
,
PORT_BSW2
,
PORT_CE4100
,
PORT_CE4100
,
PORT_LPT
,
PORT_LPT0
,
PORT_LPT1
,
};
};
struct
pxa_spi_info
{
struct
pxa_spi_info
{
...
@@ -57,8 +58,10 @@ static struct dw_dma_slave bsw1_rx_param = { .src_id = 7 };
...
@@ -57,8 +58,10 @@ static struct dw_dma_slave bsw1_rx_param = { .src_id = 7 };
static
struct
dw_dma_slave
bsw2_tx_param
=
{
.
dst_id
=
8
};
static
struct
dw_dma_slave
bsw2_tx_param
=
{
.
dst_id
=
8
};
static
struct
dw_dma_slave
bsw2_rx_param
=
{
.
src_id
=
9
};
static
struct
dw_dma_slave
bsw2_rx_param
=
{
.
src_id
=
9
};
static
struct
dw_dma_slave
lpt_tx_param
=
{
.
dst_id
=
0
};
static
struct
dw_dma_slave
lpt1_tx_param
=
{
.
dst_id
=
0
};
static
struct
dw_dma_slave
lpt_rx_param
=
{
.
src_id
=
1
};
static
struct
dw_dma_slave
lpt1_rx_param
=
{
.
src_id
=
1
};
static
struct
dw_dma_slave
lpt0_tx_param
=
{
.
dst_id
=
2
};
static
struct
dw_dma_slave
lpt0_rx_param
=
{
.
src_id
=
3
};
static
bool
lpss_dma_filter
(
struct
dma_chan
*
chan
,
void
*
param
)
static
bool
lpss_dma_filter
(
struct
dma_chan
*
chan
,
void
*
param
)
{
{
...
@@ -185,12 +188,19 @@ static struct pxa_spi_info spi_info_configs[] = {
...
@@ -185,12 +188,19 @@ static struct pxa_spi_info spi_info_configs[] = {
.
num_chipselect
=
1
,
.
num_chipselect
=
1
,
.
max_clk_rate
=
50000000
,
.
max_clk_rate
=
50000000
,
},
},
[
PORT_LPT
]
=
{
[
PORT_LPT
0
]
=
{
.
type
=
LPSS_LPT_SSP
,
.
type
=
LPSS_LPT_SSP
,
.
port_id
=
0
,
.
port_id
=
0
,
.
setup
=
lpss_spi_setup
,
.
setup
=
lpss_spi_setup
,
.
tx_param
=
&
lpt_tx_param
,
.
tx_param
=
&
lpt0_tx_param
,
.
rx_param
=
&
lpt_rx_param
,
.
rx_param
=
&
lpt0_rx_param
,
},
[
PORT_LPT1
]
=
{
.
type
=
LPSS_LPT_SSP
,
.
port_id
=
1
,
.
setup
=
lpss_spi_setup
,
.
tx_param
=
&
lpt1_tx_param
,
.
rx_param
=
&
lpt1_rx_param
,
},
},
};
};
...
@@ -285,8 +295,11 @@ static const struct pci_device_id pxa2xx_spi_pci_devices[] = {
...
@@ -285,8 +295,11 @@ static const struct pci_device_id pxa2xx_spi_pci_devices[] = {
{
PCI_VDEVICE
(
INTEL
,
0x2290
),
PORT_BSW1
},
{
PCI_VDEVICE
(
INTEL
,
0x2290
),
PORT_BSW1
},
{
PCI_VDEVICE
(
INTEL
,
0x22ac
),
PORT_BSW2
},
{
PCI_VDEVICE
(
INTEL
,
0x22ac
),
PORT_BSW2
},
{
PCI_VDEVICE
(
INTEL
,
0x2e6a
),
PORT_CE4100
},
{
PCI_VDEVICE
(
INTEL
,
0x2e6a
),
PORT_CE4100
},
{
PCI_VDEVICE
(
INTEL
,
0x9ce6
),
PORT_LPT
},
{
PCI_VDEVICE
(
INTEL
,
0x9c65
),
PORT_LPT0
},
{
},
{
PCI_VDEVICE
(
INTEL
,
0x9c66
),
PORT_LPT1
},
{
PCI_VDEVICE
(
INTEL
,
0x9ce5
),
PORT_LPT0
},
{
PCI_VDEVICE
(
INTEL
,
0x9ce6
),
PORT_LPT1
},
{
}
};
};
MODULE_DEVICE_TABLE
(
pci
,
pxa2xx_spi_pci_devices
);
MODULE_DEVICE_TABLE
(
pci
,
pxa2xx_spi_pci_devices
);
...
...
drivers/spi/spi-synquacer.c
View file @
110bc220
...
@@ -490,6 +490,10 @@ static void synquacer_spi_set_cs(struct spi_device *spi, bool enable)
...
@@ -490,6 +490,10 @@ static void synquacer_spi_set_cs(struct spi_device *spi, bool enable)
val
&=
~
(
SYNQUACER_HSSPI_DMPSEL_CS_MASK
<<
val
&=
~
(
SYNQUACER_HSSPI_DMPSEL_CS_MASK
<<
SYNQUACER_HSSPI_DMPSEL_CS_SHIFT
);
SYNQUACER_HSSPI_DMPSEL_CS_SHIFT
);
val
|=
spi
->
chip_select
<<
SYNQUACER_HSSPI_DMPSEL_CS_SHIFT
;
val
|=
spi
->
chip_select
<<
SYNQUACER_HSSPI_DMPSEL_CS_SHIFT
;
if
(
!
enable
)
val
|=
SYNQUACER_HSSPI_DMSTOP_STOP
;
writel
(
val
,
sspi
->
regs
+
SYNQUACER_HSSPI_REG_DMSTART
);
writel
(
val
,
sspi
->
regs
+
SYNQUACER_HSSPI_REG_DMSTART
);
}
}
...
...
drivers/spi/spi.c
View file @
110bc220
...
@@ -1267,7 +1267,7 @@ static int spi_transfer_one_message(struct spi_controller *ctlr,
...
@@ -1267,7 +1267,7 @@ static int spi_transfer_one_message(struct spi_controller *ctlr,
ptp_read_system_prets
(
xfer
->
ptp_sts
);
ptp_read_system_prets
(
xfer
->
ptp_sts
);
}
}
if
(
xfer
->
tx_buf
||
xfer
->
rx_buf
)
{
if
(
(
xfer
->
tx_buf
||
xfer
->
rx_buf
)
&&
xfer
->
len
)
{
reinit_completion
(
&
ctlr
->
xfer_completion
);
reinit_completion
(
&
ctlr
->
xfer_completion
);
fallback_pio:
fallback_pio:
...
...
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