Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2078796pxa; Fri, 7 Aug 2020 02:32:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwH7hLXFzBhk0f4GC1jXy4w1JT4x3OZ+5Wyk8RaWXW2AtcGwfje/LiEfqDs5fCLKIOGUZDm X-Received: by 2002:a17:906:7790:: with SMTP id s16mr8986743ejm.254.1596792763521; Fri, 07 Aug 2020 02:32:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596792763; cv=none; d=google.com; s=arc-20160816; b=zXHDsab5NpCM8aNEd5/P1K2y64g5gnw9aM+x/+qbMSr3sSh6h6VyqOdM8Grj3Prp6C 8AWsdWUMhU2LGZzMR6wXTfVfOvUGOVKADMnBiK4s3jFBHgfdtQALYqaPr78fRYcUgdf4 opXcbOEWdlUY1zEZ5W+EoAcYIg7bBOC9vDrJi3HIMxd9+Eo+iezAS7lrc22gwvaQPHJl g1V2FAh5J66h1tLA6prMqZciUV2al6lY3xoAiaKNVOyUNXPdxB69IwyXNBntchyXjJ3N vYIFcirKWZ2OJCzbZldgsWylOcmDGYzW64LyZiBpdRrEr7wo/f1RMuCfhpV9U+qkzOcx tEiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=HRBgzUo0iGkF+JaZsRoqZCbhmStDXPjkAAfCZKw8X4c=; b=KNeOKOoiFbeSn2SlT5iPDMbNZElcKMjVDYdw6OJL7DrnNPpef0vDz9u3grc22fp+Q0 XFRok7VbSHQV839t8dQiusua/chCsCu+ook42Ged4CelrYJ4tbPXC5INO/a0oBRXH2w8 Fvn+9W1Gq1PV2qhA2ZXtvLat16E0gD1dsSUg2dlcCVd6MUceVirnrlsuBMp6iyWmWsMt bj8b+ooOkNEsqp9zsX+l64/qjHKcQnsSmOkMxfn0Fz6dyaEMDjsqtqAcORSd4PQTVcEz zeF/ooOW6n6TirEXFcu5lnlkIpCgr9DuyM2//GDD8MxMe9ZBeLZkWleVB+989ZlasdJY S2VA== 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 rp21si4983014ejb.0.2020.08.07.02.32.19; Fri, 07 Aug 2020 02:32:43 -0700 (PDT) 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 S1727062AbgHGJbt (ORCPT + 99 others); Fri, 7 Aug 2020 05:31:49 -0400 Received: from mx2.suse.de ([195.135.220.15]:34548 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726511AbgHGJbt (ORCPT ); Fri, 7 Aug 2020 05:31:49 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 992C1AC55; Fri, 7 Aug 2020 09:32:05 +0000 (UTC) Date: Fri, 7 Aug 2020 11:31:46 +0200 From: Jean Delvare To: Bartosz Golaszewski Cc: LKML , Linux I2C , Bartosz Golaszewski , Arnd Bergmann , Greg Kroah-Hartman Subject: Re: VAIO EEPROM support in at24 Message-ID: <20200807113146.7557c18b@endymion> In-Reply-To: <20200805163655.6cfa6e17@endymion> References: <20200317151409.7940926c@endymion> <20200805163655.6cfa6e17@endymion> Organization: SUSE Linux X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; x86_64-suse-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 5 Aug 2020 16:36:55 +0200, Jean Delvare wrote: > 1* Do we actually need to use a struct resource? With the current > requirements, that looks overkill to me. We really only need the > start and end offsets of the masked area (or start and length). Or > do you plan to ever support multiple masked ranges, and > resource.child would be used to daisy-chain these ranges? Personally > I would wait until the need exists. Dang, turns out that the need already exists. I just found that the eeprom driver masks *2* areas of the Sony VAIO EEPROMs. I should know because I'm the one who made that change but that was 13 years ago and my memory doesn't go that far back. I'll think of a way to support that. Still not a big fan of daisy-chained resource structs though. Maybe a generic post-processing callback function would do... I'll give that a try. -- Jean Delvare SUSE L3 Support