Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3713612imm; Tue, 17 Jul 2018 09:06:51 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcIlw+sLb5t+rbSEAc2EiuAnosk6SseGqYnhg/8OqJHSs08s/prY6RlmQlCageVbtvwl2Gz X-Received: by 2002:a65:6398:: with SMTP id h24-v6mr2155361pgv.245.1531843611667; Tue, 17 Jul 2018 09:06:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531843611; cv=none; d=google.com; s=arc-20160816; b=ddIoSsc/fimNzW+mrq0ckkr5p4jIew741pOu4usrChq+2mOxtkAvJXLkoE3GLpsiyi CEa5tBn4JEoeiVaKFh/OAoRkKcVv3CV9bzJONLNDDqMNhysQHR0LViKvpccTMljtDZ86 MmwqJxNce8hOX1xq5qvtDDzblghg6JPfVoKlJUWx90lNQJUsbj0sfN/uwPUU4Rsp+rxm 9/RzpDlZ/qjMkjRO8GOfHbSgvXkVGwM6Xv9KmZ1JLa7XJzr6ClSX1QNoUlOKO+Op+DhM CETbtnfAV3ddL5Sdh+6vXFxNlfYTcBkdNf/5nrrdoO6yrf8CDYBaEyCiCpLP7PuJNyi6 JfSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=iz2HmXy+IgRzqq5TIQtfL8/OgQKj1WYmRin7lzO8LyE=; b=cGztserTG5V1i7Qm0RisghiSpSbnEPFW9wFC36S25Asf8iMkGya5vOMn4OXaX4lhwP 4f3RHD0cxIKD1+sY7J885ms4gxPPsb+jpSIpJ5rKC5roWkAbx+RxDQ6/Tff30XoE1mZS HLtoo5vQt7LCbe5qsQqBeA6duMiiJ2FM38Jw5LA8sy68AzAozM59raX/DezRs6jhAVs3 rlKQZTIoYn8c7WITbir+llVV5/QI8wR1XQiRiaaw7Ztu0WQTIrcWY0MOtlfHAYpeE8NV xx7lO2BaNlF3VzZWOCTw4T9PxONI+wJO3Qd7lJnGdnhBZC+LAZGjSK+NFVFN4r2p0wel CKEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=U15pDx7P; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id o19-v6si1315746pgl.212.2018.07.17.09.06.36; Tue, 17 Jul 2018 09:06:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=U15pDx7P; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1729717AbeGQQil (ORCPT + 99 others); Tue, 17 Jul 2018 12:38:41 -0400 Received: from mail-lf0-f65.google.com ([209.85.215.65]:36665 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729657AbeGQQil (ORCPT ); Tue, 17 Jul 2018 12:38:41 -0400 Received: by mail-lf0-f65.google.com with SMTP id b22-v6so1245185lfa.3; Tue, 17 Jul 2018 09:05:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=iz2HmXy+IgRzqq5TIQtfL8/OgQKj1WYmRin7lzO8LyE=; b=U15pDx7Pz+B+QVtbccIDf2OTbN8zYzFjrZBQDw/gLBLHRhuuFz1Qf2H6h06O6Zm6y1 ePLHsLSes2Fbxt0E0DJ6vgpGGtm192+jXNDm+3DOs6syVScYtbkoSM/jVNeEkCVaFQOY 27jEU2ypJ5FL0Z/TYruMxk5jO3gJK/SHQxetyyqYfqYV+/0RH7FZT9SG9Y2L165LI/V5 U/ziZO+8qW5ZMB1jpWwcrI8mInMJCHk0k9BbEpXMuo7A9e6b8SYr5piigYMZvT/EhcVu 5iRiOoKT+3KQt35yPM0mD+7g3TE/umJtC4xe1g5BqHHLhAeC7xpWiRzifQMfrMvKACTI XHWw== 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=iz2HmXy+IgRzqq5TIQtfL8/OgQKj1WYmRin7lzO8LyE=; b=GZc2ddcnz1FQ+YZ/h5Z0D1PxLj8fwY3cZ/VIG2T06VliYM7xX4Fgcz/lfrVAqOoOqk WkDSQIRQKpAgcmPNmwZaZZWAJBYqYkXOdxbrPyJqPSn/x6oXddC/n3TY71G7a3FAb/OJ cMA8/TKkn5s4z1ObQp8uooX7gjP74Bc2OJgGQpmaT9S2JnC51SiEDQ5PB6oijM2uwGHq GqzM3So0I4ilpGszGOOlmJFbDR2GNTN3BIi3OdkT4bENBLu0GaXLULvdM/GxYujqtVsB 1cxn2L2UhEoYi1sStIRmMlHAfsmsm1xTkoW7J5KUg+hslhb1xz+8GaTZYBD47rezXlXe xT6w== X-Gm-Message-State: AOUpUlGZsbb64tD8RFs2ybqNToxhsRzwhylTbmKl5KeXECtd1ASnv/jr pBRfYaKokvptE7Q4AH3bnKc= X-Received: by 2002:a19:5d54:: with SMTP id p20-v6mr1608146lfj.143.1531843518396; Tue, 17 Jul 2018 09:05:18 -0700 (PDT) Received: from localhost.localdomain (user-94-254-174-73.play-internet.pl. [94.254.174.73]) by smtp.googlemail.com with ESMTPSA id d23-v6sm229861ljg.17.2018.07.17.09.05.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 17 Jul 2018 09:05:17 -0700 (PDT) From: =?UTF-8?q?Pawe=C5=82=20Chmiel?= To: lgirdwood@gmail.com, broonie@kernel.org, sre@kernel.org, lee.jones@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, =?UTF-8?q?Pawe=C5=82=20Chmiel?= Subject: [PATCH v3 0/3] power: supply: max8998-charger: Device Tree support Date: Tue, 17 Jul 2018 18:05:06 +0200 Message-Id: <1531843509-3533-1-git-send-email-pawel.mikolaj.chmiel@gmail.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series compose of 3 patches. First patch, fixes platform data retrieval issue in max8998 charger driver, which could cause NULL pointer dereference. Second patch, updates max8998 charger driver, so it's possible to parse devicetree for configuration. Third patch, updates max8998 documentation, so it includes new node and properties, needed for charger. All patches has been tested on, Samsung Galaxy S (i9000) phone. Changes from v2: - Make charge-restart-level-microvolt and charge-timeout-hours properties optional. If they're not present, assume they're disabled. Changes from v1: - Removed unneeded Fixes tag - Correct description of all charger values - Added missing property unit for charger properties - Removed already applied patch Paweł Chmiel (2): power: supply: max8998-charger: Parse device tree for required data. dt-bindings: mfd: max8998: Add charger subnode binding Tomasz Figa (1): power: supply: max8998-charger: Fix platform data retrieval Documentation/devicetree/bindings/mfd/max8998.txt | 25 +++++++++ drivers/power/supply/max8998_charger.c | 62 ++++++++++++++++++++++- 2 files changed, 86 insertions(+), 1 deletion(-) -- 2.7.4