Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp161850pxu; Thu, 7 Jan 2021 01:11:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJzFAONtAnAIzNTv7fD//P+fRw9dZaecaVr+kQH6kYbDy699m/1QPrOIxoC27oQAbPEIgakQ X-Received: by 2002:a05:6402:55:: with SMTP id f21mr1012982edu.38.1610010700591; Thu, 07 Jan 2021 01:11:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610010700; cv=none; d=google.com; s=arc-20160816; b=LT5EJ1mgQ5R+rnxRKPC55opekXCVdaaZlW6npp2U/DZf1liS8djwfM/uJyN1a/9nh2 nw09Nw50JwB2KhdK4Lo75GZw1dm9QJ4A4Gk7+6TI+9UH9XUqA7jwG5LCAEqtmAh3MoqQ AjSiHfOiguxGIZl3dBH8VqjED5+IEtLzmDbpqeUeu66vyTL219WE/qEWi/HvvuygPNGa w7G3BJZSEfdFBN6TNwrsLtQlTFk8tN/t2VCW6gSC4KJ7nhmlJtcQzGdYtvKSJx+UydS+ GmrFhmO6FZeBi40unLGV4hRqVLZ/hqsWUCn6ev4vnTtQMiHl2XoPiYjs9prHnE/R/QjJ VIBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=sTc4AGs6SrdxYo7FmeGiH55cNsnb29sUx3/HmS0C7UI=; b=F/kmAcebkBbUrBeQOx1MiRMjUrMlIwl52zfAcmTJEldOag+vDz7ZovrDHIBp7UBZ6+ E/7B1uNnvXOL5wyw6nmacxi193aIZkk0ONvfc0ihRGuL68G/8+c6AjYQj/JReCI0y3pf 9fsUf/Km2Fur+2BndCd5/rNr1Nb26dRo6Pt2KYbTHef0h8cthnlpyh9yMhlKCvPDU+sO Vv9weItzgH/Gi3jMS8BRYfA+RmUuu3PQDfpV0D/3Kiatf3+wfF4IVhI8CqQqTV6mLOp3 6aqTeB9sgape1LlHgnWAq6WAh0fXHcMCitQSSIqTeXHDb1ndA072SzjW+mD1v2N3KByW 8W8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fuuzM7bX; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u26si2101786edo.164.2021.01.07.01.11.17; Thu, 07 Jan 2021 01:11:40 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fuuzM7bX; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726890AbhAGJJb (ORCPT + 99 others); Thu, 7 Jan 2021 04:09:31 -0500 Received: from mail.kernel.org ([198.145.29.99]:42728 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726366AbhAGJJa (ORCPT ); Thu, 7 Jan 2021 04:09:30 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 94D3C22CF8; Thu, 7 Jan 2021 09:08:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1610010529; bh=hT97XartlDHHyLDpDxHrJy2mQbx9clbET9d1rFFIMnU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=fuuzM7bXlJTmuYJcYr1oP1ARilEgGsLARTCFhVWMMcojccFClLi8TuPqErlVqDWGE HYj68efsVVsbwCs5baQYUSA2mylVbUkVcxUCAutz08UpSuaPQvm/GIj5cTte7EriAx FMA7OP74b1NVFQUAiVMPR+00jotp7Fg5SJv+sj0MLH7SCtr5oIBdcRJRJDIx1DPhiX D3EaHLRaRNwkuNTtLR19pRUFp33qONSRGd8sBhkqfM1+ESbIco00JjZ5SdYYGHTAQU b3aqT5y0OoHZOC+emOBHWxlc55w4ciFRrxpxkWwAMhx50zQ2SCN2m3ZXWjXHQgD+Ni t1cCNcYpxf3Mw== Received: by pali.im (Postfix) id 2F60E77B; Thu, 7 Jan 2021 10:08:47 +0100 (CET) Date: Thu, 7 Jan 2021 10:08:46 +0100 From: Pali =?utf-8?B?Um9ow6Fy?= To: Andrew Lunn Cc: Russell King - ARM Linux admin , "David S. Miller" , Jakub Kicinski , Thomas Schreiber , Heiner Kallweit , Marek =?utf-8?B?QmVow7pu?= , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/3] net: sfp: add workaround for Realtek RTL8672 and RTL9601C chips Message-ID: <20210107090846.rxi7yo7adxumjmi3@pali> References: <20201230154755.14746-1-pali@kernel.org> <20210106153749.6748-1-pali@kernel.org> <20210106153749.6748-2-pali@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thursday 07 January 2021 03:02:36 Andrew Lunn wrote: > > + /* hwmon interface needs to access 16bit registers in atomic way to > > + * guarantee coherency of the diagnostic monitoring data. If it is not > > + * possible to guarantee coherency because EEPROM is broken in such way > > + * that does not support atomic 16bit read operation then we have to > > + * skip registration of hwmon device. > > + */ > > + if (sfp->i2c_block_size < 2) { > > + dev_info(sfp->dev, "skipping hwmon device registration " > > + "due to broken EEPROM\n"); > > + dev_info(sfp->dev, "diagnostic EEPROM area cannot be read " > > + "atomically to guarantee data coherency\n"); > > + return; > > + } > > This solves hwmon. But we still return the broken data to ethtool -m. > I wonder if we should prevent that? Looks like that it is not too simple for now. And because we already export these data for these broken chips in current mainline kernel, I would propose to postpone fix for ethtool and let it for future patches. This patch series does not change (nor make it worse) behavior.