Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp44532pxf; Wed, 24 Mar 2021 20:26:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxG1aAhfv6zZ9bbyExhEll0X3AE8PRYmUTQbYq0JpZ6EktDBz9uy7Ky/7POUnKlvUQrZq1n X-Received: by 2002:aa7:d503:: with SMTP id y3mr6689048edq.142.1616642812639; Wed, 24 Mar 2021 20:26:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616642812; cv=none; d=google.com; s=arc-20160816; b=E4lMOoNVtR43ffbrrM73UpceuxVJuYHhbQteXTzTqJ9zy7VV5NeBML7TibdYqKuy4d TUWhRHmKh5o59dR7qCeGs2WOf9UzpmGfkFjSxaQ+uCVsIldpynGfI/f3t/fgpROgGFRC k4FtSh0VNLfHGaGWX/3EghxKJhJLf8Hh7lB9LQkGA0uOllbWXqaTOrU702XWG6NHWroq OPv/TjTx3MPZC1Km4+nTgnEbGNV8soNeQ6deClMIwboIs7enUXGhtjP99WcsKYme+y2T cenKb7d+yvpbtNQAXhNlJP0g9RtGL0S8NN3P23xST+OonQveuFEcmOymC4p6e82cVH9i 6yJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=i0CkADBR2Q9UuAMclTubEJ8yRW6YBxtaVYOXu6Qq6/Q=; b=Sb6RXxryKn25Ngqh5yVgwfMx3Po/KURrGxRdsaZW9T/6OnYzbtYYJlpz8yr3JzW0pt MokCSm7EQuesDaUdIyXtJB5lJe/35J6vL0OvxMQCWX84sqF1m4RXt6Oy0lymLYL2TWO6 JgsZU/yxfKcnQ3PqhlEVfBmlPn+WKfFIpsnoUnSToszpgc8zmYXCUqw0gAZ2bSpqVJDg q1fL+eFghfm8n7CljAdBNlxDwqhpa/eIes3o8mz75mwzt15RHwmSTpbvq5jvFKSsINY7 YU0nlIzCt6S686MzsrI41pkWLFz2CATbYilWdKsYxeDwEgIM3ESMYqqv0Ie5MWfQgPgw lOiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@svanheule.net header.s=mail1707 header.b=B+crK12X; 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=NONE sp=NONE dis=NONE) header.from=svanheule.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i15si3030083ejv.550.2021.03.24.20.26.30; Wed, 24 Mar 2021 20:26:52 -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=@svanheule.net header.s=mail1707 header.b=B+crK12X; 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=NONE sp=NONE dis=NONE) header.from=svanheule.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238352AbhCXV3Y (ORCPT + 99 others); Wed, 24 Mar 2021 17:29:24 -0400 Received: from polaris.svanheule.net ([84.16.241.116]:40176 "EHLO polaris.svanheule.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238365AbhCXV3D (ORCPT ); Wed, 24 Mar 2021 17:29:03 -0400 Received: from [IPv6:2a02:a03f:eaff:9f01:9a93:b6b:1adc:3da7] (unknown [IPv6:2a02:a03f:eaff:9f01:9a93:b6b:1adc:3da7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: sander@svanheule.net) by polaris.svanheule.net (Postfix) with ESMTPSA id 988921E4FFE; Wed, 24 Mar 2021 22:29:01 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=svanheule.net; s=mail1707; t=1616621341; h=from:from: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=i0CkADBR2Q9UuAMclTubEJ8yRW6YBxtaVYOXu6Qq6/Q=; b=B+crK12X9E98G7lDyEtPGdjcaJdkDEkSHjzjiPhlTF03C3j3VkUbttW/cqT7yHqKWEjVC0 ntjVndY/iSkADgw5p0/At5trvU30t8WKEhku2V+bv1IWNHxsbgOswSaTGNT3YXXHZG2R6n 4EgeVXKY3b9bMR8BCKt32rte9DL/DGfmtcKAzQeDudTFso55IBuKpmsTQdRrfG1LEawZcG W/dyMFZ0MANrTN6xGpTFwqu2ILzcenqZUHHnnGGL3pbjfx0E/2N4RXu/ohQJYbLXnVN3Or K0wZkh4PWvjDykdyM7tcbss/y5scmMSUuKVCgQro8gY9OoWZY+CJlyF7k4eOPQ== Message-ID: <1e3423ddb454c6d6392ce824c794c60a42586ba8.camel@svanheule.net> Subject: Re: [PATCH v3 2/2] gpio: Add Realtek Otto GPIO support From: Sander Vanheule To: devicetree@vger.kernel.org, linux-gpio@vger.kernel.org Cc: bert@biot.com, bgolaszewski@baylibre.com, linus.walleij@linaro.org, linux-kernel@vger.kernel.org, maz@kernel.org, robh+dt@kernel.org, tglx@linutronix.de Date: Wed, 24 Mar 2021 22:29:00 +0100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.38.4 (3.38.4-1.fc33) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2021-03-24 at 22:22 +0100, Sander Vanheule wrote: > +static inline u8 read_u8_reg(void __iomem* reg, unsigned int port) > +{ > +       return ioread8(reg + port); > +} > + > +static inline void write_u8_reg(void __iomem* reg, unsigned int port, > u8 value) > +{ > +       iowrite8(value, reg + port); > +} > + > +static inline u16 read_u16_reg(void __iomem* reg, unsigned int port) > +{ > +       return ioread16(reg + 2 * port); > +} > + > +static inline void write_u16_reg(void __iomem* reg, unsigned int > port, u16 value) > +{ > +       iowrite16(value, reg + 2 * port); > +} Of course I only noticed this after sending v3, but these functions should have "void __iomem *reg" instead. I can fix this in a next version. Best, Sander