Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp83787ybz; Tue, 21 Apr 2020 05:13:03 -0700 (PDT) X-Google-Smtp-Source: APiQypK4KuQt6ZMTYAn2lwATnMr/4xu1/k7Kx4isgUwYWTYaBwNc3XuAzP2KtlXapQF/xRg1p0GS X-Received: by 2002:a17:906:31d7:: with SMTP id f23mr20628867ejf.118.1587471182998; Tue, 21 Apr 2020 05:13:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587471182; cv=none; d=google.com; s=arc-20160816; b=zzWSCFS3WO4JM23Qu7ggSIVn1q4in6YPjjEgwe7g1HFKMjuXvSssIB15gng0cD4ljt Bz1TmibJoFShpKu3DDV6jAwtkvRTKGk92a9mIVV4SdyDjsYG1TkgDMo8GpsKjfM6lOGZ fc0YRPkmpZgvU1ar/xynMY39cElOdgHQzywwFM+RLcLH2ZgPmUfemeKIHrWZwDU1dRPI LBELuBarL1/y8rm5k084dmde4v9kve+9W1iDbhkrDKNnXhzdd8yRdwpa7Yxru+y9LZ7b ZaBFjwsH/X09pNwmEOonzV5klp0Ll5FWJxg/vH4XAI+pJMeuyXBb2LxHND27mecpZ2oN RXqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:ironport-sdr :dkim-signature; bh=e5l7Ey7eBk6W1PjZ+8XYrNk38uNUci4BU1Rlr0SxkAU=; b=a5jq0FJr3k9vokqY9ZWTH3KBuI3fL7DEFB4z2Cfhx3wpgCFDUPnZz9NUIri387T1DC kGzDH1szC+GQnwYISnklKceA6pmlnj8Eoj1Z+RXZl6XAJBy1Q7w6F6FeFOBBaGOd+qUQ UJO0GxfnBE4fB5QjPKmZ+1mdIYNM1rFf2wz73OEsEc6+5Q6MdeO5G+vrh0wfFcEeh4Vu oZoXr/aoYQtTgoOJur/7wpsHcaot8jj+HrPz8uNEMakxNafcqPNxUWdavj8uEe94l0Dk uHjBkEaILBZx9k+yuZoP+qqsYneZb+L61+161U5IsOoXXwdEJOdA9A+MQFzYdF8lJBqz 3GoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@axis.com header.s=axis-central1 header.b=PDAIgt2i; 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=axis.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n15si1525063ejk.225.2020.04.21.05.12.40; Tue, 21 Apr 2020 05:13:02 -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; dkim=pass (test mode) header.i=@axis.com header.s=axis-central1 header.b=PDAIgt2i; 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=axis.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728771AbgDUMK4 (ORCPT + 99 others); Tue, 21 Apr 2020 08:10:56 -0400 Received: from smtp2.axis.com ([195.60.68.18]:57792 "EHLO smtp2.axis.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728677AbgDUMK4 (ORCPT ); Tue, 21 Apr 2020 08:10:56 -0400 X-Greylist: delayed 432 seconds by postgrey-1.27 at vger.kernel.org; Tue, 21 Apr 2020 08:10:54 EDT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; l=1056; q=dns/txt; s=axis-central1; t=1587471054; x=1619007054; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=e5l7Ey7eBk6W1PjZ+8XYrNk38uNUci4BU1Rlr0SxkAU=; b=PDAIgt2iNuzm1dBV1HwBpgbinmHHij+br805kbW5aQuCacjaaIuIRtki 9s13zOx/WcqKrP/pE7Eb+tZ1CHjtT9yy1LgrrvsYZJwfLkFtg0R2DJl0k E9cfma5NV1/MsmiJkCVyZWDbDxG6sMpcSejdFW7oZSTf8Mbk3nrPo8f82 Nqswau/s3H1w0x+A5b/UP6MC/PYdkVP9VYeQiM5dRNC/trV5L1UbaanBt 13+4zczOc0JDM3lgL89sRBguhaDNW8f18T4FjJN17rFZk0WQK6FZPHfZV TZjwweUo9TFS/9XZKd1i5VPMDPUanmlC7oPkajQNDdMWghZo0sm6gAg3r A==; IronPort-SDR: slkoKAD4j0YkY2zI+xu9W07GCchlGtfS7tGbFv/xAo8lxJWdBLtassZJcREGjd8nzt58hAXoxF 2iLU1UWZSP7S8sbzH2A8LL4LnlIXEdcvjdKfbELCkpiWmz5WjY/uiDC2TQ5jL+FQdDKkJhX/wc ZZln1Lc2AMIg3UBGgLYwUphqWUibnOiwp3qUyxiLMpB5wZ6e2JEWJLcx7QR5aYOtsOuixVK+TD mYikWO76OVe3Oi3ysdUDaDTcjLMqhU9KmpM5CuEVpYZ/tQAOqtj97W5LpnvGc5asGhXHFpZStX 7x8= X-IronPort-AV: E=Sophos;i="5.72,410,1580770800"; d="scan'208";a="7641338" Subject: Re: [PATCH 1/2] i2c: slave-eeprom: initialize empty eeprom properly To: Wolfram Sang , Patrick Williams CC: =?UTF-8?B?QmrDtnJuIEFyZMO2?= , , References: <20191001164009.21610-1-alpawi@amazon.com> <150599be-9125-4ab9-e2a6-e792b41910e6@axis.com> <20200420164349.GD3721@ninjato> <20200420203146.GC95151@heinlein.lan.stwcx.xyz> <20200420205325.GA1693@ninjato> From: Bjorn Ardo Message-ID: Date: Tue, 21 Apr 2020 14:03:41 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <20200420205325.GA1693@ninjato> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [10.0.5.60] X-ClientProxiedBy: XBOX03.axis.com (10.0.5.17) To XBOX02.axis.com (10.0.5.16) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/20/20 10:53 PM, Wolfram Sang wrote: > On Mon, Apr 20, 2020 at 03:31:46PM -0500, Patrick Williams wrote: >> On Mon, Apr 20, 2020 at 06:43:49PM +0200, Wolfram Sang wrote: >>> On Wed, Oct 02, 2019 at 08:20:53AM +0200, Bjorn Ardo wrote: >>>> Hi, >>>> >>>> >>>> I sent in another patch earlier that added support for specifying a file in >>>> devicetree to initilize the eeprom from, corresponding to the case of >>>> pre-flashed eeprom. Maybe these two patches should be merged so this >>>> initialization is only done if no file is specified? >>> Yes, I agree. >>> >> It looks like Bjorn's referenced patches are still unmerged also? > Yes, it might be easiest if he merges your patch (with attribution) into > the else branch of his fw-load patch. > OK, so to summarize, I should update my patch to use device_property_read_string() instead and also init the memory to 0XFF if no file is present. And change name of the function to i2c_slave_init_eeprom_data. I will look into that and let you know once I'm done. /BA