lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Wed, 9 Feb 2022 17:14:36 +0000
From:   Mark Brown <broonie@...nel.org>
To:     André Almeida <andrealmeid@...labora.com>
Cc:     Sanjay R Mehta <sanju.mehta@....com>, linux-spi@...r.kernel.org,
        linux-kernel@...r.kernel.org, kernel@...labora.com,
        Lucas Tanure <tanureal@...nsource.cirrus.com>,
        Nehal Bakulchandra Shah <Nehal-Bakulchandra.shah@....com>,
        Charles Keepax <ckeepax@...nsource.cirrus.com>
Subject: Re: [PATCH 3/3] spi: amd: Add support for version AMDI0062

On Wed, Feb 09, 2022 at 01:57:33PM -0300, André Almeida wrote:

> @@ -190,6 +237,9 @@ static inline int amd_spi_fifo_xfer(struct amd_spi *amd_spi,
>  	message->actual_length = tx_len + rx_len + 1;
>  	/* complete the transaction */
>  	message->status = 0;
> +
> +	if (amd_spi->version == AMD_SPI_V2)
> +		amd_spi_clear_chip(amd_spi, message->spi->chip_select);
>  	spi_finalize_current_message(master);
>  
>  	return 0;

Why is this one not a switch statement - what happens with v3?

Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ