mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-27 09:12:39 +00:00
b04f245c39
Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.6.23 Removed upstreamed: pending-6.6/735-net-mediatek-mtk_eth_soc-release-MAC_MCR_FORCE_LINK-.patch[1] pending-6.6/736-net-ethernet-mtk_eth_soc-fix-PPE-hanging-issue.patch[2] mediatek/patches-6.6/232-clk-mediatek-mt7981-topckgen-flag-SGM_REG_SEL-as-cri.patch[3] Manually rebased: mediatek/patches-6.6/100-dts-update-mt7622-rfb1.patch Added: generic/backports-6.6/981-mtd-spinand-Add-support-for-5-byte-IDs.patch[4] All other patches automatically rebased. 1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.23&id=1f32abb474c1c9bdb21d9eda74c325a0b3a162e5 2. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.23&id=943c14ece95eb1cf98d477462aebcbfdfd714633 3. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.23&id=6ff01b314149d1cf59caebc29384f0beed21cba4 4. See comments in https://github.com/openwrt/openwrt/pull/14992 regarding broken flogic/xiaomi_redmi-router-ax6000-ubootmod Build system: x86/64 Build-tested: x86/64/AMD Cezanne, flogic/xiaomi_redmi-router-ax6000-ubootmod, flogic/glinet_gl-mt6000 Run-tested: x86/64/AMD Cezannei, flogic/xiaomi_redmi-router-ax6000-ubootmod, flogic/glinet_gl-mt6000 Signed-off-by: John Audia <therealgraysky@proton.me>
44 lines
1.3 KiB
Diff
44 lines
1.3 KiB
Diff
From d278c7a0bf730318a7ccf8d0a8b434c813e23fd0 Mon Sep 17 00:00:00 2001
|
|
From: "SkyLake.Huang" <skylake.huang@mediatek.com>
|
|
Date: Thu, 23 Jun 2022 18:39:03 +0800
|
|
Subject: [PATCH 4/6] drivers: spi-mt65xx: Add controller's calibration
|
|
paramter
|
|
|
|
Signed-off-by: SkyLake.Huang <skylake.huang@mediatek.com>
|
|
---
|
|
drivers/spi/spi-mt65xx.c | 16 ++++++++++++++++
|
|
1 file changed, 16 insertions(+)
|
|
|
|
--- a/drivers/spi/spi-mt65xx.c
|
|
+++ b/drivers/spi/spi-mt65xx.c
|
|
@@ -834,6 +834,21 @@ static irqreturn_t mtk_spi_interrupt(int
|
|
return IRQ_HANDLED;
|
|
}
|
|
|
|
+static int mtk_spi_append_caldata(struct spi_controller *ctlr)
|
|
+{
|
|
+ struct spi_cal_target *cal_target = kmalloc(sizeof(*cal_target), GFP_KERNEL);
|
|
+ struct mtk_spi *mdata = spi_master_get_devdata(ctlr);
|
|
+
|
|
+ cal_target->cal_item = &mdata->get_tick_dly;
|
|
+ cal_target->cal_min = 0;
|
|
+ cal_target->cal_max = 7;
|
|
+ cal_target->step = 1;
|
|
+
|
|
+ list_add(&cal_target->list, ctlr->cal_target);
|
|
+
|
|
+ return 0;
|
|
+}
|
|
+
|
|
static int mtk_spi_mem_adjust_op_size(struct spi_mem *mem,
|
|
struct spi_mem_op *op)
|
|
{
|
|
@@ -1124,6 +1139,7 @@ static int mtk_spi_probe(struct platform
|
|
master->setup = mtk_spi_setup;
|
|
master->set_cs_timing = mtk_spi_set_hw_cs_timing;
|
|
master->use_gpio_descriptors = true;
|
|
+ master->append_caldata = mtk_spi_append_caldata;
|
|
|
|
mdata = spi_master_get_devdata(master);
|
|
mdata->dev_comp = device_get_match_data(dev);
|