Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp566111rdb; Fri, 17 Nov 2023 06:50:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IGeMa9jVRDyhFb+sOqm5KzaABCvTtGlFzlVt8pV0gbIrDEIuYWM97lGOnV/koZV78vDTg+K X-Received: by 2002:a92:c268:0:b0:359:4376:6615 with SMTP id h8-20020a92c268000000b0035943766615mr20491803ild.30.1700232627984; Fri, 17 Nov 2023 06:50:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700232627; cv=none; d=google.com; s=arc-20160816; b=dNPbDFpecWg4uikRxEKwHafWTxeUalvQVjsAL/FSbbm+fnIIBkf/J19ZBpQuPL0IWH uxt+o3WL1ahgz/TrRq6METry1f25fONu5Xm3QaGUMmywMUd6qLFC4Mcle/ovzlpXap6A tqtC2qKo+pKL+G6mrSk/gwpvZaJ40tRiTCUnBgAtyTPiMtcfNubYSFxWuiANB6jHbR5Z ebHpIRsc/Mkr8JdfW34fXWMiM/pps3swqnf2Cu4LmrxVza8jk1j3tmI49F9pn+Bu7juo FZianEAjcKy1XltTai5GktE4l1Tp/RERkL918LgsRyR1PDO18/U4GBj+0AT+hwiGZgJ0 Hr3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=iAkHQGc9Edeyxcg4qVcHCYzdGc4W9iYw+dBZmqgXC2s=; fh=rbWtxkE8kExZFv2KcrtSC0yF0uarX5O6bFbQPIKO3cE=; b=mv7CgZZ0KSNT+4dBxJBqHEYYahYSXhp/rbyXIP6nEZxGl2ghXEydrcxIN/IWtukIoX 78jgsCgc1zA+scdO0eNp1WHa4+9ggVGJs+aEVKSQPGx7p3lwTI72EwCR1QgK0KZshacr WakajWBwdnzYVNUO5+U59+bLgVLUpHBNg3mnk/MDf/wpVEaA3SudvlS6KVSpDRY7LMSH dS4YhylyaFauuvUAdnVnqe7agR/P0HRkkXJ4Oo5BzLMR4ElA8zd9/YTe0kdEJtSobWJ8 HZZS6HvEpz6XW0UUZLnd7oWb8hbyPIgYbqQWvO0FprlGEY4IOE6FdIsk4jS7bTbH4/aS Xxkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=z8sIuKyu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id w9-20020a631609000000b005a9fde46fa0si1945158pgl.130.2023.11.17.06.50.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 06:50:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=z8sIuKyu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id CF32980B01F7; Fri, 17 Nov 2023 06:50:26 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232380AbjKQOuY (ORCPT + 99 others); Fri, 17 Nov 2023 09:50:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230513AbjKQOuW (ORCPT ); Fri, 17 Nov 2023 09:50:22 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8AB10130; Fri, 17 Nov 2023 06:50:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Transfer-Encoding:Content-Disposition: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:From: Sender:Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Content-Disposition: In-Reply-To:References; bh=iAkHQGc9Edeyxcg4qVcHCYzdGc4W9iYw+dBZmqgXC2s=; b=z8 sIuKyu0PZQo8Ea8EUYW/pA1XMaUR/Dj7Ns+M2Atb697BbHI47+Y6e1R5Kpemm41N/XJ/WRTtzwTJD GrXzQuwO8p2VlWiuQ6R0pPXyr6J/S8IPqkXMMFqw3sFQ2kpsmS6RToXS5Ui8+N1f15PCvBnMySOv7 Z0C4Fa0ZDJkCBDE=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1r40AX-000Rpd-6D; Fri, 17 Nov 2023 15:50:05 +0100 Date: Fri, 17 Nov 2023 15:50:05 +0100 From: Andrew Lunn To: =?iso-8859-1?Q?K=F6ry?= Maincent Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Jonathan Corbet , Luis Chamberlain , Russ Weight , Greg Kroah-Hartman , "Rafael J. Wysocki" , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thomas Petazzoni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH net-next 9/9] net: pse-pd: Add PD692x0 PSE controller driver Message-ID: <18e7e893-8473-4417-93f8-c3b4ccf4b971@lunn.ch> References: <20231116-feature_poe-v1-0-be48044bf249@bootlin.com> <20231116-feature_poe-v1-9-be48044bf249@bootlin.com> <8e077bbe-3b65-47ee-a3e0-fdb0611a2d3a@lunn.ch> <20231117122236.3138b45e@kmaincent-XPS-13-7390> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20231117122236.3138b45e@kmaincent-XPS-13-7390> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 17 Nov 2023 06:50:26 -0800 (PST) On Fri, Nov 17, 2023 at 12:22:36PM +0100, K?ry Maincent wrote: > Thanks for your review! > > On Thu, 16 Nov 2023 23:41:55 +0100 > Andrew Lunn wrote: > > > > +struct pd692x0_msg { > > > + struct pd692x0_msg_content content; > > > + u16 delay_recv; > > > +}; > > > > > + if (msg->delay_recv) > > > + msleep(msg->delay_recv); > > > + else > > > + msleep(30); > > > > > + if (msg->delay_recv) > > > + msleep(msg->delay_recv); > > > + else > > > + msleep(30); > > > > > + if (msg->delay_recv) > > > + msleep(msg->delay_recv); > > > + else > > > + msleep(30); > > > + > > > > As far as i can see with a quick search, nothing ever sets delay_recv? > > > > Andrew > > In fact I wrote the driver taking into account that there are two commands (save > and restore) that need a different delay response. As currently we do not > support them I can indeed drop it for now and add it back when I will add their > support. When you add it back, maybe just arrange for delay_recv to be set to 30? Andrew