diff mbox

resend: [PATCH] amba_pl022: Setup SPI configuration based on spi->mode

Message ID AANLkTikbKwo9=xLWo1qEcc2E5aa2iN2F_KCokJPpnWOk@mail.gmail.com (mailing list archive)
State Superseded
Headers show

Commit Message

wellsk40@gmail.com Sept. 10, 2010, 10:57 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/spi/amba-pl022.c b/drivers/spi/amba-pl022.c
index acd35d1..1be488a 100644
--- a/drivers/spi/amba-pl022.c
+++ b/drivers/spi/amba-pl022.c
@@ -1248,12 +1248,6 @@  static int destroy_queue(struct pl022 *pl022)
 static int verify_controller_parameters(struct pl022 *pl022,
                                       struct pl022_config_chip *chip_info)
 {
-       if ((chip_info->lbm != LOOPBACK_ENABLED)
-           && (chip_info->lbm != LOOPBACK_DISABLED)) {
-               dev_err(chip_info->dev,
-                       "loopback Mode is configured incorrectly\n");
-               return -EINVAL;
-       }
       if ((chip_info->iface < SSP_INTERFACE_MOTOROLA_SPI)
           || (chip_info->iface > SSP_INTERFACE_UNIDIRECTIONAL)) {
               dev_err(chip_info->dev,
@@ -1279,24 +1273,6 @@  static int verify_controller_parameters(struct
pl022 *pl022,
                       "cpsdvsr is configured incorrectly\n");
               return -EINVAL;
       }
-       if ((chip_info->endian_rx != SSP_RX_MSB)
-           && (chip_info->endian_rx != SSP_RX_LSB)) {
-               dev_err(chip_info->dev,
-                       "RX FIFO endianess is configured incorrectly\n");
-               return -EINVAL;
-       }
-       if ((chip_info->endian_tx != SSP_TX_MSB)
-           && (chip_info->endian_tx != SSP_TX_LSB)) {
-               dev_err(chip_info->dev,
-                       "TX FIFO endianess is configured incorrectly\n");
-               return -EINVAL;
-       }
-       if ((chip_info->data_size < SSP_DATA_BITS_4)
-           || (chip_info->data_size > SSP_DATA_BITS_32)) {
-               dev_err(chip_info->dev,
-                       "DATA Size is configured incorrectly\n");
-               return -EINVAL;
-       }
       if ((chip_info->com_mode != INTERRUPT_TRANSFER)
           && (chip_info->com_mode != DMA_TRANSFER)