Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp95084ybt; Mon, 6 Jul 2020 05:00:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwnxNZV31+wSBCA2OcinrB+jeeJ3/hC5kDM66XsRfthWymQ8Q+TjPNkR/L73eiYoDt3Xkgv X-Received: by 2002:a17:906:cc13:: with SMTP id ml19mr42373046ejb.288.1594036856899; Mon, 06 Jul 2020 05:00:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594036856; cv=none; d=google.com; s=arc-20160816; b=eftFJ5wNCFMA9lXgwrNz6Q1e0MN1SLrdcHNPlbQTucdQWFje1WRb9raoqYLcUDSlCM 81FH7aQg/1v7l5lF6Ea/EYBjL3qW0oyuqbXzJm3SS/UgozhKrg+wq0dh+QklfaHePzCD 2JrwuNGhSwCEgMnbHpOsxMRCeZd+snf5ay3b/8QQzyd6WtB3svcFj6d6lfLanvOJyiFc YDiAj17UG4NwEnbWgIQ9e9XqBrA0+ivYfVlO7KeI4+HQ3sNWmwzZweXHkLgNx8clU0vg FeTZLDmQrvyVdoJfTjUgQyJT1A6n9xrXdUoEsNxspDKVFJoXLEFFLmiWAqIS+V7F+V1J Bzew== 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=k2wZVBCbFmyS4f19I96bMfACN0zJyTtZkt6TGll4q3k=; b=U/kCqhkXyXZwVP48GlIsoO4N0Hn+GRwKMpRtP/jbKmS3rAY5NKff6eSehv1Se2nKEF 8CpqAfOk7l4A0XbOlhMw1vVm9prjPNnf+/dsu082oRjY2idVCwZbYc3c+4tXX4U1T96w 3tVIEWySjc0EkYsEOHQVe1AjOgYAxb177qXjHrF+OO/CGQz/yms5Sj+7bTo8px3VbEc8 Ln9Mic1WMu+M9DUsu2zePt20NcB9xawd7KiIOCTFGr6PEk8sN/CYSQ/gBZwA/cZQE5Sv 89zAtdQtDBikL7j1Gcq3a2ujbFfd3K7PZ3u91635SV1iMVB6yCW+rCafG0PIhmYnls2C VHWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hlaataya; 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 h14si13503361eje.503.2020.07.06.05.00.32; Mon, 06 Jul 2020 05:00:56 -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=hlaataya; 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 S1729050AbgGFMAY (ORCPT + 99 others); Mon, 6 Jul 2020 08:00:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729005AbgGFMAX (ORCPT ); Mon, 6 Jul 2020 08:00:23 -0400 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A30D7C061794; Mon, 6 Jul 2020 05:00:22 -0700 (PDT) Received: by mail-pg1-x541.google.com with SMTP id t6so18298686pgq.1; Mon, 06 Jul 2020 05:00:22 -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=k2wZVBCbFmyS4f19I96bMfACN0zJyTtZkt6TGll4q3k=; b=hlaatayaR5fM1opYuZxRQLjh4ia6UrS5+Yv1bc51QztaZUkLdZqiiFOlARsV/10S+g wAS+W4QYhOVXxXbgq5TQkVkrSJ85UafIRr4amXG5cPrHTh08pZAcj7sZFZt889Dy33WE AKD13FxipQxWJi3e17SAXeR8Pl6RlECF49No27zMOnymNDFN0vgkswwL32JsKk5dNAsQ tdA/1QXmjwSK3FbslaFy1djWK9pS2DLpD1be8JBZyiLMkWFhhdY+UFF3H4JhUbakzU2s +UehpbLn1c9La4/0z6Nn6GUnu98WfQuOpf2tCH4/s2KxHPlSoPp71BQBpPSjdpzwfjbB wF/A== 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=k2wZVBCbFmyS4f19I96bMfACN0zJyTtZkt6TGll4q3k=; b=eamASyljo05LcW22bQGuXBivnD9apjAsjCXYJQvOE53Ztuit6G94xls0Cx2Hd08rfM x7RFb9O/irml1GBrhjvhwxjuEYVAPjQTOoiN0PFARTA7L2D+724adqW7cg8+ChJJd2P3 +Ia2ZJI/yBzf1MLCAh4Uo0mheT9Pod+jzNRkg6l7UHwJRUfFttvct9K9zJCDVpw+FECQ xPcxKERjMVMMbDRfHVNx31bv24k2laI8YDxz+OIH/wZt+4ZRvSVxmHyanBi2Yv/mxJtA agSTaXZL5YJfxL2C3RTlEsJO4k1VxpkvL9V+wGpoGtfMXM4DYdhgfowTg5GfEngiXMAY 2QLw== X-Gm-Message-State: AOAM532b8Rzbe15M9mk7+LcKr/CqrRrC9q7/8eGzS69H86T2fE/6sLeU q3Akdv4Ki4pBvX3h9iQM3MGBWQhRyGFAf2+n584wax1S X-Received: by 2002:a63:ce41:: with SMTP id r1mr16751991pgi.203.1594036822196; Mon, 06 Jul 2020 05:00:22 -0700 (PDT) MIME-Version: 1.0 References: <20200705133038.161547-1-mans0n@gorani.run> In-Reply-To: From: Andy Shevchenko Date: Mon, 6 Jul 2020 15:00:05 +0300 Message-ID: Subject: Re: [PATCH v5 1/2] gpio: add GPO driver for PCA9570 To: Bartosz Golaszewski Cc: Sungbo Eo , Linus Walleij , Michael Walle , 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 Mon, Jul 6, 2020 at 2:21 PM Bartosz Golaszewski wrote:> > On Sun, Jul 5, 2020 at 3:31 PM Sungbo Eo wrote: > > > > NXP PCA9570 is a 4-bit I2C GPO expander without interrupt functionality. > > Its ports are controlled only by a data byte without register address. > > > > Datasheet: https://www.nxp.com/docs/en/data-sheet/PCA9570.pdf > > No blank line here. > > Signed-off-by: Sungbo Eo > This driver looks nice now but why did you remove the mutex in v3? I > think when Andy commented on that, he meant not understanding why the > error check is protected, not the i2c operations. Right. > Are you sure you don't need this lock? It's a good point! -- With Best Regards, Andy Shevchenko