Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp4032552ybd; Tue, 25 Jun 2019 12:49:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqzq3vyBGBwB4E+vz9nJfcbRx0H9L9uap8K8QKNboSdBxguX1dYEpdbVttlY0l017gzc/csz X-Received: by 2002:a65:6647:: with SMTP id z7mr14674236pgv.349.1561492140212; Tue, 25 Jun 2019 12:49:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561492140; cv=none; d=google.com; s=arc-20160816; b=ShTaDfRy+ygWNxKvQK2UC/rOHDYb9tS4jIfR1a861Z8O9+HJZ/wh+fvv4H1UJ/XW8c ZlAQX0ojJB8b/Vhv8d69evebanqluB4RLDzsxZgxFMiEiMeIJOxMXUx7djRsIrBru9vu DlLkb7vcpO/VMR8uDO5mlgHW+e4eYMbzxZciBpPFogGRN1YRhGKv8xbVhfkCYaY0Yr/G txvNXwCRuSOyspbagxaBeKhh8EiT+vIB3X0qKj9S9mM77O9cFQ/DAU+xpeCWYMr0/in1 ds/yaMfMGK84xXXKDrs+OYFdfLGLd3bjvviGpY5gG2bFp6U/uOZfMGHVdTAJVcjWeXjE ks7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:cc:to:subject:from:date :dkim-signature; bh=EVTVbMsCSjQzsSGM7XCSUEIELSlkRRQLrdI9FXq1fYg=; b=m7Ti9pGQx3VkUrhp9M3s+WKGhUioenQvCwb4KyprhWvFmuX74UvGveQD2swrPr1I1A u/0olBmVIdYPi+/QqIuJwaBUs+KX8YUszVBuzASUP5GDXijoJySQlaoGzCUfY4IhWslY SyNCJhrWpXszNpZKyEHGW6SR7hcugtpr+sbeCJim6zP3GZqJI97GYNnk2Uo2Ckp2JSnU dndetrnXTPiqG9Y1yaorZV3YNnDhf6RNnmy+G1ju1/olAUjQ5R5+b6Y7h2pMHwKio3/N JWoSTD4adV0xd97cfUbCZRCvb6HFOjf/wGDy1qwRzVMww7+q5aaHB25rl3hHLZ1sfVHw yG2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@crapouillou.net header.s=mail header.b=I5VaVXau; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 78si15308303pfz.268.2019.06.25.12.48.42; Tue, 25 Jun 2019 12:49:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@crapouillou.net header.s=mail header.b=I5VaVXau; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732402AbfFYRrq (ORCPT + 99 others); Tue, 25 Jun 2019 13:47:46 -0400 Received: from outils.crapouillou.net ([89.234.176.41]:40816 "EHLO crapouillou.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729493AbfFYRrp (ORCPT ); Tue, 25 Jun 2019 13:47:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1561484862; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=EVTVbMsCSjQzsSGM7XCSUEIELSlkRRQLrdI9FXq1fYg=; b=I5VaVXau0WYEvLY0+ThTCn8lOoVV25LOpS4WXggxtDRrOTlkMd1je79pyQQADeqrXUuEDs 4KVxkYs0sLV0LEQgVmb0LvE0ep2awhNb5yLGjDccUym35LLBRhSoRhcZyUcP3CQ9v1i+B9 fero1NZR8XqCyr37PzfLE+FpxGb8NKE= Date: Tue, 25 Jun 2019 19:47:32 +0200 From: Paul Cercueil Subject: Re: [PATCH v13 04/13] mfd: Add Ingenic TCU driver To: Paul Burton Cc: Daniel Lezcano , Thomas Gleixner , Ralf Baechle , James Hogan , Jonathan Corbet , Michael Turquette , Stephen Boyd , Jason Cooper , Marc Zyngier , Lee Jones , Mathieu Malaterre , od@zcrc.me, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, linux-doc@vger.kernel.org, linux-clk@vger.kernel.org, Artur Rojek Message-Id: <1561484852.10069.0@crapouillou.net> In-Reply-To: <20190625173026.dbvx44iwywnijjql@pburton-laptop> References: <20190624225759.18299-1-paul@crapouillou.net> <20190624225759.18299-5-paul@crapouillou.net> <20190625173026.dbvx44iwywnijjql@pburton-laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le mar. 25 juin 2019 =E0 19:30, Paul Burton a=20 =E9crit : > Hi Paul, >=20 > On Tue, Jun 25, 2019 at 12:57:50AM +0200, Paul Cercueil wrote: >> +static const struct of_device_id ingenic_tcu_of_match[] =3D { >> + { .compatible =3D "ingenic,jz4740-tcu", .data =3D &jz4740_soc_info, }= , >> + { .compatible =3D "ingenic,jz4725b-tcu", .data =3D &jz4725b_soc_info,= =20 >> }, >> + { .compatible =3D "ingenic,jz4770-tcu", .data =3D &jz4740_soc_info, }= , >> + { } >> +}; >=20 > Nit: why not order these numerically? ie. 25b, 40, 70. They are in chronological order - the jz4725b is newer than the jz4740. >> +static struct regmap * __init ingenic_tcu_create_regmap(struct=20 >> device_node *np) >> +{ >> + struct resource res; >> + void __iomem *base; >> + struct regmap *map; >> + >> + if (!of_match_node(ingenic_tcu_of_match, np)) >> + return ERR_PTR(-EINVAL); >> + >> + base =3D of_io_request_and_map(np, 0, "TCU"); >> + if (IS_ERR(base)) >> + return ERR_PTR(PTR_ERR(base)); >=20 > This is equivalent to: >=20 > return ERR_CAST(base); Alright - I'll fix it in a following patch if this V13 gets merged, or in the V14 patchset. > Apart from those: >=20 > Reviewed-by: Paul Burton >=20 > Thanks, > Paul =