Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1764386imm; Sat, 9 Jun 2018 00:55:53 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKvG6n71sAPTK/ratwPMC/frheqFFfcUkuBqSuhXR7SchElyn+I2MWQtOq4qBhgmQrZnUUc X-Received: by 2002:a17:902:b494:: with SMTP id y20-v6mr9684997plr.136.1528530953160; Sat, 09 Jun 2018 00:55:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528530953; cv=none; d=google.com; s=arc-20160816; b=BzAHd4RxIMw4nTvJDoSP+bx7jCxKxpnfjDFZYIVL3unL5DdgopaV5Y7wELVlJBzWqf oJWQanZxQh1KFM6o1+0UplaG9tPPG9SNXCAVpa3SOYMSPItGC54YxTroqiNSx+hxKrMe RFCqdkNeKe1jHwgIClXhM/AAiUGuq5ImWqqpWaVx08X7xCPfDJn1s/GyuhSr6192z1i2 2b98UmGJrVzNOZn6XVioPY7+hxaLo4zRpyCzRpRXIqLGEcNfJdOZuZWR/kQtL1Oh7OS/ pwhCIIBlS68MCsmsNZQmMpsbcxjYQW4rC5wCsPr5tCET7Pwpjo7dOctcRNr2RbT1tCkH 5Ldg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject:dkim-signature:arc-authentication-results; bh=isc/BmYFKF2RSAtcHIu03IWIJ7uT3/QQalrio6EOy5s=; b=dxpaqg0YGZ/6rOYug0LRCAoXmBU82DgJjdAvPh58V8DwrUJu9N5G222kBK4/aj0ffz 6r/pyb0yNxAqZPpj4a4YP8nR8w733sXjMnBnTkyPyuoC1/k9CZNZGeyI111O/uuJFx4S yV6jUa+7NlWMBW83PG2RIE1hrm2t+Bwi2KKWY3mOMGkjty0N7DJgA0IPgLmfRzVrQUGK 1m+fsufyeeHXmqH4vf10gefMZ6j6dtz8iLcFlco2zBDy9LEPdLJIXNhY3Q0CyTvYFsl9 zMmcxZGLiINHlU1puqJMeTcmxgsarUMbXthzVulWA3pAqQSQg6gaTDDxzwUVOGASB70p bKUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZRQSGEAt; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 22-v6si19153428pfh.308.2018.06.09.00.55.38; Sat, 09 Jun 2018 00:55:53 -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=pass header.i=@gmail.com header.s=20161025 header.b=ZRQSGEAt; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753201AbeFIHzP (ORCPT + 99 others); Sat, 9 Jun 2018 03:55:15 -0400 Received: from mail-pl0-f68.google.com ([209.85.160.68]:41814 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753139AbeFIHzN (ORCPT ); Sat, 9 Jun 2018 03:55:13 -0400 Received: by mail-pl0-f68.google.com with SMTP id az12-v6so9518806plb.8 for ; Sat, 09 Jun 2018 00:55:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=isc/BmYFKF2RSAtcHIu03IWIJ7uT3/QQalrio6EOy5s=; b=ZRQSGEAtVEh5zgZ9ZPgLlP3jUQZbcjBLcUcNlb1fEbihECKCFiKCxBLgIIM3i2rHh9 11GEyFAKtaHeTLqN5VWhxvSMc43L+m56IBhZvaW6QM4fE0aQVdX2q60WkV60IP6ivNGg v3RJxpZPqRc3gyTbB3FhuqxYb/eB4C7R6CRBLVWKIdDQzdttcM4mH/1qgwyazCflOQfB vBJkRzPRUT8bVAqHbEH5mQP3sIbi+CIDry5XnXfX2vi1WmRpASs+JXYoyWPN/sF2o2Xb dkd0AEKYlaPDrdVB/mSCUkY1QqBH21bg4xYsSEluxjE0ry8J/aw97AHuFZyjtIe4trpP WWtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=isc/BmYFKF2RSAtcHIu03IWIJ7uT3/QQalrio6EOy5s=; b=XZEf7XwJQ8/jbx6ajSPoMhTkk6o7xm34Ai9jiB5SPYQy9B+ShZSwl9QjEDUspKQRK2 9GJKEPjQ+EpGNN6A1fQRxnskIWbbvioNiMAcqu/gOBvFEb2wNkEgWV3xfbKfCdyqb5f5 9qWQKZxb8JdzdkCWvWBHEBeSEVH623myDLS1JHKBMS7AZvxHe7d9W7SKAZ8cvMgEaLyL RDiC6fJI25Q2+jdS8Vrw/s1TZn6Fxb3azK2YzQWUid+CJY5YF2k9j+wpa9iW7e96TkC5 du4Q17VJ5w2/LoqpsVkb6pYZ6twkr1/3cqATujcEr7u0F9q+d1na9TMh73P1tNSGKw5i U3Jg== X-Gm-Message-State: APt69E2SSBsUDIMmIZ/AxgnjkJaJQfXvDnV1Uv2OjoS0HlIglTEtQWYi EWP/fH7LFDM3coxkNmmTIOeLqG1D X-Received: by 2002:a17:902:5488:: with SMTP id e8-v6mr4822104pli.137.1528530913354; Sat, 09 Jun 2018 00:55:13 -0700 (PDT) Received: from [192.168.1.101] (222-154-41-72-adsl.bb.spark.co.nz. [222.154.41.72]) by smtp.gmail.com with ESMTPSA id b4-v6sm2140756pgq.51.2018.06.09.00.55.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 09 Jun 2018 00:55:12 -0700 (PDT) Subject: Re: [PATCH v2 08/12] macintosh/via-pmu68k: Don't load driver on unsupported hardware To: Andreas Schwab References: <9f015684-4d91-70e4-d2a4-89fe167ff8ab@gmail.com> Cc: Finn Thain , Benjamin Herrenschmidt , linuxppc-dev@lists.ozlabs.org, linux-m68k@lists.linux-m68k.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven From: Michael Schmitz Message-ID: Date: Sat, 9 Jun 2018 19:55:05 +1200 User-Agent: Mozilla/5.0 (X11; Linux ppc; rv:45.0) Gecko/20100101 Icedove/45.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andreas, Am 09.06.2018 um 19:14 schrieb Andreas Schwab: > On Jun 09 2018, Michael Schmitz wrote: > >> Hi Finn, >> >> Am 08.06.2018 um 14:24 schrieb Finn Thain: >>> Don't load the via-pmu68k driver on early PowerBooks. The M50753 PMU >>> device found in those models was never supported by this driver. >>> Attempting to load the driver usually causes a boot hang. >>> >>> Cc: Geert Uytterhoeven >>> Signed-off-by: Finn Thain >>> --- >>> arch/m68k/mac/misc.c | 6 ++---- >>> drivers/macintosh/via-pmu68k.c | 4 ---- >>> include/uapi/linux/pmu.h | 1 - >>> 3 files changed, 2 insertions(+), 9 deletions(-) >> ... >>> diff --git a/include/uapi/linux/pmu.h b/include/uapi/linux/pmu.h >>> index 89cb1acea93a..30f64d46f5db 100644 >>> --- a/include/uapi/linux/pmu.h >>> +++ b/include/uapi/linux/pmu.h >>> @@ -93,7 +93,6 @@ enum { >>> PMU_HEATHROW_BASED, /* PowerBook G3 series */ >>> PMU_PADDINGTON_BASED, /* 1999 PowerBook G3 */ >>> PMU_KEYLARGO_BASED, /* Core99 motherboard (PMU99) */ >>> - PMU_68K_V1, /* 68K PMU, version 1 */ >>> PMU_68K_V2, /* 68K PMU, version 2 */ >>> }; >> >> Is this enum used by any user space code? If so, perhaps rather leave the >> PMU_68K_V1 in there to avoid upsetting that? > > It also changes the value of PMU_68K_V2, which is an ABI break. Yes, that's what I worry about - but do we know of any users of that particular interface? Cheers, Michael > > Andreas. >