Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8120141imu; Thu, 15 Nov 2018 06:57:35 -0800 (PST) X-Google-Smtp-Source: AJdET5fnVcm8Oe8qYBIbmsurGb/fWduRWNxgFyntgKZDzgWcS5JHKHx3ZRiG90ZT0SOqI6nDr1zh X-Received: by 2002:a63:1412:: with SMTP id u18mr5984135pgl.247.1542293855884; Thu, 15 Nov 2018 06:57:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542293855; cv=none; d=google.com; s=arc-20160816; b=UKpl2WiD5NU5+sCKTd5tv5eo1ezR3+g4irzLxCG7+a52/xulLVv+dQkCxzLS5TH18k YYu/+jRQ0VxvQhZGM6CIwlyQW3oWYEcWDOzQ3S6qybk8OK9f1o2c/0PIwp6FK/kzn+0Q c/Nt/oBhfkcxfwWtG79jnXcsAF/9WEDngsVVJU/ljPrHxzqOl+E4YXd22dOdeL+Z7Wvz IKMQtZ28tfYR9QV8b0FoPRzlVv3tVtWvxZX5FtT6/s8/f9jBOgCMIvAONnmy5xUQJtSp kcfK3eeZBrksMMl0/K8XUpg4wh8cTJj4B9sIROfB0WdeH2/wmy9S8Qb22tcbXTUbvafQ tuGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=8nWEnZDL6HI1UJFWwp+PQuh7bxOEmKQuWj1Ii+Ad74k=; b=pp2/j30y0NwqrstUutuReE4lSonvF23ytZIs8J2aHQ1z6W9FcqLXvo/G9faZ656cQO Dl9zHbUq3rYjZjfYpyPHVRMNA01n/uoto1Vv6e3SgsM/C1viOjbtlolPnzJZbmuGFva+ eF4M3OoAiaVCnviwlijHUBhxNiKUB/otb3be6pPIgkkJ0XouGwdDpsEZ9nvFAX6AzXvc U+PiUB4CuFhjwmXkZeSA8UZC/05NUqX4n4c3UxmHPTIILxM43yUQKDiWHY7z0ThFTEpy RKF9fd61Dz6Vz9MZ12VOiK7bWvD6HzA91rj10uWP+miO6uyU06JSA9fi3jhlpv9+zzGu NxAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZDu6NCer; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t4si6536669pfj.183.2018.11.15.06.57.20; Thu, 15 Nov 2018 06:57:35 -0800 (PST) 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=@linaro.org header.s=google header.b=ZDu6NCer; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388329AbeKPBEv (ORCPT + 99 others); Thu, 15 Nov 2018 20:04:51 -0500 Received: from mail-lf1-f66.google.com ([209.85.167.66]:42621 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387548AbeKPBEv (ORCPT ); Thu, 15 Nov 2018 20:04:51 -0500 Received: by mail-lf1-f66.google.com with SMTP id l10so10716237lfh.9 for ; Thu, 15 Nov 2018 06:56:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=8nWEnZDL6HI1UJFWwp+PQuh7bxOEmKQuWj1Ii+Ad74k=; b=ZDu6NCerX8nxETOOnaZ6XJ97NBCEHml7OkhPLuywXDSwonCqi1MbfwPQx7ZFxS2XUd qPe8V105R+8efRySpgZbXlJD4sxSn/AG9dB2QIatJPaRH4ePdGRHRS/W7IZl/ZxeN8RU yAC9QE38qkXEZPRvy5sgWLtU9w/O6SCyxzO9k= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=8nWEnZDL6HI1UJFWwp+PQuh7bxOEmKQuWj1Ii+Ad74k=; b=lUCmR1K/B0/hYNe4GECpv0vUrQF+gbbhtrSpquGhe/AXaYnGQsKijmeYADeC3mVLH0 TJ9KMzJPHCv1/tXtpXDr7bCRFVm30L79BkOGdEWOWwxwWC05M5oIInKbNPoswuJfK9YT P0PhZUg8t3HR6Xpxzm7rayIn0q5+YwNbbHSGGaoBeavC1wZ9z3Wki6cMN9pq54bqmR+f bgfWgTR1hdP0F1FxgKwnot4o8gdhAh02r+L2LBLuSwdJNvxwyuCrmnQjlX+C5l9WUM7T xTIJFBKuTMmAlFLNPTLfWiSPa67emGREm9//8BnalioUv+UCu/xhuWNzRMzTLAjZAah7 AvhQ== X-Gm-Message-State: AGRZ1gJUXh+Ry8+9qoL/X+wwc4624j8/Irll5TFi+emwnrrBJ50+tj4a hEOzLqHzuZvd97Vaw0zAE7lyl9UPGDvECuw3+UglIA== X-Received: by 2002:a19:f813:: with SMTP id a19mr3488070lff.67.1542293799328; Thu, 15 Nov 2018 06:56:39 -0800 (PST) MIME-Version: 1.0 References: <1539969334-24577-1-git-send-email-dan@emutex.com> <1541018689-20625-1-git-send-email-dan@emutex.com> <1541018689-20625-2-git-send-email-dan@emutex.com> <20181111112944.GA27666@amd> In-Reply-To: <20181111112944.GA27666@amd> From: Linus Walleij Date: Thu, 15 Nov 2018 15:56:27 +0100 Message-ID: Subject: Re: [PATCH v3 1/3] mfd: upboard: Add UP2 platform controller driver To: Pavel Machek Cc: "Dan O'Donovan" , "linux-kernel@vger.kernel.org" , Andy Shevchenko , Mika Westerberg , Heikki Krogerus , Lee Jones , Jacek Anaszewski , "open list:GPIO SUBSYSTEM" , linux-leds@vger.kernel.org, carlos.iglesias@emutex.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Nov 11, 2018 at 12:29 PM Pavel Machek wrote: > > > +static void __reg_io_start(const struct upboard_ddata * const ddata) > > +{ > > + /* > > + * CLEAR signal must be pulsed low before any register access. > > + * This resets internal counters in the controller and marks > > + * the start of a new register access. > > + */ > > + set_clear(ddata, 0); > > + set_clear(ddata, 1); > > +} > > We normally reserve __ prefix for different stuff. This is not using > it appropriately. +1 I actively dislike __underscore_notation as it seems to be completely arbitrary and ambiguous. I think even do_the_stuff_reg_io_start() is better. But please come up with something to the point and descriptive! :) Yours, Linus Walleij