Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp3143082pxx; Mon, 2 Nov 2020 00:41:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJyVtZ/6PkgJa9oZ/tRmSoGcZC/QdqUJ9nwjWUvK9V+YzIyoRoHpqXegpEgeh9AGQ7bLCUxR X-Received: by 2002:a17:906:c43:: with SMTP id t3mr13884563ejf.219.1604306516710; Mon, 02 Nov 2020 00:41:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604306516; cv=none; d=google.com; s=arc-20160816; b=S+V8oDvyWW3hB6E2+zp8yJ1FTfbQX4wbZMrw+bXaakm/0+aimU7i7yWZ5OdNIQ7XDq v8MNA5DdTVXCtiZVcK1HJxyzlOoPgr44h4SnSX0T2CCI7j3nvoDDzxQFvxdI298hYZqE u6NHdn8wARtMakdKS6INnyO415esoK82aHadfuWVKUT+qRApbSCKvHGNcsPbTnMdhtQL P9akxHsVaR3Ix7R2j3fpU/bzqE08E+FmiTac/GJTe4w9X2jqqv4WLpE1ylazD+Q0aro3 9/WJVxw4JihSQV4bZt+GdAM8Jn4KuU819YRhW1yAz3g3rAK+hQ8J0aifgkGFXQIHuWJc cPTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=smS1Q7PTGYl/it8iArEBOUfy3XGW9AyAE4tKm3iDIRQ=; b=OMdHRFvCxHPolPc38mEycZ1eIUbdvC4fDsMgsLDrAfun3w7Y09PZz94Z1Q6+aJmQMf wCUola1O8fZsZ7F4+YExYRyHoYXyA7Up1cm9gOVe7v61I0yyCqeJwDnp/7ju+j6mH7wT 4hVwbTeT+stsNjGlaaWC4o/dhzSs8J5fpoWTR+sktMpGgFTPwRnkgL9Jx9vcxNvy0O0j gbUzapyig6B6xaA7FoQOSYEOPa5nNaJHCCG6XbtFP64HWGAD8AcsuPPzaTRMfAnyq8cq 8cQeHZ6BKpQnFqueWbc1+Rf2edRuCtzYjcOPzkkOz1sT1rTh8NWvX/CNuHKvbsgvxQPu OlWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=gMUAyGpx; 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 n19si2904492edv.187.2020.11.02.00.41.34; Mon, 02 Nov 2020 00:41:56 -0800 (PST) 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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=gMUAyGpx; 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 S1728265AbgKBIj4 (ORCPT + 99 others); Mon, 2 Nov 2020 03:39:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728004AbgKBIj4 (ORCPT ); Mon, 2 Nov 2020 03:39:56 -0500 Received: from mail-ed1-x541.google.com (mail-ed1-x541.google.com [IPv6:2a00:1450:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5056DC061A04 for ; Mon, 2 Nov 2020 00:39:56 -0800 (PST) Received: by mail-ed1-x541.google.com with SMTP id p93so13490272edd.7 for ; Mon, 02 Nov 2020 00:39:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=smS1Q7PTGYl/it8iArEBOUfy3XGW9AyAE4tKm3iDIRQ=; b=gMUAyGpxpb58h+N2xXKp5HXZPxTSgcJrqV00YYu3uvO0SiETm7PSD7KYl+WHu3lBvb LLUX5POR650c5Nz7pd0idmKGW70EYG4ryEhNOuHisZQohHSbF0zJIBfC3WDrXRY9o0oo DYIwdg2BExHy2/uLyT69Sk4fEOIYjJZt/JlEqPaCzY7FXvgqb5UVKYiYX3oDybNoHBwk +7ZlYJ0esc5PZhCtwTOj+EaAl9ll6hQONmSYm2OvB2xyX4TseSHUot+CGkoi7+6bIv9t /JF7Upfko9SMVseKqEXWevscRknvVrGLGrh37ahFzO620YNi36dmzGNsFC1hk7KHhkEW Vn+w== 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=smS1Q7PTGYl/it8iArEBOUfy3XGW9AyAE4tKm3iDIRQ=; b=NWle8AFxkiO+GDirZYNNcTAWLm/nK4Ap6A8SQbHX9hp9ygBBdaVT/hcr2HDmZ3h/yb Wohwhj7aEfg/NdDrKuhZwl5BpIOD+9J1pN6U+/j9F+6kb5OotfkVsxjDbZWBx0Hfykh3 uKMH9vSX8gcfOoYkFaiCAJ8Tew2BxvqUL/boSUNbljv2Hp5DHyELG39MoAHNNgwuuNy6 625g6SxGL97+U2dExMRZqkjAMwDE4PYPH5QsUWAml2IpY5aq3SSC1bORco6PgpBsIO4R ocXHMvJAc7K490nRaPsPdo0YHUQs+riKeHURNRYhpGAlhbumB7Kces4tMMbZ3+4uJabt cf6g== X-Gm-Message-State: AOAM531L/FKe/iKhGLRxRitZColholb7wbrbkNr5Cl6O9yZ4qoUkCbL0 h0EAUne5b8veVoJ6ACQdAQaXYFHT1KPnSpataktxqg== X-Received: by 2002:a05:6402:495:: with SMTP id k21mr15615893edv.232.1604306395005; Mon, 02 Nov 2020 00:39:55 -0800 (PST) MIME-Version: 1.0 References: <20201026133609.24262-1-brgl@bgdev.pl> <20201026133609.24262-5-brgl@bgdev.pl> <20201029154118.12fd6c23@archlinux> <20201031111003.75a4f6d0@archlinux> In-Reply-To: <20201031111003.75a4f6d0@archlinux> From: Bartosz Golaszewski Date: Mon, 2 Nov 2020 09:39:44 +0100 Message-ID: Subject: Re: [PATCH 4/5] iio: adc: xilinx: use devres for irq handling To: Jonathan Cameron Cc: Bartosz Golaszewski , Lars-Peter Clausen , Peter Meerwald-Stadler , Michal Simek , linux-iio , Linux ARM , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Oct 31, 2020 at 12:10 PM Jonathan Cameron wrote: > [snip] > > > > Hi Jonathan, > > > > My two priorities for the ordering of this series were: correct > > end-result and not breaking anything on the way. The latter > > unfortunately gets in the way of cleaner looking intermediate patches. > > > > I tried to not alter the ordering in which the resources are freed at > > any step. As devres release callbacks are called *after* remove() and > > in a reverse order to how they were registered, I needed to start from > > the bottom of the remove() callback and convert the last operation, > > then go upwards from there. > > > > If I tried to do it from the top - I probably could remove labels > > earlier and in a cleaner manner but it wouldn't guarantee > > bisectability. > > > > Maybe best plan is to squash last 3 patches into one? > > I suspect that's going to be easier to review. > > Jonathan > Sure I can do this. Bartosz