* Cumulative fixes and updates for MediaTek platform. [1] * Update mt7981 pinctrl driver based on upstream kernel. [2] [1] https://lore.kernel.org/u-boot/cover.1737104723.git.weijie.gao@mediatek.com/ [2] https://lore.kernel.org/u-boot/20250124033902.187796-1-weijie.gao@mediatek.com/ Signed-off-by: Shiji Yang <yangshiji66@qq.com>
28 lines
964 B
Diff
28 lines
964 B
Diff
From 7725d4ba16577b74567f7cffb2faffa8bdc5ad61 Mon Sep 17 00:00:00 2001
|
|
From: Weijie Gao <weijie.gao@mediatek.com>
|
|
Date: Fri, 17 Jan 2025 17:17:55 +0800
|
|
Subject: [PATCH 06/15] spi: mtk_spim: check slave device mode in spi-mem's
|
|
supports_op
|
|
|
|
Call spi_mem_default_supports_op() in supports_op to honor the
|
|
slave's supported single/dual/quad mode settings.
|
|
|
|
Signed-off-by: SkyLake.Huang <skylake.huang@mediatek.com>
|
|
Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
|
|
---
|
|
drivers/spi/mtk_spim.c | 3 +++
|
|
1 file changed, 3 insertions(+)
|
|
|
|
--- a/drivers/spi/mtk_spim.c
|
|
+++ b/drivers/spi/mtk_spim.c
|
|
@@ -359,6 +359,9 @@ static bool mtk_spim_supports_op(struct
|
|
struct udevice *bus = dev_get_parent(slave->dev);
|
|
struct mtk_spim_priv *priv = dev_get_priv(bus);
|
|
|
|
+ if (!spi_mem_default_supports_op(slave, op))
|
|
+ return false;
|
|
+
|
|
if (op->cmd.buswidth == 0 || op->cmd.buswidth > 4 ||
|
|
op->addr.buswidth > 4 || op->dummy.buswidth > 4 ||
|
|
op->data.buswidth > 4)
|