Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp2323383pxy; Tue, 3 Aug 2021 03:40:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx1frM6+E7zCrzQokGWFDYpLPtlg48m2FNSqNDkPml/RUcPeOxnxfo1FaGYkFfZSdCE2oke X-Received: by 2002:a5d:8990:: with SMTP id m16mr1729343iol.170.1627987236847; Tue, 03 Aug 2021 03:40:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627987236; cv=none; d=google.com; s=arc-20160816; b=vVxsgf7sPap2iCpIFjBvdpqnKrTEG+XeE9CtO2cFeGcLbF51uRLjrauANupVSh3enV 5DsKcnGztPEICFaBXziGuQfoeoFmH3xTybUdxm7VN9KDvPWMv9DNUSqAKwCqDTzTYa9E IeaUn+EZGp83Yjb/YZDXsys2SkTsePCDmQP1lUQOY52z2mQxgSQ86u6qON9Ly+sCQaCk mRrNbCECTnAg4qWy9rVUuSHDEVCnM+mZTKBbv/aWQO5FJqVACrGvbXnicHBvhBOzGuVI /kfHfUxfXFUqdxsTSD0M8fH0+twKysj3d8WK6p1Ufw5YgXdIOtMMknKqulJVbOxFmiu+ Dp+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=lbO1IAgfu1+VNMk+NevEDTpKrscjkRSjoLhzXIp8GO0=; b=0KMWsEjq5xqhdK5Zg36GSyCQVocXWO4IW45WjLG1Ada7YssX5BAQU5ftxwh6o+azXk TYbvz2edCdReT2LXmVCicf0hxU3FqYwNeOsvQ7iXts7iYepWEo5vZnO0Vn3lFkA4JMSW D0iN8omb96VyMzJwX05U0dyf6X/Lf1DfWJqmHkOLddlTofKdmB1qvCAz3d3FHhSMhmRQ Q2ldcBNJGBs8WSHLSIkKjUBhf3h3VIYg+dw5XDRnr3PUsSP4kSgq87phdEFzN4wHvnCY F/xJZR5Y2I/8Ica3445DoWKjGa93S1UIwjQ9zBkUankqkdRX1m0mS/uB3RgfHqhAWf7/ GdqQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x12si14620669ilm.5.2021.08.03.03.40.25; Tue, 03 Aug 2021 03:40:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234998AbhHCKjd (ORCPT + 99 others); Tue, 3 Aug 2021 06:39:33 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:44972 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S234913AbhHCKja (ORCPT ); Tue, 3 Aug 2021 06:39:30 -0400 X-UUID: 7b4888f653c74c189dee791da5555021-20210803 X-UUID: 7b4888f653c74c189dee791da5555021-20210803 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 665165894; Tue, 03 Aug 2021 18:39:16 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs06n1.mediatek.inc (172.21.101.129) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 3 Aug 2021 18:39:15 +0800 Received: from localhost.localdomain (10.15.20.246) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 3 Aug 2021 18:39:14 +0800 From: Mason Zhang To: Mark Brown , Matthias Brugger CC: Laxman Dewangan , , , , , , Mason Zhang Subject: [PATCH v2 0/4] *** spi cs_timing restructure *** Date: Tue, 3 Aug 2021 18:22:29 +0800 Message-ID: <20210803102228.2535-1-Mason.Zhang@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, This patchset has restructure spi cs_timing, as we know spi core has removed spi_set_cs_timing() API, it is a correct decision because it asked spi devices to call it in one more time. so we need find another way to support user set cs_timing. Actually, spi_device set spi_delay for cs_timing is enough, and about how to set cs_timing, just put it one the master driver. We have test this patch in mediatek platform, it can compeletly meets our needs. Changed in v2: - fix tegra spi build err Mason Zhang (4): spi: move cs spi_delay to spi_device spi: modify set_cs_timing parameter spi: mediatek: modify set_cs_timing callback spi: tegra114: Fix set_cs_timing param drivers/spi/spi-mt65xx.c | 102 ++++++++++++++++++++----------------- drivers/spi/spi-tegra114.c | 8 +-- drivers/spi/spi.c | 6 +-- include/linux/spi/spi.h | 23 ++++----- 4 files changed, 73 insertions(+), 66 deletions(-) -- 2.18.0