From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 45402320A for ; Mon, 8 May 2023 11:18:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B964EC433EF; Mon, 8 May 2023 11:18:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1683544717; bh=lTG+luMd77Qh27EKX3RVGrLrVXezVnKX5cn20xcRt4w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rznEdBpQAakaSAa0nAnRiOq9bckjsw0Q9wDpTgGM2eEfCu9YgAx2ajkBxIBoKv389 lq0Yy9abWS2Ddlq6wsP5ncqZ2n4f/CvsMW0IdlHfeVW94ED4M5G7NKYJOH+ZeS/CQV Wt+dUgsIfm9yKFuKNBWKfCT5dUFW7ColUtBvTBlo= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Kunihiko Hayashi , Mark Brown , Sasha Levin Subject: [PATCH 6.3 501/694] spi: f_ospi: Add missing spi_mem_default_supports_op() helper Date: Mon, 8 May 2023 11:45:36 +0200 Message-Id: <20230508094450.325689962@linuxfoundation.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230508094432.603705160@linuxfoundation.org> References: <20230508094432.603705160@linuxfoundation.org> User-Agent: quilt/0.67 Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Kunihiko Hayashi [ Upstream commit bc43c5ec1a97772269785d19f62d32c91ac5fc36 ] The .supports_op() callback function returns true by default after performing driver-specific checks. Therefore the driver cannot apply the buswidth in devicetree. Call spi_mem_default_supports_op() helper to handle the buswidth in devicetree. Fixes: 1b74dd64c861 ("spi: Add Socionext F_OSPI SPI flash controller driver") Signed-off-by: Kunihiko Hayashi Link: https://lore.kernel.org/r/20230322023101.24490-1-hayashi.kunihiko@socionext.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- drivers/spi/spi-sn-f-ospi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi-sn-f-ospi.c b/drivers/spi/spi-sn-f-ospi.c index 333b22dfd8dba..0aedade8908c4 100644 --- a/drivers/spi/spi-sn-f-ospi.c +++ b/drivers/spi/spi-sn-f-ospi.c @@ -561,7 +561,7 @@ static bool f_ospi_supports_op(struct spi_mem *mem, if (!f_ospi_supports_op_width(mem, op)) return false; - return true; + return spi_mem_default_supports_op(mem, op); } static int f_ospi_adjust_op_size(struct spi_mem *mem, struct spi_mem_op *op) -- 2.39.2