Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3533829pxv; Mon, 19 Jul 2021 02:35:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzHiwTHbToZXoYSPQ7YIAowFJBXQLrOFAXZd/J0gYf62bjsk3EidoigA83Jua+powldl7oL X-Received: by 2002:a05:6402:4246:: with SMTP id g6mr32849254edb.134.1626687307520; Mon, 19 Jul 2021 02:35:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626687307; cv=none; d=google.com; s=arc-20160816; b=Tv85Fquc4oUdTgoUFKMkizV7+mytozj15+XWNE5yqpfHIgA84MMwxZZtUrbXYavz8R +cBC1fi0LgCeO/D0n28tyiVNX4B+szyrJqMTzSNHBZIE8OLHJbOafH230yHxBn4VVFUF k7G//jPQMmgtw5FsiDe6hCpU2GnRdvrajjV486q20mJP7VezrJi3YBwlFteGd3kVzA+/ csbGgSmtULlT7VTRP2DiI+a8w2vvk86ctqqpl08Ficd2UNi9PexkwvX8d4kEE2VDl3R/ eqWdJueo32VIr8px9Frc5NWDFx/NB7I55LkmS55/f02e+Ue1Jr24LqSLUQBnGKb6mxvW QKvw== 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=XlLmQFN6huBtt0Gc50vKByvFaZdOKb6pRNCQaEdvvkw=; b=NqdhZa8QcOUcDz3pT1JKvhPFBpDifJXhO28EKxKAFjMDDgDi5u3wQGlBMICQey572t S9ozKZuwBuiUFxf4hGJQBWzz398lpy13qdUrCSY8QcqjP2ZSnJM69fTKiddbAcLQRAX/ 0DpWztpOR+tjETrYCu2CyprPqhwhIozmBHnhy6v6/nqSfGYyceF6Mi34aHLHte2mqOSk 5ZqjPWEq937YuFi25IJfFUBRgoEqcVplLKXigeQF7X5J4K69cvCROPXcLZrOtdm4NmPk XGrLkk8DdZ6EFQqv9jCuoO0CBlQ0Z3cD5N4h8XnEQrbsn9F+6xH3n15gJSfr7ACMAnQu JuUQ== 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 et5si18630084ejc.582.2021.07.19.02.34.44; Mon, 19 Jul 2021 02:35:07 -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 S234946AbhGSIvJ (ORCPT + 99 others); Mon, 19 Jul 2021 04:51:09 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:48534 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S235034AbhGSIvI (ORCPT ); Mon, 19 Jul 2021 04:51:08 -0400 X-UUID: 3fdce7f326874a4bbde4557511350698-20210719 X-UUID: 3fdce7f326874a4bbde4557511350698-20210719 Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 637131729; Mon, 19 Jul 2021 17:31:45 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 19 Jul 2021 17:31:44 +0800 Received: from localhost.localdomain (10.15.20.246) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 19 Jul 2021 17:31:43 +0800 From: Mason Zhang To: Mark Brown , Matthias Brugger CC: , , , , , , Mason Zhang Subject: [PATCH 0/3] *** spi cs_timing restructure *** Date: Mon, 19 Jul 2021 17:15:26 +0800 Message-ID: <20210719091525.1453-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 From: Mason Zhang 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. Mason Zhang (3): spi: move cs spi_delay to spi_device spi: modify set_cs_timing parameter spi: mediatek: modify set_cs_timing callback drivers/spi/spi-mt65xx.c | 102 +++++++++++++++++++++------------------ drivers/spi/spi.c | 6 +-- include/linux/spi/spi.h | 23 ++++----- 3 files changed, 69 insertions(+), 62 deletions(-) -- 2.18.0