Message ID | 20230414120520.360291-1-joychakr@google.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp336872vqo; Fri, 14 Apr 2023 05:19:10 -0700 (PDT) X-Google-Smtp-Source: AKy350acdOmX0PD92aRzeyH25xp8dx9DGwh9OXCfFRDBWoPs9cDH8bJnpoeXc/pbidrPLTswpW1J X-Received: by 2002:a05:6a20:729c:b0:ee:775a:1aa3 with SMTP id o28-20020a056a20729c00b000ee775a1aa3mr973354pzk.26.1681474750237; Fri, 14 Apr 2023 05:19:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681474750; cv=none; d=google.com; s=arc-20160816; b=pThJcNwEvAxAtRs7eCmR5lWSEGyRktmjll/3/3NNgdnhdjLOjo0G2KKhdB9axOWrXd MoP6rJcxyiafEJ2S/bEPu/fbziYeEozykoR/CLwHFahPDKSgeoQnxBKuFveHZSFJGuu7 JY8R+AH4I3dAm3y0B9pgNgrT5Fa9+aK5XMSFHuW0T5vKjArorQtzjHWYCl47pxS5lB9u E6v3jnEx75aDqMJh5UZj3xb1WzUDZurebqvCRL6D/4dlPsO8hqiDcRU+UmH/qjltueTP 9neFKIfEOY7/Mk4i8xx+UDXfmuMcV1Y5sMiDM3CyvDIq8+ZcUfrlVZLqR+0b46gz3DQ5 LplQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:mime-version:date :dkim-signature; bh=RUoK0Gonosafzsz3S6wCMP+3KpguwLPaQEXuSVVhCK8=; b=S5qg0QaKdSCwghl6UMvkmEho9A9cVjgWrzOOjU/H+ZSRPlBgCjgzTvrqKq+YIXxn5m wGge4mf3QAzaZFgcBHtPLgDNiSfeiwQhus2Ub8WsjhWhWK+/jb0X5WhNzhnXZ00VB79C g5zw7tuh7wyBHUnscOgHZz4LDPgq5oEGDd8e8r0dnjP7ixa3IyGoKPDBiSlbDtqwRYtr OcgQfujfeG9WMcnjddb9ipVjZjHoBOcMLh1soSEPzvHh5ecv1wDtAiSlmJ47dgDsrcSP H/08uR8w8QoKrRmVo51mjSuxntXBRa5TruzxnU5phwtmngTBc44gIe5gm6NvaCz/IDbh 0q+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b="s5vdiue/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 189-20020a6301c6000000b0051b724d5d1csi1344040pgb.763.2023.04.14.05.18.57; Fri, 14 Apr 2023 05:19:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b="s5vdiue/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230070AbjDNMFb (ORCPT <rfc822;leviz.kernel.dev@gmail.com> + 99 others); Fri, 14 Apr 2023 08:05:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229950AbjDNMF2 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 14 Apr 2023 08:05:28 -0400 Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80B1A127 for <linux-kernel@vger.kernel.org>; Fri, 14 Apr 2023 05:05:27 -0700 (PDT) Received: by mail-yb1-xb49.google.com with SMTP id v67-20020a254846000000b00b8189f73e94so41877216yba.12 for <linux-kernel@vger.kernel.org>; Fri, 14 Apr 2023 05:05:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1681473926; x=1684065926; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=RUoK0Gonosafzsz3S6wCMP+3KpguwLPaQEXuSVVhCK8=; b=s5vdiue/44AmwRsLu2yuXcNJvnET/UTBOPCvvy9Mko84cpdZUkYLA1taJTrrOZ7zLY pu2iU/LqNzpoJ0LUjCvkYURhdC7l5qucsSWlCdjtnvEUrsNp5/FsLZm85yUQam2SuQKk XccZ1lQprWRonqfHD07IbPkCBgJOctYGFaZWK3TPGO+hImhGUchamhGkucsGrs3ImQnn uLU8ZLwEceHkFWAUZ/6ZroNVl80zx8/Z+xsYHgbtXyBRVR4NcMsQGKBBDJsHpb7a08d/ MG34LChVwC1nSu82ICmAYjg25Iap3Ike7fHPvF9QeDwNLlgMVYoealpsPCMmlJfUcff4 dA0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681473926; x=1684065926; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=RUoK0Gonosafzsz3S6wCMP+3KpguwLPaQEXuSVVhCK8=; b=VC/L3sjktu55uqmG4GngLyYNyX0k/V387reTziMNi2Rb9XykxLUFEvnfTS6vp2t8JJ rfhXFZqc5KTSg3rdS15NqvAswCva4igNwQlcqwf5Li96XUWmAlw6/7oBk2QhJ9Brw192 6JClW8OlYJi2bCDCMVFA9w8CmOdDoRvzo2naUq23MGtQUn3YY5zi4GMZHQDw9bYYv9YU irwQGt+PT629yIdwNwU6w62am19jufNBcyGUX3XCI+bi5cW9KrCBN4gYy6Qkg7QoEoeo g3SWPnkVw2eUKyQZAoS652Ny+idCWMDQx732UxQeF2AZ6VVDLUYH4in+ZLCv6/1EwdA0 bGLQ== X-Gm-Message-State: AAQBX9fdS+X/o46FuFqnvqchaBSs3PR6itql5lJyt/CZTPjESfpDSlL7 l0G+qHF/cGjRvXa6vGyG6iy+bQmRknaT/g== X-Received: from joychakr.c.googlers.com ([fda3:e722:ac3:cc00:4f:4b78:c0a8:6ea]) (user=joychakr job=sendgmr) by 2002:a81:a787:0:b0:549:2cc8:6e3e with SMTP id e129-20020a81a787000000b005492cc86e3emr3555060ywh.9.1681473926821; Fri, 14 Apr 2023 05:05:26 -0700 (PDT) Date: Fri, 14 Apr 2023 12:05:15 +0000 Mime-Version: 1.0 X-Mailer: git-send-email 2.40.0.634.g4ca3ef3211-goog Message-ID: <20230414120520.360291-1-joychakr@google.com> Subject: [PATCH v6 0/5] spi: dw: DW SPI DMA Driver updates From: Joy Chakraborty <joychakr@google.com> To: Serge Semin <fancer.lancer@gmail.com>, Mark Brown <broonie@kernel.org>, Andy Shevchenko <andriy.shevchenko@intel.com> Cc: linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, manugautam@google.com, rohitner@google.com, Joy Chakraborty <joychakr@google.com> Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1763154067600571187?= X-GMAIL-MSGID: =?utf-8?q?1763154067600571187?= |
Series |
spi: dw: DW SPI DMA Driver updates
|
|
Message
Joy Chakraborty
April 14, 2023, 12:05 p.m. UTC
This Patch series adds support for 32 bits per word trasfers using DMA and some defensive checks around dma controller capabilities. --- V1 Changes : Add support for AxSize=4 bytes to support 32bits/word. --- V1->V2 Changes : Add dma capability check to make sure address widths are supported. --- V2->V3 Changes : Split changes , add DMA direction check and other cosmetic chnages. --- V3->V4 Changes : Fix Sparce Warning | Reported-by: kernel test robot <lkp@intel.com> | Link: https://lore.kernel.org/oe-kbuild-all/202303270715.w9sMJhIh-lkp@intel.com/ --- V4->V5 Changes : Preserve reverse xmas Tree order, move direction check before initalisation of further capabilities, remove zero initialisations, remove error OR'ing. --- V5->V6 Changes : -Remove case of n_bytes=3 using 4_bytes buswidth -Avoid forward decaration -Break capability check patch into 2 -round n_bytes to power of 2 ( Bug Fix) -Add more explanation in commit text. --- Joy Chakraborty (5): spi: dw: Add 32 bpw support to SPI DW DMA driver spi: dw: Move "dw_spi_can_dma" function spi: dw: Add DMA directional capability check spi: dw: Add DMA address widths capability check spi: dw: Round of n_bytes to power of 2 drivers/spi/spi-dw-core.c | 2 +- drivers/spi/spi-dw-dma.c | 75 +++++++++++++++++++++++++++++---------- drivers/spi/spi-dw.h | 1 + 3 files changed, 59 insertions(+), 19 deletions(-)