Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp7052197rwr; Wed, 10 May 2023 03:14:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7fP4cD4uB4WRlqE/6Sw3CXsfjqZgXpGI6ZFOe3vNI/AAZPEArBA2MAhYohwVXoi3V9Wwut X-Received: by 2002:a05:6a20:4320:b0:f4:24e6:1065 with SMTP id h32-20020a056a20432000b000f424e61065mr3992578pzk.39.1683713687863; Wed, 10 May 2023 03:14:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1683713687; cv=pass; d=google.com; s=arc-20160816; b=kn5jmUyw7bL+MUHPpWTmOuj6IEZWj30JP1J24/fVXx8belR9//zOFMBPelUVyK3o8k bjvr5TGccnfp0zVEvboO2aB9vbrKgWMw5rqyZUhavqTnYGEXqq4uth+RcEMdl+Lon+h5 2jp/5+5tkk9sSi6KxE5QdUq9FW1O+sVQS0P0G/Sto6SmhKz69lOLGRH6cRWNQyB+4aGG faRqN85NcCTX2LY4p19AGN6TGh0pJTJLRZKhKoz2npaKYFpvMRrJxHi8JFyxqEJ9Mg/r nK2O7kGPp+XMei16Y4Qon/5VGv2PrU/OBbbd1C0S3DdNTNKpwptC43WtCXSa34rgP65D rXXw== 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=phuWtBxAlF2JypLpgwuN88me+nfm7qmUO7l1d2mamQY=; b=MCiUmZy3rk7i0qLrUPPsKWNUzuF8R04ZWt1Q+wtwQAOzEhcl4hp+muFMVYV0kBMDxL dtwpXwqxHaxqyt9od2x172Ykdp/plTc76QJNCgQNrRLghtPW0dhlcz3pdQCIFv80ue/N lu2BMT3ZN0nkZmDrr4LJvE2ClniTEjs9AEhEG1RgpkfkATic1VeJftAGgk+RdK3djr73 2/9fCS83rc9Zw7ncDQxjiXgDelng6QkvknhlAxgwr0x6+/Vv0GyWEauv43e9QeMUnASO laZ8ESxDEikHoXXmsgpUTW+33o1ZuKV7GEKJ+YRxvKDX9QirTDNYi9ie6Nwf7anpa1e4 GbYA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@corigine.onmicrosoft.com header.s=selector2-corigine-onmicrosoft-com header.b=DQ3lrt38; arc=pass (i=1 spf=pass spfdomain=corigine.com dkim=pass dkdomain=corigine.com dmarc=pass fromdomain=corigine.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=corigine.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d9-20020a633609000000b005073e3342eesi3917765pga.143.2023.05.10.03.14.33; Wed, 10 May 2023 03:14:47 -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=@corigine.onmicrosoft.com header.s=selector2-corigine-onmicrosoft-com header.b=DQ3lrt38; arc=pass (i=1 spf=pass spfdomain=corigine.com dkim=pass dkdomain=corigine.com dmarc=pass fromdomain=corigine.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=corigine.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236261AbjEJKDj (ORCPT + 99 others); Wed, 10 May 2023 06:03:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229911AbjEJKDg (ORCPT ); Wed, 10 May 2023 06:03:36 -0400 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam04on2138.outbound.protection.outlook.com [40.107.100.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73BA66A4B; Wed, 10 May 2023 03:03:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lC0mhAh2D8AjnZeqwrKdofclDwijdJxaYX+2kU5IcyKU4nY9sQjxHfH7rGfbBSl5TTx7Ebjz/adEiE6QyA2w4NX4NYchVyluWKdiBIwK2cP3emhswMQWf8bhc6e504CoHsWV6yiayyd5G4vuU1zNFdIAsioMDwm0Xo/K3Nphu/ZW4lh1Ne7AsG8ROPY0A6f9I9/ad9ATOp7GIN2WO78of/r7VMHe5cC6T0RNldmWhT2MCFA/K0OXozLY/mWM0BWvEbw3uZDTQfHNhTjqPKgMvmcLvgrORvC8Zmc0BGF3wdcypj1ignSqlHFOSXUnrjPQ2Zt4dlxomK7oZvS0+aAwtA== 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=phuWtBxAlF2JypLpgwuN88me+nfm7qmUO7l1d2mamQY=; b=bNppwuzooa/Q7LjMsggSc63dqdRZAhvnUz3xPbnf+dppK1mStOVyN0sNiNJ4bER3boJbSrZKYUH3flaIKCxRviqPgqbsIN0TRa1kv4HfEJdIKA2MxcO/Dkla8TnK5CzR7pZh9K8x/vxeGye/3oMPTm33KAN/xppol/4HE/dcTGJyQsGNmGghJMQJaDHn4U29BcciynMlnUjNJKrUXNnzURscSZo4e7K2p2oH5E1CN8AQti8Bay8xSQ+g/e55dvOD7IbOwD/MZoTWvXTFMwXohcaHWscTNurK8o0JuokL5iCk0CVKLwMlsBW1ewfC5jtxGLYVPSX8rNE6OlPfzEQEFg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=corigine.com; dmarc=pass action=none header.from=corigine.com; dkim=pass header.d=corigine.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=corigine.onmicrosoft.com; s=selector2-corigine-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=phuWtBxAlF2JypLpgwuN88me+nfm7qmUO7l1d2mamQY=; b=DQ3lrt38Ev9LrWgpR3Q5tKy3WOmdAcm+icWir+U/tmleENKP/qgIoxFYIIBZk0UwyBUn67W5tVIY5LhyFjGcvPs1+FJgLZUCR0Kcu2awbFVanbcNaOzRkpLXgIwNVQaPDLB7I6HGjM362UVDR8Z8SefmLYfnIZRHo9w21ZlvNiQ= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=corigine.com; Received: from PH0PR13MB4842.namprd13.prod.outlook.com (2603:10b6:510:78::6) by PH0PR13MB5590.namprd13.prod.outlook.com (2603:10b6:510:128::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6387.20; Wed, 10 May 2023 10:03:24 +0000 Received: from PH0PR13MB4842.namprd13.prod.outlook.com ([fe80::f416:544d:18b7:bb34]) by PH0PR13MB4842.namprd13.prod.outlook.com ([fe80::f416:544d:18b7:bb34%5]) with mapi id 15.20.6387.020; Wed, 10 May 2023 10:03:24 +0000 Date: Wed, 10 May 2023 12:03:15 +0200 From: Simon Horman To: Yan Wang Cc: andrew@lunn.ch, hkallweit1@gmail.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux@armlinux.org.uk Subject: Re: [PATCH v3] net: mdiobus: Add a function to deassert reset Message-ID: References: Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-ClientProxiedBy: AM8P189CA0014.EURP189.PROD.OUTLOOK.COM (2603:10a6:20b:218::19) To PH0PR13MB4842.namprd13.prod.outlook.com (2603:10b6:510:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH0PR13MB4842:EE_|PH0PR13MB5590:EE_ X-MS-Office365-Filtering-Correlation-Id: b0b3f243-8fc7-4240-71dd-08db513dcabc X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: VpG3ytNLWPMrDEKuVcMNeRBzUhTWyYWrFsp6sR7fm8EW4RW69m3o+Ki4LL9IttLI97MJ+mbYokpIQ3SfDpIra3UVJllXypAlED5Owly6/4hEjX2AVB7lJYuCSixE/woPPbZLH4eh8xUoYHq2OT1KprEB41ctTAxbuwJ4CJUslIF4VbwcedRJs7o3u5qQWWg/aqSJNxLCs232MY6vk+caOVbBbIf1PbwUKHIuI7bTLPVTKEXdw3zMdRP+zGLJ35Xh1JsGwz/+DT0zNhQ0+lr0h8BVIaHunKj6zeAKbLytk1G+0ZkfZ9PFDOyBiwuCSrdoLMmJSqt74cUIx0SD/bk7F5AkSFp3gcauXLyF8JcgMsiZCm8FblhCRIFKiJnFnTkjWHjGoUXY8uXysL9frujxseTeNpEH810QOFuXsb7ZEXPnUheyNt2HMDq8QyhyOu7W7H9Sxpb9IFQY/ltFAgJ4utdjzD1RMdCzQ8y1NtRZDsq4D/vJEfbW+RF50BJnr4XEsGAkWaE+KDNNjqkIGV/ElhCMyPcNB02/TDUVGd2306vAWbgrQQ4KDS+6RJ1SE30Q06cXeRPSBm/oOUe3xK5SRA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH0PR13MB4842.namprd13.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(396003)(366004)(376002)(346002)(136003)(39840400004)(451199021)(41300700001)(2906002)(4744005)(6512007)(186003)(6506007)(5660300002)(44832011)(38100700002)(8936002)(7416002)(8676002)(478600001)(45080400002)(2616005)(36756003)(6486002)(6666004)(966005)(86362001)(66556008)(66476007)(66946007)(6916009)(316002)(4326008);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?GadyNb3K4bL9qSR+YgaTj/YdWSYnGePZscjmZ0tyZrtXWmEzzWRcBiXvuBs9?= =?us-ascii?Q?sfW+0ZOFpS8bwVY54kHb1tv2N7RKqcTEMjiAvRRI5w/lloN+WdVM2G6ir+iv?= =?us-ascii?Q?4OYHw6tHu1NgY+ixG2KgcHFnojTfKeu+utiHRgB024ML7V6rQq6w/7nZtZO0?= =?us-ascii?Q?TSZVxuBd10iR/jJL1uhVNL0x+5HlXLJJPlOx7hNPtggilWV4hqTod/MKGiXC?= =?us-ascii?Q?NF1v5sWZlZNf40jat5zCBx1sHOKI3a7S/Xrgv9I4ASDTVaefHemwVg1T8Juc?= =?us-ascii?Q?OSoMDfCfHvVS+u0HnQimGPe+WII4gqt7MSUcc9z0qgTT86YNQ0Xjueb1a0gT?= =?us-ascii?Q?lH96CiaX7Vj4IotLshG06Plg/XTzZbcSegyGR+vKKwNVGjJhwARuxymQ1e4Y?= =?us-ascii?Q?huFmUyn6qdBehH6Tuo2ShsX5c2OplUC6mbq++mmf+udYOiEVu/8KQdqbE0wn?= =?us-ascii?Q?Mck/pY3vcFO+UlpzV4VdOxnP9//R4ibCY0krdWVQpgiOYD8V/o8pgWo3tcQk?= =?us-ascii?Q?MlNwOeVp+2jTNRXui7eeQ42A4X7CLPQ/CshStLuLGoPRglR9giTYpk8x3iQo?= =?us-ascii?Q?FY0sHcWBclluH5ihZlxtDeLASwB2gXQIvyKO9R2NfXNciyKY8VI2g0Nwt5mY?= =?us-ascii?Q?MVEGf4FEgir7mI2qrP9x+EBz+gMLOCTlAsvQGFcR5MEu/gauKBCnA/6YfQyO?= =?us-asc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2qB4OZe4Fy4?= =?us-ascii?Q?G+KZbQndj/Lzy9rsQWQb67lVENXWhk+gFQpg9oWds+SZU4JxFpv/1m5JPJVp?= =?us-ascii?Q?cYjhgw=3D=3D?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: b0b3f243-8fc7-4240-71dd-08db513dcabc X-MS-Exchange-CrossTenant-AuthSource: PH0PR13MB4842.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 May 2023 10:03:24.1445 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: fe128f2c-073b-4c20-818e-7246a585940c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 0XUXARiDQEJCn3bRcmG4UEOOvwCyC17ALVz99OHF6Fk3XeSmqgAIqprKq0A+a5zTUQ/MvIoWkjvJ8vdQhjN/JrNbaNLp8v1VKHHYOxlD0cY= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR13MB5590 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 Wed, May 10, 2023 at 04:15:22PM +0800, Yan Wang wrote: > It is possible to mount multiple sub-devices on the mido bus. > The hardware power-on does not necessarily reset these devices. > The device may be in an uncertain state, causing the device's ID > to not be scanned. > > So, before adding a reset to the scan, make sure the device is in > normal working mode. > > I found that the subsequent drive registers the reset pin into the > structure of the sub-device to prevent conflicts, so release the > reset pin. > > Signed-off-by: Yan Wang Hi Yan, v3 was posted less than 15 minutes after v2. Please wait 24h between posting patches to give reviewers an opportunity to review patches. Link: https://kernel.org/doc/html/v6.1/process/maintainer-netdev.html