Received: by 2002:a05:7412:e79e:b0:f3:1519:9f41 with SMTP id o30csp54905rdd; Wed, 22 Nov 2023 09:13:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IFJxWcrFfenl3ewkImS+5REDsG9Eql0Qi7gH0vkqd3B2OgCMehNTC4/50WB6RrOD14Y4oiP X-Received: by 2002:a17:903:22d1:b0:1cf:6542:b4c8 with SMTP id y17-20020a17090322d100b001cf6542b4c8mr92036plg.21.1700673211574; Wed, 22 Nov 2023 09:13:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700673211; cv=none; d=google.com; s=arc-20160816; b=InCwhF94XLSUwybLTzYWLDXRBvsQcctSLpMkU4l5hOt86rlPFoKNv1i3R6xaaA0eHo HiST+Xyhcg0YPOJEvSkPoOwp5TevaWnpBrIyJXpPIJwaKBqczvLKMOoB3lnod59LX3Wf h/X5R1CmjqaZA4gHA0BluRpyBYMDh1ScxbOlbMU/afNlqB9kZn1s2gcY6wpevB1YJ9r7 asPedMcsHufpEOCRxQE6HT588hGTzxlXTIitK3xGIrmBWcg2MGN8dz/VL/k4fLVuimte Pb6/Q28YtbEebDjgNGNEwk5df9Keqovg5g2x+58MnD3vI5tnHNXN6l7W1TJbqpS+ksrz ZlBg== 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=kxp/djjLC0Lw510VoCfRhRGSsD7Q8L/T6M4GAU7G0KI=; fh=rbWtxkE8kExZFv2KcrtSC0yF0uarX5O6bFbQPIKO3cE=; b=0/td6cAa0FZwKaSScylMyq8KUuvXeDkBagkP5zMjp6F4kPUWiyCrXx53dePEDRbxhl +b21wHHhVdEbdvKG9B84KiMw8wkCpK0TCtPCX1hJ+Ki/tEstwm90+SVavGBmuR+J2ohp 6BNjNrXWduxLE+BNrhh6anb7/DA2OnIKFc8mVNqBup33Vh2IQj6a3Dea0zeQVak4g3/E kiYyiY1RYw8lOvDunutvzRJLjayEg62CC+WIMI16JH/+hojZOwpOI5l+jhvLWlwSX3n3 P0kxaS+f6ju3tuymJ2SXp6Z7s4f/8KiZ/MUiNRjpzq2W9gIFMFO1a6GOPdApjsxDBt57 f5jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=oMN6zoRj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id f14-20020a170902ce8e00b001cf652d74f2si6187134plg.515.2023.11.22.09.13.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 09:13:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=oMN6zoRj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 674A4809ADF9; Wed, 22 Nov 2023 09:12:08 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232077AbjKVRLn (ORCPT + 99 others); Wed, 22 Nov 2023 12:11:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229806AbjKVRLm (ORCPT ); Wed, 22 Nov 2023 12:11:42 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35B871B5; Wed, 22 Nov 2023 09:11:38 -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=kxp/djjLC0Lw510VoCfRhRGSsD7Q8L/T6M4GAU7G0KI=; b=oMN6zoRjxFSEdgndPqgumoztyZ FT0q49I6WX1MeJHViyYdKyK74chUDYr98xtin2diFhAtYR0FvNp62kHN5Wpe3YrYLeusmTecaKh61 59cPGWCNC9YIG5WlO+HgyeRgVqBNo4CWQeSIt6zIarTKpqsDoGk8iINd19zoAT7KEu4c=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1r5ql3-000tZx-6y; Wed, 22 Nov 2023 18:11:25 +0100 Date: Wed, 22 Nov 2023 18:11:25 +0100 From: Andrew Lunn To: =?iso-8859-1?Q?K=F6ry?= Maincent Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Jonathan Corbet , Luis Chamberlain , Russ Weight , Greg Kroah-Hartman , "Rafael J. Wysocki" , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thomas Petazzoni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH net-next 9/9] net: pse-pd: Add PD692x0 PSE controller driver Message-ID: References: <20231116-feature_poe-v1-0-be48044bf249@bootlin.com> <20231116-feature_poe-v1-9-be48044bf249@bootlin.com> <45694d77-bcf8-4377-9aa0-046796de8d74@lunn.ch> <20231122174828.7625d7f4@kmaincent-XPS-13-7390> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231122174828.7625d7f4@kmaincent-XPS-13-7390> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Wed, 22 Nov 2023 09:12:08 -0800 (PST) > > Is the firmware in Motorola SREC format? I thought the kernel had a > > helper for that, but a quick search did not find it. So maybe i'm > > remembering wrongly. But it seems silly for every driver to implement > > an SREC parser. > > Oh, I didn't know this format. Its often used in small deeply embedded systems. Microcontrollers, rather than something which can run Linux. > The firmware seems indeed to match this format > specification. > I found two reference of this Firmware format in the kernel: > https://elixir.bootlin.com/linux/v6.5.7/source/sound/soc/codecs/zl38060.c#L178 > https://elixir.bootlin.com/linux/v6.5.7/source/drivers/staging/wlan-ng/prism2fw.c Ah, all inside a header file. Probably why i missed it. But ihex is not SREC. ihex came from Intel. SREC from Motorola. So i would follow the basic flow in include/linux/ihex.h, add an include/linux/srec.h but adapt it for SREC. Andrew