devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: dkota@codeaurora.org
To: Rob Herring <robh@kernel.org>
Cc: swboyd@chromium.org, broonie@kernel.org, mka@chromium.org,
	dianders@chromium.org, linux-kernel@vger.kernel.org,
	linux-spi@vger.kernel.org, Andy Gross <andy.gross@linaro.org>,
	David Brown <david.brown@linaro.org>,
	Mark Rutland <mark.rutland@arm.com>,
	linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org,
	devicetree@vger.kernel.org,
	Girish Mahadevan <girishm@codeaurora.org>
Subject: Re: [PATCH V3] spi: spi-geni-qcom: Add SPI driver support for GENI based QUP
Date: Wed, 29 Aug 2018 16:49:28 +0530	[thread overview]
Message-ID: <d751bc90ab1cfce84d6f419400790566@codeaurora.org> (raw)
In-Reply-To: <20180829002535.GA4224@bogus>

On 2018-08-29 05:55, Rob Herring wrote:
> On Fri, Aug 24, 2018 at 04:12:15PM +0530, Dilip Kota wrote:
>> From: Girish Mahadevan <girishm@codeaurora.org>
>> 
>> This driver supports GENI based SPI Controller in the Qualcomm SOCs. 
>> The
>> Qualcomm Generic Interface (GENI) is a programmable module supporting 
>> a
>> wide range of serial interfaces including SPI. This driver supports 
>> SPI
>> operations using FIFO mode of transfer.
>> 
>> Signed-off-by: Girish Mahadevan <girishm@codeaurora.org>
>> Signed-off-by: Dilip Kota <dkota@codeaurora.org>
>> ---
>> Addressing all the reviewer commets given in Patchset1.
>> Summerizing all the comments below:
>> 
>> 	MAKEFILE: Arrange SPI-GENI driver in alphabetical order
>> 	Kconfig: Mark SPI_GENI driver dependent on QCOM_GENI_SE
>> 	Enable SPI core auto runtime pm, and remove runtime pm calls.
>> 	Remove spi_geni_unprepare_message(), 
>> spi_geni_unprepare_transfer_hardware()
>> 	Remove likely/unlikely keywords.
>> 	Remove get_spi_master() and use dev_get_drvdata()
>> 	Move request_irq to probe()
>> 	Mark bus number assignment to -1 as SPI core framework will assign 
>> dynamically
>> 	Use devm_spi_register_master()
>> 	Include platform_device.h instead of of_platform.h
>> 	Removing macros which are used only once:
>> 	        #define SPI_NUM_CHIPSELECT     4
>> 	        #define SPI_XFER_TIMEOUT_MS    250
>> 	Place Register field definitions next to respective Register 
>> definitions.
>> 	Replace int and u32 declerations to unsigned int.
>> 	Remove Hex numbers in debug prints.
>> 	Declare mode as u16 in spi_setup_word_len()
>> 	Remove the labels: setup_fifo_params_exit: 
>> exit_prepare_transfer_hardware:
>> 	Declaring struct spi_master as spi everywhere in the file.
>> 	Calling spi_finalize_current_transfer() for end of transfer.
>> 	Hard code the SPI controller max frequency instead of reading from 
>> DTSI node.
>> 	Spinlock not required, removed it.
>> 	Removed unrequired error prints.
>> 	Fix KASAN error in geni_spi_isr().
>> 	Remove spi-geni-qcom.h
>> 	Remove inter words delay and CS to Clock toggle delay logic in the 
>> driver, as of now no clients are using it.
>> 	Will submit this logic in the next patchset.
>> 	Use major, minor and step macros to read from hardware version 
>> register.
>> 
>>  .../devicetree/bindings/soc/qcom/qcom,geni-se.txt  |   2 -
> 
> Please split to a separate patch and explain why you are removing
> spi-max-frequency?

Hi Rob Herring,

In this patch, added changes for Driver not to read the SPI controller 
Maximum frequency from the device tree. Accordingly I removed it in the 
device tree documentation file. As both the files need to updated so did 
in the same patch.
Could you please let me know the reason for making a separate patch.

--Dilip

> 
>>  drivers/spi/Kconfig                                |  12 +
>>  drivers/spi/Makefile                               |   1 +
>>  drivers/spi/spi-geni-qcom.c                        | 678 
>> +++++++++++++++++++++
>>  4 files changed, 691 insertions(+), 2 deletions(-)
>>  create mode 100644 drivers/spi/spi-geni-qcom.c

  reply	other threads:[~2018-08-29 11:19 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-24 10:42 [PATCH V3] spi: spi-geni-qcom: Add SPI driver support for GENI based QUP Dilip Kota
2018-08-25  5:21 ` kbuild test robot
2018-08-25  6:14 ` kbuild test robot
2018-08-29  0:25 ` Rob Herring
2018-08-29 11:19   ` dkota [this message]
2018-08-30  0:30     ` Rob Herring
2018-08-31  0:49 ` Stephen Boyd
2018-09-02  5:06 ` Doug Anderson
2018-09-07 10:00   ` dkota
2018-09-07 10:14     ` dkota
2018-09-07 16:19     ` Doug Anderson
2018-09-07 16:19     ` Doug Anderson
2018-09-10  3:57       ` dkota
2018-09-10 11:26         ` Mark Brown
2018-09-10 14:24           ` dkota

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d751bc90ab1cfce84d6f419400790566@codeaurora.org \
    --to=dkota@codeaurora.org \
    --cc=andy.gross@linaro.org \
    --cc=broonie@kernel.org \
    --cc=david.brown@linaro.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dianders@chromium.org \
    --cc=girishm@codeaurora.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-soc@vger.kernel.org \
    --cc=linux-spi@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=mka@chromium.org \
    --cc=robh@kernel.org \
    --cc=swboyd@chromium.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).