Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp11446390pxu; Thu, 31 Dec 2020 09:29:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJyth+vrSFek6ore/5TdsUyCI4f7bIIKNvdmzU0wCnl5rQq06R6LgYqRa9v6eltjEI4Kns3g X-Received: by 2002:a17:907:20dc:: with SMTP id qq28mr53953693ejb.403.1609435760055; Thu, 31 Dec 2020 09:29:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609435760; cv=none; d=google.com; s=arc-20160816; b=il/Olnuk2+ROHBlSBChkZGmK+DRKsmij3Sy4gJvwqBO9CaDzuu1b9xvzfEGeYC42vQ ujKzopQfDVAH5HlIvxVwbw61u9qzMM3mFq3BbedlDkFnYaNb68U0TcGFnrBtQDGZ7txC npV2NcWpBv4PNxwBVZfXuCpRL2F2wiOCCJopDqVhVyBbSXL2nOkqCXIE0CSb2jOq/js+ lpgYUfAvm/OdsZ3k0QJ5cbuuPVNZu2Y7EN/5kiTMKIehvpO1MlcdgLemhACgZDPwzg7E +HAt7n0oPrw4A2VNjpxcrnXoVb1n1NaGAOa7WVmsxXp154hZrIhzy0/rG6Pb4d+Ry2v/ 0wbA== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=qwVlgkhV5h9dBtlXICjWEK5AA16JZNk/7Av+u+o3f80=; b=bEgT2P3OXR0MMFls1JK7XZOzbn6zyRbz4rKqRkwVSpp7SY8Kzrcmt7gIoBMS4GG4B9 pKIkPMK3Fm4xinZcAsnbHsorbx7uoDI4OzJ5OPxAj2Y+BYbCk3CeRFXDv4ejREUu3x+4 JZBViGZ4RaWrnyoifvi5ykeFoPpmCfYFWTNosYy8067/tIKJ/fjBD/249YgYHTEQeeBo v85jDukA28rhazmgcpiERJtQFRAh/NSPRtjPxoLLKy6aD5X3/tFxPjy3bn7xne5PCE0v NMHEL/xtGfDjGKVzJcdEJUjHCcsqMfjyeMU2I3sD4ou2ZRBPxfnlkYQrr2hztzRFGO7b NmLQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n27si21955715ejh.345.2020.12.31.09.28.58; Thu, 31 Dec 2020 09:29:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727223AbgLaRO1 (ORCPT + 99 others); Thu, 31 Dec 2020 12:14:27 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:45600 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726661AbgLaRO1 (ORCPT ); Thu, 31 Dec 2020 12:14:27 -0500 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1kv1W6-00FHGF-Uw; Thu, 31 Dec 2020 18:13:38 +0100 Date: Thu, 31 Dec 2020 18:13:38 +0100 From: Andrew Lunn To: Pali =?iso-8859-1?Q?Roh=E1r?= Cc: Russell King - ARM Linux admin , Heiner Kallweit , "David S. Miller" , Jakub Kicinski , Marek =?iso-8859-1?Q?Beh=FAn?= , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/4] net: sfp: add workaround for Realtek RTL8672 and RTL9601C chips Message-ID: References: <20201230154755.14746-2-pali@kernel.org> <20201230161036.GR1551@shell.armlinux.org.uk> <20201230165634.c4ty3mw6djezuyq6@pali> <20201230170546.GU1551@shell.armlinux.org.uk> <20201230174307.lvehswvj5q6c6vk3@pali> <20201230190958.GW1551@shell.armlinux.org.uk> <20201231121410.2xlxtyqjelrlysd2@pali> <20201231170039.zkoa6mij3q3gt7c6@pali> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201231170039.zkoa6mij3q3gt7c6@pali> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > Looking at sfp_module_info(), adding a check for i2c_block_size < 2 > > when determining what length to return. ethtool should do the right > > thing, know that the second page has not been returned to user space. > > But if we limit length of eeprom then userspace would not be able to > access those TX_DISABLE, LOS and other bits from byte 110 at address A2. Have you tested these bits to see if they actually work? If they don't work... Andrew