From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3D96FC388F7 for ; Wed, 4 Nov 2020 10:30:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DC394206C1 for ; Wed, 4 Nov 2020 10:30:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729377AbgKDKaL (ORCPT ); Wed, 4 Nov 2020 05:30:11 -0500 Received: from verein.lst.de ([213.95.11.211]:41968 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729250AbgKDK30 (ORCPT ); Wed, 4 Nov 2020 05:29:26 -0500 Received: by verein.lst.de (Postfix, from userid 2407) id 69E9E68D04; Wed, 4 Nov 2020 11:29:23 +0100 (CET) Date: Wed, 4 Nov 2020 11:29:23 +0100 From: Christoph Hellwig To: Robin Murphy Cc: Maxime Ripard , Christoph Hellwig , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Paul Kocialkowski , Chen-Yu Tsai , iommu@lists.linux-foundation.org, Yong Deng , linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org Subject: Re: use of dma_direct_set_offset in (allwinner) drivers Message-ID: <20201104102923.GA23981@lst.de> References: <20201103095538.GA19136@lst.de> <20201104081411.bnt5kixgunaczbzj@gilmour.lan> <9623c346-c86c-e3ce-332b-95492576a859@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9623c346-c86c-e3ce-332b-95492576a859@arm.com> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 04, 2020 at 10:15:49AM +0000, Robin Murphy wrote: > How about having something in the platform code that keys off the top-level > SoC compatible and uses a bus notifier to create offsets for the relevant > devices if an MBUS description is missing? At least that way the workaround > could be confined to a single dedicated place and look somewhat similar to > other special cases like sta2x11, rather than being duplicated all over the > place. Yes, that would be the right way to handle the issue.