Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 235527
b: refs/heads/master
c: 2aff8d9
h: refs/heads/master
i:
  235525: 6094d9c
  235523: 5f11221
  235519: eacc397
v: v3
  • Loading branch information
Russ Gorby authored and Greg Kroah-Hartman committed Feb 17, 2011
1 parent c18743c commit b1eca24
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1b79b440576b80bace7b6fa012a57ed91d763b5f
refs/heads/master: 2aff8d90a073e5a07e1ff5a94779d6a21fb72dd2
9 changes: 9 additions & 0 deletions trunk/drivers/tty/serial/ifx6x60.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
#define IFX_SPI_MORE_MASK 0x10
#define IFX_SPI_MORE_BIT 12 /* bit position in u16 */
#define IFX_SPI_CTS_BIT 13 /* bit position in u16 */
#define IFX_SPI_MODE SPI_MODE_1
#define IFX_SPI_TTY_ID 0
#define IFX_SPI_TIMEOUT_SEC 2
#define IFX_SPI_HEADER_0 (-1)
Expand Down Expand Up @@ -992,7 +993,15 @@ static int ifx_spi_spi_probe(struct spi_device *spi)
ifx_dev->modem = pl_data->modem_type;
ifx_dev->use_dma = pl_data->use_dma;
ifx_dev->max_hz = pl_data->max_hz;
/* initialize spi mode, etc */
spi->max_speed_hz = ifx_dev->max_hz;
spi->mode = IFX_SPI_MODE | (SPI_LOOP & spi->mode);
spi->bits_per_word = spi_bpw;
ret = spi_setup(spi);
if (ret) {
dev_err(&spi->dev, "SPI setup wasn't successful %d", ret);
return -ENODEV;
}

/* ensure SPI protocol flags are initialized to enable transfer */
ifx_dev->spi_more = 0;
Expand Down

0 comments on commit b1eca24

Please sign in to comment.