Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp3840962rdb; Mon, 11 Dec 2023 01:11:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IHgbfptXTTMYAaoIOfSZeGfWa4+zrkY2JqpifHA3WcjonChB+Vh2BxMJWX/abIqLO3GaT44 X-Received: by 2002:a05:6871:4311:b0:1fb:75c:3ff8 with SMTP id lu17-20020a056871431100b001fb075c3ff8mr4849958oab.88.1702285903065; Mon, 11 Dec 2023 01:11:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702285903; cv=none; d=google.com; s=arc-20160816; b=TicZdo1NA23uiBu+5ihOQqrIzVj5P4CbBhXoeh3kKH10BSL2TNIyfbW9T8AE+vCVr3 HzBPZ6PhDj1XZjhDcIjIxA/MfhG2l4iX9KSv1WG0St5gyw9mJJYXAK008g4+FaS/TcU/ 03uOGRnkbdUQ89D/9lAJzjI+IEGkhwQdLFAo9lDUXT18L6ksUkakWQPvZqC9s5vetxJi 1BEoppq7bPKX4Nn5LDjGrp+cqpNWzSMPPLVaHY7q2r7no2SwGWDyFgu0Y2cr0IwfCL8Q +Ecg08x7fcmK/iNEfjWzAGR5o0rkqPrQbJ7e2GsBE+SL7dkprLGPbTQc733OzwIekIhF DdbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=UKtwdG87cbMckGwyNHeE1b5Vb5hNiKX74obiGUxAGKg=; fh=juAlsh8aqQYbP7ujJi3Rn0q+iNjvqxxcywOaaGCXcAs=; b=Jx8XCPBU/ukdsjBl0w+6suKXhjMAWyeyF7Sw6g4577lBTaBG0XplR4N/OR7mtAcqrw Gu3XgHVy/1e+3/3ExRvTujYg7DAAKuR3KOsUIUhGekFzas94jtyrNnl/fclQPMtPms5a SCGO+WXa+p1V91TUirD8sDMaY7ahdljlX7I+lN/rlYeDPqbtBaiO2sYHBi09tRMNcQNP LCFH6omx9Kg/fkhRWf8lhPBZSnvKnWuSgCkC3iE+2fg7wZdeZAByDnr3ty+Wc+8uvvvY dPn1abA552khEMCu1jvk8a/+Qm1tOjRzq+sEQZVVFFapJGdJcJQl9446DcVCDgv37WQZ TFoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@maquefel.me header.s=mail header.b=K97Abeap; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id a9-20020a654189000000b005be3683ec6asi5752288pgq.184.2023.12.11.01.11.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 01:11:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@maquefel.me header.s=mail header.b=K97Abeap; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 1E2868055AC9; Mon, 11 Dec 2023 01:11:39 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234473AbjLKJLD (ORCPT + 99 others); Mon, 11 Dec 2023 04:11:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234350AbjLKJKv (ORCPT ); Mon, 11 Dec 2023 04:10:51 -0500 Received: from forward501c.mail.yandex.net (forward501c.mail.yandex.net [178.154.239.209]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6DE9BF1 for ; Mon, 11 Dec 2023 01:10:57 -0800 (PST) Received: from mail-nwsmtp-smtp-production-main-25.sas.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-25.sas.yp-c.yandex.net [IPv6:2a02:6b8:c08:2e14:0:640:2cd1:0]) by forward501c.mail.yandex.net (Yandex) with ESMTP id BA67660B25; Mon, 11 Dec 2023 12:10:52 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-25.sas.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id pAddjN8Caa60-KabXMH28; Mon, 11 Dec 2023 12:10:52 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maquefel.me; s=mail; t=1702285852; bh=UKtwdG87cbMckGwyNHeE1b5Vb5hNiKX74obiGUxAGKg=; h=References:Date:In-Reply-To:Cc:To:From:Subject:Message-ID; b=K97AbeapFDKuCtOee6amDMu8ldcf1mWMhdW2PujdAsJoL+9o2MZyTuY/7IDMsqjtw QkEKLt+s2RMGhpDdgZyeAfvVlikeRXavIin32CqkoKmoDlmEoPXKOWxVkR9X/2ZKm0 CiCY0mtu7tPsvVcfT/s4miaxYBgyB4ZCi1JtZvD0= Authentication-Results: mail-nwsmtp-smtp-production-main-25.sas.yp-c.yandex.net; dkim=pass header.i=@maquefel.me Message-ID: <1bbcd4e612a1577d83456a5c88ad633547e59e9b.camel@maquefel.me> Subject: Re: [PATCH v5 39/39] dma: cirrus: remove platform code From: Nikita Shubin To: Andy Shevchenko Cc: Vinod Koul , Alexander Sverdlin , linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org Date: Mon, 11 Dec 2023 15:10:51 +0300 In-Reply-To: References: <20231122-ep93xx-v5-0-d59a76d5df29@maquefel.me> <20231122-ep93xx-v5-39-d59a76d5df29@maquefel.me> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 MIME-Version: 1.0 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Mon, 11 Dec 2023 01:11:39 -0800 (PST) Hello Andy! On Wed, 2023-11-22 at 14:31 +0200, Andy Shevchenko wrote: > On Wed, Nov 22, 2023 at 12:00:17PM +0300, Nikita Shubin wrote: > > Remove DMA platform header, from now on we use device tree for dma >=20 > DMA >=20 > > clients. >=20 > ... >=20 > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0if (device_is_compatible(cha= n->device->dev, "cirrus,ep9301- > > dma-m2p")) > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0return true; > > + > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0return !strcmp(dev_name(chan= ->device->dev), "ep93xx-dma- > > m2p"); >=20 > Haven't you introduced an inliner with the similar flow? Why not > reuse it? It's the same, i moved it from platform header file into driver itself, as i am removing "include/linux/platform_data/dma-ep93xx.h" completely. >=20 > ... >=20 > > +/** > > + * ep93xx_dma_chan_direction - returns direction the channel can > > be used > > + * @chan: channel > > + * > > + * This function can be used in filter functions to find out > > whether the > > + * channel supports given DMA direction. Only M2P channels have > > such > > + * limitation, for M2M channels the direction is configurable. >=20 > I believe >=20 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0scripts/kernel-doc -v -no= ne -Wall ... >=20 > against this file (and maybe others!) will complain ("no return > section" > or alike). >=20 > > + */ >=20 Agree, dropped doc style comment and converted it to simple comment, it is internal to driver now, so no point putting it into docs.