From patchwork Sat Dec 15 14:25:51 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 1013920 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-gpio-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="VEjy2FpT"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 43H8qX27mqz9s4s for ; Sun, 16 Dec 2018 01:26:31 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729747AbeLOO02 (ORCPT ); Sat, 15 Dec 2018 09:26:28 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:33455 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729687AbeLOO02 (ORCPT ); Sat, 15 Dec 2018 09:26:28 -0500 Received: by mail-wm1-f67.google.com with SMTP id r24so1254742wmh.0; Sat, 15 Dec 2018 06:26:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=w2/jKi2gWd7ra3PJllURc7FusMvT+tvLFCzSiMR0aMM=; b=VEjy2FpTCU2t7BO9/xOqh1MVF009VUfdG6oxoHgkpbpSbNBZrX0UCRZ3LyyeTk5Cu5 A99M5uiyTLfg2E0npS/svvmtU6FR0v++tLf/ffxLswJymV8i/DkrJhEy0LPVG7mP4Q/B ru+zLstO44aDDt7Dyn+wmVEYxDYfhg5nBRuJCHP0ZyoD12nHfCb3+x3DIFLDTcw+zsYK Wz29xk4qkumGofZmfWS00GSxb2daChYJzRrHAq6ADRKSR9NpQn07CTzhrk0J/iEnr374 DKDPnqd9k4bdok1B6RvmTwyudLcTpU+CFScd9eKK6YP3cLlPZhbdp3oOSUdX3Ht4e6bN TL4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=w2/jKi2gWd7ra3PJllURc7FusMvT+tvLFCzSiMR0aMM=; b=VYcFgz9lAlav2+XJfgCitUrOf7nSfEvS7SUmnF+Cycn7Fs4ErwaTXchnBAubEn76Qj m7kgLdgn3OS46/xPYySzq2Plr9v3sRr+UtxdKRtMcwoA6EJqT5ndZYZ1ss/7KSWE1+DW RCr9WfgZwZHM/uUljHqE/McFKIMqZeOU4CzJ0NhD9upKJGJL+go5tsW+FV+Kx9StU3ED UitN/zjupkA5k6f6/cckMuNs4C02839UQJe03Japa79BIyOFuAFXTw4rwN5wIQt/3wa6 jz8PJKBI9Kzd2gwu2YbXNdCJBgbwCazyTDnAYldj1e3TC5k5ZYlx51yts4XOmXaM6/1N TPkA== X-Gm-Message-State: AA+aEWZCQ6QSLwytMiIq8hCiipo3we4Aht7RKPNFUYK8GkerJS80D/lT 0zh1Nmg4cEpxo3bZNb6JBA4PfXuh X-Google-Smtp-Source: AFSGD/VBacyHtTC/jNCiasII8MexHbCZ6XKyZhSuwzrM/OhEmlsXI8K2ueJZtgBZQoA2m/RtdZQS/Q== X-Received: by 2002:a1c:9dcc:: with SMTP id g195mr6112838wme.153.1544883985755; Sat, 15 Dec 2018 06:26:25 -0800 (PST) Received: from kurokawa.lan (ip-86-49-110-70.net.upcbroadband.cz. [86.49.110.70]) by smtp.gmail.com with ESMTPSA id c7sm15401225wre.64.2018.12.15.06.26.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 15 Dec 2018 06:26:24 -0800 (PST) From: Marek Vasut X-Google-Original-From: Marek Vasut To: linux-gpio@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org, Marek Vasut , Linus Walleij , Bartosz Golaszewski Subject: [PATCH V3 00/14] gpio: pca953x: Code cleanup and regmap conversion Date: Sat, 15 Dec 2018 15:25:51 +0100 Message-Id: <20181215142605.15397-1-marek.vasut+renesas@gmail.com> X-Mailer: git-send-email 2.18.0 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org Clean the PCA953x driver up, convert to regmap and add suspend/resume support. Marek Vasut (14): gpio: pca953x: Deduplicate the bank_shift gpio: pca953x: Fix AI overflow on PCAL6524 gpio: pca953x: Repair multi-byte IO address increment on PCA9575 gpio: pca953x: Unify pca95{3,7}x_write_regs_16() gpio: pca953x: Unify pca953x_{read,write}_regs_{16,24}() gpio: pca953x: Unify pca953x_{read,write}_regs_{8,mul}() gpio: pca953x: Factor out common code from device_pca95xx_init() gpio: pca953x: Zap ad-hoc I2C block write in multi GPIO set gpio: pca953x: Extract the register address mangling to single function gpio: pca953x: Perform basic regmap conversion gpio: pca953x: Zap ad-hoc reg_direction cache gpio: pca953x: Zap ad-hoc reg_output cache gpio: pca953x: Zap single use of pca953x_read_single() gpio: pca953x: Restore registers after suspend/resume cycle drivers/gpio/Kconfig | 1 + drivers/gpio/gpio-pca953x.c | 484 ++++++++++++++++++++++-------------- 2 files changed, 303 insertions(+), 182 deletions(-) V2: Minor fixes in 01,02,14/14 V3: The only change is in 10/14, where we select REGMAP_I2C in Kconfig, since the driver uses regmap now Cc: Linus Walleij Cc: Bartosz Golaszewski