Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp1062112rdb; Wed, 1 Nov 2023 10:10:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGFehbRluWofPQ2yhTu2Ulx4rIuy+TKmijtqZsPS1K/u0/MH9QDwmWZhRBLCyThB4FgGhqj X-Received: by 2002:a05:6a21:7747:b0:180:f227:57f3 with SMTP id bc7-20020a056a21774700b00180f22757f3mr5588014pzc.60.1698858615236; Wed, 01 Nov 2023 10:10:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698858615; cv=none; d=google.com; s=arc-20160816; b=s1tA26Zwmi32aEjqLq089SnMLCrbCZXgaI0gG9jZY3RQN8oIonY4fqTGa99G7P2wlP cCYw0dbn42FwX9HoQzIVwJsDEWbO/pDjwqAobzuoG8MQIpz43kiMHQ9pcI94whr/ZNQW 4vTC++0oj/112dhxMlDqFwL9KjyN3b7Ob4ZfrDJNPrCwTgA0C5VlT5EIXoENKLQr2XTB V41AgRDQcOKxuYEkTAQlz7eDkenySEk6ZJhiy9PTnxLYPe4f4OKKLCHARlgZzVfsODPO 2GHh7oS+GVgyNE9rhPnITujm1msGhXukelPpbDcnhPC4/C3kzRfjfuB9RU03k3orAUzF luiQ== 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:subject:cc:to:from:date:message-id:dkim-signature; bh=NZPlhUOCK7okoUQsTTKK0IjnNH7irIK2p/2Bnn8UEv8=; fh=cnh4fXypv2AncEyi1cINudmQNXmxqZjviosVcBJ47dg=; b=zUURe+3o50NC3iR+7hB6PY0anljNn8uq61IjkD9tChOSIiqvrSEEKVNXh1+GSmCMJu d4f/sUf0ryk4ASAKxcDmS951MpFNx4e6HojbcPaWJkzhpGkbsk16Js0/HPOEJ0j85WBG xGtL1Iivf5S0/c21ENQbvguuy/suOBn6NuwZSh6F4Y0zym/mOlTocx/hZ0VjKKKDd8u0 jXXmlkepGmbrrVOcbI0EwZvB5GllQgDfhAO0WaiIK/GyGHR0jxZ216mnP5OWwXbgPh1B 1Fwiv3RpNGdULxEHVPQQxDOQ/yIgIZ6r0gTkGKshrQ+h0hwQIDgK2b88WdgrkXykOQwe +uCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=BYieO0ay; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id e25-20020a62aa19000000b006c2d5a1af75si1860197pff.278.2023.11.01.10.09.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Nov 2023 10:10:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=BYieO0ay; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id C206B80475CC; Wed, 1 Nov 2023 10:09:38 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344598AbjKARJT (ORCPT + 99 others); Wed, 1 Nov 2023 13:09:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344604AbjKARJS (ORCPT ); Wed, 1 Nov 2023 13:09:18 -0400 Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A0FAFD; Wed, 1 Nov 2023 10:09:16 -0700 (PDT) Received: by mail-wr1-x42d.google.com with SMTP id ffacd0b85a97d-32dbbf3c782so655123f8f.1; Wed, 01 Nov 2023 10:09:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698858555; x=1699463355; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:subject:cc :to:from:date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=NZPlhUOCK7okoUQsTTKK0IjnNH7irIK2p/2Bnn8UEv8=; b=BYieO0ayvPpQK79RMTUl5/irFmvuDn5+X7nNP77HukgiiMMa2HvhqEWw0SLrpCZ2eU CKbH1jUsytrRG1V1WGf95aoRvRVm4ck9XSBl3CEsc0SmZ/IvCULrevlxWRY7zmYtY4Q4 i8lZyzNhJb5VECMKZ1HuP2EQkz9zOByd1SAytGebyZxMBToFa5bXWA6uoQetWYZYiCro DjwxY6pMV56MnYtJiOS0qKtrDoxdoU4QsaMbUFpSG9eTDs8TRDSBRrZUJqtam9Hu2rE+ Sbo3HWKfpcOwsZGLrA8eVG7AV99VbTkt5MCvLJmZ9+T8aobHZ1NTXAjyUmfJKQGoVcsd 4V8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698858555; x=1699463355; h=in-reply-to:content-disposition:mime-version:references:subject:cc :to:from:date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=NZPlhUOCK7okoUQsTTKK0IjnNH7irIK2p/2Bnn8UEv8=; b=nfhuxYV00I9weWEuGA1Cs+1hQyRkbzuzt5VaAJebX+r1PLoK2+IiDpDTS8YeLPfa1A Ldeh/jEU6lKiTp2NqF2Kl/FC2agp+qqk1+HKj84Fd8uxSEkfGqriVoXPlJrtxiqreGzf JSiKAIta/LIm5W4VRlzoCscPQJ52PwFah+746d4tCs/kATNG47xeZVb1G+3T+OigMFbZ ZPHkXIJhI/KLLZtmMu5oj+8tFUs+jmI3B8ecdLAevWk5Lv7TzgWz+iIQ1jMCh+ZVaniB UWcMcF65vZ1ubYvbImKom5IsFB86sMyXxJ+aQstzYWhdkoGujvdu27xmdp+oIrQcqf56 YtVw== X-Gm-Message-State: AOJu0YxdZJQhreMnm3enA73JGJonEdzm9iBMmKg+z07fpYpY5eaCrwMI 0FqB5OcC1eWroE330icXkGc= X-Received: by 2002:a05:6000:188f:b0:32f:75d2:bdba with SMTP id a15-20020a056000188f00b0032f75d2bdbamr3921739wri.6.1698858554682; Wed, 01 Nov 2023 10:09:14 -0700 (PDT) Received: from Ansuel-xps. (93-34-89-13.ip49.fastwebnet.it. [93.34.89.13]) by smtp.gmail.com with ESMTPSA id u16-20020a05600c19d000b0040644e699a0sm318436wmq.45.2023.11.01.10.08.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Nov 2023 10:08:57 -0700 (PDT) Message-ID: <65428629.050a0220.b2431.1edc@mx.google.com> X-Google-Original-Message-ID: Date: Wed, 1 Nov 2023 18:08:25 +0100 From: Christian Marangi To: Andrew Lunn Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiner Kallweit , Russell King , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Robert Marko Subject: Re: [net-next PATCH v2 1/2] net: phy: aquantia: add firmware load support References: <20231101123608.11157-1-ansuelsmth@gmail.com> <4b536ad3-2112-4f28-90e4-586b5745be20@lunn.ch> <65427400.5d0a0220.41c58.0ded@mx.google.com> <34a0b76e-aa0e-4148-ba01-c3b4608f17f7@lunn.ch> <65427fd4.df0a0220.28d26.1955@mx.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, 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 groat.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 (groat.vger.email [0.0.0.0]); Wed, 01 Nov 2023 10:09:39 -0700 (PDT) On Wed, Nov 01, 2023 at 05:54:50PM +0100, Andrew Lunn wrote: > > There are plenty of firmware around so it can be checked by from what I > > have, it looks like they are word aligned... Ok I will use the > > get_unaligned and add a comment saying that we assume the iram and dram > > section are always word aligned. > > We probably want to know if there is firmware out there which is not > word aligned. So i would probably do phydev_err() and return -EINVAL. > Do we have API to check this? Or I think I should just check the iram and dram size and see if iram_size % sizeof(u32) is zero and return error otherwise. -- Ansuel