Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1375018pxb; Fri, 6 Nov 2020 08:05:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJyBuQnbbb1vy/7kyOMIFTo6nYWLaQltfWv8Vo977VQgPfEHL31eDoX+XGJktdo4drch3l/u X-Received: by 2002:a17:906:8387:: with SMTP id p7mr2611474ejx.511.1604678745357; Fri, 06 Nov 2020 08:05:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604678745; cv=none; d=google.com; s=arc-20160816; b=wepsa8dYSOlp1fFxtPHgXQsm7BAqW/vHEHRdKvqZ8Rtb3bwnfzTeGZ3qpPgKXPJo2W eJvg7irPP0ezAFMdnn2x18CZ+QOIPcxnI2e2dw0CToJHG+xGyZczKP9NC02gdIdkVPYL dCL3PlKh5s3tSHuiwydqIzTuvP3Gs07S/XO1TMyrp8EaI0El23uW+mHM+nE0hx8v5Eb/ pcfW+n1WPiiP+CA7KA5oUuFviliAOWE5ixTK66akacsIu/KewKLbxBJ37LOx6GmgSlsF 9IJL21Qf8wzgaN0VX0p5LwreSr0/MVBADXMKogmKyuMRd8UUi7J4FSff/fxy7Mr4utjV DDXg== 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=qXMVdGYtffoY59vPqQS+JUNjg+gCrAF+dd0EN8EtV5I=; b=cMabpN/98yxsSw1DYuiqeF+6SArGtSoU2yxKXz87g/IRMhOj9rl58+DyCQbt0Jm4Yj 0TUIdHsXIdxYF3a+28aqtNpSeiF0EMMmNK/aJ5buGMBxaQSWfmElxiLMkbLOF7GA+D/d hioQPDamtm6PXkfc1qlOkjreqbJ7Caf8lxsJIjXGQQyGEQTuYNQMg6H0t4W4ABTWeGAt JZTy+/44EZLyP/U/17fMFRNol/BwlrahdbdLU2Lnq4MZkCBTHEJx5QrhPCswV1OAAy6h /pRiqp4soW195svM2teXw3fWQ5Hu225XSs13sY0qoviHqXvvjQTCGPBJHOiL7Wruw2uh 0xiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="hi/uyH5W"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k2si1234398ejs.236.2020.11.06.08.05.14; Fri, 06 Nov 2020 08:05:45 -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=@kernel.org header.s=default header.b="hi/uyH5W"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726642AbgKFQDn (ORCPT + 99 others); Fri, 6 Nov 2020 11:03:43 -0500 Received: from mail.kernel.org ([198.145.29.99]:59122 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726034AbgKFQDm (ORCPT ); Fri, 6 Nov 2020 11:03:42 -0500 Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com [209.85.167.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 66C2A22247; Fri, 6 Nov 2020 16:03:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604678621; bh=k8bryvFui+YoGklp94RFUzRsPMzTAL7+JGvq9QXQg+s=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=hi/uyH5WXU66Rm2JLXwlxWHG0n5p4kipBD9wlwWxVHzvp+063vHGOKEpCMH1LUxHw e6nFQ2VQhcxRGFOrda2acrUwOn11TDLqOXP/if7jmiZILokM3y6FesB5nFRHKsUSI2 +FGZE3vX2mkQrh666F9acUBGbYRDuZ6R+741q6o4= Received: by mail-lf1-f52.google.com with SMTP id u18so2621488lfd.9; Fri, 06 Nov 2020 08:03:41 -0800 (PST) X-Gm-Message-State: AOAM531F51fbjo4t1JrT+K1Nt5DabMDJhuLwd8VpJse63Xpd+mmBpf93 r2SdBlWm0WqzrLfFHnqPZK0Sn0YBSkhVvQv1HaM= X-Received: by 2002:a19:c354:: with SMTP id t81mr562644lff.283.1604678619488; Fri, 06 Nov 2020 08:03:39 -0800 (PST) MIME-Version: 1.0 References: <20201106151411.321743-1-maxime@cerno.tech> In-Reply-To: <20201106151411.321743-1-maxime@cerno.tech> From: Chen-Yu Tsai Date: Sat, 7 Nov 2020 00:03:28 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 0/7] sunxi: Remove the calls to dma_direct_set_offset To: Maxime Ripard Cc: Daniel Vetter , David Airlie , Christoph Hellwig , devel@driverdev.osuosl.org, Hans Verkuil , Jernej Skrabec , Thomas Zimmermann , Maarten Lankhorst , linux-kernel , dri-devel , Paul Kocialkowski , Yong Deng , Mauro Carvalho Chehab , Robin Murphy , linux-arm-kernel , Linux Media Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Fri, Nov 6, 2020 at 11:15 PM Maxime Ripard wrote: > > Hi, > > Here's an attempt to removing the dma_direct_set_offset calls we have in > numerous drivers and move all those quirks into a global notifier as suggested > by Robin. > > Let me know what you think, > Maxime > > Maxime Ripard (7): > drm/sun4i: backend: Fix probe failure with multiple backends > soc: sunxi: Deal with the MBUS DMA offsets in a central place > drm/sun4i: backend: Remove the MBUS quirks > media: sun4i: Remove the MBUS quirks > media: sun6i: Remove the MBUS quirks > media: cedrus: Remove the MBUS quirks > media: sun8i-di: Remove the call to of_dma_configure Whole series looks good to me. Reviewed-by: Chen-Yu Tsai Now the question remaining is how do we merge this series so that the notifier gets merged before all the code dealing with the MBUS quirk gets removed. > drivers/gpu/drm/sun4i/sun4i_backend.c | 13 -- > .../platform/sunxi/sun4i-csi/sun4i_csi.c | 27 ---- > .../platform/sunxi/sun6i-csi/sun6i_csi.c | 17 --- > .../media/platform/sunxi/sun8i-di/sun8i-di.c | 4 - > drivers/soc/sunxi/Kconfig | 8 ++ > drivers/soc/sunxi/Makefile | 1 + > drivers/soc/sunxi/sunxi_mbus.c | 132 ++++++++++++++++++ > drivers/staging/media/sunxi/cedrus/cedrus.c | 1 - > drivers/staging/media/sunxi/cedrus/cedrus.h | 3 - > .../staging/media/sunxi/cedrus/cedrus_hw.c | 18 --- > 10 files changed, 141 insertions(+), 83 deletions(-) > create mode 100644 drivers/soc/sunxi/sunxi_mbus.c > > -- > 2.28.0 > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel