Message ID | 20230418052902.1336866-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 b10csp2602281vqo; Mon, 17 Apr 2023 22:43:14 -0700 (PDT) X-Google-Smtp-Source: AKy350akOEGjP3Ay5cuCGg1PMN/MFjbHBHl/Z2mw8JlWmvsqEv0O1F/nl3fBPdDYsfodDhE6N1wj X-Received: by 2002:a05:6a00:2402:b0:63b:19e5:a96e with SMTP id z2-20020a056a00240200b0063b19e5a96emr18054872pfh.9.1681796594397; Mon, 17 Apr 2023 22:43:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681796594; cv=none; d=google.com; s=arc-20160816; b=zmMxOKec/IfvaKmIuqYpsXuUg1QSEnwzAqJzEuUfdpTm5Vo+lsZ3H7SjgyUHWi/wfF LfhAFIQuYiuUbZNfQRvvwzv9VIMdUeeel0LWvXlOjhyujlaVC/tR5dIetz5VWAGpp97Q MU+/6BZUWCgiAXMnWx/+Je3iJv4QghR4xdTEgJ7f3l1vNvW6v877BRg5IyAoz5z6aoNn fqgZ2SRTrDL+Rk5t5Dg3YEBdvb746xjQnWhj4P84UlQQwBX5dgEy7xxCyuYdlzRgYIda EFT/0R46a161+/MC+D8+DIIM/eMj3gWve+O6kQqd1SPTBQA3k2lSpPUSZnq/FK04IxUj u0vQ== 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=475zu7r4GSDH4bCdvfnE1q0yMJCUwMj3yvNxH13Y90Y=; b=WSrkfDq4QFtozV8MxyCLV94YZQJAqqUYDr/BVFStXR1Q21MQMlTgyQcTajAqm6lkjk tcY2ZrgcaPTcgtyfxti0yPm0170IwYNMr1TQgunUDHVGU+28bNP/Uu+o3b+fY3q9ZOou E80rYbwurgO3A1OrL01OX6cSFKaDCka16aG0DBFD8eVR0pNdx8VjxrSk8gPELRKQE6FO RtnuCSRnia293ArvQmjSKON/GOxnnk2eqjzPTePydLIsuaFEbY/5aLhgpOOXQoNhorsp 0/ZMFEEsEI9wwovpQG3UEwfwD9Ik177TCOLuOT7fuEbw1fy4yq/ptJ3nqhxKis3S4qV9 pIVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b="LH+/MVHL"; 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 f10-20020aa79d8a000000b0063b7c4435bcsi7794559pfq.50.2023.04.17.22.42.59; Mon, 17 Apr 2023 22:43:14 -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="LH+/MVHL"; 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 S230291AbjDRF3M (ORCPT <rfc822;leviz.kernel.dev@gmail.com> + 99 others); Tue, 18 Apr 2023 01:29:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230298AbjDRF3K (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 18 Apr 2023 01:29:10 -0400 Received: from mail-yw1-x114a.google.com (mail-yw1-x114a.google.com [IPv6:2607:f8b0:4864:20::114a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CEF6F5255 for <linux-kernel@vger.kernel.org>; Mon, 17 Apr 2023 22:29:08 -0700 (PDT) Received: by mail-yw1-x114a.google.com with SMTP id 00721157ae682-54fd5d0ad7cso107613657b3.1 for <linux-kernel@vger.kernel.org>; Mon, 17 Apr 2023 22:29:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1681795748; x=1684387748; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=475zu7r4GSDH4bCdvfnE1q0yMJCUwMj3yvNxH13Y90Y=; b=LH+/MVHL3qc9T+wa3AcuoBK6tNVaKlilULvXtbRsdiDzi10/aS7aVqKhogaYBgdytt 9GwMhv7FHHLcXm9BqRGCnlasI51mvlHXKbdP0mJGdD6XPRBFrF80K5KzZjd1Z9qqseim da5PDhfiijeetDA+z50L7z1bbLpEcXc7S2pVPLZfT2/JDoae1BdqpKXlFbaiNSvwJQWE x1f/rGWpZzmuXQwxZDiXzBqdb5HsE6YIsYmt3oRzX1uqcg8M6g+GqvXOGCQ8M9d/6ELx EXM1j4HTROynYC3bKVBZAS74cQUerCEMuHUBSCg2jBy1zdJqnOqZtLlBa238iFwMu+qW 2Wvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681795748; x=1684387748; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=475zu7r4GSDH4bCdvfnE1q0yMJCUwMj3yvNxH13Y90Y=; b=dk5f5QaSUD/JBpqWuY4d9wxJvxaOglRK6bxgoMRhk9MG1RF8SoIThYg7b0IrkIKBjw oQ4HOFqNYE3MphPWvQAFCgdzkP4Bhm3nVFpkogiW+4iZveCwkoBzI8HNih/7wnjttRoL Xc420BOpACNVAqe97NbVEWjgcOAg93ItNIA+B+vwuyU/889c9dHytVO3/06uuxfygfI+ Ebo/3hIyt9YrE1t9GIMy+8ijfrgfLpPdlC1BtOBpyDKohcFeermFclaxiC2DZe33x+re R706yLhJVQxUvSoCV9pGmNEhcRjdPFZ+wfbRapfyZYpv0CY2fp6dGuTmuINczQecjYgA ALWA== X-Gm-Message-State: AAQBX9chhelZutx/e9gM8bXEVIqW7bLplHeUrNVZYUILL17c49SWjdzO NQGsGeHSSWhMQy79xusGycduJjRhFtLCGw== X-Received: from joychakr.c.googlers.com ([fda3:e722:ac3:cc00:4f:4b78:c0a8:6ea]) (user=joychakr job=sendgmr) by 2002:a25:748b:0:b0:b8f:567f:4352 with SMTP id p133-20020a25748b000000b00b8f567f4352mr10863386ybc.3.1681795748077; Mon, 17 Apr 2023 22:29:08 -0700 (PDT) Date: Tue, 18 Apr 2023 05:28:57 +0000 Mime-Version: 1.0 X-Mailer: git-send-email 2.40.0.634.g4ca3ef3211-goog Message-ID: <20230418052902.1336866-1-joychakr@google.com> Subject: [PATCH v7 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=unavailable 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?1763491545641648756?= X-GMAIL-MSGID: =?utf-8?q?1763491545641648756?= |
Series |
spi: dw: DW SPI DMA Driver updates
|
|
Message
Joy Chakraborty
April 18, 2023, 5:28 a.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. --- V6->V7 Changes : Remove extra spaces, refer to functions in commit as func() --- Joy Chakraborty (5): spi: dw: Add 32 bpw support to SPI DW DMA driver spi: dw: Move dw_spi_can_dma() 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(-)