From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795984575; b=pWHrFnZ3mjvgJmmqPB3u4zYRwfvFoFNG0Rg3dpBm12m3uIseN8M8lKKsKUEvkTuflYyC T7zBhVavRVKEx92/NnYzL0GTJDCu7VdAgRKNOEWnHBUVIbm8lJ5HTxihKhXhohhlbMRRF /TC6y8juhoOoGjo4Z3rNcLkA5AX/i5h0XnNvLnrty2Vm1/b/5NBEXUTviPYdGy+mOrARA fjyDNtAxiOq58YAm7RPP1VSyQ7PSAHZue3m7ILF8UTsmv35Y8iZHXzU+UMJD+jSraQ3wa Go3vAoz6YBSVBHpwpgNE3fUlwTmH6pN9dVo7paaCFTh7QSTUsT2MhFSbAeqyCcinMTg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795984575; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=aL+amFW6gIgyENnyJaGnBCwTkIPkRDXhltxv9G0A3oM=; b=pBh8K1G5LkK1X0nQIAkz4HfVIklu8EIe+qAd+8l+ecciN8vHebc2gE52/zPYu60ZNQw3 52Xqcp4VhUHFLtmXhX3p/qpx1oWDMQzJ4S+lpGx9NC0wb/grELOa2FoKq6QBl6jeWI0YG Zs4Dl7/hg5V52E0xLjWgsGzL06yU+fcSRe1SS2i/fk+7pVZ+lyFDKxoKtfw2nxhcuViEe 7VZO4bmll/+XGDJ4oREBuDK1Ntg/IO/m652puxG+N/cbg27lHKqVHIa4BZVVnkI8pP6J8 gvXIcCjhs9my6Xmmt7ZcFFJsxgsQh3pNF+kZLjkDSFiaYa0xb9JYktZlJuhX3VMwhbQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=T3xV4TFz; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E0A54606A31C for ; Sun, 29 Nov 2026 20:36:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=T3xV4TFz Received: by smtp.kernel.org (Postfix) with ESMTPSA id 63D751F00896; Sun, 29 Nov 2026 20:36:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795984574; bh=aL+amFW6gIgyENnyJaGnBCwTkIPkRDXhltxv9G0A3oM=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=T3xV4TFzR+h42mw6jP9PsWhIE6Qll7E2Z8z1Mvyo89T+d4IHTbH+LBGGmKet4uw1y nEJqKSbr9lOZYGyr/Uf6QnqHiOfBfgeqzFxkBiQ6AkEdbO2IqNJH6lW2UQDhUAoj4L jJkFYhwwn/Z7/VbZ4UDi33VveNa3kE540JKBT1SzrPN4fiHyklGhTlIx6NwI4uadqo 8liBCJLeTd0Frr3B7WR2gAtOrjmoSO7dr5TiBvEsQiYZqGQ0jCBmepFaaEPvuYRWKg cBJqRqo4xRKtoTdq6KUQy8fFs3CVXkOLjnC8a+7+qpwCGQaNDqlCPOlnj3WBnMzrS+ ahCDfDr37KeXw== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH] spi: virtio: fix mode bits propagation from device to driver Reply-To: sashiko-reviews@lists.linux.dev To: "Francesco Valla" Cc: virtualization@lists.linux.dev, "Michael S. Tsirkin" , "Eugenio Perez" In-Reply-To: <20261129-spi-virtio-modebits-fix-v1-1-0a406aff25f7@valla.it> References: <20261129-spi-virtio-modebits-fix-v1-1-0a406aff25f7@valla.it> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sun, 29 Nov 2026 20:36:13 +0000 X-Mailing-List: virtualization@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list > The initial value of the device's mode_bits is set with an incorrect > mask, because VIRTIO_SPI_CS_HIGH and VIRTIO_SPI_MODE_LSB_FIRST are not > meant for the propagation of device capabilities but for transfers. > This has the effect of: >=20 > - setting SPI_CS_HIGH when the device advertises support for CPOL=3D0; > - setting SPI_LSB_FIRST when the device advertises support for CPOL=3D1; > - completely ignoring the CS_HIGH support advertised by the device. >=20 > Use the correct VIRTIO_SPI_MF_ macros instead. >=20 > While at it, use the correct macros also for the mode_bits assignments > that follow, selecting the ones from the spi namespace (no functional > change there, since their value is the same as the corresponding ones > from the virtio namespace). >=20 > Fixes: f98cabe3f6cf ("SPI: Add virtio SPI driver") > Cc: stable@vger.kernel.org > Signed-off-by: Francesco Valla Sashiko has reviewed this patch and found no issues. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261129-spi-virtio= -modebits-fix-v1-1-0a406aff25f7@valla.it?part=3D1