Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp902457pxb; Wed, 3 Feb 2021 23:21:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJwj/DmpZoinp/s3sN+OAOJwFNPuDPuQmlYf/BHpR9VAB1X6/wJEItwDAU9uda0wyV5XH17D X-Received: by 2002:a17:906:3ac3:: with SMTP id z3mr6722768ejd.449.1612423293623; Wed, 03 Feb 2021 23:21:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612423293; cv=none; d=google.com; s=arc-20160816; b=GevKWLNFnYTP64diacnFClJkyMwZ7XvXe4sp/vf6R9Cz4QaqGacpCSkK9MiEzsbs7M b2/rQSQgtNZcpfFE9eZZIZV9K+TNTQJFMexHbcY3Q+PLBFo+7qbh+3JH+ColTn8m04QY A78dSLUBZ0CIrsP6r6OO2JivpJ+jay17Trze+zih0XL/POHJcRqyerkTpOHtAp946HBU bu8hb7NIcz64fWmSTjTg3yoBbz8zjvuTwjkKUZFGbybrzVaZx35qWAAHLn2JNTHSv9ev QbxpWxoZSNc/Eq53SMrEomXbdh2jWQ9WQPxc+6GysBPF9R8eSwIkPAvEgiM6XvibDyQG /EKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=QgfWxu4yt82JE/xIZ7oOgqgnaPHBT7dbTPo6JkGjbSA=; b=STxaFV9C4xqdHETlEOBqehopiLS+HuqHojWm8iInNZholJPFuL3PjISpTqFQeLihgk CIAMTH5ZXyiQjIKVtcULgrI2l3ekYKg/xHnhKcAAIufLTVv0Ze7jrCvRExgL0Eh65LfE beGYgrrzFsyyatxvwy/5r7T7XXzkrrb8mXvsyh7z2arSUp3QWlKgZc/ebSjyI4diyvge tLSGWW6NCm+9yKGUFuEB75rHwS7o1SQYjcIYtjv3jPGGsi0k8/o6FswVYK4vMvrzqCEG 9pU1FpE6Pok7+jnkn8tETiS7BsbeW2PFm+gnEXuIBzo3iGIO0wfJqErEgkOTqRQm7/W/ vroQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=lwT7az+6; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bm18si2681149edb.545.2021.02.03.23.21.09; Wed, 03 Feb 2021 23:21:33 -0800 (PST) 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=@infradead.org header.s=casper.20170209 header.b=lwT7az+6; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234254AbhBDHRh (ORCPT + 99 others); Thu, 4 Feb 2021 02:17:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233253AbhBDHRf (ORCPT ); Thu, 4 Feb 2021 02:17:35 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B79C3C0613D6; Wed, 3 Feb 2021 23:16:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=QgfWxu4yt82JE/xIZ7oOgqgnaPHBT7dbTPo6JkGjbSA=; b=lwT7az+6ZMRVD6pMMGQeUxcGkz 3sALDZXQnzoZAsV22q0sZB+6S/aKedsLuXCbgPrJ755mQQeczFZ3/OkCvIZaNAN1CpijxKmBvg872 5+Dzv3/TXvRgYoYNI0fwjsd4wWwnvgiaKGwtH43/d+PMeW2C+pFw4V1KjDNnustdp1/7uD2knEK1p 2ZqTmGENdZcvywP7ZnZSFdo+Azf3/Gieg5+M1xCdPooxSra5JG9Qe7BFX4IkCr0LbJeKyz0MJpxrd +rtljPjDSwGZkFQlZuyQQvP7Q0B3B0RBBv9nwpXRaHVzScnSqM6y4b/tUsWT6n88kcKSdYQvEM7nk s5pqCAlg==; Received: from hch by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1l7Ysg-000W3O-9s; Thu, 04 Feb 2021 07:16:46 +0000 Date: Thu, 4 Feb 2021 07:16:46 +0000 From: Christoph Hellwig To: Dan Williams Cc: Ben Widawsky , Christoph Hellwig , linux-cxl@vger.kernel.org, Linux ACPI , Linux Kernel Mailing List , linux-nvdimm , Linux PCI , Bjorn Helgaas , Chris Browy , Ira Weiny , Jon Masters , Jonathan Cameron , Rafael Wysocki , Randy Dunlap , Vishal Verma , daniel.lll@alibaba-inc.com, "John Groves (jgroves)" , "Kelley, Sean V" Subject: Re: [PATCH 03/14] cxl/mem: Find device capabilities Message-ID: <20210204071646.GA122880@infradead.org> References: <20210130002438.1872527-1-ben.widawsky@intel.com> <20210130002438.1872527-4-ben.widawsky@intel.com> <20210202181016.GD3708021@infradead.org> <20210202182418.3wyxnm6rqeoeclu2@intel.com> <20210203171534.GB4104698@infradead.org> <20210203172342.fpn5vm4xj2xwh6fq@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 03, 2021 at 01:23:31PM -0800, Dan Williams wrote: > > I'd prefer to keep the helpers for now as I do find them helpful, and so far > > nobody else who has touched the code has complained. If you feel strongly, I > > will change it. > > After seeing the options, I think I'd prefer to not have to worry what > extra magic is happening with cxl_read_mbox_reg32() > > cxl_read_mbox_reg32(cxlm, CXLDEV_MB_CAPS_OFFSET); > > readl(cxlm->mbox_regs + CXLDEV_MB_CAPS_OFFSET); > > The latter is both shorter and more idiomatic. Same here. That being said I know some driver maintainers like wrappers, my real main irk was the macro magic to generate them.