Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp184315imm; Thu, 2 Aug 2018 16:36:35 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcd+VRlKEi4+r8M+UNbdjt3n2WOCyq903ThHk7tcUKhdjIKTd5f+hfM/p0DxFn3WRZmiaM0 X-Received: by 2002:a17:902:583:: with SMTP id f3-v6mr1262198plf.115.1533252995299; Thu, 02 Aug 2018 16:36:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533252995; cv=none; d=google.com; s=arc-20160816; b=xCj+l4H7TwP6w/D0sshc5vbjOjmx7H0Pln8o5LLOGpG4yhK+CbENcK+Xh6S5Hfxhs6 rq9TKK1yqQpxgNoTLqUP/kBpaIwAqdxwVnOnF3U6+eRglhRjJ9tITCwlsgPEE3tl6RUb 304VyNVR/ghyGSVFZTWMD0weHzcC5cGz8jQ9odJWsLz4+3RZz/aePwGmqGQ90wVRnEJp GGY19B6oBtCPbM1WTDMHkAlaBKqeRPYzmrSc21YxGfH8ADWzwIFO7QtQEqkFlYsjRpnW XCNZXTEM3yCQROeE/Eg+S6F6rhvv4ZEQ5WVEX8MaEZdZM4Mf8iQfq5IV4Js2QdsZoQsG 576Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=Yhz+8swD3gt7zBR+mIY23nMIzPzScbh5K5hM2nrQSQc=; b=WESmfDd208pJI3bhVeMeEX3PSO8Y7dYI4Hn4RCQ4/nS93Xpn5F+taqW63xEiVK0E8r GKCobObbGGmxnU9DDDkOFmd6uvI6G3dHjYpccUJq0PlPHaw27KJTHk8H7i2xbXZ67LI8 2j4mk/3u5SoupAWt37/eLAl9uFVk3Qk0I2L5/QXQ2oDPmv9BCZWL0f2L35VGXhrY0JeN L4IAykans7STURDZd2qT9Z1Vov/HG0nIrf4f6ofunOijCgkpITmGWjPDZgIFrqKhevfm ks02q+2dHQQLxkrxd9a4b9qrB+cwxSqxs6sw9S+TapJTtipaauY4RxOXLaubtL4IVt+0 PVew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DbOXF0uS; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c1-v6si3199827pfe.29.2018.08.02.16.36.06; Thu, 02 Aug 2018 16:36:35 -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=pass header.i=@linaro.org header.s=google header.b=DbOXF0uS; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731738AbeHCB2I (ORCPT + 99 others); Thu, 2 Aug 2018 21:28:08 -0400 Received: from mail-io0-f195.google.com ([209.85.223.195]:34827 "EHLO mail-io0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727053AbeHCB2I (ORCPT ); Thu, 2 Aug 2018 21:28:08 -0400 Received: by mail-io0-f195.google.com with SMTP id w11-v6so3547366iob.2 for ; Thu, 02 Aug 2018 16:34:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Yhz+8swD3gt7zBR+mIY23nMIzPzScbh5K5hM2nrQSQc=; b=DbOXF0uSwBV5GXNJeBl79FotPz3PEKEwd7xJ8cz83q9eDirouYVdpkuQ9EhaY+Zrb2 ZbvqYu9nChP8W2BTdiV5G3XocYc7MzZHQI/bLiYCqvCMSuP+Wj7mmcbkvlLAAnE+EK3j msp2dXQuJrmNN6AoTd+UA3hsKHSq24rP/vf/0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Yhz+8swD3gt7zBR+mIY23nMIzPzScbh5K5hM2nrQSQc=; b=KB4HyfLdtrKwgJUEmHNrh+CwpMqWK27tO/fRw9iXlFey9yvVaHgxd7rUiQOAxxoDDe e5Ss4Yfp0TKbEJNMO3OfXdyb6YJ1MzhzgjOXgtc6+gQSj4TBTdfQIJ98xR1Yx9XKqANi CDINzq3hHucpNQsDgbtx5ZqFWC08xMzW5NOYx/ku+k+RxsfODtcV2ihH0SZbsp82mkaC n0WkMEbfcen8HLjH8vMXMmcoR2r8salpHFl6oZGiASyxn/cmp5m/oqZxyrv+B8qHgUpZ BJA175RF0+G49pQ2debkWGTpgWlo3Je40rv5RbwrbUNLT445zYH8x2BjWjNYdUK8LwMm r8IQ== X-Gm-Message-State: AOUpUlHmBqr4bYn38fpan1yvZVvk1WO5cUL+bj2kn6Q/fL7Y7BzAjw8c H51cXK2BfnNEiFVagc9B6jhVnKwZthoWYMlFcNacMQ== X-Received: by 2002:a6b:4006:: with SMTP id k6-v6mr3968920ioa.277.1533252882704; Thu, 02 Aug 2018 16:34:42 -0700 (PDT) MIME-Version: 1.0 References: <20180730093418.124648-1-tmaimon77@gmail.com> <20180730093418.124648-2-tmaimon77@gmail.com> In-Reply-To: <20180730093418.124648-2-tmaimon77@gmail.com> From: Linus Walleij Date: Fri, 3 Aug 2018 01:34:31 +0200 Message-ID: Subject: Re: [PATCH v1 1/1] gpio: mmio: add inverted direction get_set io support To: tmaimon77@gmail.com Cc: "linux-kernel@vger.kernel.org" , "open list:GPIO SUBSYSTEM" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 30, 2018 at 11:34 AM Tomer Maimon wrote: > Add get_set_inv_dir and get_set_multiple_inv_dir I/O functions > to call the data register when the dirction is input and > set register when the direction is output. > the functions will linked to the I/O get functions if the user set > BGPIOF_INVERTED_REG_DIR flag in the bgpio initialization. > > Signed-off-by: Tomer Maimon I think you uncovered a bug. This is however not the best fix IMO. Sorry for not understanding the issue at first, I am sometimes pretty slow in the head. :( I'm sending a patch that I hope fixes the real problem in an elegant way, and makes it possible to just define dirin and BGPIOF_READ_OUTPUT_REG_SET. Yours, Linus Walleij