Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp195301lqt; Thu, 18 Apr 2024 12:10:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWMmVwPTCUVnhxjz7hAK1Ru5/Q4TkqY8JsX96BS26oZgqZoIhmfUcq5YiVtbM2SX4R7A0ulmWFx3LsS92ftlMkzEEIjgs6ZMiDXNmB2sg== X-Google-Smtp-Source: AGHT+IFGIlgaxgTTRCv0JGGwpcq02+fkMX33pv0o2KQMCYGMT9mTeg0bo9pz816lUxtHm8jZhqeJ X-Received: by 2002:a05:6512:158d:b0:519:591b:6d7a with SMTP id bp13-20020a056512158d00b00519591b6d7amr3448649lfb.7.1713467417383; Thu, 18 Apr 2024 12:10:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713467417; cv=pass; d=google.com; s=arc-20160816; b=RTbRgS3iWAuqhdyf+lob8q5G2Ui/xC+iHiUfnZ9VS9U7etLJAkSlCLq12jg6JVNFdF nUHld9cugSDQf2QbTzSQW75Uw8O8RhZEUg8uXtXRQNJ4I+/AK882jpThnPeMA65AqcUs silz87cq6eMOazfJd1TVFRTmiigV4IQiwvVEvScVoixOL4WL1azy843yMjMTZx4iFASt MHWp9acGNyIcNxQRG093fuBV9h8leK/RRPTe2mWHEW/MXwDjq+Yg9ZLJdH0MQqyxwEYt M+z0yyem3KVzSsDQ2Prq7tvUzvR1pwULtqUYrD/c9dHCzQEybGqoYmKmVLWTmIlCMutJ 0MEg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=LFCOV5/FbvZyadb0eigbmic/UPzgGtARohnH/S7yn5M=; fh=xnHKSYCrE44+YMQJ9a5QgrjrUBXrP2f99aGjDy6RR+Y=; b=td9yAHfH8ajKTlutMB0qQby+OTvGXU9yvR5SPTsiT5YsbsKyXUkcjiDDnnVrOyD4Wh +qgfR9ipKJeCY+90P/gG0QGvgrrNVPIG8lNpCbDBqnp9BX7JhXlue6+IgB4eyPRfKJ/b qFkPwxFREk4gdJecx8ZVkD9MyXGHBs2rl1j9IeRiHcuMVB83VfxBkz7BS+f5RatMdZzo bIm8PvqyjYwDZj5EXtUENoKBomkBcNMQwpMP14D1y13YPe2lCNi4UOm8tSM+EWmYxDZY 8g56LVwufJa4RnRGM95E+vYEtRJ/PAAj2woyD7LelljkbH9gppMh9SRBBbR7/RRBi8ke tmag==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=f52zaE4M; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-150661-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150661-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id q22-20020a17090622d600b00a556b8692e7si1190613eja.259.2024.04.18.12.10.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 12:10:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-150661-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=f52zaE4M; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-150661-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150661-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 1C58C1F21F1E for ; Thu, 18 Apr 2024 19:10:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AC9C317B4F1; Thu, 18 Apr 2024 19:10:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="f52zaE4M" Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com [209.85.167.46]) (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 55FDF177980; Thu, 18 Apr 2024 19:10:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713467409; cv=none; b=gcpNszYRZFmIwP4nPLQh9vfs3eBrL64m7StT6B9xZnQ/MJeBlDeuAKp6yQIv55DQ4qWtp7Pdm87+d4JWbC/Ed+cIKcasukn8308mUjJHal6PtnkRM/Y91aF78buJTcpxTQv7wF2YiTJRmERn+kTbBvuoK+7/zdTAE1H1oABtF8c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713467409; c=relaxed/simple; bh=LNYSLafohNI3OcAPQLdlG1Op1X2KxPSSInkwWTm9e9k=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=i03DPz2NzCwqyIZ/lu+9TYK66QNBe8WcwJjJkRPcCqPux09rEiAlRL8g4W6Cr4FNRGodz0yNMpFIOGmFPYlFoeLvp83vliJHb8Z6yjDx98HvjhwWB4TPm0/1/vJjn34OhBt3BiGoxie9yWXuTNREKYkwBAhWHqyg8frp6x/ffcE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=f52zaE4M; arc=none smtp.client-ip=209.85.167.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lf1-f46.google.com with SMTP id 2adb3069b0e04-518f8a69f82so1511055e87.2; Thu, 18 Apr 2024 12:10:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713467406; x=1714072206; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=LFCOV5/FbvZyadb0eigbmic/UPzgGtARohnH/S7yn5M=; b=f52zaE4MY0RS5TFgCrG79fG0RkfpF+xLXDYU0+/bYKXVbENGgdFdq6XagTqNarcHan KpPkv7naSQ/lzIdOtZlaMUz+JdA/iO6luBGWC2CrUas78pQumhH4ouWBSRtvMzB+5tAf M78YhkvOdRhKu0wjyp25Ji4LDTZaMtgW3DVsfsxLbfqerF9o06YomjjI2M+ChogwRZV7 Vo1YSUwoDTueBeeIS4AEaUkOjBMtnx81o8FluaflRbCLqJZYu54nx1jF0kjoWqJ5P90W oaPxMrfVmWtJtULoLuZYMLs2CgFtDPjdJooDErfP38K6bWnu3WUNb3aPMckp3lA/77TF lptQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713467406; x=1714072206; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=LFCOV5/FbvZyadb0eigbmic/UPzgGtARohnH/S7yn5M=; b=F9vAG/VnSmY7QZS25HusxlT1CE4c3NV1Bsmn8CzNpGKHe0xJDNuuDY4AMirBX7AlQ/ UHLs46eIxiZFoZnWi1hudeXsRsz1qFDr/U1Rj5JhhKYIhkSlgaKLFs/RzRUW1OEBer3j aYA29PWowWlHAR9GH1A6at0szc7ZTmEOzrC0baYDdIL8DVfatDfB9IVUMfJDMUIntwgq 0qSX+nVYXwdOn6IF16YAcGt4EeBRodEp23bqMaUSHZvp9I1cXz66x07ZpelzW3FsdIGL Jilse5DPaJA/YeGMsOxd6zU87VtCI1T4LipnHkVoSwRbOk51RVsbXLaRsVKgyJxFvfWw 7rYQ== X-Forwarded-Encrypted: i=1; AJvYcCVczPUEmJfiBPi9qyVY5qd2gWzEqpN6AYGAPtJeYZkFeUtOHlMIL08PSAw53ASs75ILhr74rtpdQ1LTlbnIyM1ZwUu6irzLBIPtmSzxQH4nJRelqwe8XZ/VJgOcEhdc0TlQfPSdba2vwsjR+Hjrrq5k09QCqep41YvTbDaec3vMz+kHiExa X-Gm-Message-State: AOJu0YyW0AjKU6jUhlp8cKvqldBlNnqSwYBIxfrIhihMqf0KNzQx/8Jj cmz/KMorm8gezg/bhedz+jx8V7lmJWzwlNM0K/HKfmvqMGBeSf+v X-Received: by 2002:ac2:4836:0:b0:516:d3ba:5602 with SMTP id 22-20020ac24836000000b00516d3ba5602mr2273115lft.16.1713467406333; Thu, 18 Apr 2024 12:10:06 -0700 (PDT) Received: from mobilestation.baikal.int (srv1.baikalchip.ru. [87.245.175.227]) by smtp.gmail.com with ESMTPSA id a22-20020a195f56000000b00518e16f8297sm352294lfj.55.2024.04.18.12.10.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 12:10:05 -0700 (PDT) Date: Thu, 18 Apr 2024 22:10:04 +0300 From: Serge Semin To: Andy Shevchenko Cc: Viresh Kumar , Vinod Koul , Ilpo =?utf-8?B?SsOkcnZpbmVu?= , Greg Kroah-Hartman , Jiri Slaby , dmaengine@vger.kernel.org, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 4/4] dmaengine: dw: Simplify max-burst calculation procedure Message-ID: <2htaobgfle7glf4t7v5vjlhx6hdzja6bbwn3fonhejs3dbxgij@puaipep4ycwp> References: <20240416162908.24180-1-fancer.lancer@gmail.com> <20240416162908.24180-5-fancer.lancer@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Thu, Apr 18, 2024 at 02:49:26PM +0300, Andy Shevchenko wrote: > On Wed, Apr 17, 2024 at 11:35:39PM +0300, Serge Semin wrote: > > On Tue, Apr 16, 2024 at 10:11:58PM +0300, Andy Shevchenko wrote: > > > On Tue, Apr 16, 2024 at 07:28:58PM +0300, Serge Semin wrote: > > ... > > > > > +static void dwc_verify_maxburst(struct dma_chan *chan) > > > > > It's inconsistent to the rest of _verify methods. It doesn't verify as it > > > doesn't return anything. Make it int or rename the function. > > > > Making it int won't make much sense since currently the method doesn't > > imply returning an error status. IMO using "verify" was ok, but since > > you don't see it suitable please suggest a better alternative. mend, > > fix, align? > > My suggestion is (and was) to have it return 0 for now. Ok. Let's have it returning zero then. -Serge(y) > > -- > With Best Regards, > Andy Shevchenko > >