Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp786725lqg; Sat, 2 Mar 2024 01:37:11 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVwWivhNKws/pvdK6LFeNKOuoQpd4a0LdWvjlUNu4qy62fwhpaZ9QNPwT32set/Xou/z6tu2R5shq18GZKhjmxTwZ6byvfgWamFVbQBuQ== X-Google-Smtp-Source: AGHT+IFvzLgpTmNuwYhdNZkBQ7kZgufuG3SdJIoQgDjCXJTsT1AjRpo52LC0PhdlViZMCqL5kmnw X-Received: by 2002:a17:903:2292:b0:1dc:248:28e6 with SMTP id b18-20020a170903229200b001dc024828e6mr5120129plh.67.1709372231094; Sat, 02 Mar 2024 01:37:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709372231; cv=pass; d=google.com; s=arc-20160816; b=z+haR4erm7hUSfg5knVLR/MjeWkfBmnJvzEsKuz/+BQUE81K5jDDh0CEzrZDH+EsRF C9/3urvYsTfh3K5n0xgfVp0q+w4pyJ8GPD2f/1WZEJK+P803RbKD39y/mQ4HInyBgYMJ 82lvNZNRcNqxIJ1JH3vDhcK0spigkkPAOICVel1+SK0mBgstO6tPC+PkwPLQW/BDwJyI RQbgeuxuueBwHnIRIYJUUAianlc0B4psEQSAIxsliMtLQdgJ+PEwHwwuBjeUoxqEKgdx EaCV65SSLDJbtg6792wutpNSEwDMUT0OFT8hr9fyCuKTguSMhnOOVM5M4QfSughSoVka ISSA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=LvcKz/ggpTufe8TwOw+mHRKPGyMuEJMkdqXs69fMMA8=; fh=bSL1SU3oaX67BiforXIzkfLXxvV91soeIpQQkrxUtxM=; b=KZYIuOehtT0J6KNzoVu9u63uCeRkY37xCIOQvdjZeObWhMbRu3EwLjhzqLvzTZrB+1 O8d9Pt4ljcg8QejEZ5nn8ZbkjIU2VCkRIR2p+Xj/p8UMTHLSA+2LJrDm4YEOO8ZJf+Wd Cu722sbiTVe7+SFN+a+5QVmrCV2hy8WrCVHXl+KJsAjuP3U0Ph6SPtReli+jybIJSOn7 2e9RbvJmlKN1ASInLIhEEvuqyWXf3OVsYZ4JkzhAxSAOnJf1oFYzPKuPKN0RLXKDwL2V /GVFRP7cR9xJEyIOg0UBnQJgITl6k6haGFZe3JGxp40dn9GFj6f7lXXd/4xmPhowMLO3 g2rQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rk1gZxzV; 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-89398-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89398-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id k4-20020a170902d58400b001dc6cf4594esi5220724plh.96.2024.03.02.01.37.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Mar 2024 01:37:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-89398-linux.lists.archive=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=rk1gZxzV; 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-89398-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89398-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 10416284492 for ; Sat, 2 Mar 2024 09:37:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A632E1428F; Sat, 2 Mar 2024 09:36:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="rk1gZxzV" Received: from mail-ej1-f51.google.com (mail-ej1-f51.google.com [209.85.218.51]) (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 29213125B2 for ; Sat, 2 Mar 2024 09:36:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709372212; cv=none; b=T4IqnpCmHu7mlxJ1OadXiXjC4BKBcITHlHBhzRjA+hvkyKQvim2fXyCbHooOJ1TRoZmwmBgTe9XfrBgeLF/wO/IqxQ6dc8RMMLsxCxUAr/8NQB+DDewoZ1p4E5S8WKq4aV/AxWyBjhRzcdLeNXYIkKnshuejQvQaHkU42VHJ8bQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709372212; c=relaxed/simple; bh=X/AL9TvNX/+ErvbiZEnbteQ6E0iQD2tAJQ+ARrkNOXQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=HAIIBDT/ZXE1PfOINYAKneFfkxY1Qr/en+WxCLD+qJrnMxfoP6RCqNc0EUloEXihWZsS3X76un0X8NHuEgry/9fCxnTghCCV+TyzpBd+0B3I4dK7UgdrFWkIH3P/NbTuztQQkIl1HVs2rXAjpyic4Lm6XQEkZkVzj+FliBauxzc= 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=rk1gZxzV; arc=none smtp.client-ip=209.85.218.51 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-f51.google.com with SMTP id a640c23a62f3a-a26fa294e56so538558766b.0 for ; Sat, 02 Mar 2024 01:36:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709372209; x=1709977009; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=LvcKz/ggpTufe8TwOw+mHRKPGyMuEJMkdqXs69fMMA8=; b=rk1gZxzVOrImSi5lm6BSOIdmipt/aGrrQsjmXqjYJ0iPRPcew9Mi4ClysL3GOKE7Q4 jhns6tOoFMc4ppQ2kJ4CI6aNCz+o1RJr8JMwzQOI4rAJbxWNI6hf9eC3PnQ+vKUS55t2 QzxJ/PqrqgjowgwklGYa78//wsY0Hmuayh0BiG1RuURLV7k3H2agHuGDaTSHmL/SYOV7 T8vB0wecw9Za/c/njLPme6NlEoMbIxe67KHpI5x6rAS29eGXcu6ea7PhL3ynltror9C2 XU1Hmlp+jRoCWNV+ia4nSMIVCYCuFLACMfhlDrzyD2NB7jXzNiNvY7lmmTWRnxNwByto /VfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709372209; x=1709977009; h=content-transfer-encoding:in-reply-to:content-language:from :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=LvcKz/ggpTufe8TwOw+mHRKPGyMuEJMkdqXs69fMMA8=; b=jctfUzsk/0Dr2XQrrHM9sRFqW3mfv7RAlZ4BeJKWGTGIVdKLj1frmO2DM/n4Av9K9d gGbk8x0OP6aiHQ1+rh/LNht3EqF6O2zkyytBEJcYTEf+HeFoinuhbI37eydiTHxfQnyn 59SoZTFHXLJjH+1zOOS0kXE1FmFxlqjja3r0y2xi5uivG4kM2g4/naK10KysTiTU8Lx+ KJloVVR8qBlGKHq7dss6hDF2V6Td+bOKJumr+fbuufqCAaiG0Uqwqq4sKdbm+DYFTHEO oD/jRFUcVcDMIzXfgRGR6u4cuQlA/36B7oFwtGISKKeLYbAglR/aeLvejHEaEo4DLe3F pwSg== X-Forwarded-Encrypted: i=1; AJvYcCUVOg4Eiok80Vx1e5vyVVzAbwsbq/cgl52amRNRZBqAFY9vje8l1zTo8AkxZmLbzqJGZF1HkBmIdIk7PITTYgCbss5kPGaONyxICIfm X-Gm-Message-State: AOJu0YwAdNd2oOD/Q5V48NDyyZCvYH/vZ5hBxCdghlXfZf3g0rZ5vLOe Ts6TFoJQicp8wmAxYAOCVaFjgGOZ6DDj82HEEB6J5DObxLf1L9KfClZFqpRzDPQ= X-Received: by 2002:a17:906:5a9a:b0:a43:bf25:989 with SMTP id l26-20020a1709065a9a00b00a43bf250989mr2973140ejq.9.1709372209521; Sat, 02 Mar 2024 01:36:49 -0800 (PST) Received: from [192.168.0.173] ([79.115.63.35]) by smtp.gmail.com with ESMTPSA id gs4-20020a170906f18400b00a449d12cdc5sm1210443ejb.119.2024.03.02.01.36.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 02 Mar 2024 01:36:49 -0800 (PST) Message-ID: Date: Sat, 2 Mar 2024 11:36:47 +0200 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] spi: dt-bindings: samsung: make dma properties not required To: Mark Brown , Sam Protsenko , Krzysztof Kozlowski Cc: andi.shyti@kernel.org, robh+dt@kernel.org, conor+dt@kernel.org, linux-spi@vger.kernel.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, andre.draszik@linaro.org, peter.griffin@linaro.org, willmcvicker@google.com, kernel-team@android.com References: <20240301115546.2266676-1-tudor.ambarus@linaro.org> From: Tudor Ambarus Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 01.03.2024 22:42, Mark Brown wrote: > On Fri, Mar 01, 2024 at 01:28:35PM -0600, Sam Protsenko wrote: >> On Fri, Mar 1, 2024 at 5:55 AM Tudor Ambarus wrote: > >>> Since the addition of the driver in 2009, the driver selects between DMA >>> and polling mode depending on the transfer length - DMA mode for >>> transfers bigger than the FIFO depth, polling mode otherwise. All >>> versions of the IP support polling mode, make the dma properties not >>> required. > >> AFAIU, the device tree has nothing to do with drivers, it's about >> hardware description. Does making DMA properties not required here correct >> mean that there are some HW out there which doesn't integrate DMA in no, to me it means that the IP can work without DMA, only in PIO mode, regardless if DMA is integrated or not. Not required means that the property is not mandatory, which is what I'm trying to achieve here. >> SPI blocks? Even if this change is ok (I'm not sure), the >> argumentation doesn't look sound to me. switching to PIO mode in the driver for sizes smaller than FIFO depths in the driver guarantees that all existing compatibles support PIO mode. Are you saying that if there is a physical line between an IP and DMA controller, then the DMA properties must always be specified in dt? I thought they can be marked as optional in this case, and that's what I did with this patch. > > I do remember there being some SoC which shipped a SPI controller in > that configuration for some reason. Possibly one of the OEM ones rather > than one in a Samsung SoC? with DMA you mean? Thanks, ta