public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzk@kernel.org>
To: Bastien Curutchet <bastien.curutchet@bootlin.com>,
	Santosh Shilimkar <ssantosh@kernel.org>,
	Miquel Raynal <miquel.raynal@bootlin.com>,
	Richard Weinberger <richard@nod.at>,
	Vignesh Raghavendra <vigneshr@ti.com>
Cc: linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org,
	Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
	Herve Codina <herve.codina@bootlin.com>,
	Christopher Cordahi <christophercordahi@nanometrics.ca>
Subject: Re: [PATCH v5 5/9] memory: ti-aemif: Create aemif_set_cs_timings()
Date: Mon, 9 Dec 2024 20:41:11 +0100	[thread overview]
Message-ID: <82276301-970e-427b-9fb2-8866881fb487@kernel.org> (raw)
In-Reply-To: <20241204094319.1050826-6-bastien.curutchet@bootlin.com>

On 04/12/2024 10:43, Bastien Curutchet wrote:
> Create an aemif_set_cs_timings() function to isolate the setting of a
> chip select timing configuration and ease its exportation.
> 
> Signed-off-by: Bastien Curutchet <bastien.curutchet@bootlin.com>
> Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
> ---
>  drivers/memory/ti-aemif.c | 65 +++++++++++++++++++++++++++++----------
>  1 file changed, 49 insertions(+), 16 deletions(-)

...

>  
>  /**
>   * struct aemif_cs_timings: structure to hold CS timings
> @@ -165,6 +165,44 @@ static int aemif_check_cs_timings(struct aemif_cs_timings *timings)
>  	return 0;
>  }
>  
> +/**
> + * aemif_set_cs_timings() - Set the timing configuration of a given chip select.
> + * @aemif: aemif device to configure
> + * @cs: index of the chip select to configure
> + * @timings: timings configuration to set
> + *
> + * @return: 0 on success, else negative errno.
> + */
> +static int aemif_set_cs_timings(struct aemif_device *aemif, u8 cs, struct aemif_cs_timings *timings)

In the future, please stick to 80-char wrapping unless exceeding makes
code more readable (see Coding style). I fixed it up while applying.

Best regards,
Krzysztof

  reply	other threads:[~2024-12-09 19:41 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-04  9:43 [PATCH v5 0/9] Implement setup_interface() in the DaVinci NAND controller Bastien Curutchet
2024-12-04  9:43 ` [PATCH v5 1/9] memory: ti-aemif: Store timings parameter in number of cycles - 1 Bastien Curutchet
2024-12-04  9:43 ` [PATCH v5 2/9] memory: ti-aemif: Remove unnecessary local variables Bastien Curutchet
2024-12-04  9:43 ` [PATCH v5 3/9] memory: ti-aemif: Wrap CS timings into a struct Bastien Curutchet
2024-12-04  9:43 ` [PATCH v5 4/9] memory: ti-aemif: Create aemif_check_cs_timings() Bastien Curutchet
2024-12-04  9:43 ` [PATCH v5 5/9] memory: ti-aemif: Create aemif_set_cs_timings() Bastien Curutchet
2024-12-09 19:41   ` Krzysztof Kozlowski [this message]
2024-12-10  7:23     ` Bastien Curutchet
2024-12-04  9:43 ` [PATCH v5 6/9] memory: ti-aemif: Export aemif_*_cs_timings() Bastien Curutchet
2024-12-04  9:43 ` [PATCH v5 7/9] mtd: rawnand: davinci: Always depends on TI_AEMIF Bastien Curutchet
2024-12-04  9:43 ` [PATCH v5 8/9] mtd: rawnand: davinci: Add clock resource Bastien Curutchet
2024-12-04  9:43 ` [PATCH v5 9/9] mtd: rawnand: davinci: Implement setup_interface() operation Bastien Curutchet
2024-12-09 19:40 ` (subset) [PATCH v5 0/9] Implement setup_interface() in the DaVinci NAND controller Krzysztof Kozlowski
2024-12-09 20:53   ` Miquel Raynal

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=82276301-970e-427b-9fb2-8866881fb487@kernel.org \
    --to=krzk@kernel.org \
    --cc=bastien.curutchet@bootlin.com \
    --cc=christophercordahi@nanometrics.ca \
    --cc=herve.codina@bootlin.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=miquel.raynal@bootlin.com \
    --cc=richard@nod.at \
    --cc=ssantosh@kernel.org \
    --cc=thomas.petazzoni@bootlin.com \
    --cc=vigneshr@ti.com \
    /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