From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8CCFFC10F29 for ; Tue, 17 Mar 2020 15:01:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 600512073E for ; Tue, 17 Mar 2020 15:01:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726803AbgCQPBs (ORCPT ); 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--