Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp3270560lqp; Tue, 26 Mar 2024 04:57:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUq5FqojeYwfAmh2eX1PPXKSURqCh9+ozG10rgbApDkucKqpyoBneLSU4TOfMzsbjGzrwR3u7xBke58DEsQkF6jU/Jd8LpnCWmQRF7KKA== X-Google-Smtp-Source: AGHT+IHdT6IcQYlXkvIvUCYYTcspIFwiyezMCRdbtPOSVyQC9onyDmqvYREkpUZjSLcURcBh65oQ X-Received: by 2002:a05:6a00:1ad3:b0:6ea:9a10:b74c with SMTP id f19-20020a056a001ad300b006ea9a10b74cmr1705328pfv.16.1711454242865; Tue, 26 Mar 2024 04:57:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711454242; cv=pass; d=google.com; s=arc-20160816; b=Pda9j0iU0jjMqOr/1A2oHCn4Li73NhPOB9yGP8GamDik3dCDr4q32pJzk1RKt+fczQ DNPLRThlP4ZR3P5qvlitZ44zrYKPjB0qLagmHhwdHoGCxb7QmD/f29m4es1GAR5vSFio OClRvoO2HxGkVzpg2V3Q6sm1AK71kvDHwdQ82aOi7awcSvqjFfTb8yL3yC9EqpWMCq1H Xa5WCjqkHlAsLJKcf6zGTcCXPcGRBqQinCiaB0Twr+Ipawv9fQ+ia6QT0Q3dKboXEml+ s5q6POB3BT2DcggWU9kEt2fTwNT+YsBD04aXKbD9H5A3RGpIRodbUVVwOVQSSAN+sgCx 2QPQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=+RQirBONGT7g/mBKFr4U8ujDZu4jx0LwzCH8oxof1pw=; fh=B8ygvwnlvg/5LFund75GXCzzOt36Z0b9Ngt1CryRT08=; b=Q5KiKCTKitUC+jxGSS/9dH5IUDy8HX2BckYTF246VVsieoTi2UaC/UGF8j6WkQhceB U5evdP6aKsIj97mb+IuEZiNd9mCdeT4k17uBD1irmBfQ5GzhIXB6OiGFSXa8Rm5Re1/+ WpV59qbYeqTDpXsynse2krojTLDs2FhSzoqCDsz/5yrkVNtzX7A2OvGwsU0gUHQHJn2T W9EYmC9cJbAtXAA/S6Ht8qO7d0tfV3xVEocThZxhAAx4R8TGXU8GVdQ2dPv6b3ygWU6M jsRTN4VvrF6WDCRMwWtmOnJw2NBKjYT3/rYIxgsVvJBizYfxqWY0bZKxT5/Lj6Qe4GDd kLKQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=efXwt10d; 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-118921-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118921-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id w13-20020aa7858d000000b006e6b14382f5si6973627pfn.34.2024.03.26.04.57.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 04:57:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-118921-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=efXwt10d; 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-118921-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118921-linux.lists.archive=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 30FABB229E9 for ; Tue, 26 Mar 2024 11:50:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 615D46E61D; Tue, 26 Mar 2024 11:50:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="efXwt10d" Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.54]) (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 9E8996A8DE for ; Tue, 26 Mar 2024 11:50:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711453839; cv=none; b=BxecPA/BPaQrQBGb7JnP7J2NABG+6u90Uniy//uG91pqHh03WANHP4bYqMuJy8FkR5RX7nXiWkT5xQUNnmLRrp1DysuhB+5OApRzNiPHRcNaZ+WNlVWGuyxL7o5YJgI4TwQEAznAyk9EDiG+yvjZrOtEXvqxp06N32BJ61gTsYw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711453839; c=relaxed/simple; bh=zIsRPBERtYd9KT5eFf4SlflyWfRi00voryrIaoJ7HcQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=i43ayJIOKDzbJsY9xRYU7ZTqfTRAegTaNsqgqArbkcDKrrG67ir7PlYx8zC8jfF5q1RcJOi3LDKrn5oOUU3fdTQC683rRTk2cq7Oo4mFrFK+Ucynnzr4Ayb/pvl+BzHHrhhg36Odp/SaR0tyrKq83ry10cbE9yD06c79oZfQvwE= 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=efXwt10d; arc=none smtp.client-ip=209.85.218.54 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-ej1-f54.google.com with SMTP id a640c23a62f3a-a4751063318so297368466b.0 for ; Tue, 26 Mar 2024 04:50:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711453836; x=1712058636; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=+RQirBONGT7g/mBKFr4U8ujDZu4jx0LwzCH8oxof1pw=; b=efXwt10d+TBl/th7kmwdARkdsJ550WK7fniQuY88pwMOqDEyGqZPepJ+NuG02/w/kV Lzksz8gyOcA6soelNFE1voH5K2gjvbBFfoq2gXapfdCqwqkPQutCqy6GOcEYxU9iaaO1 Nd9Dh86DFpjQ0bSCmNJoSLs43tw4GlVh0NQ5ZB27TLQq4MydQ+KIncicELEAxDlqdtNP xv+V8apMvGHRQFwvhAgrXcaf1hulQKcxeDg/KCaFJXJnSCzm9i6CE21GtRK5fy7NvgLk j8L47Pp/lj82jVm3WFHP4jDsmxQqNQM73jKAeqL9RQH4/gRGS0HEf6ybFXichUHoGPLx Yz0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711453836; x=1712058636; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=+RQirBONGT7g/mBKFr4U8ujDZu4jx0LwzCH8oxof1pw=; b=mQHrKZTBH2syhDD2NapRyrm4hTOeL2nwPds167KZVZdWco6ByrCpR2CuDOsB0n31dN L09dyaVIATYFveRy3vMKGXAgUBF21ySqOjXZfn6EAF3nbgxX7gIubO2fVS1CIDjabJ4W 6JIevRne5aYNrAEbxBIk7K3I5QFbKN7ZXvoYS7Xr3jZykiAz33htiAKMLKGrM1BgggV4 i6eG7sGPf5a0TjTiU9M+0sriQmAI7r/Zc1PTkJuWNM3iFH379LljJIdLUgpy57Uzd5Oy olLk94sbSBZ4+qkGTrdE6CruyjS2d0ztN9D+XOaAB4zhfR/b4EEfBV5WIBWW6R4SXKnG Q10Q== X-Forwarded-Encrypted: i=1; AJvYcCWJsepLYBtN3TZjVTqGg+iZq9Nl5WvsizxIFTq8iAIKm97P0Z7kAKlB9A5lXeYqzbZxDQX3uM26iHARKBVZiEoQhiaw8VoqmGSLjwlf X-Gm-Message-State: AOJu0YzoNk+iYRvzlOiNT9OEQxaKzZ3nsLrdcbxJNGdCBHLckabtYfQQ 1VSQIFjcrs+c6ymxPwc68a5/64nzaZE+VwOS8FmT39k5l011FfwDOKawjLEalZM= X-Received: by 2002:a17:906:2810:b0:a47:2036:dbc4 with SMTP id r16-20020a170906281000b00a472036dbc4mr654986ejc.25.1711453835868; Tue, 26 Mar 2024 04:50:35 -0700 (PDT) Received: from [192.168.1.20] ([178.197.222.44]) by smtp.gmail.com with ESMTPSA id kq1-20020a170906abc100b00a46a04d7dc4sm4148259ejb.61.2024.03.26.04.50.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 26 Mar 2024 04:50:35 -0700 (PDT) Message-ID: <1525c377-af73-4204-8a2b-983c6d99316c@linaro.org> Date: Tue, 26 Mar 2024 12:50:33 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5 1/3] dt-bindings: dmaengine: Add dmamux for CV18XX/SG200X series SoC To: Inochi Amaoto , Vinod Koul , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen Wang , Paul Walmsley , Palmer Dabbelt , Albert Ou Cc: Jisheng Zhang , Liu Gui , Jingbao Qiu , dlan@gentoo.org, dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org References: <57398ee0-212c-4c82-bfed-bf38f4faa111@linaro.org> <473528ac-dce2-41e3-a6d7-28f8c53a89ef@linaro.org> Content-Language: en-US From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVs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pWaVCo2jv8+iHxZZ9FL7F6AHFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 26/03/2024 12:41, Inochi Amaoto wrote: >>> >>> The driver does use this file. >> >> I checked and could not find. Please point me to specific parts of the code. >> > > In cv1800_dmamux_route_allocate. >> + regmap_set_bits(dmamux->regmap, >> + DMAMUX_CH_REG(chid), >> + DMAMUX_CH_SET(chid, devid)); >> + >> + regmap_update_bits(dmamux->regmap, CV1800_SDMA_DMA_INT_MUX, >> + DMAMUX_INT_CH_MASK(chid, cpuid), >> + DMAMUX_INT_CH_BIT(chid, cpuid)); > > I think this is. So where exactly? I don't see any define being used here. CV1800_SDMA_DMA_INT_MUX is not in your header. DMAMUX_ is not in your header. So what are you pointing? I don't understand this communication. Are you mocking me here or what? It's waste of my time. > >>> >>>>> And considering the limitation of this dmamux, maybe only devices that >>>>> require dma as a must can have the dma assigned. >>>>> Due to the fact, I think it may be a long time to wait for this header >>>>> to be used as the binding header. >>>> >>>> I don't understand. You did not provide a single reason why this is a >>>> binding. Reason is: mapping IDs between DTS and driver. Where is this >>>> reason? >>>> >>> >>> It seems like that I misunderstood something. This file provides one-one >>> mapping between the dma device id and cpuid, which is both used in the >>> dts and driver. For dts, it provides device id and cpu id mapping. And >>> for driver, it is used as the directive to tell how to write the mapping >>> register. >> >> So where is it? I looked for DMA_TDM0_RX - nothing. Then DMA_I2C1_RX - >> nothing. Then any "DMA_" - also looks nothing. >> > > It is just the value writed, so I say it is just a one-one mapping. > Maybe I misunderstand the binding meaning? Is the binding a mapping > between the dts and something defind in the driver (not the real > device)? Binding headers contains IDs which are used by the driver and DTS code. Hardware constants are not bindings. Register values, addresses, whatever hardware is using is not a binding. Best regards, Krzysztof