Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp407665pxb; Wed, 11 Nov 2020 06:45:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJxv3acYHs4lWAo+MCsmdTm0ndTp8zzkhREOkvQGUSy/UIBGp1zPChbsQvhoqvV1gt5WYr/h X-Received: by 2002:a50:f104:: with SMTP id w4mr26221084edl.381.1605105904676; Wed, 11 Nov 2020 06:45:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605105904; cv=none; d=google.com; s=arc-20160816; b=krFqrzPCtWpnPHrWnarayUbr6tvlRU5XUBwyIuEPNMMIy2to/6AaQ7z/wvSoRFBiX/ XwJ7NvWty4ull8dd2mW1NGbDkl5z1KDGJfnSEGXRGbmzWX4u+5OQAVJFjJjOK5VZ93A1 XS9wPEdGKXm8HpUHjgFbPZtMNO+PA5vcZW36dvMJstOt3Ks0H7hSjkEN3AdRmSt+9feu nZSfRsQ29fYPqu11EJtu7yzrfj/D6uVADm8GQJLXn94Z3jXPuvq+rCYDio4MYhQH/UVb Bn47yeFfbPNyB5dZIw6pl/josd0DILPJFkhbFpJKd4pnbcj+0gCH8zwLIeZtOT0qNUGI 3zDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=0NVL4vfED5OvbJq2XB5B3W6lWJSu6NdYA6DvnKQvUps=; b=Esut7Bx2UQHlwry33iWFe5Jc2Fc2m0ew9Lj3JjYaF05GfKEPrYn5UPGLbkoABOqgpw NvAwPAk+7nqmstDIg2oEzZfqzwd6zdh62/ttmbaG7HWkr+dKw7YkeBmP3+lDSwlqXsTZ WZxsYvY7M1RmZzQLStv4hRtIdqbm+AGJJYvYjbIK3+17bx+cmLnfv0MBnt69moDkZrMV 9qq6ewu0S0uFMsrMcAeR+oGWUEbe3+t7J6UmCko6curQ7HhFEODMgFdR7U9UED+q22IH czTn2V3t1mDQN8NdCWfHi3qIoa6iTydF8aQfyvxBcFWkuJIQ55dOt1hXrBtRVWRl/eQh 4VZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xs4all.nl header.s=s1 header.b=lpOJprwS; 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 gg12si1427270ejb.395.2020.11.11.06.44.40; Wed, 11 Nov 2020 06:45:04 -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=@xs4all.nl header.s=s1 header.b=lpOJprwS; 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 S1727161AbgKKOnR (ORCPT + 99 others); Wed, 11 Nov 2020 09:43:17 -0500 Received: from lb1-smtp-cloud9.xs4all.net ([194.109.24.22]:34221 "EHLO lb1-smtp-cloud9.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726579AbgKKOnO (ORCPT ); Wed, 11 Nov 2020 09:43:14 -0500 Received: from cust-b5b5937f ([IPv6:fc0c:c16d:66b8:757f:c639:739b:9d66:799d]) by smtp-cloud9.xs4all.net with ESMTPA id crKtkC4mY1R0xcrKwkdPLD; Wed, 11 Nov 2020 15:43:12 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xs4all.nl; s=s1; t=1605105792; bh=0NVL4vfED5OvbJq2XB5B3W6lWJSu6NdYA6DvnKQvUps=; h=Subject:To:From:Message-ID:Date:MIME-Version:Content-Type:From: Subject; b=lpOJprwSCLpQWyU/LOYFDa1qo25qI1AHQ6cNttM1JVDb0fdI8O2BsGJD3OfjPi33g 1fMY7QuJIYSftMTb7+73cOLPRK2jiKodtTEjbSti7jl6nI7Qkj2DKdFMGhUwhxlNLY TyAnwlUzTgSXN3Z9RZFveL2iA6dlp8RsN3c1jjnZuExh18Ls8ZtsDSghRxToh1/syH SEwYapLZaI3ytIOZSiZ6l97eLKjEvPOCFyNahaPA1ChnhY6eAr48x4ZcdL3g2KiP3m rvWcApFblu/V8e4+65hlwsafiQXr1OZ2OTCN+B4UsaiR9tXVLijNrpUMYwe9zsfqVc Bkf4WA78JDoxg== Subject: Re: [PATCH 0/7] sunxi: Remove the calls to dma_direct_set_offset To: Maxime Ripard , Daniel Vetter , David Airlie , Christoph Hellwig Cc: Paul Kocialkowski , Yong Deng , linux-arm-kernel@lists.infradead.org, Mauro Carvalho Chehab , linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, devel@driverdev.osuosl.org, Jernej Skrabec , Maarten Lankhorst , Thomas Zimmermann , Robin Murphy References: <20201106151411.321743-1-maxime@cerno.tech> From: Hans Verkuil Message-ID: <33ed44c6-e54d-3769-2a59-ab6c50b49053@xs4all.nl> Date: Wed, 11 Nov 2020 15:42:59 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <20201106151411.321743-1-maxime@cerno.tech> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4xfGWKT/xz8lGQdJjgDVMSGoVA8Hwp4UdhceAu0LGX+mTjEfjeMRkngyPZ4+U5ztVBAFtyPA8cLTXLWbBeHzTSRcAAUaQ3FoSMQBCXKPm7WjqaxMbZt51e MVaAZIlGQU0+PqOe4wzBEt+aisx7jLWq+BMkCG/pk4d36IRWMFJuaauCGo7sYK/sd3u+/KgFopMsaX8nsiFGsQ7ZZjAkS7UtFib5I/ie5e+f7FEYzgeSrQ0N URxBJtS+soe40GR6t3kCWqBXPrRQv9kF7OcEqe46oKowd4RnF/X1McYk3ewDxLdlaBbajLUrnSwM6BRf85XN5Iq+CN4p2OImjzjACm0zy6I2WM0n4BZMjlTu QWIyf5100NQ+/OpW/rbZdKY7XhH0shcHS+18/n0jsDeOV0x7P/YjMBvucz0UPeJ8JXzF4wvQvlYBslWMjMGIzOf5OlgCnlP4YMv2+/mqa5QuEW15yTF/a3EB If4MQbKKcouCJ5chqk8j30lZ/9/1z25rXRYQYDUG84Gjz/NyUfv+3N3fEHb6S7jBMIPt5KWSCf3QyNxs/OSv1+VOsCRQPl27gm+A3Ew2IT5E7CCq/gFsEY1z 52xhREXnWU29JEyG8insmmcwsQtXQVHbpO6ZYDAHKnBfWA5mSrwfuCS+/hmBzT7ZxpzY6N4tgwXfZpoQFcVh/HtgLupKlp58k4yAb/PNxVJlBqvizDjn4Jdz iZJm8zcJs9ALpgb89W4KW/zywpoyW6DOSdZkLfTc6rd73k58gEOCaA== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/11/2020 16:14, 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. For patches 4-7: Acked-by: Hans Verkuil It's fine by me if this series is merged via the drm subsystem. Regards, Hans > > 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 > > 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 >