Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 530F6C4332F for ; Mon, 31 Jan 2022 16:23:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349781AbiAaQXE (ORCPT ); Mon, 31 Jan 2022 11:23:04 -0500 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:48879 "EHLO relay7-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380342AbiAaQWy (ORCPT ); Mon, 31 Jan 2022 11:22:54 -0500 Received: (Authenticated sender: miquel.raynal@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id E086020005; Mon, 31 Jan 2022 16:22:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1643646173; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=9R9w7nHUTG04n1FcF/qJAxoWCHpQZB01oA9Hg8vlO2w=; b=EEh/yrfMphmEaW/ffaiX53WkC4S0e75y8Hs0pVyywJMftHEYeFv+THvjXdnMhJC7xZPXe/ MVtWAH/Qsn4+OnlQo+8FS6evZEKgRg/VAWZ3gLQ4nzSyVV+TE7I4O9MopTPsIf4r/lRE0c 9xVYY3R2m2NXBkqXumaY33zEkh7cj1SNu7N+HECRuzgy8CO218ba8u9e9D4vCDMWGEXy2o E+IxljOQskSeh+450t8jNVHopHdTtbXYZsLa5Pgu1JaNnQkY0fGjXcOm3HuKe8YRGnVcUR ulNu/R+BUhZpbo0scJaEfMlh5grVUT39oTZv7SsADicxDJPvnDQtczwE4KQqHg== From: Miquel Raynal To: Miquel Raynal , Mark Brown , linux-spi@vger.kernel.org Cc: Richard Weinberger , Vignesh Raghavendra , Tudor Ambarus , Pratyush Yadav , Michael Walle , linux-mtd@lists.infradead.org, Boris Brezillon , Thomas Petazzoni , Julien Su , Jaime Liao Subject: Re: [PATCH v10 01/13] spi: spi-mem: Introduce a capability structure Date: Mon, 31 Jan 2022 17:22:50 +0100 Message-Id: <20220131162250.24365-1-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20220127091808.1043392-2-miquel.raynal@bootlin.com> References: MIME-Version: 1.0 X-linux-mtd-patch-notification: thanks X-linux-mtd-patch-commit: b'bb693170bc57dd2c33cec37a050323554eccf1ba' Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org On Thu, 2022-01-27 at 09:17:56 UTC, Miquel Raynal wrote: > Create a spi_controller_mem_caps structure and put it within the > spi_controller structure close to the spi_controller_mem_ops > strucure. So far the only field in this structure is the support for dtr > operations, but soon we will add another parameter. > > Also create a helper to parse the capabilities and check if the > requested capability has been set or not. > > Signed-off-by: Miquel Raynal > Reviewed-by: Pratyush Yadav > Reviewed-by: Boris Brezillon > Link: https://lore.kernel.org/linux-mtd/20220104083631.40776-2-miquel.raynal@bootlin.com Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git spi-mem-ecc. Miquel