Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2580271rwb; Mon, 15 Aug 2022 07:46:12 -0700 (PDT) X-Google-Smtp-Source: AA6agR4oyJpaaoaPVI1eDYYGzXtvAueuUu3zKhhvNFeV5KcOPdNwLZJ2eaEesJ9PxUkDFM574GJ0 X-Received: by 2002:a65:6d86:0:b0:41c:d0c0:d6b5 with SMTP id bc6-20020a656d86000000b0041cd0c0d6b5mr14498048pgb.534.1660574772362; Mon, 15 Aug 2022 07:46:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1660574772; cv=pass; d=google.com; s=arc-20160816; b=EDib3TV8KBZf8/JTgPmAviIhghRIQWjoR/SAp8JYP/qERYDsS0ego6oSrUBFvTBR5U l6cg0He4cfwVEEywk8FBFOOTMH1xcHiXcMldJHMLuNIKf+bYv3k3YhcVs4dBR81tgErQ 8iUyPj3uDMQbPPjGX9K/NpgLitsmF7NZ2T6uaLV73Eu4d2IvSSRiR1EmiNf4cEm98jLc O6QLxTJT8dhZ7N4JPc9oHArwy+RF2IuZRS+zUqyIqKlNbC4Rv8lHNB+jvg73oPj7Xb1C DeVm3Bk+9QqsqLTM/oWh4SXrRt1l03PrDV8c6nqNr4wgVjFuMhD5I6AdddKdzY4tA/+q q1Ag== 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-disposition :references:message-id:subject:cc:to:from:date:dkim-signature; bh=7mOW1wKU12L7UO6zkSVsn0AoLnI9a0BT3CW6qSJKCj8=; b=RT5+WeIWZHeBwfLiAnaNifTGd4zzLDn7+9WRdTxmcwAN+dPtjlDVW1y7Z3SYOb4EFj T0lWqz07GEmsaP1nJrU5ZmyK42Qfg223NQksVJlCaQn3YRNzXrsiEhQpjyqrZS00RUS5 FalunO5agul2cMxSX028/ktqAka/zpFuiuLEgC/p9KAUjV29PMBHXQvkAwxKU79ehIt7 /XgGHN1nF176To4Gc97dMsuGCC4fdlz1XFe1b41UcaShe81rdJDW7p8UWgfVkyHRcfGB BAZ6arWlA7uWCJKNQYy+lunoOTXEoAbGB2Ctjd3VQZhkEB3h/lm39wTVrnLWlkOdySq2 1tPw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@inadvantage.onmicrosoft.com header.s=selector2-inadvantage-onmicrosoft-com header.b=QHQYgAFj; 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 j4-20020a170902da8400b0016da4f41949si12536027plx.550.2022.08.15.07.46.00; Mon, 15 Aug 2022 07:46:12 -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=QHQYgAFj; 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 S232091AbiHOOT2 (ORCPT + 99 others); Mon, 15 Aug 2022 10:19:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242899AbiHOOTX (ORCPT ); Mon, 15 Aug 2022 10:19:23 -0400 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2116.outbound.protection.outlook.com [40.107.237.116]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A3BF22B35; Mon, 15 Aug 2022 07:19:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mY2m5FNQyvyCi3y9eqZB4fVZu9zCBPdhI1GuyiM3hfMnvKyeAlG3pxL1v1redAS3vQJTJpg+evZTyn5cV7ZPztCtdD+9jUO+haj3GkwWd+4ceSGJXYsnhPijdRy9KcmlfrxqcsuhDWwJWHGlWIIdEzdibZoAhST9EgeOvXixw2AJZ70rGN7WUCMaW0ELDA0bfSLbzixByyF5Hb3QyQbgbDoy3zYO4381jXppEkMQIwuZ7T7nx1opPdnxzzKJcm9MLULJDDic9lvZREy6yCAXxnyk1XsTJARSqVJaQL6LbdRxcdhuGp4fIuhEc25ktIrW8NsfNQyRIxVaZWF8EFhLLw== 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=7mOW1wKU12L7UO6zkSVsn0AoLnI9a0BT3CW6qSJKCj8=; b=f7ews5b3fvVEOGGEtTxfe5XKsfv9IDwCm11Iv8FJh/ABuM6PRruioyu3sEiwwBadtgM12ARliUzY1BXOdXeVyMlc/Nd/n9XcioCA+35fhfKliY0zIW7ykr3wXNjFbZ35htMnfhiyPyEWVc9ij7DzuzWSEJzwSLnq2UzY+kF83Qjk77sEARlHqQMQCKKVtwlQiEMhp8tlMXMM/poh3fZUTQuzqTcLj88zn0gIX5iwFsysXSZXhXFQUqqAWOuDlS3Y3nZA/HuakOc0oJThrfwPk3kygLMlyFPsNpAXrgecbccB0S2fWP30M8IoMvNONSfhjSBi7+SlS9FXp5XQqX5nEg== 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=7mOW1wKU12L7UO6zkSVsn0AoLnI9a0BT3CW6qSJKCj8=; b=QHQYgAFjKlvDKCZSuZ/s9iVc8Z1oiQ2HRpP28jsVXqnrE+SRGqtq+7GDfrajLXXTMit0R0Vt3FGKHpQIKsRqOLungCarL9OZmR3/uQMUl7HuorY10uCMVU+8xrMvIfaPKfcTU0C4veLyhh5/F0iNzs5MByy42z0hE4sjkyWTWMI= 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 CH0PR10MB5146.namprd10.prod.outlook.com (2603:10b6:610:c3::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5525.11; Mon, 15 Aug 2022 14:19:19 +0000 Received: from MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::b869:6c52:7a8d:ddee]) by MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::b869:6c52:7a8d:ddee%4]) with mapi id 15.20.5504.027; Mon, 15 Aug 2022 14:19:19 +0000 Date: Mon, 15 Aug 2022 07:19:13 -0700 From: Colin Foster To: linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: Terry Bowman , Vladimir Oltean , Wolfram Sang , Andy Shevchenko , UNGLinuxDriver@microchip.com, Steen Hegelund , Lars Povlsen , Linus Walleij , Paolo Abeni , Jakub Kicinski , Eric Dumazet , "David S. Miller" , Russell King , Heiner Kallweit , Andrew Lunn , Krzysztof Kozlowski , Rob Herring , Lee Jones , katie.morris@in-advantage.com, Jonathan Cameron , Dan Williams , Lee Jones Subject: Re: [PATCH v16 mfd 8/8] mfd: ocelot: add support for the vsc7512 chip via spi Message-ID: References: <20220815005553.1450359-1-colin.foster@in-advantage.com> <20220815005553.1450359-9-colin.foster@in-advantage.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220815005553.1450359-9-colin.foster@in-advantage.com> X-ClientProxiedBy: BYAPR02CA0028.namprd02.prod.outlook.com (2603:10b6:a02:ee::41) 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: a4de9742-1e4d-4c12-f63f-08da7ec92434 X-MS-TrafficTypeDiagnostic: CH0PR10MB5146:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: VdQQNtLkwgs+nDIGL1f93d96XZC86ltvhelArL+mdyQekX6VaTIpBR3h6LHPL7rdf99cyR7qRJ6Bt29IGhE5v7ypx02KErocmHb0xPnSfSIamUjhhiqB0ceIBLja/79MM8Ru3/yY83dVo7Jq23tWnwlV42St/mnoUjWBeA7+mzvO7nSRTY4Jc4Ei02ZLDm7zpnKJJtYm7laQShHSe9U/Cu5AkSfXqcTZgxbN+4ZvRE3UFg2iIoWNcHUtrCcCPhgZ+1vF+RM0K3cCiOGbRII/rMa1DYX3hJm4lMpIH3Czh1r12z4H0o8RckEPTVLD8H8qMO+KhVjLPGsP8iPclPNmLtEb14Ci5I/7AxAuO1klh7evg9EUrHGKApmtetyKIMtuN7TYKup7DSY0wiCoJdB9qzlBoM7byRV+tI5iynmgklGiTg2tEetldXyidj1Shwo5ItfLLl7X/NFsDhVNBQkYbQFkfTLdPthJ0VzpSFWh13e+8N+X41xnKhdFVPpkXJYOaUO77xd8flpHAgIY03g1PE9xe1KECDswm3qEHP20C4fBxIZ3W3TDC1RAtcZajP8koovN6AAuaKqYgLWyGugKHCISyMDNLdlFNAGSTxQhXpUJ+6KMRnf8sQA8fj3EsPzJ9K8rgSjRrekaGFjafKkPIyHHnRCX3Qqwx6EPnp1cVJhdaON+OzdHEAUZ3+oGB4ct 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)(366004)(396003)(39830400003)(376002)(136003)(346002)(54906003)(9686003)(6666004)(86362001)(41300700001)(6506007)(26005)(186003)(6512007)(83380400001)(316002)(33716001)(4326008)(66946007)(66476007)(2906002)(66556008)(6486002)(5660300002)(966005)(44832011)(478600001)(8676002)(7416002)(8936002)(38100700002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?GwIt56T2BHYodAiAdIIEOx07IwvRRREPa0u+6ZCiO8fNp7bRK+KnnnyR1YV4?= =?us-ascii?Q?2vPpeeB809BdOFrQnD2QHk+UCP/u8W6NLN2EtdkzhE0CecTgfiEODYS64Z8p?= =?us-ascii?Q?4mp2bDPTTD+aqOJgdNGRtkddpHvWf3nX+1RpdVBsmUy1EJxM7s+voyVqPP4q?= =?us-ascii?Q?YHZCrfPey3WmpkxiuGXuuushhFpYuw1R/3v3LPnZNnWXFhrHcB4I5AbGo1Vt?= =?us-ascii?Q?lE0K9Q/SLMg7Gr3arb39iMUAqztMxm8QpaJHDw7rXDjS/7/CSHPTOQLoSLsk?= =?us-ascii?Q?d8I9GjD8XwZl8ukoPJrlJKg/i0VbiSWDlTztGeXdzXTXZrsRXdPwsJnMy9Im?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4x7qcOASG5IxWXJnlv4z51xEFkq5Kw?= =?us-ascii?Q?3O73w1/iBiQ8rQFekEZWtauZ+vlwiOh7D204m/EsEfYnHFLQlcyAQFf9iBi6?= =?us-ascii?Q?eLD8sCo7Z9MzUoRB8sIzb2GOnqGjg5298utuExZmMustm11LRQxo95+SBSVf?= =?us-ascii?Q?uGoVcPVnoRm/rlq7WuBWWy9xRRnRvW1e3Wj8U+/PVJe0BBN+AlYFutdcNz36?= =?us-ascii?Q?1Ec3D1T6Gty8CPJML+4SMSBTTu0EwJ2j9eb7mhFGIYFdf1ApFrOehrQzlH+s?= =?us-ascii?Q?Xjgt3mixoj5Ognm5k468T+oQgR0Y7crchqJT5PK5z8cbi8WgPFWT/UyksfU0?= =?us-ascii?Q?JLah9OeVxuyl86ryCEAKBEM8ESi9Wr/ZSnzefN88W3Kc/Pq4mK2+qRYPixOl?= =?us-ascii?Q?5A=3D=3D?= X-OriginatorOrg: in-advantage.com X-MS-Exchange-CrossTenant-Network-Message-Id: a4de9742-1e4d-4c12-f63f-08da7ec92434 X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2351.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Aug 2022 14:19:19.0135 (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: HnUghN7sQZFSzD6AawE/X4F6/HF68Esv5g6iFLufmlbOGJ0bHEgkyPzb8/nWSBtf/UQ4h9KCguBepF8EqZMmne1mZ4EZCWoccez/Pdzu5yk= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR10MB5146 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 Add Lee - My apologies, it seems like you got a new email address and I didn't copy it on this series. On Sun, Aug 14, 2022 at 05:55:53PM -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. > > Signed-off-by: Colin Foster > Reviewed-by: Vladimir Oltean > --- > > v16 > * Includes fixups: > * ocelot-core.c add includes device.h, export.h, iopoll.h, ioport,h > * ocelot-spi.c add includes device.h, err.h, errno.h, export.h, > mod_devicetable.h, types.h > * Move kconfig.h from ocelot-spi.c to ocelot.h > * Remove unnecessary byteorder.h Something is going on that I don't fully understand with . I don't quite see how ocelot-core is throwing all sorts of errors in x86 builds now: https://patchwork.hopto.org/static/nipa/667471/12942993/build_allmodconfig_warn/stderr Snippet from there: /home/nipa/nipa/tests/patch/build_32bit/build_32bit.sh: line 21: ccache gcc: command not found ../drivers/mfd/ocelot-spi.c: note: in included file (through ../include/linux/bitops.h, ../include/linux/kernel.h, ../arch/x86/include/asm/percpu.h, ../arch/x86/include/asm/current.h, ../include/linux/sched.h, ...): ../arch/x86/include/asm/bitops.h:66:1: warning: unreplaced symbol 'return' ../drivers/mfd/ocelot-spi.c: note: in included file (through ../include/linux/bitops.h, ../include/linux/kernel.h, ../arch/x86/include/asm/percpu.h, ../arch/x86/include/asm/current.h, ../include/linux/sched.h, ...): ../include/asm-generic/bitops/generic-non-atomic.h:29:9: warning: unreplaced symbol 'mask' ../include/asm-generic/bitops/generic-non-atomic.h:30:9: warning: unreplaced symbol 'p' ../include/asm-generic/bitops/generic-non-atomic.h:32:10: warning: unreplaced symbol 'p' ../include/asm-generic/bitops/generic-non-atomic.h:32:16: warning: unreplaced symbol 'mask' ../include/asm-generic/bitops/generic-non-atomic.h:27:1: warning: unreplaced symbol 'return' ../drivers/mfd/ocelot-spi.c: note: in included file (through ../arch/x86/include/asm/bitops.h, ../include/linux/bitops.h, ../include/linux/kernel.h, ../arch/x86/include/asm/percpu.h, ../arch/x86/include/asm/current.h, ...): ../include/asm-generic/bitops/instrumented-non-atomic.h:26:1: warning: unreplaced symbol 'return' was included in both drivers/mfd/ocelot-spi.c and drivers/mfd/ocelot.h previously, though Andy pointed out there didn't seem to be any users... and I didn't either. I'm sure there's something I must be missing. > * Utilize resource_size() function >