Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp383434rwb; Thu, 22 Sep 2022 20:23:45 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6Yh7m38TPDq+rCLIlx4V9ts6w+oxO7XKrl/ibtAfC4EkA2/+QX1lzZFLVvqonEf89nRAvx X-Received: by 2002:a17:907:5c2:b0:77e:def7:65d8 with SMTP id wg2-20020a17090705c200b0077edef765d8mr5393986ejb.487.1663903425101; Thu, 22 Sep 2022 20:23:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663903425; cv=none; d=google.com; s=arc-20160816; b=uKSVqtg4g3U86ebXpnuYQF7IumgTGQVBYdPnzMgBymANY6VNqeRbOy22oQ7SpsJ8td JH94zwh6gZ5beGtRdNKDED89sqTtPh+qs2UTzY7wIU6qhC/MpmzwPVNjpaEPkxMk7T4A lqk7Ngf2lFnwar1adTNYVMZq88Syh2IPmKluTN0NxRz7Qgf0+jOwIA4PMdcicnvBw69g RLCWmyg1yliX2AM2tqwhUse6UeiOoV2hvMyJe2IL4cLWJfPZ1UlBHB56YjLBw5Xogu44 i4g/qT/BvpKv6+M5HrR8N3NmgA6MHHYrVuRKpnTpjDdu+da+tUUyYizf7t+49lPfKKu9 uSTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=pc4AKG78S6P9tSz0XETYFQEo+TJADX6+proiuMRLTGI=; b=QOymNGzG9wC18+bCBit6RM/Ymvsge88hGSIMCOBaBdHN/mNQ/sVwMHxoquFYBXuvwF WInvSEj2x/uuNdYoKY566m2Yc+qLEY9y9y2e/1mjXsK/3u/LRfnckqf2Moh97gEFnnFq wWojFrZxSln55sW5OCZsPo7PG9+/iE2bc/1Z/8WbBRx8r2bSb0KreKE3EmFpCa1SZnYd J/ZvJ0/vwNl1oIFRRpceq+qArFklBqdjwEhkXWU4QbExw84p4geaADH2amqu4IkA1tll QdhuhQM7NUHidUmgaX+ENNbqyo82VZRDKoigzUOcSDjIkAP3e8nKPImxb4D58OfCaChq BzCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="XtwC/a9M"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s4-20020a17090699c400b007707a47c3d5si6938216ejn.944.2022.09.22.20.23.19; Thu, 22 Sep 2022 20:23:45 -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=@kernel.org header.s=k20201202 header.b="XtwC/a9M"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232292AbiIWCk2 (ORCPT + 99 others); Thu, 22 Sep 2022 22:40:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47180 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232321AbiIWCkO (ORCPT ); Thu, 22 Sep 2022 22:40:14 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD4D0814E1; Thu, 22 Sep 2022 19:40:12 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E9A4562312; Fri, 23 Sep 2022 02:40:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 77CAEC433D6; Fri, 23 Sep 2022 02:40:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1663900811; bh=hgq+etZgS87xH2btz4n6jRvDNnpE64NXArdWf7MXyWY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=XtwC/a9MRb7JQ+wackPWqjdh8FAmAxXUoZpv8BK0SFWWzF6OWlWalvHK5rGtr1WyO +OBiJbghM7JCIazeGlnwOps0QNNUvSZamTboCDJPIj17KCSWL7WMDxwcabUWJ0pBdf UY7fPs+H2LxOD+ZoDpvuiW+rNA/nvBeOGW7Or1arP2dMrKE5XegQPUaCnMJqfEor3L vzps27NKU4/4oJCA5fHjMirZFYKlIDe+KWqqVih1ocd2zohZcyjeyoIQKFLGhlwYdd 23FDRjD8fbjjSLxnLAVKJVHVrYVVVIU01hslIZIoGHTVMFtkt+IFJ2j9Y/z2KGBF9w d0+XUpFkOzilw== Date: Thu, 22 Sep 2022 19:40:09 -0700 From: Jakub Kicinski To: Colin Foster Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, netdev@vger.kernel.org, Russell King , Linus Walleij , UNGLinuxDriver@microchip.com, Alexandre Belloni , Claudiu Manoil , Lee Jones , Krzysztof Kozlowski , Rob Herring , Paolo Abeni , Eric Dumazet , "David S. Miller" , Vladimir Oltean , Florian Fainelli , Vivien Didelot , Andrew Lunn Subject: Re: [PATCH v2 net-next 08/14] net: dsa: felix: update init_regmap to be string-based Message-ID: <20220922194009.276371fc@kernel.org> In-Reply-To: <20220922193906.7ab18960@kernel.org> References: <20220922040102.1554459-1-colin.foster@in-advantage.com> <20220922040102.1554459-9-colin.foster@in-advantage.com> <20220922193906.7ab18960@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham 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, 22 Sep 2022 19:39:06 -0700 Jakub Kicinski wrote: > On Wed, 21 Sep 2022 21:00:56 -0700 Colin Foster wrote: > > During development, it was believed that a wrapper for ocelot_regmap_init() > > would be sufficient for the felix driver to work in non-mmio scenarios. > > This was merged in during commit 242bd0c10bbd ("net: dsa: ocelot: felix: > > add interface for custom regmaps") > > > > As the external ocelot DSA driver grew closer to an acceptable state, it > > was realized that most of the parameters that were passed in from struct > > resource *res were useless and ignored. This is due to the fact that the > > external ocelot DSA driver utilizes dev_get_regmap(dev, resource->name). > > > > Instead of simply ignoring those parameters, refactor the API to only > > require the name as an argument. MMIO scenarios this will reconstruct the > > struct resource before calling ocelot_regmap_init(ocelot, resource). MFD > > scenarios need only call dev_get_regmap(dev, name). Ah, and the modpost: ERROR: modpost: drivers/net/dsa/ocelot/mscc_seville: 'felix_init_regmap' exported twice. Previous export was in drivers/net/dsa/ocelot/mscc_felix.ko