Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp402072ybk; Wed, 20 May 2020 02:33:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxTL/R6YsNGd3Y8unh7JZdYzc4U8868g9j0p9DEYBBdBLL0GBgBVm3lqoLSBg0C2MRka5yr X-Received: by 2002:a50:f301:: with SMTP id p1mr2518394edm.180.1589967208976; Wed, 20 May 2020 02:33:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589967208; cv=none; d=google.com; s=arc-20160816; b=b829+wuCMupqXUtrbaPyfWXMXC5iFZf9B7EVAWDt2Qi4T1v5EWnsz3EB6lrPItZhhp HoWtaXVwicaLLINSsbJ76iOeatpJ1Ty/7V41FeItvLqFJphQ32aOp5zLMpG8ZABrI7oa hNiGkKAP3F1ca7in7EWwZXHpzxZ/8jMbwfIhEGy2j2rs4gJnS33GXwl8UCPIqQIM0s9w B8PjyJvTkOOiEN5+vhZbLGsRcJ9elat1vYST7mR83X/sL5Oa96DMsJXKCpNCzcahpNxt U9S/bQ/YiKC0UtEJAqhItbD3v74ePAhXEYEUAf2tF2rPvjLnRIVltM7M63inlyxB8tGC F04A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=fGDkv4T8MKhXtvtJhdYon6fPiccDhuj/0wt8Z1uWsd8=; b=grZ7LSrN7OXlJnnE6LUprQZOHykVp5ca55AgFF80BpX3/BlIdRpLag2rTm4egjbpKi Z2Mtk+9sBbs3L+j6FBy1g7xFGrysN2ethfEKyViSxTMlz89Sgdqw3DCRSiRNZp/VzrZw Q1w1wUoHAKIKmBxjXxp+VdA08JDUsJn14T+sKRFNCBk0Fmfx2WugOsMekni+gjW4clFm jl9NX0iFUk5WcrQw9cv8RvPVrJqf6H2DUp7ORvLj7y9V8aNI9ejCAU4mT1d2iCqPEqbV NI/8ntlnGlQcWsh7GtQTiZibzGnFhk0UKSgL0Vtc0RF386sON8O7huFnQavZeC7a1eW9 NGpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=p72EAhzO; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s20si1465891eju.605.2020.05.20.02.33.05; Wed, 20 May 2020 02:33:28 -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=@linaro.org header.s=google header.b=p72EAhzO; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726937AbgETJav (ORCPT + 99 others); Wed, 20 May 2020 05:30:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726545AbgETJau (ORCPT ); Wed, 20 May 2020 05:30:50 -0400 Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C690C061A0E for ; Wed, 20 May 2020 02:30:49 -0700 (PDT) Received: by mail-wm1-x343.google.com with SMTP id z72so2140296wmc.2 for ; Wed, 20 May 2020 02:30:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=fGDkv4T8MKhXtvtJhdYon6fPiccDhuj/0wt8Z1uWsd8=; b=p72EAhzOvJg9XPS9RUikePxiTlmYlJFNUxuGbRzRvsdb1BEVuMAdpH5kk/OBi0eTA7 vdTKlnacAjitKdVwUnK+myaFNInSDpausUj6DohOiL5EJxgzpn949JV+PFCI9Bi8qW51 nxawfjVZE6gZZ4+BjtIa6oNPUB2RdgLiEijYTB1yvcW8PkCyEILZ4Gh1umyp8wsmdQBl iIFCae1IBS7L5ryGCOxqGz4B6zj7i569WinQvW950seT5+MsNkJf3XIsmGlCGR4683Q8 kgVW8KW2zi2cFDPu3l8d+UcC1lGTlHnVxl1tVBcTrpKlHl6SqiuXvy0OSvPaBpl4GsyS vv+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=fGDkv4T8MKhXtvtJhdYon6fPiccDhuj/0wt8Z1uWsd8=; b=JCoWeFWu9cFKBaOBl7FteKFEBVBg2EA0ooU4Y4a5dMOqzMt50NV5TEO8j+s0Ovr7SI QQi5nwUCPQwx5TOi48BaRqF2yBpwekDw0xlcxaKwVogWA5LorDEidn9EJjj0Ufz0Dinv aqXSQ7wDe3m3dxRSdDB/fgTGsUPywrV50fk6euVqmWgEKRAS4edRWgn9i+lxmx49ZtbT 4L6GAJP8AXelneMNLZr09KeXT8cNf8JnoKNjyWIgY7RgQfahZCCPFZhR5oHDZ2Zz962e A6Y8F1kc3ZIIlfH5Iqz9M3L+uthaI+50cQOdaQRf0Jos2+mivgbr+zdDzaIR8GJLGmC/ NRpQ== X-Gm-Message-State: AOAM530FzX0eJ1O4T0qA6ECwuOMBblgS3+THPa/C+r2eVWKL7xqGY67+ CEYv/k/qb/N0wntnQO/0hiQAfw== X-Received: by 2002:a1c:7212:: with SMTP id n18mr4115090wmc.129.1589967048028; Wed, 20 May 2020 02:30:48 -0700 (PDT) Received: from dell ([95.149.164.102]) by smtp.gmail.com with ESMTPSA id q144sm2584703wme.0.2020.05.20.02.30.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 May 2020 02:30:47 -0700 (PDT) Date: Wed, 20 May 2020 10:30:45 +0100 From: Lee Jones To: Tim Harvey Cc: Jean Delvare , Guenter Roeck , linux-hwmon@vger.kernel.org, Rob Herring , Frank Rowand , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Robert Jones Subject: Re: [PATCH v11 2/3] mfd: add Gateworks System Controller core driver Message-ID: <20200520093045.GG271301@dell> References: <1589565428-28886-1-git-send-email-tharvey@gateworks.com> <1589565428-28886-3-git-send-email-tharvey@gateworks.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1589565428-28886-3-git-send-email-tharvey@gateworks.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 15 May 2020, Tim Harvey wrote: > The Gateworks System Controller (GSC) is an I2C slave controller > implemented with an MSP430 micro-controller whose firmware embeds the > following features: > - I/O expander (16 GPIO's) using PCA955x protocol > - Real Time Clock using DS1672 protocol > - User EEPROM using AT24 protocol > - HWMON using custom protocol > - Interrupt controller with tamper detect, user pushbotton > - Watchdog controller capable of full board power-cycle > - Power Control capable of full board power-cycle > > see http://trac.gateworks.com/wiki/gsc for more details > > Signed-off-by: Tim Harvey > Acked-for-MFD-by: Lee Jones > --- > v11: > - fix compile error > > v10: > - fix typo and gramatical errors in Kconfig and comment block > - drop unused i2c device-id table > - added Lee's ack in s-o-b > > v9: > - rebase against 5.7-rc2 > - cleanup gsc_powerdown() by using BIT(), put_unaligned_le32(), and avoid > unnecessary assignments > - rename GSC_CTRL_1 SLEEP related defines to simplify > - add better description and sub-module info to driver description > - whitespace changes per review > - remove unused irq_data pointer in ddata > - remove unnecesary i2c_set_clientdata > - use devm_i2c_new_dummy_device to avoid need of free's > - change regsiter definitions to enum > - export gsc_{read,write} instead of sharing them via ddata > > v8: > - whitespace fixes > - describe sub-devices in Kconfig > - add error print for invalid command > - update copyright > - use devm_of_platform_populate > - use probe_new > - move hwmon's regmap init to hwmon > > v7: > - remove irq from private data struct > > v6: > - remove duplicate signature and fix commit log > > v5: > - simplify powerdown function > > v4: > - remove hwmon max reg check/define > - fix powerdown function > > v3: > - rename gsc->gateworks-gsc > - remove uncecessary include for linux/mfd/core.h > - upercase I2C in comments > - remove i2c debug > - remove uncecessary comments > - don't use KBUILD_MODNAME for name > - remove unnecessary v1/v2/v3 tracking > - unregister hwmon i2c adapter on remove > > v2: > - change license comment block style > - remove COMPILE_TEST (Randy) > - fixed whitespace issues > - replaced a printk with dev_err > --- > MAINTAINERS | 8 ++ > drivers/mfd/Kconfig | 15 +++ > drivers/mfd/Makefile | 1 + > drivers/mfd/gateworks-gsc.c | 277 ++++++++++++++++++++++++++++++++++++++++++++ > include/linux/mfd/gsc.h | 76 ++++++++++++ > 5 files changed, 377 insertions(+) > create mode 100644 drivers/mfd/gateworks-gsc.c > create mode 100644 include/linux/mfd/gsc.h Applied, thanks. -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog