Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp101780pxt; Wed, 4 Aug 2021 06:55:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxiPzDdLM/vQcerGw2pVcw/nA2ea3oSf5fuwbir4y2dgVthE8Cs8gYiX7APRblp8T40G7Ul X-Received: by 2002:a05:6402:22ac:: with SMTP id cx12mr32770659edb.254.1628085329165; Wed, 04 Aug 2021 06:55:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628085329; cv=none; d=google.com; s=arc-20160816; b=KyZxDCYzqsrw181aCe3M0aRmBJIH6Yrlmv9KduMd0LR8ddvd+XTzwK4yD6Pidon1LY i8pkp9fOxfi7hwXtNFWLQ52HUhUUQPAYW0gFg2f9GoBWXJ2aHQKX/NyZO/O/U8ZSW3wy qTgI27tJt3G0RTj8ZeQxW3MO94JfaarJ8tMgO6C9+0Xw7fuIfpsVHvYd8igzAd5EhQOe yq6u8MKLJgePhALmQcuLVwivgVUydtlWxuXCH8CMpDZK4MJUaD0o6rV+uVswUBwD6Og5 vNUA8nRgLtzrwxdC+aGKZ7nlAtuWcg6dBIa7vjyDX1ei9Hn1+IwW/x9ul0BTtLX2z40C T7aQ== 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=LKSJAlNDtSMIWFPqApP7OZAf3fCeFeQk/xecB+BQ8T4=; b=SqBvjw9WudCIHas/ukR2+PsssrhEjGfXsX4t8mggD1K5qSDzdcjDZBbIQ+qQbM9t6x 8ng9ij3ehfSoWC1nqvdGo1wteVPRsl7WA92Gs+Xfvt7RNaqsjourVHIEE8kDcqcb1m3G li26CIQqb3yrFQUiEgVPTErNMdRycRSb/wQ873/rhJfPZ5FX10pmOP9Pb9khsYOLpGab uv6jochWVxvhOkzXE2pNxv4pMn53688tsMSrUr5/Kl/3AnF1zWw923PVI0NqtWdx7KwN dlbP+j7567S5Vo11ggfm7uK94USPl5u9jO3tFRf/RcnIt9/4pVo3nmY3CvapElO/bBGO oeSw== 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 dd5si2223602ejb.329.2021.08.04.06.55.05; Wed, 04 Aug 2021 06:55:29 -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 S238346AbhHDNxw (ORCPT + 99 others); Wed, 4 Aug 2021 09:53:52 -0400 Received: from mailgw01.mediatek.com ([60.244.123.138]:52064 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S236956AbhHDNxw (ORCPT ); Wed, 4 Aug 2021 09:53:52 -0400 X-UUID: f76cc7f8ef814dfe83c9cbfcd8ffcbbe-20210804 X-UUID: f76cc7f8ef814dfe83c9cbfcd8ffcbbe-20210804 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 90024289; Wed, 04 Aug 2021 21:53:35 +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; Wed, 4 Aug 2021 21:53:33 +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; Wed, 4 Aug 2021 21:53:27 +0800 From: Mason Zhang To: Mark Brown , Matthias Brugger CC: Laxman Dewangan , , , , , , Mason Zhang Subject: [PATCH v3 0/2] spi cs_timing restructure Date: Wed, 4 Aug 2021 21:36:31 +0800 Message-ID: <20210804133630.18519-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 Changed in v3: - merged patch2/3/4 for build pass Mason Zhang (2): spi: move cs spi_delay to spi_device spi: modify set_cs_timing parameter drivers/spi/spi-mt65xx.c | 107 +++++++++++++++++++++---------------- drivers/spi/spi-tegra114.c | 8 +-- drivers/spi/spi.c | 6 +-- include/linux/spi/spi.h | 23 ++++---- 4 files changed, 78 insertions(+), 66 deletions(-) -- 2.18.0