Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp3870225ybh; Tue, 17 Mar 2020 08:04:56 -0700 (PDT) X-Google-Smtp-Source: ADFU+vugQe9/sleKNoRfkBadQ3/Yy98cv/PHw9hrC2wyZ10sva4ORCUyfwEL22VmyS0jPKRsrSx+ X-Received: by 2002:a05:6830:451:: with SMTP id d17mr3966922otc.184.1584457496487; Tue, 17 Mar 2020 08:04:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584457496; cv=none; d=google.com; s=arc-20160816; b=LQutRGCpvIQ5W5I+1dCkrpQVWKXxcKulXv0kzRbHErHSiyBTuNpmHMWJZ7mYpnxYpP OgH1cScnerHepWSeVlaagIDXHYBBeYUQas2ORB6Sp15O81NO0dOxmWh3d6ywlqXBkbqo q0agn0voBwvDUtu77goEACymaRKmaCoFYdk05VM5BSn0p/kyRvHonQlfpSDDuRkj6Jp0 Xvd7cHysI9CFl/1PYndVIYnDZiIFn5FLZ8cii7kDro/0IpQzzubPgz9W/WDafodPjFuk 6VJ/qCAxwwmQHIaWOnvUqJnAeizzg4vD2oJLTSiGzSWm2iRHLncfQW6HfPB72Wm0w2/d 8cHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=6PI3ushT5d5D3ignzUVoElrbR8bOT9AX7FgwoWdzQiY=; b=LR1nZhqFB3ECRlLfMjWH0QMC6FNfwm2HwUsYIch/keDTO0cQQO2YeCQMW3loJBJuGO QfJc9KhFs3x6l2xu1qB7JCdv9LEy0/VwlmKE65iWndp/XFrVUPG8Fx6KcMeHm1KLKfHx QkPlNddhDsf9kyPkUnAuHwxJ2aZiTktPXQ3fsaC08vioRAAXeqsMQ0xzsVpi4ezKWi5t 9kesl2piGYmYZxaHAMlRYLQrQGc1RSmrlLjtYt1skdKaEoYUBfnC8F4ENDUi/VslMjLe XZqhDm/gAh8Q07GNyEgKJBMqiBGkwjoxWDse1p7zjKLQPPw5bU3GJXztH3VN9+BgqgNX i2Zw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t25si1816522ott.228.2020.03.17.08.04.36; Tue, 17 Mar 2020 08:04:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726781AbgCQPBs (ORCPT + 99 others); Tue, 17 Mar 2020 11:01:48 -0400 Received: from sauhun.de ([88.99.104.3]:35282 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726388AbgCQPBs (ORCPT ); Tue, 17 Mar 2020 11:01:48 -0400 Received: from localhost (p54B330FD.dip0.t-ipconnect.de [84.179.48.253]) by pokefinder.org (Postfix) with ESMTPSA id AA6B82C1E8B; Tue, 17 Mar 2020 16:01:45 +0100 (CET) Date: Tue, 17 Mar 2020 16:01:42 +0100 From: Wolfram Sang To: Bartosz Golaszewski Cc: Jean Delvare , LKML , Linux I2C , Bartosz Golaszewski , Arnd Bergmann , Greg Kroah-Hartman Subject: Re: VAIO EEPROM support in at24 Message-ID: <20200317150142.GA1134@ninjato> References: <20200317151409.7940926c@endymion> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ew6BAiZeqk4r7MaW" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --ew6BAiZeqk4r7MaW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline > And we could introduce a new macro called AT24_CHIP_DATA_MASKED that > would automacially set the AT24_FLAG_MASKED_RANGE flag and take > another argument that would contain the address and size of the masked > register range (we'd put it into the "masked" resource)? I am all for generic solutions. One thing to consider here is that we need a generic way to detect the various types. I guess it will always(?) be decided on some memory locations having specific values? --ew6BAiZeqk4r7MaW Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAl5w5lIACgkQFA3kzBSg KbYekA/+L7CJLLps1WfhgGjOnA/K+jrFcxXmxRwf7JcXxM/1KTNdrmIKPgyGNv0Q AjgjVmofhpu436E0cnYTJkQLP82tqbDzlIe5JEUtp+YheXfLsOVqZpi603ZDU6Iv d8dD3JenhnJkS+1NLLY8zH4wJwYfily3GmbnF6Wnf5DczOuJHeLZBPadF/33t2wJ 6HxdcVWA/UDoqTPk0jKJCo7DNWOCh65mRRyX1Czt//r49jOGiHBbSQJrMeCzOHWI T79PcDm8lh7+gs34Z+O7oS9rDQPwjsyGvxV8Grp2l6cJKzF5L0YW3zTcv151gw/O PBn9MsPIvQ8XYzZKLKByCd/3rGl4btR16oqVl1vVaIxeDFas5JzuCl+3NzCFTfBY IkqBM9M1nGXmkW6plaHPHttgQpbc+kmduIV74/FTDi+kAw6g3IH+jfTC1R8k1BPV DqU8oiPLAMtRXjiDq/jLo0EZquA7Tck3HdgfkjjAEG7KrgZlf6QqaSETCtD/ZzMb EP+S0FyvTW3/94/vxdCu0Df3pbMFJYPAHGZTA/XZGh5OlytzIqwYuET4VLFxpR5R Kmaz7nABZObCeoQom2to6r8MRZwXhraP3eGK1yf8DeirIKHiwAxw5oMGxI2mfKMr xqUEmjwYBpSxiWScFheTEM1W4qjaFcHuqeK1buPOGtnnu7omMhE= =N89D -----END PGP SIGNATURE----- --ew6BAiZeqk4r7MaW--