Received: by 10.192.165.148 with SMTP id m20csp3967532imm; Tue, 8 May 2018 00:07:56 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpDYUUFr5hByiLSITDX5McIErD+kgd1sUFfHbjzVp18Hr3gu4pmx3+rq0ScYN4h/Vf1YH/o X-Received: by 10.98.229.13 with SMTP id n13mr38949599pff.125.1525763276275; Tue, 08 May 2018 00:07:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525763276; cv=none; d=google.com; s=arc-20160816; b=O7Pkpo2xA7uIdZebmBaaBbLhaGdv95m1qcRFmGk0c8SIhc2L2EnwwyiIogw0lDLb6X tuoSK+S6K+35FwRA2SFKIV0H0/J5mSJCBbwL8EG6hpBc2oB79XX8nDc9fjB5ZeUMxvQ9 5uBP87rZ1OY1J8eDDoWH5tS9O12KmvOJn+Xm8KTGLKrrGTxDynaCa8nsM7qz1YQavqYA T5Q+LvqGlPTFftqvvLBOfyWMamc83rAJC8kRTWRemOTYuGLS/KYTQIgJsyf5uC20nIZI Sa0Mn/jsSFH7aLNEsZpCSpvJp7y6NDigO0PAWqJvDEMcEhSNbvWBLu1+HMkJgkaBY3SN X9IA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=uMobeMjclevp6TkvvKtvu1NzF98vTUcJXz7A7BRacLs=; b=IF3iK95TXsLbBRcyz46zTGGQ7GmJh/AxNE84zC3MjBz0zPffe63wuXccOMRNG7VLH1 Q8e8djZ84YUlLVwmyh3gZLTQLMqDmr2zFhHZivhfon43tb4MsnkFxJINrQOJvG+KJFpQ 1qT9P+3pIJVp2aN/a1Md91/WZ2I4OxHwCICCMNOgtY6CUs6JGspPTvwd0Li+DakGmwKX wwE/q26dKYqBxGc2+B/kMN+9AEchZwQfSuekWeZRVud+PS5ji+YT3QtHda3xTKXI78S5 hN5jDszwGPlMVdEidqdiwqYq7UgnGNt/GUGo4u9U1KAXH14HbyDwnOmFsX9cm/mrFr1z DrQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=k1CTcpuD; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f9-v6si19083661pge.639.2018.05.08.00.07.41; Tue, 08 May 2018 00:07:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=k1CTcpuD; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754348AbeEHHHa (ORCPT + 99 others); Tue, 8 May 2018 03:07:30 -0400 Received: from mail-vk0-f66.google.com ([209.85.213.66]:33233 "EHLO mail-vk0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753419AbeEHHH2 (ORCPT ); Tue, 8 May 2018 03:07:28 -0400 Received: by mail-vk0-f66.google.com with SMTP id q189-v6so19023950vkb.0 for ; Tue, 08 May 2018 00:07:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=uMobeMjclevp6TkvvKtvu1NzF98vTUcJXz7A7BRacLs=; b=k1CTcpuDfKvqPfokkAJ8Jf8b9Oti4G2EBQ10hv+KMjTAvYITT3AhB4Ur0kIT8T9hMZ k5d7R3e9SBDSrJH0yGRv9pS39voTG4TMUZv35HhlDTqB6wfTQ7bgHtWpgyKPrz6nUy0X m5lPsDsX2HFRnGkdsePQmhJQ+LFYi1UG1Xhjx8zCWhHT4a0r0Xk89it8ReR3YJ1NxTEz BbPTwRrM4585bCQKtdMjnpZKXkpBSVAsX0xp47To25/4R5bSwg2iUJhe5ItkWIcUlCK3 i1eMMiNzBFzfX38srXD1CorOlIz+gGN9wccP18MRnY7WngF2YXWUvHMvZdQRRsVrimQG WQWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=uMobeMjclevp6TkvvKtvu1NzF98vTUcJXz7A7BRacLs=; b=PZkkUupnIdhB43zM7UzpvHypcwEGteSREXf5DHv9rZqs/9ZA/DfzssFfMF/lIUO9PL opYU7mNQzKwGLGL2fmRiW2c1R75FYumSCCokOf2xmrNkbuFdrNoU/2VkF68hbLVJkFaZ sT8D1o5u6j+6ZRHXbkP23DAJWJoHIO1/odsEoLk393t8aU/jX84Ge2lxYsZsLFldiA6O 1uJWiW6ZakBavgBP2ERU/SefFl3Xpoe7EdixBFcuthnwtlO45dI+V8EkrHYpmvl8U7BU eHM4hBi+BklD89cZ2p8cmy+cNHUUbrOXIOc/9mYeJe9X/sWd6jnmM3MuwI9mES3K9Fz/ GeCQ== X-Gm-Message-State: ALQs6tAdJrjwhMv/CDWgL8yzCsh2yRdsy/V4jnShT38orD9OcpcgwvjX LLaDuQXdY6+xnsewHLv1/8gpzGMXycU7IQKVrAA= X-Received: by 2002:a1f:b508:: with SMTP id e8-v6mr10944962vkf.125.1525763247826; Tue, 08 May 2018 00:07:27 -0700 (PDT) MIME-Version: 1.0 Received: by 10.103.122.10 with HTTP; Tue, 8 May 2018 00:07:27 -0700 (PDT) In-Reply-To: <20180508070037.GA4792@kroah.com> References: <5aee5ed3.1c69fb81.19d98.ef06SMTPIN_ADDED_MISSING@mx.google.com> <20180506045530.GA5328@kroah.com> <20180506202018.GC8924@kroah.com> <20180508070037.GA4792@kroah.com> From: Geert Uytterhoeven Date: Tue, 8 May 2018 09:07:27 +0200 X-Google-Sender-Auth: -2CatyeO7HxG2gRH-aEFY9aL6kg Message-ID: Subject: Re: [PATCH] nubus: Unconditionally register bus type To: Greg Kroah-Hartman Cc: Michael Schmitz , Finn Thain , "Linux/m68k" , Linux Kernel Development Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Greg, On Tue, May 8, 2018 at 9:00 AM, Greg Kroah-Hartman wrote: > On Mon, May 07, 2018 at 09:51:12AM +1200, Michael Schmitz wrote: >> the BUG() was triggered by loading a Mac Nubus network card module on >> a multiplatform kernel running on an Amiga machine. Up to Finn's Nubus >> core rewrite (this February), we've seen no errors. Since then, Nubus >> drivers fail to register because the Nubus bus is only registered on >> Macs. >> >> Can't see link order involved here at all. > > The link order is totally involved here :) > > Link order determines the order in which init calls are run, so you need > to ensure that your bus code comes before any drivers that use that bus > code in link order. That way, at init time, your bus is created first, > preventing this type of error to happen. The issue here is not due to link ordering, but due to the bus not being registered on a system that doesn't have that particular bus. Akin to booting a kernel on an old PC without PCI, and loading a driver module for a PCI network card. I guess that doesn't crash (because no one has a PC without PCI anymore? ;-) Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds