Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp716154pxu; Wed, 2 Dec 2020 01:14:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJx81Ovklsg5xnyvQ/zPHgjlqUVHtxnGS2RaiHs7lStuEadBiZgzzBd1u/Fzko5HPsvZze4G X-Received: by 2002:a17:906:2642:: with SMTP id i2mr1310362ejc.493.1606900442898; Wed, 02 Dec 2020 01:14:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606900442; cv=none; d=google.com; s=arc-20160816; b=IA8c47UVTyH5rI8JyL0xtZ/QlUkYaBVMMcQwkMMFGVRayK1DwvO4XeQ4C+Oo6e4RMo EmnVAbePK/PmQrermjgkPNEWuwbN+oMZRMslmoET0B8p9ueJnKaUiM2ps2/6d8kCfoz1 rrzqaBgHkn467PZeukLFhGJHNCcEF7TBqZcazi9jqxmRUM4xZ9wdSM8pz0L9uLIgtWdr CPDr4TqX2mvATT+Qu+iyk/XSaP5825bCosI5rSnydi5MoHHWpm47iigh0f25NmW4s7My m854yEEG0PJwFEe/MhvVK6GBj1/RzApTIWA47Bra/b3fLq4n+BstNLyXZOri30J3tcgE zANw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=jHXxAEFihpGexQosJgOwtA1rTxwRBPimbOCJs6PdyiQ=; b=IrFYU5UMv8KQ100ffVFzEIrAGcCQs+IoEfkhEFD9cRMpxHLb/wud7WYcpBBqn4jYsc +5seQKErEMqXQyM40eYbxZlA5ZXctFi5Wu/Q7B5oRl3QjonP1/0H8DOr92s3e1dKQTTS gy1HX3KIZh1vJ90mLLvZJr3WRuJxy9lK4X0fsT6kieDgtM3WoE7rEbtmcBHhKPyx88dJ sRV6Bp5xcR4ahUzmg/ZoGQviYAVxSxr7yxxw7qY//m4zt7tekkhPcfhpQdkwFY5bvnen ualL10JQxdFC6CIVrvLaAf0KNz+3aYewZ/X4Q0zz6vP8tFcJq9C+4EcjMlTiCM1QM/Pz kcbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@0x0f.com header.s=google header.b=Y5QtHYdk; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v21si500455ejh.106.2020.12.02.01.13.39; Wed, 02 Dec 2020 01:14:02 -0800 (PST) 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 header.i=@0x0f.com header.s=google header.b=Y5QtHYdk; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387961AbgLBJLm (ORCPT + 99 others); Wed, 2 Dec 2020 04:11:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387891AbgLBJLl (ORCPT ); Wed, 2 Dec 2020 04:11:41 -0500 Received: from mail-qv1-xf43.google.com (mail-qv1-xf43.google.com [IPv6:2607:f8b0:4864:20::f43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1DE02C0613CF for ; Wed, 2 Dec 2020 01:10:55 -0800 (PST) Received: by mail-qv1-xf43.google.com with SMTP id ek7so366138qvb.6 for ; Wed, 02 Dec 2020 01:10:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=0x0f.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=jHXxAEFihpGexQosJgOwtA1rTxwRBPimbOCJs6PdyiQ=; b=Y5QtHYdkrX6aP/Zfes2Iz6RXNnojW27vyX/5CgTqb+ITygoCCJ2dfDbg2zQfOXAiic PF4gIiC7/Pfg7hZ/9b5KyW8cmfjNRwejA5zB5Pca6v0+vP80S/2MNkkd29UrKFoqUPwY EGUNWFX4S8E1fm9eVVgvgwraAIP7bfzNE460M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=jHXxAEFihpGexQosJgOwtA1rTxwRBPimbOCJs6PdyiQ=; b=B7+WUnxfuuP81SO3X/I3pbE/WKvYQD8A1Z5XfRwLS5BxUXSEgNmkENzk4AEDk9wZYE SNLJa8HVTex/5os5hAFih5JaDa4jY0Ji8dDT7bCcwpca9vmHo2PWrfsPRKywBWuTxEt5 iEjUuO6/TZa4Dn7sjGl9a5UUR6hw2V235oiXr+MoPZLgJ3NdZBJBUANRFcN+9C9jXLvo 5GvN/qQbR8/bvy3qkBx9WNUPlVK5zP6SWoa39KBHMunQCayWhCT6j0XparP5jHtia7Tp BlHIgr3NoDKyakZQSMR1y2GBVWWJDqm8e3Du+b6bfD6YVsISX/3Z5VdjJFDEOen9hSIk wrZQ== X-Gm-Message-State: AOAM533EL1SRIrDhyA3ZWdVBwzaCMlm/qm7DhrFu8L18AcxUkAFrFPap DifIw2RACvJ+8D1EhNJDe6EvZvgVv90YPAT62/95hA== X-Received: by 2002:a0c:8e47:: with SMTP id w7mr1540726qvb.55.1606900254283; Wed, 02 Dec 2020 01:10:54 -0800 (PST) MIME-Version: 1.0 References: <20201201134330.3037007-1-daniel@0x0f.com> <20201201134330.3037007-11-daniel@0x0f.com> <20201201150425.GC1551@shell.armlinux.org.uk> In-Reply-To: <20201201150425.GC1551@shell.armlinux.org.uk> From: Daniel Palmer Date: Wed, 2 Dec 2020 18:10:43 +0900 Message-ID: Subject: Re: [PATCH v2 10/10] ARM: mstar: SMP support To: Russell King - ARM Linux admin Cc: DTML , SoC Team , linux-arm-kernel , Linux Kernel Mailing List , olof@lixom.net, Arnd Bergmann , Rob Herring , Willy Tarreau Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Russell, On Wed, 2 Dec 2020 at 00:04, Russell King - ARM Linux admin wrote: > > On Tue, Dec 01, 2020 at 10:43:30PM +0900, Daniel Palmer wrote: > > + np = of_find_compatible_node(NULL, NULL, "mstar,smpctrl"); > > + smpctrl = of_iomap(np, 0); > > + > > + if (!smpctrl) > > + return -ENODEV; > > Wouldn't -ENOMEM be more appropriate here? There seems to be examples of both -ENOMEM and -ENODEV in other ARM platforms. arch/arm/mach-aspeed/platsmp.c uses -ENODEV for example. I went with -ENODEV there as the source of the error is most likely the node not being in the device tree. I didn't check the result of of_find_compatible_node() because for the memory barrier code in the same file I was told it wasn't necessary. Thanks, Daniel