Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3177612rdg; Tue, 17 Oct 2023 07:02:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEY3d0KIjB1xFCX5qnBTZqeBTx2gb/hC2XYAkPxwiqf04J/g/kja69Bf9ELDR/oV7O5cdUB X-Received: by 2002:a05:6a21:8182:b0:16c:b60c:953c with SMTP id pd2-20020a056a21818200b0016cb60c953cmr1845025pzb.58.1697551323728; Tue, 17 Oct 2023 07:02:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1697551323; cv=pass; d=google.com; s=arc-20160816; b=ZHwEulmwnO4R4rWwj10PuTAJNL7CdEZ3c8Zrc3p/gn7hhrx0NZjv240W0ZSb7+3pvu x/GLAZhBlvk1vKOgeXhZouTryEin1SNMfn/n15TNfkrG2Z38YvJQaJN4aaudba9DJa2y aYAJ0noS/wzPu7S2ILvbKitO4Yb2IELYHL0Mp0XcX8mlsN3bGjNs40mJxjKyXE72DtSu 2AVOPgwQxWXLThPXCDtyd5ADIHz8cQGKGWB65GISIfT1aALwvB/5QWAecG6seyb3lLDA Z7FjF4Vl2rLamdKHvoIbWyWx1fWoVN6hLzqboUR/fSIiw2QMn535wvXnhRzKQhF0GS01 8ZMw== 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=1Gy/xj/DsCqd744C+d0UGWv8g7M6rxWC+yjiRak4iLU=; fh=FiBkyRpUPHJ0L31aphuaCr6yxsB+FuOme245aUvxovk=; b=oqtceFoSMlEFyN44l3nC3f5cU873wWksTat3XJh7hr3DgfuyWoDz2daDNcWnaNqPat 1CZxck6xeuQORbWlPf1kBLXCgYE+Ep6aB+s/iIWdeEGUKFz+GoDE09PznfYufxO/8GZl 0eKHaNwehCV/sBGRMbpg1UD90v9oM1zwa4J4MDBhFpwiMUhGNe+PmpAhhufp5GgmEe6i SzTWImeuaJP00dyk1PN8CambsyM5XiLVguxl+P3Vgf5a8RPrVtVbZXq/F++DMfHh71vd odLtUW1SoR695bvvXlrfFGt83sMtISBxrflWTIikDVbEtYeUshmKPExOGmU8KphNBBK2 4Jaw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=LARKGFN5; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id y191-20020a638ac8000000b005b7e70085dcsi1844959pgd.433.2023.10.17.07.02.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 07:02:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=LARKGFN5; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id C219B8060C8C; Tue, 17 Oct 2023 07:02:00 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343684AbjJQOBx (ORCPT + 99 others); Tue, 17 Oct 2023 10:01:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344019AbjJQOBl (ORCPT ); Tue, 17 Oct 2023 10:01:41 -0400 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2087.outbound.protection.outlook.com [40.107.22.87]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F0D8F7; Tue, 17 Oct 2023 07:01:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RlYet1dymDnUPGYeM5eVHY9HJGo8qFm7duPQOj8TgSsk0zFghwSerBeQsTw5+pynJt930VJrs2OTn+QkG6dgtbP86i2JHh8cwbXk1eXbALr/LH9DKBd3zqySlRfyqZWwaTrEZSUXbKwkW9pASHse+IsFa0w5ZqTN98VQZbcpyKGOccAdbo/JbDO8EDyU3L50nEc1tnhLLUCodb0+RufMK0KQvMqZNbK4iyp85MSPLx8MEInfO6Xfp7IhTyEPc/+omcP5WVNNOHwfB7gMzdMVg1sjwpVJsKI5ASpt2uRtxXsVmjAhIMbCJwC6qluYv8LMY35GyhwSKvjCMggGKvJ81w== 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=1Gy/xj/DsCqd744C+d0UGWv8g7M6rxWC+yjiRak4iLU=; b=Yu8q/3eFORVejGZlaLNj/45vDARehGxOcB2bKtuISyxby3RHv1QQtroAXNdTGqrOvdYBbcpgnSOuV7O6KEH2ETV0VyVgWTQzOqufSpjfnVVooDTQHKXHDMvc7E/twpWZ71yEIegYeuO/ksuwhZ8g1+FselE21TlWO+0lUA0BrqeM+p5E52A/ZhuI3ijCs/TX7oM5lnj2W42XEkj4qdmO8tKbOrEQlYsY3J7N5gyV2Jrdqe1fzVP/D3776KCNBjvQjArQKvGUJwTvI6OpKcspxeBD0/MD0p31gqdGvRLg1MQ6aFr0eAlpc5uTQkAbq1tIHjMvyKEObuvu7bvui3U9wg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1Gy/xj/DsCqd744C+d0UGWv8g7M6rxWC+yjiRak4iLU=; b=LARKGFN5YBscxo+i/F7An0Ray54kJZPF96B8fPqnwMPZpKMsuuvPlFIlqUE4SIxO5YyrSrJunb2WpmvuO/SJBh1HLgX7NuVVL7sd3ALtl86IHIwPJcXnJJ1PtvCVse0Q4Q/PmYTtjXgyl2d0SpdqMjg8aEvLq44YhfcwSeZQo/8= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM0PR04MB6452.eurprd04.prod.outlook.com (2603:10a6:208:16d::21) by AS8PR04MB8118.eurprd04.prod.outlook.com (2603:10a6:20b:3f2::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6886.36; Tue, 17 Oct 2023 14:01:37 +0000 Received: from AM0PR04MB6452.eurprd04.prod.outlook.com ([fe80::992:76c8:4771:8367]) by AM0PR04MB6452.eurprd04.prod.outlook.com ([fe80::992:76c8:4771:8367%7]) with mapi id 15.20.6886.034; Tue, 17 Oct 2023 14:01:37 +0000 Date: Tue, 17 Oct 2023 17:01:34 +0300 From: Vladimir Oltean To: Andrew Lunn Cc: "Russell King (Oracle)" , netdev@vger.kernel.org, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Heiner Kallweit , Florian Fainelli , Michael Walle , linux-kernel@vger.kernel.org Subject: Re: [PATCH net] net: mdio-mux: fix C45 access returning -EIO after API change Message-ID: <20231017140134.ce3cjv3bhbq3k4m6@skbuf> References: <20231017113222.3135895-1-vladimir.oltean@nxp.com> <4ccd7dc9-b611-48aa-865f-68d3a1327ce8@lunn.ch> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4ccd7dc9-b611-48aa-865f-68d3a1327ce8@lunn.ch> X-ClientProxiedBy: AM0PR10CA0113.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:208:e6::30) To AM0PR04MB6452.eurprd04.prod.outlook.com (2603:10a6:208:16d::21) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM0PR04MB6452:EE_|AS8PR04MB8118:EE_ X-MS-Office365-Filtering-Correlation-Id: 8b496c93-37a1-4707-3d31-08dbcf19948c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ePyZrUN0xgwmxEQf0h3sycd+yMc6GUW7kZj+CBto9oCajHnZY6HW08YAWde96QwaGZ2t/zTJac5rzWN1bVRXo5TU1qTgYQJ1Se9c5LwyV9yw2IhPoGtPTGyB+IspPQ07aVb3l5DnrFNfNvM6SmzIGzP9bcNm3L78atkaJeNn86guDMorHwQf+cAS3fo5uvADGusH2A81f/Dojd/Lh2IEAE5D9L89x0XNb3CxmIDey3Cf+7auMURNImkKY8K8+3ICzkcl4EhFa/p7g3Zm+Pb+2wuH+F7tPX4NcDqWab9Q6hMGBM92zWiBSeRbor+k4eBfx6UgorWvUL33QKGzaurHuF2PZPSjiVnhQobyO/7VKZK2xCzhE5YNW1ajGez1O2ENEyOAUP9uaDUoPNFrEWPDklndKf7JRzK/WYg2hx9oVfrELAXk9JvNiMLS1I3N037+SzLD5WWfdyg5fLbbvAjTbWS9N+GJbcFF0/4GA8p8oJWpm1UC+GZnzkO/ygHt5CqQVpJ+ZSHRb4BAle3aWa6m43xs5+yJWze+eh2W4fQ9f1Sx7kKpIaKnd8W0dASPJmFu X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM0PR04MB6452.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(7916004)(346002)(39860400002)(376002)(396003)(136003)(366004)(230922051799003)(186009)(1800799009)(64100799003)(451199024)(33716001)(83380400001)(8676002)(4326008)(316002)(478600001)(66556008)(66946007)(6506007)(6666004)(6486002)(8936002)(26005)(6916009)(1076003)(54906003)(66476007)(6512007)(9686003)(7416002)(4744005)(2906002)(5660300002)(86362001)(38100700002)(41300700001)(44832011);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?kq+Br5I2x1Ry5u2NNgLLeruRfYwPxmczsWD7Rw3fw5ZWK6gKI86U5IRDEC0k?= =?us-ascii?Q?YqwI16XSL9P6zNag984vFsJ1BrPAUuocD9OdGnpWrlQ6QW3Y3abL8BBLmSy7?= =?us-ascii?Q?ja6N6rsFygJEcNRmPvQ1Y8k4lLYskzAlofj4IBcNxYIfKgHS5WdPexJ+6GN0?= =?us-ascii?Q?H2GwfECsRstB0CVK3apm/pcYwYRdcJ66ua/i2HWGgfXtBAcr0Whx2/k4nUd1?= =?us-ascii?Q?Guy6c5/ZoKcc8wh8j4DLwYO7wOKX7COuDNf35b9xKWLTDCf+vAs1HkHRlnd3?= =?us-ascii?Q?yuNqtdbSH3HYEiPZxjmSTWcL6OBppOUTxOdCtqxQb/+hZboh53n0A01hRAWN?= =?us-ascii?Q?TA/VX6pvM74zcAbA5bKGFT63i9v2cVE/REicaTLqakE/lYK9s9w90NZ23yX/?= =?us-ascii?Q?PrNkj/yyIHRyteJ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2TAb5v?= =?us-ascii?Q?H11oWWTH4cTKnH31Z6LGcGbnK2aFdixDIsGsW50Zf0UWq2SPO/urbmOzKt4y?= =?us-ascii?Q?VfTxxUVa0AXtQmbU7YfC8XU2wb/FQj1m0vhdH1+hWOUczPdIPWqHfKxdIaLC?= =?us-ascii?Q?2jEyLxpaJGEisjqpIEzmqJa8y6yXUZPYaVMdPE08IpW0d/v1OS9JO6F+0L82?= =?us-ascii?Q?yNCGEEFOeOelQIciaKwwYPAzziNTFtgQT/vg2zQA5APNWRGsThHGAmOD0v6Z?= =?us-ascii?Q?n5+t0tT1YP/bPB0yN8DERO88txI4ZOn9gFZgfkc3kWKQibVMWdx+jNptOWpI?= =?us-ascii?Q?yw=3D=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8b496c93-37a1-4707-3d31-08dbcf19948c X-MS-Exchange-CrossTenant-AuthSource: AM0PR04MB6452.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Oct 2023 14:01:37.7588 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: P57MEwidqyVaco2pUQK36yJxrdqrRbhtSRGye4Le7v+fSww3C2JxGAgCsCLol9QGxIIXluk/Uh+c31fVflXAPQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8118 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Tue, 17 Oct 2023 07:02:01 -0700 (PDT) On Tue, Oct 17, 2023 at 03:44:58PM +0200, Andrew Lunn wrote: > > Maybe make these conditional on the parent bus implementing the c45 > > read/write ops? > > And optionally, for net-next, make the c22 read/write ops conditional > on the parent bus having C22 as well. Its a bit of a corner case, but > there are a couple of MDIO bus masters which are C45 only. > > Not having C45 is however very common, so we should make this > conditional as part of the fix. > > Andrew Ok. I don't know if net-next will remain open after this patch gets accepted and "net" gets merged back into it, so in order to not completely forget, I'll add a patch with your suggestion to our Layerscape SDK and that will serve as a reminder for the next upstreaming session. In the meantime, for this patch: pw-bot: cr