Re: [RFT][PATCH v2] spi: clps711x: refactor to use core message parsing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2014-02-18 16:56 GMT+08:00 Alexander Shiyan <shc_work@xxxxxxx>:
> Вторник, 18 февраля 2014, 16:52 +08:00 от Axel Lin <axel.lin@xxxxxxxxxx>:
>> 2014-02-18 16:27 GMT+08:00 Alexander Shiyan <shc_work@xxxxxxx>:
>> > Вторник, 18 февраля 2014, 9:31 +08:00 от Axel Lin <axel.lin@xxxxxxxxxx>:
>> >> Convert to use default implementation of transfer_one_message() which provides
>> >> standard handling of delays and chip select management.
>> >>
>> >> Signed-off-by: Axel Lin <axel.lin@xxxxxxxxxx>
>> >> ---
>> > ...
>> >>  static irqreturn_t spi_clps711x_isr(int irq, void *dev_id)
>> >>  {
>> >> -     struct spi_clps711x_data *hw = (struct spi_clps711x_data *)dev_id;
>> >> +     struct spi_master *master = dev_id;
>> >> +     struct spi_clps711x_data *hw = spi_master_get_devdata(master);
>> >>       u8 data;
>> >>
>> >>       /* Handle RX */
>> >> @@ -135,7 +113,7 @@ static irqreturn_t spi_clps711x_isr(int irq, void *dev_id)
>> >>               clps_writel(data | SYNCIO_FRMLEN(hw->bpw) | SYNCIO_TXFRMEN,
>> >>                           SYNCIO);
>> >>       } else
>> >> -             complete(&hw->done);
>> >> +             complete(&master->xfer_completion);
>> >
>> > spi_finalize_current_transfer(master);
>>
>> It's done by spi core. see spi_transfer_one_message() in spi.c
>
> spi_finalize_current_transfer() != spi_finalize_current_message()
>
> I just suggest to replace complete(&master->xfer_completion) to
> spi_finalize_current_transfer(master).

Ok. Got your point now.
Will send v3 soon.

Thanks for the review.
Axel
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux