Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3416874ybt; Tue, 23 Jun 2020 01:34:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJygaqTj17HTsttWV7Cx42xAS7K6Qns6rdhBmJ6f9+IJ0yacnIrx2MmT34KlxwVMgtaD7o70 X-Received: by 2002:a05:6402:1767:: with SMTP id da7mr21252591edb.90.1592901250107; Tue, 23 Jun 2020 01:34:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592901250; cv=none; d=google.com; s=arc-20160816; b=VwcCI0b0QVKauYfJg1fjadD6DbwZe4OMjvAXXcda8JshW6T4Avn2r0CGhQfaA+Q3dS BD++5LPCEsgk9mCncTagfuTZZvZ3q/Zc5An6RSvIqzsPpIC0Pb5CktFbNZEPPRaMNbxG 8EeJQoAvJK3UhfdGTopauO/Su7g4WnEXH/zNDoFgCQUpRoDNb/NibVWCb+asf+ixJaVF qdPvHxV98QroCjBNl43JtZEcdt7Mq4unyPW/rntjHKQOizA6Vg3z2kyOWGJw3SGcVqG0 diFsAki7wzZ4dYzhUE8pSwDkKBR099DNhnbQzOvZ3kiiFUkJRvon9HzSRkagTe2GaB7r 2cYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:user-agent:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature; bh=FlOZBOvH0FZU1XGLz4KXR5VgiLM9oa/q+XZPRnsX968=; b=XXyimFQBG+6vsoJb9YNU5MeSvntP84WMRAy9rvhjRnOYhYytQAKxRP367XIG9r43kU iUp2v5GgRQooC5LE4upPB/4Rfz7Do1uMPoKa2pGf7dCYHKUh1ghb/bsYOUhVq7o76nTG SL9vHl6wAhTC0HQU2zNheWNBoJUXr+uVmYtQTnVRqz6FMjvWhciqOcQxr5qY0M4HG/f9 bJrciXYhPVjy+eh9qiYx0S5Oz56ux4g/M1X183GwkehWWIBSgY8oLKfPTr/InL1x3Jif fpUSXPXslhC0Dg1eVHkSuBcz1ZMJqk0L92XPSf6ZodmqSfyeDGG1M1BSRcF21+UKH05p f8OQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=mJouaHPa; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k6si11751325edv.190.2020.06.23.01.33.47; Tue, 23 Jun 2020 01:34:10 -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=@walle.cc header.s=mail2016061301 header.b=mJouaHPa; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731724AbgFWIcC (ORCPT + 99 others); Tue, 23 Jun 2020 04:32:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731579AbgFWIcC (ORCPT ); Tue, 23 Jun 2020 04:32:02 -0400 Received: from ssl.serverraum.org (ssl.serverraum.org [IPv6:2a01:4f8:151:8464::1:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EDEE5C061573; Tue, 23 Jun 2020 01:32:01 -0700 (PDT) Received: from ssl.serverraum.org (web.serverraum.org [172.16.0.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id 2C4B722EDB; Tue, 23 Jun 2020 10:31:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1592901117; 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=FlOZBOvH0FZU1XGLz4KXR5VgiLM9oa/q+XZPRnsX968=; b=mJouaHPa/SlK0n+u4dgknpratnruefsoa3XsN5L+C5bBRLFGV11VSxZveppefppunG0BYE IKVMBXoeli6F6T9oViupLnXq/CEilOEMJXvvjFFlaZLBbqjwDpHjv3KJTilZjBQyeZebjC 6NBOJVPdmaBMPlTaldb56pW9sreXjdg= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 23 Jun 2020 10:31:57 +0200 From: Michael Walle To: Sungbo Eo Cc: Linus Walleij , Bartosz Golaszewski , linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org Subject: Re: [PATCH] gpio: add GPO driver for PCA9570 In-Reply-To: <20200623060526.29922-1-mans0n@gorani.run> References: <20200623060526.29922-1-mans0n@gorani.run> User-Agent: Roundcube Webmail/1.4.5 Message-ID: <80bbca9a625b2a0feb9b816906549b7c@walle.cc> X-Sender: michael@walle.cc Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sungbo, Am 2020-06-23 08:05, schrieb Sungbo Eo: > This patch adds support for the PCA9570 I2C GPO expander. > > Signed-off-by: Sungbo Eo > --- > Tested in kernel 5.4 on an ipq40xx platform. > > This is my first time submitting a whole driver patch, and I'm not > really familiar with this PCA expander series. > Please let me know how I can improve this patch further. (Do I also > need to document the DT compatible string?) Did you have a look at drivers/gpio/gpio-regmap.c ? Your driver seems to be simple enough to be easily integrated with that. If you need a blueprint; because at the moment there is no driver in the kernel using that, you could have a look at: https://lore.kernel.org/linux-gpio/20200604211039.12689-7-michael@walle.cc/ -michael