From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9C2B7EE49A3 for ; Wed, 23 Aug 2023 15:22:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237079AbjHWPWX (ORCPT ); Wed, 23 Aug 2023 11:22:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234657AbjHWPWX (ORCPT ); Wed, 23 Aug 2023 11:22:23 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5CF61716; Wed, 23 Aug 2023 08:22:00 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D7C2964798; Wed, 23 Aug 2023 15:20:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 95DD0C433C7; Wed, 23 Aug 2023 15:20:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1692804055; bh=ZbuFpZHKJ34DZHImXuZ1HmMpbxu5FtNSIBSqQ3kg7Bc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mqv+jKE4zl9LIugIm+GseOTlaDZokEttmROlvTEJIRotkDa7uyP4BuJkZPq5J8GFk UzX511GFAWfsC4YcuHGCG8I3B1FNYO3ZehhbP9ZpusNb3T4USz/Ozlq0rCigaEBe0M Z/cqyw3hOw96VWFouvbqObSpBW0YK5V+iU4ecsDE= Date: Wed, 23 Aug 2023 17:20:52 +0200 From: Greg Kroah-Hartman To: Geert Uytterhoeven Cc: Andi Shyti , Andy Shevchenko , Biju Das , Guenter Roeck , Heikki Krogerus , linux-usb@vger.kernel.org, Geert Uytterhoeven , Dmitry Torokhov , linux-renesas-soc@vger.kernel.org, "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Rob Herring , Conor Dooley , Frank Rowand Subject: Re: [PATCH 2/4] usb: typec: tcpci_rt1711h: Convert enum->pointer for data in the match tables Message-ID: <2023082354-pledge-salary-0d6f@gregkh> References: <20230823144905.mep6w6fctwcxxrhz@intel.intel> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On Wed, Aug 23, 2023 at 05:10:22PM +0200, Geert Uytterhoeven wrote: > Hi Andi, > > On Wed, Aug 23, 2023 at 4:49 PM Andi Shyti wrote: > > I would rather prefer to store pointers in u64 variables rather > > than integers in a pointer. > > "u64" is overkill, as it is too large on 32-bit platforms. > "uintptr_t" (or ("unsigned long") in legacy code) is the correct integer type. "unsigned long" in kernel code is the guaranteed size of a pointer. unitptr_t is for userspace code, it should not be used here in the kernel as that's the wrong variable namespace. thanks, greg k-h