Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp72478ybt; Tue, 30 Jun 2020 15:05:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxuVOMEKXW3s0seUMB306CNay20Uw+aiDbwvsU4+BS3Hk+UIh8c1mLh9NJW2yd6om2T8Rgt X-Received: by 2002:aa7:c2cf:: with SMTP id m15mr1266690edp.27.1593554404458; Tue, 30 Jun 2020 15:00:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593554404; cv=none; d=google.com; s=arc-20160816; b=s4A6cHlQ4VOfGGvlFzssQnVKEEKaTlDi/6OUKmHlamC57KttGj8pyPLQgGHEbuQv9d n5fIXYO8XATYb9wZjDfrSQ3L9I393ChSm70UNlBeNPXHeeSxbFZvI+lvH98n7TdzqGcE +8FNNqwfKxG/5/fKY0CnLZUv+xSNrIOJlBn9qGrD+TNu1DI+jXZLNy0FBwQXjNxQBeT9 8WBn7izl8Z1Cs2B9YcvOroVbe5AMNaZc82wWz0vMA/19ikDP21aX08ql/gb2MxROwnfW g3wXSyMtr8Dz5SwrpE3uA7D9XkjdtKz3mh2a0vT0RomGXWPFib+I1xhrLbm7IKX36si2 HiRg== 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; bh=hIPfO7ux9DNr6HYEXTRvYHtolE2zfLDOhNyZZg0neiU=; b=NvMrr0i6LJPD2sg+11feB/G0T6OCFtRolaYdDF1v6ERoKITFbKq/cuRtUgkXoh9aha wW/Yq9BGMmw468qgYGlmuOq/CicGXbWeYmgcDTGjkM7lmVPld/axxpDPO2/uZp1IOVRg LvLL4JSC6eNcVsgHEPtyDa641o7c3a1/Fxmbj7d+VBoG667KsVnbf4qdHVA3Y/jGI9SG ieQ9ciFXQl3ZvI+WKRbBlI6hy+Fyv15MMKQiFu8wr07xp5d199F/zso7XySUr/oLUnMX YSzJ17zJSY88MpAW3Dkf/TgIZqK4luqt5QEu7MczxpBVx4K63VS4fSGh5wk/qdJF4sDN BfGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=l6IbFr4l; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k19si2605000ejk.27.2020.06.30.14.59.41; Tue, 30 Jun 2020 15:00:04 -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=@gmail.com header.s=20161025 header.b=l6IbFr4l; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729643AbgF3VYN (ORCPT + 99 others); Tue, 30 Jun 2020 17:24:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725805AbgF3VYF (ORCPT ); Tue, 30 Jun 2020 17:24:05 -0400 Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25B0BC061755; Tue, 30 Jun 2020 14:24:05 -0700 (PDT) Received: by mail-pg1-x542.google.com with SMTP id o13so7582930pgf.0; Tue, 30 Jun 2020 14:24:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=hIPfO7ux9DNr6HYEXTRvYHtolE2zfLDOhNyZZg0neiU=; b=l6IbFr4lB10a6avSIpBkHukmvsF7G+Pa3+nFsF43/+EvA/lHbqde5uyHkmEQmbhWQi gzEvYjUi198wq2shdVl+NYnidqLtlARhuL3JFWlTkPqCK+kXjoFuhUfI3wdXYpKjeR/y AvrGhJKF2TtuMX4MjuTTH54IOyj16SSWwwSDU8XiR7P8JpTzObyVBBzNMm5pVn9i7vy4 myEXPf0E6MOBUGwCQH0NfvOIhbDCukLi+hHl3oWks9goEeF962Vwf38BdMzNt0Xz7Uh2 1IUCAZs4Atrj4mnoffhwMiXP8s0HNRrpXO5lgcaD2p4ARfkHZ8JdtHqrEAuvd81cx99n RARg== 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=hIPfO7ux9DNr6HYEXTRvYHtolE2zfLDOhNyZZg0neiU=; b=ndBpO/1C5e71sPMla+AFf3vptmHXtkV7seGstxF1wxHxCtAn6dKArZTr2rv+hWprzv YEhC1BekBuck9TscORe1r58iFpvDKqvu1H7jYhoCZdORnPMOaxHK1BpEAzeyp0lYkZuM 4Rg8hn6g2ZtW05CYNIbLyJcA0SHPmfWJfFEGAF/s8FojGytwPVSX3oAeyLPrSmtPZHyQ bgBFVM0gnugufMHglBAilmn9z2GT++tRt+L3repC6I4d+pUuDGycKVCIxx+0bn9gqUuc pFYmzlS5S90mVfoAPvBhyXIFLQkAp0GOp4JkZXDZ9XpuG20/Z9CCLwplYFsMIGalBo/Z IoSg== X-Gm-Message-State: AOAM533yTr0MOYs5+abmgRnDm4jY/uRUhTY4TWDFucvcSGhSkOvNjMFD wMedhQbH9y5JeKE2pxzosUQ6Tr/9p5sAknIeXEB9kHch X-Received: by 2002:a63:a05f:: with SMTP id u31mr11014041pgn.4.1593552244686; Tue, 30 Jun 2020 14:24:04 -0700 (PDT) MIME-Version: 1.0 References: <20200625075805.363918-1-mans0n@gorani.run> In-Reply-To: From: Andy Shevchenko Date: Wed, 1 Jul 2020 00:23:48 +0300 Message-ID: Subject: Re: [PATCH v2 1/2] gpio: add GPO driver for PCA9570 To: Sungbo Eo Cc: Bartosz Golaszewski , Linus Walleij , LKML , linux-gpio 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 Tue, Jun 30, 2020 at 7:11 PM Sungbo Eo wrote: > > Thanks for all the reviews! I've updated the patch, please have a look. > > And I have something to ask. > > # echo 1 > gpio408/value > # cat gpio408/value > cat: read error: I/O error > # cat gpio408/direction > out > # echo out > gpio408/direction > # echo in > gpio408/direction > [ 91.006691] gpio-408 (sysfs): gpiod_direction_input: missing get() > but have direction_input() > ash: write error: I/O error > > I've never dealt with GPO expander before, so this seems a bit odd to me. > Is it perfectly okay to leave get() and direction_input() unimplemented? Actually it would be better to return the value you set for output in ->get(). -- With Best Regards, Andy Shevchenko