Received: by 2002:ac0:cd04:0:0:0:0:0 with SMTP id w4csp930397imn; Sat, 2 Jul 2022 09:27:59 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vTUE7dO34fsaMf3355cft8F+tGT0OrwGytD16UV3kJ3n0AuW7XhEFL3vj/ZhU76gAPS7y2 X-Received: by 2002:a05:6402:238b:b0:43a:16bf:2a65 with SMTP id j11-20020a056402238b00b0043a16bf2a65mr52295eda.244.1656779279692; Sat, 02 Jul 2022 09:27:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1656779279; cv=pass; d=google.com; s=arc-20160816; b=h5geldBwZ1OupSeXvTx+E3JUxtpRETICeFhEs9aS18kDlmZb+T3QjUrxG1jGg4cdBu KtzidE325nyP3kh6WLcI5+ShLMhpM5MK7zzUs9NkA2P4V/jivj8+vG//HLPIl4aDSfQp PTU8G8hdFexlhVA77L8rpkm421OiJ+tz96d6mFVZul03t1CUJRcqCLVcMTKc/5oVNjFE 78C3J3ocagf/Me9YHTpLIMW3Zg2/4CTgmtfZyh32uxEsicA1mvUDE7F2rqhwQlymNPY4 OB9XBuepS4HUvYm6v2ySsPmbDdU6yshXjrTf+o/z0nsnKC/rhXWk85byL0vFsUbV2Xpe Ek0w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:in-reply-to :content-transfer-encoding:content-disposition:references:message-id :subject:cc:to:from:date:dkim-signature; bh=+E45SgW07JI+AI5w1Jf/K9A5aoqBFwTMUsmH9CoNJDQ=; b=tNKPhhcyZmoT+AsfXjmYZH40hjneTeulBS0muJBNrsiVSGuT0wOtFyRFEMcGGdm4v1 RbEzi+1441raG1lYelVnXhQ3D/WR+qmcihYO0PZdbGSvK6UNv422Aa+y2Oh3S1CEwwjJ 7oQT8jK9jTNJokw5anrpi9zjqbjbfo103R1PVKGheNTKNelEZqIb7F2sxNlxCfaIhQhG 0fp6JnpPhZ7QjBTbxEmuF7+C/biXXNuWRTWVCKh1OfDefFbmOcK1C2FPpUn68NNeOs8M 6gSzG5CT1EzirxXLR73La6jYWtrV43IRRyNDzpUs7OZ5ST67DzRlzgaTTVmDLmhq1vaf LrhA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@inadvantage.onmicrosoft.com header.s=selector2-inadvantage-onmicrosoft-com header.b=ta3EP4hY; arc=pass (i=1 spf=pass spfdomain=in-advantage.com dkim=pass dkdomain=in-advantage.com dmarc=pass fromdomain=in-advantage.com); 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=fail (p=NONE sp=NONE dis=NONE) header.from=in-advantage.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z21-20020a05640240d500b00435bcb8758dsi1635168edb.12.2022.07.02.09.27.33; Sat, 02 Jul 2022 09:27:59 -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=@inadvantage.onmicrosoft.com header.s=selector2-inadvantage-onmicrosoft-com header.b=ta3EP4hY; arc=pass (i=1 spf=pass spfdomain=in-advantage.com dkim=pass dkdomain=in-advantage.com dmarc=pass fromdomain=in-advantage.com); 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=fail (p=NONE sp=NONE dis=NONE) header.from=in-advantage.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232366AbiGBQ0R (ORCPT + 99 others); Sat, 2 Jul 2022 12:26:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231295AbiGBQ0Q (ORCPT ); Sat, 2 Jul 2022 12:26:16 -0400 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2114.outbound.protection.outlook.com [40.107.92.114]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C16A5DFED; Sat, 2 Jul 2022 09:26:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VA40oN1ANi+rAwnNap3tJPNTz/tcpwlF50AsgJ8++Qy0cFS4nxS4dnvh9FbcTObGmGuU7rR8+C79xRS/o5YoWmKO9DD4Kw77vuOj0uLIeQx8bVMLpz1J2Bt9oDhGAZ5N0dHu8UNeUVHnjyjDMFg+KhfJcz6dQn+HhlqoH7InqdvGdDNNoUTbhJSVVLBa2Qn7oR73F5mffhXkCjWAevummPOETeAWky0+EgH/1wuByWeQy5kZ7EOnOWSDYS6CMer/cghDBKoMoBlcdyYfp9dEPJEJb3XywdSWkoVkAoglu8X/q7EKDA73edwjvE1RwSz22C7S2Y5MNRVFUpLvW8S6IQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=+E45SgW07JI+AI5w1Jf/K9A5aoqBFwTMUsmH9CoNJDQ=; b=AaT4lmXWeBdmG4FltaLpwZuwHM8i33JbIGy0RmfcUxpDDdUD+Y21hWNDFExFe1oBc9B4DS6hhzXQqOaSPa0z3/fENhzDQ+3BMTXms/X/lZBn3/j3Twoqdu8KFAWD9AxbZ3kt9aUNdA+FQ2EFn1cyc6wtP/gvAK2PdCe1RGgc1XCMYl8MWcd46eNF6ACdTJaZ8bixMWrZv5jSxZvMhgXT+r5LdoZbdfG6N8KFOqwik81jvC7Obk2IoIP6njJk2IwfWoPU5oSpB7O0M95iA1yZMFxdujWj2Uee8D8ctzCk85iuoito6IkQEthqlxjI7tVYqJItTyzkw/H3ugVBUXFqKQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=in-advantage.com; dmarc=pass action=none header.from=in-advantage.com; dkim=pass header.d=in-advantage.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inadvantage.onmicrosoft.com; s=selector2-inadvantage-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+E45SgW07JI+AI5w1Jf/K9A5aoqBFwTMUsmH9CoNJDQ=; b=ta3EP4hYYIqRWNeENcVMrU73h4kYLa21TmI7Dp1v0A/QXbmclb+MjDx3Me1ZORk0g6EXKgQ/ZBzpWwRDqQcBr/YHUWGb3Ozu1c4yzIqv0pFGNCGbtvmwJI3914kfDgYZKOBEwrSlujuT2G8bFfMz4k2IAHFdewLiKuNf1rqilH8= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=in-advantage.com; Received: from MWHPR1001MB2351.namprd10.prod.outlook.com (2603:10b6:301:35::37) by BYAPR10MB3158.namprd10.prod.outlook.com (2603:10b6:a03:15d::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5395.17; Sat, 2 Jul 2022 16:26:13 +0000 Received: from MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::712f:6916:3431:e74e]) by MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::712f:6916:3431:e74e%6]) with mapi id 15.20.5373.018; Sat, 2 Jul 2022 16:26:13 +0000 Date: Sat, 2 Jul 2022 09:26:10 -0700 From: Colin Foster To: Jakub Kicinski Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, Vladimir Oltean , Lee Jones , Rob Herring , Krzysztof Kozlowski , Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Paolo Abeni , Lars Povlsen , Steen Hegelund , UNGLinuxDriver@microchip.com, Linus Walleij , Wolfram Sang , Terry Bowman , Andy Shevchenko , katie.morris@in-advantage.com Subject: Re: [PATCH v12 net-next 9/9] mfd: ocelot: add support for the vsc7512 chip via spi Message-ID: <20220702162610.GB4028148@euler> References: <20220701192609.3970317-1-colin.foster@in-advantage.com> <20220701192609.3970317-10-colin.foster@in-advantage.com> <20220701200241.388e1fd5@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220701200241.388e1fd5@kernel.org> X-ClientProxiedBy: MWHPR14CA0045.namprd14.prod.outlook.com (2603:10b6:300:12b::31) To MWHPR1001MB2351.namprd10.prod.outlook.com (2603:10b6:301:35::37) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0945c1f2-81ae-4f16-d1fd-08da5c479459 X-MS-TrafficTypeDiagnostic: BYAPR10MB3158:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: VcmJ/UAYz04r4hQibf/d9WcpZlmrPJCnI4+Hn7HeAVKPJeKbb7mitBU4eOAfKFTWgUhbDMtg5BGZoNlw+drLHwfQ2E9jWc0bl/IZ/FAe5O4PxBVpvvhY5sMnEcUn7QwsIbWnGNrAvtdMv+nFP0FJrNW5V4ve29f8pbvZLIfV7zPfNQ8uv61oixfgZtCo3ZNZ3lmPB4xiIDbZagIPQAxmQ/5TULxHk8UzcKQXmk6Ie72x89kPaGFFayR/Ugx8d5eVVrTybBn/VpyBuAM/aWLowVC/M+4FuZ1i3lgH3zVTojgAbXvlgb1OKhve0i+bX02ffFmqIbYjV6I/ruupMt7j/0m12MxacZRRrhNUUC8Mo/iwjjI/q7jUucNlucPnQiDl3Jp9NWNxA03wKoM4Zo/LVyVAi/GVgqypAtZH2lpsw4sSaeKCpE3F/JKp4hQHc185DrL5UdRQWVLPV2wvWmzuO9ngwDj4msexbfVjvWzHCBIMHI9u1t3OPzJNhoyIVtUth1XDjwb8qsJQM4o1bS39kw2HlQrb9siqSWdjkPvjyMNY1hq1ws+0VBGKFGcerEl/6n2Li4sZNYg+ISflv/Gm8mcDVqBk+B3/wwVhFZLmVJfhe/TC4UNSo62gGFjdLZhVD07beYwAsGavRvvQ5wusS6UTkoICfpKV2IIUNKx3llHt7Bz6mS5UwMMGo9nxZtIWeHjNuI9uq72ccItNGAcfskH/hu3qGcUaRoT5NHSNLn13BgYRsz4MQg6xgVF7b4LPeJz4w+yu1lbnqP812wps+MatiS0xBvifqp0MaVuYP5RgDNHmuDY5sqaRIgpQR6Lt X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MWHPR1001MB2351.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(7916004)(396003)(39830400003)(346002)(136003)(376002)(366004)(186003)(83380400001)(33716001)(38100700002)(38350700002)(41300700001)(6512007)(9686003)(26005)(6506007)(52116002)(316002)(6916009)(54906003)(478600001)(6486002)(1076003)(2906002)(107886003)(44832011)(66946007)(66556008)(66476007)(8676002)(4326008)(5660300002)(7416002)(8936002)(33656002)(86362001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?VkJRc1IrdWJCTzVMU3JFb1V2emoyVVR3REg3dmIwU2VUNXdhd1hVNjB5Zkw4?= =?utf-8?B?SHpDN2pUcWJSOFRjZFpPWHQvdURJM3ZwYnlIMGVHWWwvRG05UnVZTE0vRHYv?= =?utf-8?B?dkViSE1vL0hBWHUvTWdnRncybll0dHZDSnU1U1Njd2lCN2s0TCt0MW0xTnJy?= =?utf-8?B?THFPcDFwalJmMVU2dlpOWUdzS25QMEhXVldnV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kkxKzBu?= =?utf-8?B?Nm5QeXZhVThGNEs1bmlYV1FsRVF1L0QrcWVwMzJ6c3RidzZBd1hIUzZWeHhZ?= =?utf-8?B?NDVRN0IzTlNXREwwUG1VTFZMeXJRZmUzTjkvUEpSREY5c0pSeWg2OEJlbEhE?= =?utf-8?B?L2hKa1p1T3lwWnhWTW5kL0ZpWmgzeDJDQ3lydlZBYzJPU0lQNjcyaHlJMTdn?= =?utf-8?Q?5xW9RxenMtJ59v9g3092w9I=3D?= X-OriginatorOrg: in-advantage.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0945c1f2-81ae-4f16-d1fd-08da5c479459 X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2351.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Jul 2022 16:26:12.9725 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 48e842ca-fbd8-4633-a79d-0c955a7d3aae X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: VdhFPPXscWKHZDCeSU+/zeXKWR8k+1tFR2seJuT4BY5BLgUsRkIyTKfGymCPN9J21xTB7QnVe7B5C4tv81rU9CEOL42zWjomdlK1KduedH0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR10MB3158 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 Fri, Jul 01, 2022 at 08:02:41PM -0700, Jakub Kicinski wrote: > On Fri, 1 Jul 2022 12:26:09 -0700 Colin Foster wrote: > > The VSC7512 is a networking chip that contains several peripherals. Many of > > these peripherals are currently supported by the VSC7513 and VSC7514 chips, > > but those run on an internal CPU. The VSC7512 lacks this CPU, and must be > > controlled externally. > > > > Utilize the existing drivers by referencing the chip as an MFD. Add support > > for the two MDIO buses, the internal phys, pinctrl, and serial GPIO. > > allmodconfig is not happy, I didn't spot that being mentioned as > expected: > > ERROR: modpost: "ocelot_spi_init_regmap" [drivers/mfd/ocelot-core.ko] undefined! > WARNING: modpost: module ocelot-spi uses symbol ocelot_chip_reset from namespace MFD_OCELOT, but does not import it. > WARNING: modpost: module ocelot-spi uses symbol ocelot_core_init from namespace MFD_OCELOT, but does not import it. > make[2]: *** [../scripts/Makefile.modpost:128: modules-only.symvers] Error 1 > make[1]: *** [/home/nipa/net-next/Makefile:1757: modules] Error 2 Yikes. I'll button this up. I'm surprised that I need to import the namespace of my own module... but I don't have a strong enough understanding of what all is going on. Also, allmodconfig never compiles for me, so I can't really test it: make W=1 ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- -j$(nproc) ... arch/arm/vdso/vgettimeofday.c:10:5: error: no previous prototype for ‘__vdso_clock_gettime’ [-Werror=missing-prototypes] 10 | int __vdso_clock_gettime(clockid_t clock, | ^~~~~~~~~~~~~~~~~~~~ arch/arm/vdso/vgettimeofday.c:16:5: error: no previous prototype for ‘__vdso_clock_gettime64’ [-Werror=missing-prototypes] 16 | int __vdso_clock_gettime64(clockid_t clock, | ^~~~~~~~~~~~~~~~~~~~~~ arch/arm/vdso/vgettimeofday.c:22:5: error: no previous prototype for ‘__vdso_gettimeofday’ [-Werror=missing-prototypes] 22 | int __vdso_gettimeofday(struct __kernel_old_timeval *tv, | ^~~~~~~~~~~~~~~~~~~ arch/arm/vdso/vgettimeofday.c:28:5: error: no previous prototype for ‘__vdso_clock_getres’ [-Werror=missing-prototypes] 28 | int __vdso_clock_getres(clockid_t clock_id, I'll try it without cross-compile and see if I have better luck.