Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp3528458pxb; Mon, 4 Oct 2021 04:24:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxILsucwkJw9ziTXHLxk1LuNqYREqovw4kiCHCyPVMp38/V5H1050EkI6+MoTpBOOH+xo2F X-Received: by 2002:a17:906:a01:: with SMTP id w1mr17254448ejf.117.1633346679429; Mon, 04 Oct 2021 04:24:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633346679; cv=none; d=google.com; s=arc-20160816; b=ru4iqojQ2ucdtzrtn9g/vJ1SI6QKhr8GtWrqeUM1Bzvy/JUHKqVCetReTjN2SXtcZF 8XHShO4wX4kC72a4BYOt3JjTVyyFYuQGF/Xl0BXiUKmXgOQlETlO/X/34eYUzeDn4hRr eXKPFBFkQESbyLwYLdRtBY/yzpag99svD0OjMz2BArzY3sRq+OWxXej6SACbFsdzoNxY 0WLeTNEatqq2s4hmj3e4sWt/JR3swemEJN6qW4Fsykns7fQDQVhP4Mx8gQfe5/wv5sP0 RbIPp8GWJMjL5839WBJskISVoT8YlJHYWjEO0BnbgpX8YHxlLuPHtT5sXIg36d7eqShN 5Wbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:dkim-signature:dkim-signature; bh=k4eiDbO0S0GhIIy1Ulz4BubSgS8pg11RI+l3/cVsvRw=; b=EilO5lj+P0d/kBsm8nXHIVfg+tB0OfvdhPZR1LDe6UJQrgHICIjIfTvbbRv8wOahmo xpFdjYl0yY1KQbhzsdqNscbxbdVa0bNQtMCeuWbyk+8EFDHkApzOS1qiOmeC41+vtdKz ODIUKv3nNIncrL184Oxg8YHBER63m1YchAW9bWREgw2010HRr19wLxLubEcFJmCpn03p erqwjx7Yt8KrZFMYGOIR7yLi4JkjI2mYNnMdnlIzTqUkaMcOA/qdS0hYfG+zvmgC58MX JKTqCnr4JC3fpp9T99NoflCjkEnhyXA5H4+uvRR8uCcmpl46D0DetxGSjTpwY19m7lyK tgQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@svenpeter.dev header.s=fm2 header.b=FVMajL3l; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=k2cptf8T; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=svenpeter.dev Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e8si23018910edm.144.2021.10.04.04.24.16; Mon, 04 Oct 2021 04:24:39 -0700 (PDT) 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=@svenpeter.dev header.s=fm2 header.b=FVMajL3l; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=k2cptf8T; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=svenpeter.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232907AbhJDLYa (ORCPT + 99 others); Mon, 4 Oct 2021 07:24:30 -0400 Received: from new1-smtp.messagingengine.com ([66.111.4.221]:42817 "EHLO new1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232278AbhJDLY3 (ORCPT ); Mon, 4 Oct 2021 07:24:29 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailnew.nyi.internal (Postfix) with ESMTP id 26DFD580865; Mon, 4 Oct 2021 07:22:40 -0400 (EDT) Received: from imap47 ([10.202.2.97]) by compute1.internal (MEProxy); Mon, 04 Oct 2021 07:22:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=svenpeter.dev; h=mime-version:message-id:in-reply-to:references:date:from:to :subject:content-type; s=fm2; bh=k4eiDbO0S0GhIIy1Ulz4BubSgS8pg11 RI+l3/cVsvRw=; b=FVMajL3lBrk3yevNtB/+RlBjXU38ww0iW9Aut7eCmNXwzk/ 3CCMgVJkarHg9wrCUY9FNeAQhA2Gr4yEiGk5aV9aQp2bZ6iUOPKmcinG8i48xwxx a0+WpS7yLnZQSS5Qu7hxXQ5QSXe7ts4lKpeCVaLDD5Vj0VAtH/qlaX4eTGRNTeI1 gpOPKw6LOO9YOb4Y3kttlqmBf7WpggzozTFl6DGkHwDwXx9/pDPfRmnslJPd/zhH doBnV+b6G6rXyxLlRIphsqG6bl4KsXKObtv+qLcojY8NH57QJvmlVUV9E0UJ3RL5 ZE6pate8E4spyEfqfY2aknqaCRmWbUSzH3vkeMQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=k4eiDb O0S0GhIIy1Ulz4BubSgS8pg11RI+l3/cVsvRw=; b=k2cptf8TqB4+1ARafPyM/x AobSopKb+S3F2nYZ3rA2Vj1HiLSnQ82uU+Ilcnl3s4+l6KipS3raruEKTTcX3+IX si4phykkN40eZe8zM5inMzJkz7Xi1bv40z13Oe0fCHawoIQNs3nzm9jcgmypGJWr SHT+/CKJzsv1bGyFBZ69aoNpX31PL+pvvXcUgGX27eQB47nzJnRghhUU8L/RBScx z2Td0KAIPo0h+0j2jXnouRXRYw9MHL2U2MNmUAtcABTxolR95H3qPK0EHrgcSA+r mGPYNgjqMhsg5YFFEwkXLdRBu6r89jYQvr/jqaOlBQso6XhfvVIBv4a3R7G3LEIA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudelvddgfeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgesthdtredtreertdenucfhrhhomhepfdfuvhgv nhcurfgvthgvrhdfuceoshhvvghnsehsvhgvnhhpvghtvghrrdguvghvqeenucggtffrrg htthgvrhhnpefgieegieffuefhtedtjefgteejteefleefgfefgfdvvddtgffhffduhedv feekffenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hsvhgvnhesshhvvghnphgvthgvrhdruggvvh X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 84C0C2740061; Mon, 4 Oct 2021 07:22:38 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-1322-g921842b88a-fm-20210929.001-g921842b8 Mime-Version: 1.0 Message-Id: In-Reply-To: References: <49890226-cf04-46ff-bc37-33d1643faea2@www.fastmail.com> <1B71F6A3-6467-46EF-858F-82E93D54365D@xenosoft.de> Date: Mon, 04 Oct 2021 13:22:18 +0200 From: "Sven Peter" To: "Arnd Bergmann" , "Wolfram Sang" , "Christian Zigotzky" , "Michael Ellerman" , "Benjamin Herrenschmidt" , "Paul Mackerras" , "Olof Johansson" , "Hector Martin" , "Mohamed Mediouni" , "Stan Skowronek" , "Mark Kettenis" , "Linux ARM" , "Alyssa Rosenzweig" , linuxppc-dev , "Linux I2C" , "Linux Kernel Mailing List" , "R.T.Dickinson" , "Darren Stevens" , "Matthew Leaman" , "R.T.Dickinson" Subject: Re: Add Apple M1 support to PASemi i2c driver Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 4, 2021, at 13:20, Arnd Bergmann wrote: > On Mon, Oct 4, 2021 at 11:55 AM Wolfram Sang wrote: >> >> >> > i2c-8 i2c PA Semi SMBus adapter at 0x(____ptrval____) I2C adapter >> > i2c-9 i2c PA Semi SMBus adapter at 0x(____ptrval____) I2C adapter >> > i2c-10 i2c PA Semi SMBus adapter at 0x(____ptrval____) I2C adapter >> >> As Sven correctly switched from %lx to %p, this is intended behaviour. >> Run 'i2cdetect' as root to see the values again. > > I think the address could just get removed here, as this is clearly not helpful. > port number, which is somewhat useful for identifying the device, now > it's either the pointless string, or the virtual address that the > device is mapped > to, which is not helpful either and potentially leaks information about kernel > internal structures. Yeah, now that I'm looking at it again it doesn't make much sense to include it there. Maybe just dev_name(smbus->dev) instead of the address? Sven