From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Tue, 23 Sep 2025 13:51:17 +0200 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1v11YD-000BIM-2H for lore@lore.pengutronix.de; Tue, 23 Sep 2025 13:51:17 +0200 Received: from bombadil.infradead.org ([2607:7c80:54:3::133]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1v11YD-0006Yq-6i for lore@pengutronix.de; Tue, 23 Sep 2025 13:51:17 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=PIHT2cHB6ShcSkK7PfDH6Q/+38V1k5kfWCegTTb/d0w=; b=c/SGO2ZI3wezMqNUh0ySn7TrzW DAFyAqtcxH10AiFUsMm0ntY+Ke/918PiROOSAsAq4mJN3yLzYId+fk47N1iVHo8YiVsvjAGTl7iHz g7zRNKsfpXVHmb5okcLVLxZAT8j5LWosnqxrmFqM38PZO/93h4ESgOgqyJgTYYVHhUUMAaHfKTWJl nsQSeW9WCDZ5wkhpu98DWHUFHPxCJmpLdEjHA9XbAocDeq8+2GXm1pqRwPCYjcjZMXKwmGEN/fwiE r0PoE9fQQI2lJ04H/BSk/NMnz5M4e3POyRgI9qbTHfmAliR8VMX5dhghZR5mHKoxU51+whcRI/S6s 8cW+1TYw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1v11Xc-0000000DF4I-1HfF; Tue, 23 Sep 2025 11:50:40 +0000 Received: from cczrelay01.in2p3.fr ([134.158.66.141]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1v11XZ-0000000DF3j-1PfU for barebox@lists.infradead.org; Tue, 23 Sep 2025 11:50:39 +0000 Received: from [134.158.124.135] (clrelecpo09w.in2p3.fr [134.158.124.135]) (authenticated bits=0) by cczrelay01.in2p3.fr (8.14.4/8.14.4) with ESMTP id 58NBoXJa012332 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NO); Tue, 23 Sep 2025 13:50:33 +0200 Message-ID: <6099cd02-f779-4cbd-af0c-daab487bb8ef@clermont.in2p3.fr> Date: Tue, 23 Sep 2025 13:50:33 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: Sascha Hauer Cc: BAREBOX References: <20250917-boards-enclustra-sa2-add-support-v1-0-2de8f69107a1@clermont.in2p3.fr> <20250917-boards-enclustra-sa2-add-support-v1-6-2de8f69107a1@clermont.in2p3.fr> <00327370-bbd5-4e70-863a-c7cb5a801bf4@clermont.in2p3.fr> <96208dcc-fbd7-478c-b8dc-cad04e04b169@clermont.in2p3.fr> From: David Picard Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250923_045037_665302_202142E9 X-CRM114-Status: UNSURE ( 9.55 ) X-CRM114-Notice: Please train this message. X-BeenThere: barebox@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "barebox" X-SA-Exim-Connect-IP: 2607:7c80:54:3::133 X-SA-Exim-Mail-From: barebox-bounces+lore=pengutronix.de@lists.infradead.org X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.whiteo.stw.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-4.2 required=4.0 tests=AWL,BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.2 Subject: Re: [PATCH 06/11] boards: enclustra-sa2: read MAC address from EEPROM X-SA-Exim-Version: 4.2.1 (built Wed, 08 May 2019 21:11:16 +0000) X-SA-Exim-Scanned: Yes (on metis.whiteo.stw.pengutronix.de) It works! https://paste.debian.net/1397791/ However, I don't see how I can use the driver to read the MAC address. Could you give me some hints? David Le 23/09/2025 à 11:40, Sascha Hauer a écrit : > On Tue, Sep 23, 2025 at 11:07:39AM +0200, David Picard wrote: >> Hi, >> >> The driver crashes and causes immediate reset. >> >> I could track it as far as this line: >> https://git.pengutronix.de/cgit/barebox/tree/drivers/nvmem/core.c#n473 >> >> Boot log and some more details: https://paste.debian.net/1397772/ > Seems *i2c_priv is not zeroed. Could you replace the devm_kmalloc() in > atmel_i2c_probe() with devm_kzalloc()? > > Sascha >