Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp1754008pxy; Thu, 29 Apr 2021 13:51:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQF+nE7NHkbRQOKtOy6899RvMiH5UozNhtqv7bVeYheu2BrShh0lCIX1bRQ7+dW3hY/iO5 X-Received: by 2002:a63:ad05:: with SMTP id g5mr1463174pgf.239.1619729473336; Thu, 29 Apr 2021 13:51:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619729473; cv=none; d=google.com; s=arc-20160816; b=u217LRLeWCvDSpjKTZHYRBmeHq2f0QCOpiPNYY0szAjmEsZ6KBYxU8kjMQ2+fXyafp nXPlpPrjiMVAzdEMmXaj8gFSV/syr0EICw7h4fGdgYgC0dyF0CcGFwy/wgwq4rkZn33R W2Oyg2UMD2sz5Sv/zC3QD2fzIVQDxMBhZhQMeQLoUMzyAYkgi9HqBVxP9r8ii+juP0m1 c3PlQHzpt+ryk8KurIMoXo6J5eXbTdcj7LS2Mfz5hYO85CgvB2wtMnpNgBeKQaHdWq8U 0A7supQO0Bszx959ISH2ISQjlDeXKQVXF+z59s2N5GPgLn2LbxwyOgjtiKv0hqGK0b84 ieqQ== 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=+lJW8sqJwEI0hybZTWZ3M//scidWBU0FxTTtQxAz4OU=; b=k2Vn+tQlAXe/aDCEZ63ngGoyXoSrHyi+TS+HnM5L4BwfKvMjHB+lMKTJkef9n7vMZF S/uhSaGnFpB2mmK6oXRVSAw2XNjptQ+03FUi4c3xQVt1VayTGv4c1S4TS+0zYtqcTY6p gqBc7dDBNVUxbc56kzRGAVbY124Tor+1v99gJo2N27V7Ucol9mK0vtzh95kfqU47TN3Y kVUDZWmeSu57hemPcfl2Km8VazLqkC4PL9GkFkXDi3ITsq3KN0hMzKbsteRs/44Wu0MH vyHsw+O47Cu4/grfsrOMWq5e/PGHu9qn9pCLXpJkcc1dfO5NGtI5OcNULC/WtyPPCDSW 53vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=U8Cc+Mt2; 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=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c24si1325587pgj.407.2021.04.29.13.51.00; Thu, 29 Apr 2021 13:51:13 -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=@ibm.com header.s=pp1 header.b=U8Cc+Mt2; 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=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236900AbhD2UvA (ORCPT + 99 others); Thu, 29 Apr 2021 16:51:00 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:12190 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229966AbhD2Uu7 (ORCPT ); Thu, 29 Apr 2021 16:50:59 -0400 Received: from pps.filterd (m0098413.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 13TKX6H0109356; Thu, 29 Apr 2021 16:50:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding; s=pp1; bh=+lJW8sqJwEI0hybZTWZ3M//scidWBU0FxTTtQxAz4OU=; b=U8Cc+Mt2iQpf/jV5+VsC0La9aZpMB3f8VLdEtRF6XjATymTHvjctNoBPqdO52Zs1DyWK w8B4wChWGDZMsQ6HezxYeXYvK022vrzrk+of8+LhOoqrIgwzv2R4B4UhulzaB1H1Rdtd aasZvn7BL8d9fNKESzvh+tIQ9rVGPnGMFJbTANDaOVMmuR+OB9bDL/1JawXLUSuoESrT spErf1ZlniYuyKVPo6PQkMuXE43ELPVMNS/kXaWtNuvU+qtz6WMhycJQWFlaNSV3K5HN KiDQriS38qNpufe6nthorgGz1e6bu7LKSzV2XvUvd/smqxoz7Xw3TfuU7NPfJi1zth4P Sw== Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com with ESMTP id 3883ech61j-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 29 Apr 2021 16:50:08 -0400 Received: from m0098413.ppops.net (m0098413.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 13TKXR0n113357; Thu, 29 Apr 2021 16:50:08 -0400 Received: from ppma04dal.us.ibm.com (7a.29.35a9.ip4.static.sl-reverse.com [169.53.41.122]) by mx0b-001b2d01.pphosted.com with ESMTP id 3883ech614-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 29 Apr 2021 16:50:08 -0400 Received: from pps.filterd (ppma04dal.us.ibm.com [127.0.0.1]) by ppma04dal.us.ibm.com (8.16.0.43/8.16.0.43) with SMTP id 13TKfGuD020477; Thu, 29 Apr 2021 20:50:07 GMT Received: from b01cxnp22035.gho.pok.ibm.com (b01cxnp22035.gho.pok.ibm.com [9.57.198.25]) by ppma04dal.us.ibm.com with ESMTP id 384aya8mwt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 29 Apr 2021 20:50:07 +0000 Received: from b01ledav001.gho.pok.ibm.com (b01ledav001.gho.pok.ibm.com [9.57.199.106]) by b01cxnp22035.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 13TKo69B34537976 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 29 Apr 2021 20:50:06 GMT Received: from b01ledav001.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C1B2C2806A; Thu, 29 Apr 2021 20:50:06 +0000 (GMT) Received: from b01ledav001.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D469F2805A; Thu, 29 Apr 2021 20:50:05 +0000 (GMT) Received: from v0005c16.aus.stglabs.ibm.com (unknown [9.211.73.43]) by b01ledav001.gho.pok.ibm.com (Postfix) with ESMTP; Thu, 29 Apr 2021 20:50:05 +0000 (GMT) From: Eddie James To: linux-leds@vger.kernel.org Cc: linux-kernel@vger.kernel.org, pavel@ucw.cz, jacek.anaszewski@gmail.com, robh+dt@kernel.or, devicetree@vger.kernel.org, vishwa@linux.ibm.com, Eddie James Subject: [PATCH 0/5] leds: Support retaining state for the PCA955x Date: Thu, 29 Apr 2021 15:49:57 -0500 Message-Id: <20210429205002.70245-1-eajames@linux.ibm.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: Y81GTJAsVYS11NcwUa07wx8gz-D9_sV1 X-Proofpoint-ORIG-GUID: P6gmtKGH4EmS0flePYnG7Vr8zbG4_9po X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391,18.0.761 definitions=2021-04-29_11:2021-04-28,2021-04-29 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 priorityscore=1501 phishscore=0 clxscore=1011 lowpriorityscore=0 suspectscore=0 impostorscore=0 malwarescore=0 adultscore=0 mlxlogscore=939 spamscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104060000 definitions=main-2104290133 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series implements the ability to retain the state of the LEDs controlled by the PCA955x across system reboots. This includes a change to the LED core driver to respect the retain-state-shutdown device tree property. It also cleans up the PCA955x driver and adds the ability to query the hardware LED brightness. Eddie James (5): dt-bindings: leds: Add retain-state-shutdown boolean leds: leds-core: Implement the retain-state-shutdown property leds: pca955x: Clean up code formatting leds: pca955x: Add brightness_get function leds: pca955x: Implement the default-state property .../devicetree/bindings/leds/common.yaml | 6 + drivers/leds/led-class.c | 10 +- drivers/leds/leds-pca955x.c | 169 +++++++++++++----- 3 files changed, 142 insertions(+), 43 deletions(-) -- 2.27.0