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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 79909C6FD18 for ; Fri, 31 Mar 2023 13:06:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232709AbjCaNGc (ORCPT ); Fri, 31 Mar 2023 09:06:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232714AbjCaNGa (ORCPT ); Fri, 31 Mar 2023 09:06:30 -0400 Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B49BC1A943 for ; Fri, 31 Mar 2023 06:06:24 -0700 (PDT) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id 5D05032001C6; Fri, 31 Mar 2023 09:06:21 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute6.internal (MEProxy); Fri, 31 Mar 2023 09:06:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm1; t=1680267980; x=1680354380; bh=9O 1JcQqo20yKPuqiCknMEqxH4gwPXCjxEftI6MqW5Ig=; b=Wkjq1ts2PuYyGvPCuU qe8XVRnLk9kKiHW7MdhMi2tDXqFGs1ZENmEtTY6Ah8nXVv9UjbKlOOj95UJfT0sA AXhDGYXn44rBNr0F/J5kFsbXom1YgSh5YXPXZVX9GiUiIYtnwezYq2XtRzCdZz+G Djkps6hlgGmKfZ6FypoJo9U/YYaf84WCH/gZmiBq2pV5Agx/COJu33uV+A1UQIFI 9UF0cTfL0d0FhVErs5OrAfmX5Wwi9c6jhb4bJk3MfaRGE9uswSQJnG4Vzl2zDfPw NqdB2W/LCcytb0vROHg7Ysh0OZitTQsMU+hQ3RqBQkUT6gzXnD9fOq/IKs3dVVI9 NQSg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1680267980; x=1680354380; bh=9O1JcQqo20yKP uqiCknMEqxH4gwPXCjxEftI6MqW5Ig=; b=NgP7H3Gd1fAlbQkd/IOmeCNsyr4fW Ob2rB25HJzErPhwU6X9pr28Az5eeU7ofaHI2rcXWeIS6Fz1aSLXOxAD1I4YteyW4 U61ZZnwSv3zGUB8IglSHJX1hhaty+4g7kG80+MIlPLHGkm349kevViVxQhi9cpvP 9M5W7O7TGHWfjdc74mnL4ls0APjLucV8spS+CKV5cLZNCtKTM+YS6/Cf4nqr82AU BcAbUTEsdeA8TYWCROoh/ufN9NV5cHQfRHUexEkzuxvWddLY7m9xPUM7KRUvNiG3 eadDiV4IQdUp5Q+7lgIN4l4LEj98C4E5L3XA8L4bCs7r9K50VYzocty/Q== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdeiuddgheejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrth htvghrnhepffehueegteeihfegtefhjefgtdeugfegjeelheejueethfefgeeghfektdek teffnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprg hrnhgusegrrhhnuggsrdguvg X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id BBCF5B6008D; Fri, 31 Mar 2023 09:06:20 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-238-g746678b8b6-fm-20230329.001-g746678b8 Mime-Version: 1.0 Message-Id: <900066e4-fd5c-4645-bf04-9c27561516a9@app.fastmail.com> In-Reply-To: References: <20230320152319.665592-1-loic.poulain@linaro.org> <20230330114242.GC434339@google.com> <242a5400-b5e6-4707-af88-1d695e114f78@app.fastmail.com> Date: Fri, 31 Mar 2023 15:06:00 +0200 From: "Arnd Bergmann" To: "Loic Poulain" Cc: "Lee Jones" , linux-kernel@vger.kernel.org Subject: Re: [PATCH] mfd: syscon: Use of_io_request_and_map() for IO mapping Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 30, 2023, at 15:22, Loic Poulain wrote: > On Thu, 30 Mar 2023 at 14:45, Arnd Bergmann wrote: >> On Thu, Mar 30, 2023, at 13:42, Lee Jones wrote: >> > On Mon, 20 Mar 2023, Loic Poulain wrote: >> >> Thanks for pinging me. I would indeed expect this to cause >> problems, as syscon mappings are likely to be used in a way >> that is not entirely clean, with other devices defining >> overlapping ranges. > > Isn't syscon exactly here to address that collision/overlapping issue? > From a syscon perspective, it seems to be handled correctly at least > since the mapping is only setup once, with the first user device (in > syscon_node_to_regmap). Or are you thinking about non syscon devices > overlapping the syscon area? I meant them overlapping with other devices. Ideally this should not exist, but most likely we have to deal with dtb files where some other device does overlap with a syscon. Arnd