Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp3554960pxb; Mon, 30 Aug 2021 05:19:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyuGF/Vxy2XRHXAFej3nTydaS9vMQkbKtJIn1jPNSc+2bcsMQMDQ/S6bPRBSqjCx2GwIyRZ X-Received: by 2002:a5d:850f:: with SMTP id q15mr18118971ion.118.1630325955451; Mon, 30 Aug 2021 05:19:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630325955; cv=none; d=google.com; s=arc-20160816; b=FhwfRN27d2jhh7aOgGyUuWz9kfQ5GXG7xMt0ZbbLb0xmtGRLaSepl/8IBtkbWf/WnY AB/kE6ISN3oD9Cu5ICO2LuVEXk0Uvc9YUneIReTdDAclObgveWBpL1ENYp/IAFpPZLGu 3w+ynoM6eg8hjqwqNdzoqv9e7AdGBhBeNZkbWap51ZGspq5pMv975YtoBDa2eD9OtgFq Axx9BvZ7AtR3OgFGfG40AzlvBsHILQzz8qx7vMCF4PMvLcw2nJbfjx2iS/A1vq6xDVAF /DOg4J7cYoOBDY751YtFG+IC1vSYUCb0PBudHrRZVJBXupTEIm9tRrqViZK3z2s2MRu5 P6Mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=/4QXEOD8J90syLrjyDkqaGDPwNN8IRPTqOTnnGhg5bE=; b=rSZHiD3k1pq00oQV1+ybnjxdFy6SVh1H3/3avGE1AgUhGaDwz4TqOoEfyvfP69N+KM MInTlEJLVc6JFJoG3gN4gJCjZ7ehJ/KQIVIycAIcJts9UAdEkdXFWLHhzveNXF0MKoBu D+suWdPLhEj0uugOj93ITKAjp2npCOz7YvaNmJ1BEr7kAwIAwqpH82E+S17Ui0Uj3DCU NjokPG1+zdt2qD/mAZFyXSYfaNFwAL1lnOUnbR7oDq1KztoIg1zH8M6CnPMiZPGYro5a nK4kYV6h1DKSauDFyjnbbVsaTTz2dvuD6TalvhQJyq/IW7umkxD1NhOlVgOqVtmWmwRj ACQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=F32ICRcA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 4si5006876jaj.45.2021.08.30.05.19.04; Mon, 30 Aug 2021 05:19:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=F32ICRcA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236691AbhH3MSJ (ORCPT + 99 others); Mon, 30 Aug 2021 08:18:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45524 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236666AbhH3MRw (ORCPT ); Mon, 30 Aug 2021 08:17:52 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F26DFC061575 for ; Mon, 30 Aug 2021 05:16:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=/4QXEOD8J90syLrjyDkqaGDPwNN8IRPTqOTnnGhg5bE=; b=F32ICRcAQBjiJyGtar49N+Z/Sh uuXfh3zJ/mZOaU1k09f+TlsxTeDYq+PiRXzAzswu3OQ2cAK8BTl6CqDRNDoZ87becadLx4jsxJLgQ nRA775w3F4BudAIxRhoLl6qU6OI62n8TmviYdtp3Ibg6CjVzEHimsyDO2ptD4V3k8KUzq2uxwHdJU 0R15nMIMeeWh3vy1gcRz5icm9aG8/WHaLXPmjnFTRtw1bgKdcdhnzPtvr/AlXr3jqMftN+pl5UI+a 2lTmkZLFGmOY1L5Gs99X0Kz+T7HF9AhLyJ0Ypqhs/MlbvBAr+0DVs1OSCx3zbQ034zn7SlxZsTjxT m7m5/mbw==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mKgCt-00083W-1T; Mon, 30 Aug 2021 12:16:18 +0000 Date: Mon, 30 Aug 2021 13:16:07 +0100 From: Matthew Wilcox To: Johan Hovold Cc: "Fabio M. De Francesco" , Alex Elder , Greg Kroah-Hartman , greybus-dev@lists.linaro.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4] staging: greybus: Convert uart.c from IDR to XArray Message-ID: References: <20210829092250.25379-1-fmdefrancesco@gmail.com> <2879439.WEJLM9RBEh@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 30, 2021 at 01:52:48PM +0200, Johan Hovold wrote: > Whether the API is better is debatable. As I said, almost no drivers use > the new XArray interface, and perhaps partly because the new interface > isn't as intuitive as has been claimed (e.g. xa_load() instead of > ida_find()). And IDR/IDA isn't marked/documented as deprecated as far as > I know. I can't just slap a 'deprecated' attribute on it. That'll cause a storm of warnings. What would you suggest I do to warn people that this interface is deprecated and I would like to remove it? Why do you think that idr_find() is more intuitive than xa_load()? The 'find' verb means that you search for something. But it doesn't search for anything; it just returns the pointer at that index. 'find' should return the next non-NULL pointer at-or-above a given index.