From patchwork Thu Feb 8 20:21:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 198555 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp431243dyd; Thu, 8 Feb 2024 12:22:36 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWOHxQyp19bIMY0EDRIDXtwuVEfVFI96WLfKTpbXyIXwbBXdAAZ/oj9wpzHugJ0qnhl4qhW9lyYqxyUghWemhBanN+ZfQ== X-Google-Smtp-Source: AGHT+IFC6v7UnKtVSbzp3jCJaTLY3N7c2VokCILcZYm/O8G+KurzjOeQrE1U2fj8Re6UzVXLe3qU X-Received: by 2002:a17:906:35db:b0:a37:5bf7:f64a with SMTP id p27-20020a17090635db00b00a375bf7f64amr322572ejb.41.1707423756497; Thu, 08 Feb 2024 12:22:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707423756; cv=pass; d=google.com; s=arc-20160816; b=narfIRdVCSMYhOmWexv1UTcBUblS86PCLSeJxlyRmuUgb0mGqQJe3nXovmP6Z/F3D+ Qoz+YnHLYjJTls8YFSxI6XIyEI+G0kjkoe2D4wabIzQYWOgSg0LIprJ/PuEJlqFSh6bJ H4a0wfhtmYv4Pxal7Ib+paAeaAeA46K0p5O7WNbGqFTuGfU24GW7Ldw+HeQuwi4BLI2e GSLCYMU7tPGDskB5AgJ7LxFu7cZN8UIIi3JBP66uRYvt5CcLALlUtvLvm8fJc2FDwZwf A7XgyP3uBOdfRN+f0Fa6YI8D2rvzQaE2ZsZpnTp76QKKPltFOAuNGXdrI5o4tk/K8dnL Dohw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=lE5JHtuoDHy+7aqvLjhPRWMnVsRSmskZVIVhUopIObI=; fh=nIilFsMaVLFeOoVKKCdxgoaOWiGUP0AW2N65N1npZRc=; b=sAxvi0eovP1OdW2OOvUZ7lbdWsv9D1FGqXJGuen1uMyIXiqW/fo0Ov/ZIdQa1aZbW7 y+0xNuUGwXWaaHwLRPKpxs9u0o7ldtAkRQeIBD9d2RC3tR8a81MVH8aqfdVpYzANj1xy rnIZUkbigbiNor2e7wclGwDvq0apdTqvURaNqEHGoz9ClB/gw9gFBDuIY9+VUMILOXNg HpXOWuQHOKvuCOdfQYYDWkZ8ujTpufl3Zr2uTUwBQFrwysgM9NTal4CTd4cAT/mWd3TO Y1FxenfZ4wNLwbTL6HZoMb+EqrI5UI+P1wPHfX4lKz3dteXMsqXkk5Nx6uEBrVNB7ZuC 5yww==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=syzCU7pA; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-58662-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58662-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=2; AJvYcCXmGkvNeAaI7TVdqRpixiGR7Uq5rt7omPPLaJca/5g5stwC/s3aesVbmjcAI/Q5BP+Lu4z3OuvafHQjQp1+qG8TjxFqKA== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id he40-20020a1709073da800b00a377bbfcbc6si25145ejc.571.2024.02.08.12.22.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 12:22:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58662-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=syzCU7pA; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-58662-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58662-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 7E31B1F227D3 for ; Thu, 8 Feb 2024 20:22:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 74FE43C47B; Thu, 8 Feb 2024 20:22:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="syzCU7pA" Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 13426383BF for ; Thu, 8 Feb 2024 20:21:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707423721; cv=none; b=kTQi9I2WJBnbjG+WztS8cLhBMNip/fGD/3J8zayiCVoSYXqKD0LAnjkcyHMFbT4T+fKV+HLryNJnaaco8D4CutpEkx96ace5LaaybAaH5lkEjyQ+eiEFJ0pfli/fIlrgLQQBfTUM+7qCBPSurgGc2jFHItT4WwH8QzS6QFAlzSE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707423721; c=relaxed/simple; bh=v5ksPX416jwrJG8mY5GmdGPuDUaCNPfM6x8sAX5n/LE=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=YtodQvsW1lvt+pFnxKVxvEIElC9cjeyhy+0nphLW77foBLC83uhAlrl+3oRy7OFVpACJyUOuuetcQGJbfr0mXyAvGEUr7y2qsRe8ZS4aZEeZGYrPZbsofritFoau2Bjx7A4K8S5qWK4UQJC8hnCHKRAYJ7D6KulHCWxze/2Shok= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=syzCU7pA; arc=none smtp.client-ip=209.85.128.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-41028900b83so1908635e9.3 for ; Thu, 08 Feb 2024 12:21:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707423718; x=1708028518; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=lE5JHtuoDHy+7aqvLjhPRWMnVsRSmskZVIVhUopIObI=; b=syzCU7pAjTRkZkZcR+xuv9fLP1V+ym2cjipDeoF63wAAzuyg3is7s/vZ1++Mmm6nJ+ U6hZwx6yXNIfEJxtLsqEwgX3ttbR8sBq4vO5jCOnk066A283Kl0nkZ1m+uYL/orfM3tW aQ+w5XHUFpfuau4Ld44cp8NB2Ft6r9Y1ljUyCyYhy+acwklfBkZMmP5I8V1Z3Nt+hwY6 woDc7VRi7Na3jI188xLqpLKV1Q/QIsw14DccBx3KRwz1CLRH2ejBYsFam8j1tGtqwAf5 cMu4zpVJqJGelzEBFYhfDcS21R7A3gsDVCocqkCNA/2ttMKrMaWrU/GQtpLsK7pUx0Tn UZ+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707423718; x=1708028518; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=lE5JHtuoDHy+7aqvLjhPRWMnVsRSmskZVIVhUopIObI=; b=nlRJgZ8vtPb+mqVlJ7OJ0eCQW4v5c/2Lb2jhnzzWPahyC6kAEcQRQCLlEE2sZm1Zmb hERgjU9hER4Slc+OaQKX1Db/nuDfHMJ7qytdBxUg+HUttxWnFjAUbnWliCYeOLEibjKZ evLQcyp2hl/7Afo7uroMhPNPXEYGS2M+kDMu2XP0/bkowknb6spcKioPxtklg6KWbLeP a9x+uUWoEy+/LAYPbwc3uTrluZ06YM+T9FXkm7LvRl9DHAZTA3qI4vmBXM7+X4dvtf4G vuuC0rl2DdV2fG2c9Dhnpc0KwKq769Sxp9XlVbNVqcHtHQ3zTmnGXbdXHb3cjLhq+6wo 6tNw== X-Forwarded-Encrypted: i=1; AJvYcCVhtzS8AX74yqc6PbdddAnxafZ8dWWP4Blve6b6MZQ1p3a2VScGOWA4ULKS90RLhmfoDupSw9qIvKRv5024zKSQ8wPx2fynwUurTvmA X-Gm-Message-State: AOJu0YxsJbgbHEqcD1V1f7Ber6vnXzEPn/5XQZ32FOUa5WYZCzDUrthp IP7dCLs1H4ZY/I9EQP/rVaPnM6qsLMLjzxrPpy+HcpuWjyai6b9Opt5nAIvnmQ9vR5c00aqdMMx 0 X-Received: by 2002:a05:600c:1ca9:b0:40f:d738:c213 with SMTP id k41-20020a05600c1ca900b0040fd738c213mr312002wms.29.1707423718366; Thu, 08 Feb 2024 12:21:58 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCXiHg0p24NmyO7pEv4MGwMY/f2h/TMeuPNCg4obAkWV6IvhjnDaxeEulhC9wcvYIqN9rPeK2GOMGA4QBEwX961UGoi9wfdFbUzPFhOweQ1lqT+1CgTJz7H0Civw+u2j2Cyhr1Hl4lEk Received: from krzk-bin.. ([178.197.222.62]) by smtp.gmail.com with ESMTPSA id o25-20020a05600c511900b0040fdd7cbc8dsm361481wms.47.2024.02.08.12.21.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 12:21:57 -0800 (PST) From: Krzysztof Kozlowski To: Mark Brown , linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 1/3] spi: pl022: Use typedef for dma_filter_fn Date: Thu, 8 Feb 2024 21:21:52 +0100 Message-Id: <20240208202154.630336-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790363572949034490 X-GMAIL-MSGID: 1790363572949034490 Use existing typedef for dma_filter_fn to avoid duplicating type definition. Signed-off-by: Krzysztof Kozlowski --- include/linux/amba/pl022.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/linux/amba/pl022.h b/include/linux/amba/pl022.h index 9bf58aac0df2..e08488df6d28 100644 --- a/include/linux/amba/pl022.h +++ b/include/linux/amba/pl022.h @@ -16,6 +16,7 @@ #ifndef _SSP_PL022_H #define _SSP_PL022_H +#include #include /** @@ -235,7 +236,7 @@ struct dma_chan; struct pl022_ssp_controller { u16 bus_id; u8 enable_dma:1; - bool (*dma_filter)(struct dma_chan *chan, void *filter_param); + dma_filter_fn dma_filter; void *dma_rx_param; void *dma_tx_param; int autosuspend_delay; From patchwork Thu Feb 8 20:21:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 198556 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp431357dyd; Thu, 8 Feb 2024 12:22:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IG+za3SIbCg+NgTe4iCWD4A1IsmIVi1n3fYQTwarfmwsMIpPYenjGh2ZDEgr9Y9wm7H5Otz X-Received: by 2002:a05:620a:4594:b0:783:f8b9:e0b6 with SMTP id bp20-20020a05620a459400b00783f8b9e0b6mr885161qkb.8.1707423770719; Thu, 08 Feb 2024 12:22:50 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707423770; cv=pass; d=google.com; s=arc-20160816; b=yGr8vPwVVKEaHCH68nSOPgqwVKJwqvHhpKO72l0dYuk5qr3SWbf3zYUkzWP25Y9JFj d0EB4NOB76VUFF+v2xYfbyLKkJ75AyXa7gC6HQ+9IbPTdnuqwfXGg8YJYw7HsBKpwh8U ltRZ3CZGUmgL5lxm6PNyD13Zj5PB/PvEvCrdfOIZRlmeRJc/xqrGC434nmiMtyp8SncY qoKLceLdosnsJYkaZqt6HU0R9rKQZiOwamAj8HsXjor81OYsIATocY4gtgIeHxmdzSwz /r3L/pKM0mTnlZwfvRZ581IkUTWybStpXLkFNMBY6ZbAw4Z5oUx//eFehGhfNKSdPcK3 GYPg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=IrqUcGgHJSe93EQJvf4/pcFq39Owmftzt0EiiVtqek8=; fh=j0bVidYBH92FBAwMb1m/U25OJ3W/jXJPJJgWv2wLGaM=; b=ykS7YUNo4Uv5XzstR/5iFvCh6DijopBb2Mq5u6RdnbyTDN10futTHTUbbSMyMe9Env A3O/p5rAGAtEIapBHJl7mUwlU0154F/IjJsRF9pS/4B1AJqdNobjJ7X7u4Oy6Z1WmbhQ MEYzUHk/Sm8nm5RQ2Bs4TXKPjt5bIq51slS1s4UfbPiar74rdCN9z/POpyDw1ybFn0Db MjUgZjrH87agjKHmDSFiC1KYAj7rmV3o4hQTdJTdiOnWAAZtEyQ1UZYt+s7CGL2RuJM+ oEsWyB0pa5yGn1aep6CAFDg87Z5H9qc12vN26Blt8OlY3fuEkwcubMr2HmJFFI4vqKVr Ezrg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ePtWzHD8; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-58663-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58663-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=2; AJvYcCUwtgHsEDhTCj8wkYxbHZHY+foLk0qShetsOeAJDb0VHJYYhUCyVpPLBMTWt2e/lXLNwZqQCnOgsfEJnjzXU57wAivY9Q== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id u11-20020a05620a084b00b00783dae58180si345774qku.188.2024.02.08.12.22.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 12:22:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58663-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ePtWzHD8; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-58663-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58663-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 7D88B1C23631 for ; Thu, 8 Feb 2024 20:22:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7BB0B3D0C5; Thu, 8 Feb 2024 20:22:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ePtWzHD8" Received: from mail-lf1-f50.google.com (mail-lf1-f50.google.com [209.85.167.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0CD9538DE8 for ; Thu, 8 Feb 2024 20:22:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707423723; cv=none; b=W07d/xIXCj1LH4VCJUIK3ahaxgUChTkr25iCQ8cd7CO0fjwltaM2eFtgBqPshlG6lgWg+cxV4Xld+k6WUDfJIklt5noMnVtUEqs0cLTtEQP0kQuaXor32gs2ochAXKQioVgPSM3QboWPQJ/f3RNb+vYk/CM7cSudM8PDhd9I01g= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707423723; c=relaxed/simple; bh=ckCRYnNvMIn289Uaeitkz9MPGu6deST5KDhd+ydIsBc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=dPI4f0bRzQm64G+Cycco1AqQbRPvn/IM4RsS+qYHFVwcHMmwYG//dY5OoSq7f+tKHPa7ObnEH1u0k8HdEDNo5u59+bL1DOzrgLm3KNuIdUEcBEIJ4g5UpNhnsa5JqIsuXnr5Jn5HAMQvzTxJZn4gepx/cT28ZaIeJQPLipW/Ug8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=ePtWzHD8; arc=none smtp.client-ip=209.85.167.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lf1-f50.google.com with SMTP id 2adb3069b0e04-5114fa38434so250656e87.0 for ; Thu, 08 Feb 2024 12:22:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707423720; x=1708028520; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=IrqUcGgHJSe93EQJvf4/pcFq39Owmftzt0EiiVtqek8=; b=ePtWzHD88q6d0I8+FuI2v8Mbx669LldV8uHpWWyzxezcBTA3V1/5sxFhxnci96fNAn 9gqAb6tx9YmeLq4g2q+KHviE4BHBp9ne/1SPK1D+eNrrEcvmTikc1rnLHFHPclbnb+ts 81AeP0Nf5jttCR6NSLnCQh5OPDbxWs8j2whqmDU6zwza3FT0szMg6IcVdDoNWWVVj+Oo YGmT7YwUszeZst80Y3aJjCMM3BIUtxHIVogEcKIMlR2BUkxXfRTzi+CDvASCUEieomZu SMC12pCfWxhGeIoFlvw5ukiSXNlNyD8pp1wxZ+DQUP973j9rJGPURrrp3I70gDPFIPZv IgpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707423720; x=1708028520; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=IrqUcGgHJSe93EQJvf4/pcFq39Owmftzt0EiiVtqek8=; b=bEqPQps6uvBRUdA7jocDkCIVQsxmvdTeGmw5QpRMJy8gHK2Za2tM+tDu1U1JXwU5I9 amdMqMOxAvn2Co/TaHDySmuMjo/CYV2h6LFCZL8BVEsfS6xelVBKFbreNWFAIIGpIhHz WNYKmX7IZX4NmyLbEczLENE/8YxnisVTLoR0iMyjtGqw15djWFzOkW5/3GpZcM9W01i7 MO5q047u4DdYUtiallBhh22sXntsyGgCRcjHZnaxxsT7t6TS4Se2YdjrSZ46DfHBr2HA IgkkoOb8KGx8p+Kk/rFLkeySf8ZKH6/WGEaUQV2Fg6BV0mL9oM/KC1QdZ7r4RUreJHjV K+2Q== X-Gm-Message-State: AOJu0YxMTQHny1iOBoUgVrqVHW2PTLYL7rw8nLzWnUtIUbkMijtR3XH8 PWYioL0fhb1JyZw8FpsNFF+sgFqjHoFtXWJhzxI0hQfVv0gOfvy6PhH8/fih8Bw= X-Received: by 2002:ac2:42d4:0:b0:511:47e1:aa58 with SMTP id n20-20020ac242d4000000b0051147e1aa58mr234021lfl.28.1707423719947; Thu, 08 Feb 2024 12:21:59 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCXOc6ARr5frpGIr3+feVvJ0AbglTxE+IZna5ZIFZhPd1EMs7AXBkGVa476dqS1WJ7AAZFJnFcWlK15kyxO2F/FrX2PUk1ugaf6G9P3f3Yrp+9DIpLwjxuWb8PZWn5+CxUCwxuS5xdJo Received: from krzk-bin.. ([178.197.222.62]) by smtp.gmail.com with ESMTPSA id o25-20020a05600c511900b0040fdd7cbc8dsm361481wms.47.2024.02.08.12.21.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 12:21:59 -0800 (PST) From: Krzysztof Kozlowski To: Mark Brown , linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 2/3] spi: pl022: Add missing dma_filter field kerneldoc Date: Thu, 8 Feb 2024 21:21:53 +0100 Message-Id: <20240208202154.630336-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240208202154.630336-1-krzysztof.kozlowski@linaro.org> References: <20240208202154.630336-1-krzysztof.kozlowski@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790363588033772454 X-GMAIL-MSGID: 1790363588033772454 Add kerneldoc for dma_filter field in struct pl022_ssp_controller. Signed-off-by: Krzysztof Kozlowski --- include/linux/amba/pl022.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/amba/pl022.h b/include/linux/amba/pl022.h index e08488df6d28..d7b07d0311e1 100644 --- a/include/linux/amba/pl022.h +++ b/include/linux/amba/pl022.h @@ -225,6 +225,7 @@ struct dma_chan; * struct pl022_ssp_master - device.platform_data for SPI controller devices. * @bus_id: identifier for this bus * @enable_dma: if true enables DMA driven transfers. + * @dma_filter: callback filter for dma_request_channel. * @dma_rx_param: parameter to locate an RX DMA channel. * @dma_tx_param: parameter to locate a TX DMA channel. * @autosuspend_delay: delay in ms following transfer completion before the From patchwork Thu Feb 8 20:21:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 198558 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp432252dyd; Thu, 8 Feb 2024 12:24:59 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUowj8n3uEk9imyxwpQ3RJ7K7mrL3bCiJ1LrCsmhA51OiMHcof9sQ2DIC9ium6tPnJM4ys0E4yFGs7dB0LpHeQ9QEeuuA== X-Google-Smtp-Source: AGHT+IHPRGOjEsxw2TxvaBTotIvFnRVB4CW7f6MLPR7+vhpxT0c65j8Siysph72kc26EBzLydAu0 X-Received: by 2002:a05:6a20:1591:b0:19e:3a8e:e723 with SMTP id h17-20020a056a20159100b0019e3a8ee723mr852482pzj.17.1707423899447; Thu, 08 Feb 2024 12:24:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707423899; cv=pass; d=google.com; s=arc-20160816; b=KEjtlQm6g8NPdywH7vtLVt2/Z5d34Qg07mJed8pNZkR5MbZl94SlAKZEperjKbKg61 nPiwrNO0gJg5th1NLcdSQS9lCyPJnppKwL7SzTZ88aLiDsFSOUIF/EcrlICc226/OIce xR2IMHow6qOoMoJi93kruv5FGo/RjTAVVTywa791UcYn6QKbchSNbrXLLdInx19PRkji PWQSe4wO0Npz+UR7p/+Ztzc50fLRxFOdaqQSX+Mex2V8IOZQ6SwcpAsLCM/w5LlrdpfT 4YYqjrCI5AW1LzAc0m86PIVhC2b/jOGflutzHoaIcpaRz8aUsw+pmOky/KIGt+ogPWTA Nblw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=EUkNFYshyeua4flK0SyOI4wZ1pzqdwJE/n1h1Pd676U=; fh=gnzQoMEKnXMoCtKIRPzlhqz4Xg2LGV9mbNLfAcnf0rc=; b=M9FfpNTJnai/9DCsXpgdc+RT7Uz2jneBl7dmcrRnOYCoVLyXr9sc67569l7CGVqzlf IA01h3QjIgqNZATQCxefK+XCP4Aaz5ZJR1o8UKeRxi6sJdRMii63bKdkGi8I29Y+zmpO dUtvpa84UI+EaXnXd2602ehNvMU8GeA64EMGbIr24RJFkLf8Y9fEIJPVk3+1PXAf2WWR EOJnX29Lwq5xqX/FHDVKpvLK4nrqQZtP0lZwdaY8rsXRNbOQ/Y81xZkgvThWfb0xnOA1 prdgGqCe0EkCWd33G5obON0TlqEhhbkx1rQ7POW7XxoDfEuiCnkFbv9IKAtNiJWC0Z/+ XH9Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MrI34b5e; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-58664-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58664-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=2; AJvYcCXo8KS2gLunb8jmJnDqhvZc0qcdcexEcLE2DuqiHFwymEon6BKIPA8BoplOFp2BhDQ6TycLVOL+GVDw20BtHrFzSWSKhw== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id r9-20020a17090aad0900b0029689cd7463si236465pjq.186.2024.02.08.12.24.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 12:24:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58664-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MrI34b5e; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-58664-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58664-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 403EE29306A for ; Thu, 8 Feb 2024 20:22:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 539E93F9C4; Thu, 8 Feb 2024 20:22:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="MrI34b5e" Received: from mail-lf1-f47.google.com (mail-lf1-f47.google.com [209.85.167.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0CA2039879 for ; Thu, 8 Feb 2024 20:22:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707423724; cv=none; b=P0wG/HSQ/hsGZPcS4hf+gLPp/2x/e4bGBITcj1V36iteLHfO/hpQtdZfC3tNqgbfed4927qXy3g1PVc0U5bhywh2kieiW9K1+e2WEA0WZZdxjGRrHOVpjbcUe3y8L3VnspoAuevVPG/u7SsLX17Bj9eu9JjO4dt6KnxYUJE2iqI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707423724; c=relaxed/simple; bh=EuC6sp3zgUZwELtrdAh8RcNfJzcbA+xXFU1f1/D83Z4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=iBnxwwPcC4mYsiDy9WLrqK2PhnhAzskc4A7jzGsUC8Y3XXUWst21y7eD06TOKlI5rN0KNlUrI7u8awVWpIXBPdg59hTEL3eYN20OWhfScpCv8ngjGJT2cTz45sOp4VHABS9XJfPmVQVYGmO3jIk85l13ULQ7CiV4MAkD7yQ+jFM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=MrI34b5e; arc=none smtp.client-ip=209.85.167.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lf1-f47.google.com with SMTP id 2adb3069b0e04-511234430a4so369953e87.3 for ; Thu, 08 Feb 2024 12:22:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707423721; x=1708028521; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=EUkNFYshyeua4flK0SyOI4wZ1pzqdwJE/n1h1Pd676U=; b=MrI34b5eo+C9IsfjMQyu6JvgEl/GZd5BOYEQf2SXBW8cokU09FiWumqP9g9YPpzhzi V7e2M0MvpooLZurv4WmfGxEaX7XBugm2anQet8xBiGynrA5O4G36sICRTeIg+AOKkY9c zm4LBq7m2zRL/PGhgQxhbzSW+ISKbNvw163bSxKbSHCz5ORh0ijwK89PQFNtSjnX2+/u bksCxGr2+7/QlbS2fxClsxfbIklGiDuR84FFqjgpfz2ajE3fqC3zHFQJRt5N9dgf/Xal eJe/DAD4fHFlDsbWwz18uMoNBBhbCfbOflP6yok2fds/tWkm17A1d9Yil/IdAA+WnXK9 BY2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707423721; x=1708028521; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=EUkNFYshyeua4flK0SyOI4wZ1pzqdwJE/n1h1Pd676U=; b=TXxcPpdb4kp+jDoss/uAoD1Tk1bwhahrx6EQ1CqUg/ok6beTgftn7CeuoRZrjJKBXJ /TWBnxa1NgVVF+Z5zHN12FradE/zMO370Tq2q0mXrlYu+KMvGmm46N9PdfvrM0Gs58X2 bzRiyHGJ0WI5FdmrMaV1T+6Z+Bzh2EODcNmZCn1VXeLMnof1X7wkd18nOs5wipIRhlW2 wKRhFMIBMNch9IJhNgpiZlWaHbLvyHpueQyfXdrXaL0KiBESEar3+pFlaIxDA5T4sbO9 tyPAlHVN/n6Md1xpjDbIBy0hTxvo7THlrAwJZCJpMnajfpzVNpAGGut6AKm85I1AfVqt ngdA== X-Forwarded-Encrypted: i=1; AJvYcCUc/3UU2u7qm76KNjfSKSHOahgp3i548Er0t1WrdBWAWtH/S8CI1hFlc4uT2joUg5htGw4ceGOAeDK5OLUtRSkLoAfGWJYYALvPU2pb X-Gm-Message-State: AOJu0YzRHJxp9V88ADBjZntWKOSk1GkzOEKsBJkjah1w6m5lQe5absMo WwpYOD3MzogA5XgSS49NQR0kQdaSb1lVIiNI5pcky+hzNEvBqjIESd0VZOc7xCc= X-Received: by 2002:a19:910c:0:b0:511:696d:87cb with SMTP id t12-20020a19910c000000b00511696d87cbmr229963lfd.26.1707423721289; Thu, 08 Feb 2024 12:22:01 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCVqXV/uVGQiQy36ATGYttAxe9QlOz0BaJN0UtwLo3HN53h+Cdz9xLBP5PmppGm0OcEtQChd9Pikit0CF/bAKe4BsVukYVD4Nz+gCKgnpSGfPLiQHbDscdxihexpQZC04LJIJJ35gywW Received: from krzk-bin.. ([178.197.222.62]) by smtp.gmail.com with ESMTPSA id o25-20020a05600c511900b0040fdd7cbc8dsm361481wms.47.2024.02.08.12.22.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 12:22:00 -0800 (PST) From: Krzysztof Kozlowski To: Mark Brown , linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 3/3] spi: pxa2xx: Use typedef for dma_filter_fn Date: Thu, 8 Feb 2024 21:21:54 +0100 Message-Id: <20240208202154.630336-3-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240208202154.630336-1-krzysztof.kozlowski@linaro.org> References: <20240208202154.630336-1-krzysztof.kozlowski@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790363722800944542 X-GMAIL-MSGID: 1790363722800944542 Use existing typedef for dma_filter_fn to avoid duplicating type definition. Signed-off-by: Krzysztof Kozlowski --- include/linux/spi/pxa2xx_spi.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/linux/spi/pxa2xx_spi.h b/include/linux/spi/pxa2xx_spi.h index 0916cb9bcb0a..ca2cd4e30ead 100644 --- a/include/linux/spi/pxa2xx_spi.h +++ b/include/linux/spi/pxa2xx_spi.h @@ -5,6 +5,7 @@ #ifndef __LINUX_SPI_PXA2XX_SPI_H #define __LINUX_SPI_PXA2XX_SPI_H +#include #include #include @@ -22,7 +23,7 @@ struct pxa2xx_spi_controller { bool is_target; /* DMA engine specific config */ - bool (*dma_filter)(struct dma_chan *chan, void *param); + dma_filter_fn dma_filter; void *tx_param; void *rx_param;