Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp88947pxk; Tue, 8 Sep 2020 23:04:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQ8FFWZ65vV6r1Y194SUzc3/jiKB3zDOcZUMqfHFi712/Kh87+jg+Z85ip1oVoWM7Q2Wv1 X-Received: by 2002:a17:906:bb06:: with SMTP id jz6mr2182160ejb.248.1599631454416; Tue, 08 Sep 2020 23:04:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599631454; cv=none; d=google.com; s=arc-20160816; b=FaRmAmddpFk71Y1C7fexlOWWAc7hrxMVh9ombB/z5nWVWbPutxyaYFpgH3xrGpvhHp Axk4O7qjhVBbUfMsUpobZcIia0CSoziXAc7/E589id8X8OCaVIBNa8AY0yLKVXlTLU8c pPq+xyQneg4/E9HKKQ1nAHn00ut6oLGhDZ6EIjZ4YAnXdcng7frKz96MS2ifay4KyliD LGEw6u52hxBWF7GqApY8BfQ33tT16k2wnx+xXrBa+eCmdLLDh2mCw5lV8MOmN76uY+vT G+nvTUSN0tRAt1bjqx8Ys6+1yrChHZdSqzrux37PkeOCaKmB9GAhbxL2gMPgAANNRz+r tKBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=r6fCejwG0iL+7qa2R9K1o31Ku9WHMAs55cEybInLu9E=; b=XZN3DdsiiJkvXwOg9SL2Qx19kiYfsaBRHSI+zScfZecpTxv+w44m2e+pptJK2ErFVR Go5tkxZa1YiJUM2CX1UOKOznZQNCCzllqvs2IoF/giHLuma9z1tiBO2BlawklUpKAk1V l6Nt90wMSQUZaqG9eY9dYiyzM3K4UQ1FUiZ2cQzkpqw3IuiM/8EIrvgvxM3u73SWJsaP WctGUkR0jg5/1WT2HbCJIJULcZzVnInmxDgfpKiuQcK5vd2uKsg6itW+ArJyP1NZe1It zhjzktE6zxJofyy9XevlkKBZeXIOJVN/17Sh8BgXCHS0BxDjUme18udqyoCqkM9FYvrA 2OuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=JF9xLeJ0; 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 g22si862269ejj.443.2020.09.08.23.03.50; Tue, 08 Sep 2020 23:04:14 -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=fail header.i=@infradead.org header.s=casper.20170209 header.b=JF9xLeJ0; 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 S1727920AbgIIGBH (ORCPT + 99 others); Wed, 9 Sep 2020 02:01:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725772AbgIIGBE (ORCPT ); Wed, 9 Sep 2020 02:01:04 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A012AC061573; Tue, 8 Sep 2020 23:01:03 -0700 (PDT) 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=r6fCejwG0iL+7qa2R9K1o31Ku9WHMAs55cEybInLu9E=; b=JF9xLeJ05bJ4buQmwRppivJZg7 hFBS727vORj6a1zw4y4aYHspScHg5i4VntwFdoGCQYpCZL1OyicDHWHvHZoy/G6ncasFwH7y8OIRT ghAVAt9dGdjfCqdV95OoxVE0Zz6SI55zoXXitO29keTsBQBTpDig9Iu0X8XTlC6iDHAFZJxuJnoTK tjqCXcUncL8T+FRE/4KZ2aH+JcimPgSzCvgsFvC3WCeO9Es1spYOg8RSKXorg9wkFExMJNhOy8Iqs YPrurd+4pJsFbPkX/3L/Uehh7dhZdXSvA1KdPrvKcX6KT1ontnkgZDbwbY5pMVjb/4eYukLmLbm6q rzbwh/Xw==; Received: from hch by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1kFt9x-0003xX-H6; Wed, 09 Sep 2020 06:00:45 +0000 Date: Wed, 9 Sep 2020 07:00:45 +0100 From: Christoph Hellwig To: Palmer Dabbelt Cc: Christoph Hellwig , dkangude@cadence.com, yash.shah@sifive.com, robh+dt@kernel.org, Paul Walmsley , bp@alien8.de, mchehab@kernel.org, tony.luck@intel.com, devicetree@vger.kernel.org, aou@eecs.berkeley.edu, linux-kernel@vger.kernel.org, sachin.ghadi@sifive.com, rrichter@marvell.com, james.morse@arm.com, linux-riscv@lists.infradead.org, linux-edac@vger.kernel.org Subject: Re: [PATCH v2 2/3] soc: sifive: Add SiFive specific Cadence DDR controller driver Message-ID: <20200909060045.GA13647@infradead.org> References: <20200907061126.GA14999@infradead.org> 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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 08, 2020 at 08:12:16PM -0700, Palmer Dabbelt wrote: > I don't know enough about the block to know if the subtle difference in > register names/offsets means. They look properly jumbled up (ie, not just an > offset), so maybe there's just different versions or that's the SiFive-specific > part I had bouncing around my head? Either way, it seems like one driver with > some simple configuration could handle both of these -- either sticking the > offsets in the DT (if they're going to be different everywhere) or by coming up > with some version sort of thing (if there's a handful of these). regmap can be used to handle non-uniform register layouts for the same functionality.