Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5782650rwb; Mon, 14 Nov 2022 09:20:44 -0800 (PST) X-Google-Smtp-Source: AA0mqf6bQC6y4llnKMDl3PQrcJmLIx6Xtb8wseVbSPXmUplWn1UkmKMM8hxXgJl1grlR1D6prCqS X-Received: by 2002:a17:90b:1289:b0:216:bd33:b287 with SMTP id fw9-20020a17090b128900b00216bd33b287mr14876070pjb.26.1668446444307; Mon, 14 Nov 2022 09:20:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668446444; cv=none; d=google.com; s=arc-20160816; b=lCK5pw076SB4cEWTNncGtZTPCMBFdVdeL/Q5FbStLCGA6mpXR1Gmn+IwaQ8ZeFyQUs MAz1yf8Po77PjIoYcc9U+IrLdLdmaWoiU6Gw+MqeByJ4V2neBckw4rdgdhIV8n/ZqRJb Sn0vFTX/Bv8k5qhSTqJ11l5w2jVIvyIGbTLN65mN4/yR/q47WxICYTPqKDB8vc2AztdS FLwE6vZ75LrCi+zt07QFwpM76o2YfLaL7pYT58w5XWcQeuRZ0ZIklIuMQt/5Z4jNmWpF jsVHY9sTglekUkuixR8fFXMgk4TSyaOOmzCHTLt8RfZtQfOKTyrA4i5UC2ZHM0sgsozg Eyzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=XroYG9yTOXYHb7bcF/mMm5A/bLzXHHg/N2Mkhl+FaJo=; b=SJLpI40zA+oPGix+8zHADIXjAPFfXZTLIk1l1E/57jr9Kovo5OsrWCasdwYYTTWnM7 hMLuUmYjQriFiyg0SERQ8/29sYgw0fxFOiMLn6F7OnHxNkwcrR6B8QwyiUS3xHSq5ihQ ICudVcLEBnhBY1FU6zgOxhez/efzEJAeF9KkD1pDgAKCe6pyd+aDaAD3LZ4xYcyTQ90h IPn6l2MIM4tIYfFRPQ+J0SO1i16ShqvGw5M8BezoziUY6GOxidQqWNu/l8se0GpO5JN3 Bd8aR5mcXKbO0vn8DmYYcP2uBPQ1dCKQeAqpw2xr9tjnuK1CmyIQ6ZzVFK1awRYKCc7N lATw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=lhZTc7UG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z17-20020a170903019100b00188d23093e8si359020plg.319.2022.11.14.09.20.32; Mon, 14 Nov 2022 09:20:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=lhZTc7UG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238101AbiKNRJA (ORCPT + 88 others); Mon, 14 Nov 2022 12:09:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238094AbiKNRI7 (ORCPT ); Mon, 14 Nov 2022 12:08:59 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6ADA2B1D9; Mon, 14 Nov 2022 09:08:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=XroYG9yTOXYHb7bcF/mMm5A/bLzXHHg/N2Mkhl+FaJo=; b=lhZTc7UGYrOr/VUoAbMuT+9ZvS eP6B99gz9fslJu6u2CSDNhQwZoKfEVINcVf+909s0CsIi6OQpW4Ua7D5wyoxcWocRomsC5FAQgVcO NUuNT+ADjPWhRD3nrLb1iQUZb4D1lcRPWjbM1ktX7sSUhP+ArIv4JPa6TTnXcAlXeZms=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1oucwp-002Mbo-Fm; Mon, 14 Nov 2022 18:08:39 +0100 Date: Mon, 14 Nov 2022 18:08:39 +0100 From: Andrew Lunn To: Vincent MAILHOL Cc: Marc Kleine-Budde , linux-can@vger.kernel.org, Greg Kroah-Hartman , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-usb@vger.kernel.org Subject: Re: [PATCH v3 0/3] can: etas_es58x: report firmware, bootloader and hardware version Message-ID: References: <20221104073659.414147-1-mailhol.vincent@wanadoo.fr> <20221113040108.68249-1-mailhol.vincent@wanadoo.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Do you have any reference of how to dump the other registers? Have a look at drivers/net/dsa/mv88e6xxx/devlink.c, all the code with mv88e6xxx_region_. This ethernet switch chip has multiple banks of registers, one per port of the switch, and two global. It also has a few other tables which can be interesting to dump in their raw format. There is also a user space tool to pritty print them. Andrew