Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp95154lqo; Thu, 9 May 2024 13:47:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVQ6Sn5KE1cFn0D024gNkhUM+vZ77G7+b3r1dNHuXl0M1UaowrqAf65cuDNCo4qqB7nzhgBGE7nn7xsP67leIDw4vvjUT4kD162elg0hA== X-Google-Smtp-Source: AGHT+IHjRgtokpqfIclcGH+W+zIHp8RqQAhX1yuTKWFwwmOayuyRuE/em7L5FuT66GIEUlLswX1T X-Received: by 2002:a17:906:2bc6:b0:a59:c090:7781 with SMTP id a640c23a62f3a-a5a2d55a8d2mr46992566b.3.1715287660626; Thu, 09 May 2024 13:47:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715287660; cv=pass; d=google.com; s=arc-20160816; b=mhV/AzU7KjX36E8/Ym3S1Y+2ZSrtC0UTVm7t+d1MuKEhVRoNSm0oea+X6bk3bqpRtm zyz442ikgpIt06dCV7wVHslY6mv9VR4BoA1nKpoUIjx9p9zRRONl3+6Ytw38zi1N/hUo /oGdi49iE6ZASoXTDgcqi9wfkOmscMUyq1bSJwa8R+puCl3VxXLCa73BwNyx6WgLxhJn Z/QBxAcAVLtjITXexwfFZxDcZ9gNnJqr2lJ3nBkCbtQ3cRVL8lvXvka2oghltfqefd5Q slYl60TFF02aL8jvu+HKbO026jLijh3p6H/UwwBmutvd0oxF7RhXiE9jbnk9UsKOAHii j9yw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=subject:cc:to:from:date:references:in-reply-to:message-id :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:feedback-id:dkim-signature:dkim-signature; bh=mz6niMhiXSbLSWvYwWOExvotvdMEBuYNMUreHlPi8so=; fh=KlBxdjxINLnWgjJoaDv8+ehS1VVtqwRJcIQc4r8reXE=; b=IA2YLWMeSGJoCjaulhyOZes2Rs5ts5jD4EQpgGikoiqxYDBqSEBJ/XwGE8oXR7wUZs O1kUmfKRiTOyE4uBJLi3OMOKyrruLVXv6HvOCUAclntY7MYhjA9/HDSeh2/BlQoGkZ5R KPvQSx6Lw9afunVXRRD5IlcpPydA8yHPdBuBPAY+r1yMIvJpmV5PBMDjNyGXNtdmo5Ob FUFkJ+JaCgMRiOhw8s8WJMKVh+Z04VHfFYh7F0PAwFeXKFqCgzjOPnwDUp82TI3V1m33 E3/+BezfEni2CLjd9nymMtgYX7yu8Za99CG3QmoEIbmcN997iBehi8IJmbc2dlZ55oMy Fu8Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm3 header.b=VnpqV795; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=DG9geJXN; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-174946-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174946-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a1797c8c3si111182566b.255.2024.05.09.13.47.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 13:47:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-174946-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm3 header.b=VnpqV795; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=DG9geJXN; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-174946-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174946-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 5CF9F1F2192E for ; Thu, 9 May 2024 20:47:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E6EB180C1C; Thu, 9 May 2024 20:47:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b="VnpqV795"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="DG9geJXN" Received: from fhigh1-smtp.messagingengine.com (fhigh1-smtp.messagingengine.com [103.168.172.152]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A65B1C2ED; Thu, 9 May 2024 20:47:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.152 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715287649; cv=none; b=MoqwX3YVgasu7ZAH5UhlW2BOTYZLmG4adPOu/KoNFzPk3XCWvj6KpX+tmVesOBLHVijzo6TGBqIdSjjMPU3xNdYn4fauqzkOreTkrGkvdcOqLs+tAK+XkyhYrLGAnFuedyJuEpIIO91JyFglwS3a7lN5UkdTalIwoTaUxu/jgfk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715287649; c=relaxed/simple; bh=LzRm47B1O70Prbd444BZbXlXNsdgncurpsO/SnH5gXY=; h=MIME-Version:Message-Id:In-Reply-To:References:Date:From:To:Cc: Subject:Content-Type; b=i07qdLqjQyAFx9oe6i579+jqI22u7SlqNhTCzldE64rLq0hte8gmo5gI/00KDSZs+p77EmwMz2UMHSQAK9+1xfK6ASSz+qNCB20j/xV3o68Yya8WsJg5OSEaPdbWNf1ZM5Bvk6UE7MpdpHrUwOWuPJag7vK2hAd7r5G+Mk5Ukrg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de; spf=pass smtp.mailfrom=arndb.de; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b=VnpqV795; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=DG9geJXN; arc=none smtp.client-ip=103.168.172.152 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arndb.de Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 9D498114008E; Thu, 9 May 2024 16:47:26 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Thu, 09 May 2024 16:47:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm3; t=1715287646; x=1715374046; bh=mz6niMhiXS bLSWvYwWOExvotvdMEBuYNMUreHlPi8so=; b=VnpqV795gpWGS7wq6klfXzFl9U K2r97slcHjlY3xygj3TbEaTlIhCuB5WSAClDhG+E5NOA7zArW0W+H4RlKTE25g7q qHBhyPama1AwBLJmpCoHyb42leGLLuiAvD9YYUkU8RUnY+ydX2hWJk/j8ThneDS6 d60XKyiW7GAUVIlhKjVShxIsLDqJvi/RW9OlKYCPsDA1+OzVHS3dQ1N4sh4lJCKb I7XMc/MmtjwmP/RVIKyD2MkFL2Bo1JYVWtK69geDU6w1XcUsxxiBPH98fB7/jnLp NDBEoM5RzJsfF1v5gp4PD0jDLUv0hwAax3/8Jegn3FziTkU7H6I5JXmDvpmw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1715287646; x=1715374046; bh=mz6niMhiXSbLSWvYwWOExvotvdME BuYNMUreHlPi8so=; b=DG9geJXNLCdb5rb4NIbiHrw1LctXxlTqKiIyw38Z+l2E XQyrNgal50nSSYsKSJDCeYRuQ3Kmy/pR3yeHCMmK4BD0OJIcZLbYbw5N65uLkt6N vCZ83+PFqcySnZaasG6hYcam2eZTCz/P4Vle5BgNDzbU/aBjTqCLM0AXgA4jkqG1 CJexCmrI7oM+5oex/7fIZnkcGDOsHIEA9yzVFzAOrF2d8+4MI1L9yfINqvgm64Qt F2jIc0mnuaJ8RMHrV8vONYhWdg2YH9ClmscY5X7kBgLvtvmKPoOOy2I8NQUOKGyK +FGElKk93BpYAgSVVS7eFO5kRP+prs3ji+dS5uDtqQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdefvddgudehtdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvvefutgesthdtredtreertdenucfhrhhomhepfdet rhhnugcuuegvrhhgmhgrnhhnfdcuoegrrhhnugesrghrnhgusgdruggvqeenucggtffrrg htthgvrhhnpeffheeugeetiefhgeethfejgfdtuefggeejleehjeeutefhfeeggefhkedt keetffenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe grrhhnugesrghrnhgusgdruggv X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id A53E8B60092; Thu, 9 May 2024 16:47:25 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-443-g0dc955c2a-fm-20240507.001-g0dc955c2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <2ef3df08-ffc7-4925-82bf-0813c8b0b439@app.fastmail.com> In-Reply-To: <20240509121713.190076-2-thorsten.blum@toblux.com> References: <20240509121713.190076-2-thorsten.blum@toblux.com> Date: Thu, 09 May 2024 22:47:05 +0200 From: "Arnd Bergmann" To: "Thorsten Blum" , "Nicolas Pitre" , "David S . Miller" , "Eric Dumazet" , "Jakub Kicinski" , "Paolo Abeni" , "John Paul Adrian Glaubitz" Cc: Netdev , linux-kernel@vger.kernel.org, "Greg Ungerer" Subject: Re: [PATCH] net: smc91x: Fix m68k kernel compilation for ColdFire CPU Content-Type: text/plain On Thu, May 9, 2024, at 14:17, Thorsten Blum wrote: > > +static inline unsigned short _swapw(volatile unsigned short v) > +{ > + return ((v << 8) | (v >> 8)); > +} > + > #define SMC_inw(a, r) _swapw(readw((a) + (r))) > #define SMC_outw(lp, v, a, r) writew(_swapw(v), (a) + (r)) > #define SMC_insw(a, r, p, l) mcf_insw(a + r, p, l) I think you can just use iowrite16_be() and ioread16_be() here in place of the little-endian access plus swap. Also, it looks like it's been broken for six years without anyone noticing the problem, so I wonder if there are even still any machines that use this driver and get kernel updates. Arnd