From patchwork Sat Dec 12 10:57:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 342866 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp1348679jai; Sat, 12 Dec 2020 02:59:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJxs0KRyQbUsNlxld/TA8adpoHpGfGpZGzQqraaWk8pPi7J5ivNJot863QGweawekJ4niRiC X-Received: by 2002:a05:6402:139a:: with SMTP id b26mr16217422edv.47.1607770758937; Sat, 12 Dec 2020 02:59:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607770758; cv=none; d=google.com; s=arc-20160816; b=ddACRUqucFKStorcZgPxeM2FCr4xdJNrNJ+jvNU/meiru4BxWG1mP6h1eVO0A+5k8U 49vpNFQXOjx+YjLZKsmsDfm5NdR793R4JjD/7N1TtIrcJ/hXAeyCTzq175MaVKIcuidy 43215RRyZk77Q8cbHck8bvgrHoOKnCHdLozqbQCIvfb49TzK7LsgUz3C41WvzolWd9Rf sLUbP5173jFWYMhx7+yHEW1hZdlYirfxq1Vu4QwavoclTk5oy6690hbD2mf1Ll80Ry4i EwUMNECi1uoWCMNqk6TV10xep7cw7FVC5QhUXN7DzKNzwRfY4e/LxJCTCdNd8icYW5Oz lCug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=+xA7rCVNS/7h2O4jFsTgoSyQIUMJYQQ5V/vkRCnYTJ8=; b=c2d50H5KAoW3/a8oXZ6MZmFcFUSu4hy2vivFlU8aXhCBrQpgSttB0c590M0CIlP49M UADSGlwC1x82NDyuS+/TYfbhjBjOsvnhuCC+w2so9vJDwZ9RBDjizXFn42hel+mMGzqE ee7CbR6HbvpWFb+A0W4M/eAHIwFANRtgdtiKh6vJxuOlcKwsnOiO3JsbvVls1o2yW7Ky q8rI0gLBAIi6bvB4h5oXufPrphGiBsBfE8zsDLmJFvotUWlmNXrnH0OZc1QYpCoQskuW BavZohHFa1NR/cfpXKKgyNkiHh54fSbofxDGuywloQ1xGQpdEtoMUV2z/ZQCDCaSURAv bNVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IukAXvv4; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-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. [23.128.96.18]) by mx.google.com with ESMTP id dp1si6354112ejc.21.2020.12.12.02.59.18; Sat, 12 Dec 2020 02:59:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-pm-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=@linaro.org header.s=google header.b=IukAXvv4; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-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 S2438847AbgLLK6A (ORCPT + 8 others); Sat, 12 Dec 2020 05:58:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726374AbgLLK6A (ORCPT ); Sat, 12 Dec 2020 05:58:00 -0500 Received: from mail-lf1-x142.google.com (mail-lf1-x142.google.com [IPv6:2a00:1450:4864:20::142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0AFCAC0613CF for ; Sat, 12 Dec 2020 02:57:20 -0800 (PST) Received: by mail-lf1-x142.google.com with SMTP id 23so17962330lfg.10 for ; Sat, 12 Dec 2020 02:57:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=+xA7rCVNS/7h2O4jFsTgoSyQIUMJYQQ5V/vkRCnYTJ8=; b=IukAXvv4NySSWMScSQideCmcmL5QbtTFqxpPQ4sHw7FBXn24FwjsZn3ooOpzliF5JU McKVR3mGVLCoCMKjg7LMEjyyl7Hjoi1j9tMaktQMPedXewC9xUsFS9SbZDwnglDAlzv+ wUcZD9KkRa9F6bflVDGVPpud5ovseejM/5v/tyMNMWnKTuPBz/06LKQtBOFuI57cssJb ICO2dmDEOGgpyDjJiUxacQ+ySIVtj+eVkXstkjIoq5j/CBTo7+bpbp7op35lLqVB9TYT Y6LoDWbpPaKIExLaQNuSdkLVc7fFGFhVfJdPpSoqCq81xxcLwOxMJEZAqzzYWoiBo/A6 ZUaQ== 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:mime-version :content-transfer-encoding; bh=+xA7rCVNS/7h2O4jFsTgoSyQIUMJYQQ5V/vkRCnYTJ8=; b=gSKm4MJZ50spHJL+DzNTM5rk0BKagnhHQTw7Gi/VG9+TYxZJuP79PRVJ2EmmyM0yY6 ajlvSRqJ5HbpcYLRti4xWbaDNR4XzRbNRdWqj8WbIJCdYpWp/coaJeDOVYIrrqpOQW6Y pPg1m5coeRkEikSRPnOy3WpcixGEEgWxtjEOkhg561+Kc4mNEFc4aklQTPN/n24w0gNf TweXBRCmINS0S96bEgvpb1elMHfMvVIJUoIWrkHw5ZGRf8vxRQ+Pe7PWm2FpZUoF+Nmj nQrKLMgwZUA1JIJ5AgWQ4Z5liS8NR8Snv213/toWoINjG1avBoNUhIwc3FOe5mbfApdS uTpw== X-Gm-Message-State: AOAM532fRJHhq0FfZIU4ul5VIQL2AKKfYglS63ytRij1JhIJSI+Etqt+ zswLOAS2bMAmMkjVsskBcFcWZ9lYqofouFvh X-Received: by 2002:a2e:bc26:: with SMTP id b38mr7264352ljf.161.1607770638531; Sat, 12 Dec 2020 02:57:18 -0800 (PST) Received: from localhost.bredbandsbolaget (c-92d7225c.014-348-6c756e10.bbcust.telenor.se. [92.34.215.146]) by smtp.gmail.com with ESMTPSA id j2sm490674lfe.213.2020.12.12.02.57.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Dec 2020 02:57:17 -0800 (PST) From: Linus Walleij To: Sebastian Reichel , Marcus Cooper Cc: linux-pm@vger.kernel.org, Linus Walleij Subject: [PATCH 0/5] power: supply: ab8500 charger cleanup Date: Sat, 12 Dec 2020 11:57:07 +0100 Message-Id: <20201212105712.2727842-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org This patch set is a first set of cleanups for the AB8500 charging code, I'm trying to bring this to a working state. The code has seen some bitrot since it was merged a few years back. Notably it makes the code probe properly when enabled. Linus Walleij (5): power: supply: ab8500: Use local helper power: supply: ab8500: Convert to dev_pm_ops power: supply: ab8500_charger: Oneshot threaded IRQs power: supply: ab8500_fg: Request all IRQs as threaded power: supply: ab8500: Use dev_err_probe() for IIO channels drivers/power/supply/ab8500_btemp.c | 66 +++++++-------- drivers/power/supply/ab8500_charger.c | 99 ++++++++++------------- drivers/power/supply/ab8500_fg.c | 106 +++++++++---------------- drivers/power/supply/abx500_chargalg.c | 19 ++--- 4 files changed, 116 insertions(+), 174 deletions(-) -- 2.26.2