Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1047773rwl; Fri, 31 Mar 2023 06:08:22 -0700 (PDT) X-Google-Smtp-Source: AKy350Y91jlzxEUN28ufjxM6uOKVjCqG1Hl+nPSvhJMeuben5rKDEM63vTtHw7ODmtAG4lhv5wfI X-Received: by 2002:a05:6402:268e:b0:502:1f7b:f0a6 with SMTP id w14-20020a056402268e00b005021f7bf0a6mr28137441edd.0.1680268102006; Fri, 31 Mar 2023 06:08:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680268101; cv=none; d=google.com; s=arc-20160816; b=R54dKZYwdE2DcLhdC3H7ApFhUt8rzaVMCNdUtJXR0SctTOIr4vlxK+xkmxFmA8/QBa yXSb3WRwz/l+Y9lSs6FHDwBqQ0lYcgISYBUmK0a8G5kCvFyfIAGkIIk3XpW1PKfn17r4 PM4cWZtXC7RVv6qjEeEBDnPW9Smb2Xib6gyHJ9Qpa02e1obkCjlg1qbNii60wdMS0InM wzsrRVRYkxsyu8AOoyLjDlPQOdlplEiNBuEqIqNm4LhJ+C7Nzlws5lhM6hmuZYp3EK/G Z2CkW1AMaqRYf8OH36maNfe+0RQTKJz8svySbkhAkdkrVzA7I4Pr+L2HI/p8XKycCQ82 0LRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:feedback-id:dkim-signature :dkim-signature; bh=9O1JcQqo20yKPuqiCknMEqxH4gwPXCjxEftI6MqW5Ig=; b=oFuEmohtv4JfkF8S43sRItWJahuICm6QAVmNXR5FDa5+BjpEVAQvXEaL+kp1mNfKUg eymfRTZAMRRiaylEfy8jNAtD9XVkTR9vcVktxgGeXnCxhU7uSAMZIx7kBSOhQAPRYGXO sAOaieBVi6Kg62VFzivonSd4IXXwSl7jX3MYwq9CFNA+gRkJRQs0eSb1CX8/ITBSueXh xozBKNyrf05kFc71n9cDrqQBRKsLT2xdmqc4sbds+epDkaDu0QyE+wVmxUGL27mp0JxF cAbbKTsVjoIH91RZ16ssm7MWc0+KWuy4yR1YKfx1DekDhYoexM2c9FM/3XeendiMrAJN oz1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b=Wkjq1ts2; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=NgP7H3Gd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c12-20020aa7c74c000000b00501bf4b10a4si1930643eds.539.2023.03.31.06.07.56; Fri, 31 Mar 2023 06:08:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b=Wkjq1ts2; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=NgP7H3Gd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232712AbjCaNGb (ORCPT + 99 others); Fri, 31 Mar 2023 09:06:31 -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 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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