Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3655008ybl; Mon, 3 Feb 2020 04:14:54 -0800 (PST) X-Google-Smtp-Source: APXvYqwAeSUTF86BbAL3PU2ltaSshugmRzJowjo4uuD9Xcoe9kFGpA9F4gltIUblR+VkiymjTflY X-Received: by 2002:a05:6830:612:: with SMTP id w18mr17839931oti.160.1580732094244; Mon, 03 Feb 2020 04:14:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580732094; cv=none; d=google.com; s=arc-20160816; b=L/JjehXgsKnJzVEAWogOldCKrI7y8P9sgmDKvcRwBeRFlujYy7ykUEZwSFClZ9VAV1 bTgaQ93ZY3O2oIxUFFb9mg4akLlnhu0ek8Gk9B2okjYfNwgOSPpjrxkJupo+9isYTOYJ D9S2ljCAf1WGxRYsAhEkILSBkeR0N1J0HvBy6SImPC0Zg5t7rPD+DYiVbEgbK7IeE/MP oqimUhyQ6e3r5Bowf/LcvsMYL1h0LIC97E2vgEAWeqFRhWP2saH3tUW8O+h6Ck2Jpz2t ydEGo6S3Zs+p3BH79vD5PWmILQffjCkpYlJ/O/5qPtnwR2gAXUPccAy41r2v7Dkt81lB wFNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=wYqiXmTfz4p/Fs3Zy1wbhMwP1CrrSHcGsiJsl44DR7g=; b=hJs8lTfAbpFkhN11Yrk7yZihUplX2UN8594sYImUfN6TT29vEOjhZZB/jr1txVa2DS RAb9E3VAZd7Nm+WvPZr0QxjN20b/I7EJULTAOK5aR3yyC16NGjBNBSQkBKyQAohzBlJZ 0706HJh+Au54j9ai/8JmEz+5qKLpWbSPX92FE42f0ywgl6rGRSQivYXdHg3vqwPRyHjl wVY9yR2iNfyUet2q/ynoqlX/i1fJmYPGz/bqJTKIAqwLWRcZ4Lrmo+E2iLOLN6whthnZ ssLOQ11UnBeZYeNXeKXJrSi1lmWzCRtumXMEFbQzt3v4U7arDkT/3fKk/Y+WnUZHYrPo 7+PA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VuQdn0Ty; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x16si8826967otp.184.2020.02.03.04.14.41; Mon, 03 Feb 2020 04:14:54 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VuQdn0Ty; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727919AbgBCLQQ (ORCPT + 99 others); Mon, 3 Feb 2020 06:16:16 -0500 Received: from mail-io1-f65.google.com ([209.85.166.65]:37066 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727494AbgBCLQQ (ORCPT ); Mon, 3 Feb 2020 06:16:16 -0500 Received: by mail-io1-f65.google.com with SMTP id k24so16278155ioc.4; Mon, 03 Feb 2020 03:16:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=wYqiXmTfz4p/Fs3Zy1wbhMwP1CrrSHcGsiJsl44DR7g=; b=VuQdn0TyeYmnIKiR5y/5GWsgEJrXVezZufG5wP0K7CTLBmv12Ah+rLlT45zwbRASAJ DQPfxc6grh7WLvhEmTz/BuPRB8VS/Z1PPrcpwFgrfH2Tr1HxlM7MPRtU6QWdqao/XPS3 MzctK8KZb1M3Y6scA0oUTU90GxH2pNU8NcWV5Bi4cs4b3u28g52Jg30QWBdTTftwQr5y XXo2vws/2fWMT+XVNeeCpdQYM970bP+hzhCwZjbuuTY4bmqDB9w51ZcnpLK6QQqkQMSj j3sStIQwZoWYJGKXJ9+LbwzFom9gLkuzY8GWbZqoky++msnee6705Qmr0zAzhW2dOEeS EilQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=wYqiXmTfz4p/Fs3Zy1wbhMwP1CrrSHcGsiJsl44DR7g=; b=finB0yOyDindS+jnDNB9YCBDTnwIbSSxRbfyOk584UxgFmw+xbG8Grlv0c8mx+HzVv 4nldxpriXUwRVntjb4F78nhPPvHtEqlP5X1b7kZsnew/UyNwsaMWZStHEaWcOwAXbgG1 1BUWYAlg/xOb7XA/GXGisNwRfUSNLOaUAxjtJ7jjh67l/KuM+ehbqxHfBbtDXTTZpZzk iJ4qV4eRI6yy+vPUaz7t6zEs5hX51APEMq6UHEQ1wHcDZm5/LdsfuOo8RbR+y7tPpuRt ATjMDnASd5qtOAPYh8uIhvxbQXzxtInGOfg1ZMzAs4NG6U4reHgV3nqsQOcgdMdrqR2V SRrA== X-Gm-Message-State: APjAAAVkMYR+VdBtH0+E5IVeHrsLiYvoXuZpHK8TOEm2p8qQpQNxtrjk UIUdQjiBo8b8hBJQZ+s8/JFnlEg1JonFMhDUmoo= X-Received: by 2002:a02:a48d:: with SMTP id d13mr18971384jam.141.1580728574204; Mon, 03 Feb 2020 03:16:14 -0800 (PST) MIME-Version: 1.0 References: <20200203101806.2441-1-peter.ujfalusi@ti.com> In-Reply-To: From: Andy Shevchenko Date: Mon, 3 Feb 2020 13:16:05 +0200 Message-ID: Subject: Re: [PATCH 0/3] dmaengine: Stear users towards dma_request_slave_chan() To: Peter Ujfalusi Cc: Vinod Koul , dmaengine , Linux Kernel Mailing List , Dan Williams Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 3, 2020 at 12:59 PM Peter Ujfalusi wrote: > On 03/02/2020 12.37, Andy Shevchenko wrote: > > On Mon, Feb 3, 2020 at 12:32 PM Peter Ujfalusi wrote: > >> Advise users of dma_request_slave_channel() and > >> dma_request_slave_channel_compat() to move to dma_request_slave_chan() > > > > How? There are legacy ARM boards you have to care / remove before. > > DMAengine subsystem makes a p*s off decisions > > The dma_slave_map support is added few years back for the legacy ARM > boards, because we do care. > daVinci, OMAP1, pxa, s3cx4xx and even m68k/coldfire moved over. Then why simple not to convert (start converting) those few drivers to new API and simple remove the old one? > Imho it is confusing to have 4+ APIs to do the same thing, but in a > slightly different way. It was always an excuse by authors "that too many drivers to convert..." > > without taking care of > > (I'm talking now about dma release callback, for example) end users. > > I have been converting users in the background, but the _compat() is a > bit more problematic as I need to maintainers of those legacy platforms > to craft the map. If they care. Why not to remove them and don't punish users of new drivers / platforms? > Obviously the APIs are not going to be removed if we have a single user > and if there is clearly a need for something the _compat() was doing and > it can not be done via the dma_slave_map, then rest assured there will > be a clean API to achieve just that. > > > They will be scary for no reason. > > There is a reason: to clean up the API to make it non confusing for the > users. No, it's a reason when you first take care of existing users and decide to obsolete an API followed by removal few releases later. But I see no reason to keep such APIs at all, so, instead of this *wonderful* messages perhaps somebody should do better work? > New drivers should not use the old API i new code and developers tend to > pick the API they use after a quick 'git grep dma_request_' and see what > the majority is using. Isn't it a point to do better review rather than scary end users? -- With Best Regards, Andy Shevchenko