Received: by 10.223.185.116 with SMTP id b49csp7757334wrg; Thu, 1 Mar 2018 10:33:19 -0800 (PST) X-Google-Smtp-Source: AG47ELsFHULIk/1Fch7Vy+s5UfEnyAUINeXzy/Vy+0WfOa+cp05gLUuXjyemyifGkgngF51DbPiC X-Received: by 10.101.85.71 with SMTP id t7mr2277884pgr.386.1519929199665; Thu, 01 Mar 2018 10:33:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519929199; cv=none; d=google.com; s=arc-20160816; b=SdLI6mIy0/fIQPkKwgirmCM4FadnEWJB+ZS6LYq7VF76hf6xvcr79s5LwSQ7ZNxfrM wrgDP/MUC+78P6reyfHUbZCxP/UqZC38sk69yeVhFJMZSoPvG0f00J50/bx6Zl28Sby6 /lpbdOxmufEu6CsEBHVWqHhtfD8keRET+y+i5rD+8JiUB4gLpDeJ3j5E9mZRhp2UGi/T smAtQzy+2yg1UwGYVaYzzYQBGY6k/JaPvD/4VHMRI7mGi1ol+RGPrRK8IibgACD/IlD8 3Em4S0n1Ijw4fkt4NrNK5ZxEwvxYrnElYW21KFmoi7HoAKp4K4IllaY9XR8KPj7rR7YE hsCQ== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=sNvtqq54xDxoxI8CeeUEMtwYxuQ92Yb927zSC7niZfc=; b=VKn0i2KPUMlmF8L3mQ4+boa2Ul1MJQP9ioEykiChFpBQHIR6B2oWY/Jpe+Gp51RTUW e5Y454p8jmw7PVCmoBb421g0IQMe0k8fGcOp3tgiOF4lJkzTxpwpEc7DxN3ShVqaz75J h0zZLfKNkJsUApx46p7pxTPwbDjS5s0JntII8XSJyWfBfZZwh7moAMWYCd2CXe1u/8tU V7X1srWOMbyyGHK27xcCS4iAGQcAKRwppP3AuKY1ffoL2YOpJc8nOdfmp4DK8PGuffp2 krRL8ZK5tGBMChcMOtoY+GJBi/eljTtdRA7lipTMMcYKgKQlwyB6lhdRo7amBnxzw/tE pATQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=T4lgkxov; 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 k9-v6si3441025pll.391.2018.03.01.10.33.04; Thu, 01 Mar 2018 10:33:19 -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=@gmail.com header.s=20161025 header.b=T4lgkxov; 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 S1033991AbeCAScZ (ORCPT + 99 others); Thu, 1 Mar 2018 13:32:25 -0500 Received: from mail-qt0-f173.google.com ([209.85.216.173]:44012 "EHLO mail-qt0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1033904AbeCAScX (ORCPT ); Thu, 1 Mar 2018 13:32:23 -0500 Received: by mail-qt0-f173.google.com with SMTP id d26so8782083qtk.10; Thu, 01 Mar 2018 10:32:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=sNvtqq54xDxoxI8CeeUEMtwYxuQ92Yb927zSC7niZfc=; b=T4lgkxovoFompf/KlCsxQnmdd5URRxqKmgwLmtmg6lNpHecxKagDX8UVKSJNVRroZm Y2zq7qw0OKmxIwNIrbLnYvSXySVB3nXeYu4tSsqf9w+lIWSbZK4pc0U8dpcfeT/iu1sz hc5vCWc6fYHLcRw1qsm8vitIvi0rEx9Hp6b778xXkS6io0zJO/flovj8P17DLyryjPDu +98wtIAvQCE/fyVXnayjuQyiWuMKgISienwSlwD/Bb88eIGs2BBXJSKH0SD0DEj07nyv w+m4I7kHpd9A+VOkK9tduLDui9xy4BeTNuTa6VEuSkRE0fFt5ECXZbg1DtdL8/nhoGAC 6+5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=sNvtqq54xDxoxI8CeeUEMtwYxuQ92Yb927zSC7niZfc=; b=paDCOFBYs0cBWzuI+4PiakSrnSVsCBdxLCpV6hXHTazNy2UYUGdki4gG9FQlnd3gBC BT4iP9hQ3++NS7aIM4fzuvcMMgv22BM7tlshveiTeVCSnewBMk5YU3hy74sZFu9EglmU Jt498wynPzvheyumpoNQsQnjECxyloi/6ZdzU2fJ6tifpBYxZ1B4Nc8Cbn/cWaNqyk6z bUAAIrSLEbWZpne3NRJ/cF1KmQxv2hhA5tBnWuOtdvli1y4KAu01NCa9/bWIhPWhZVKk QHqq52b5vNyHfzgJ9zP/JxQOfulKzIrRqYo4TmS2Xx9glwQt60cDcVrWoz3UmrGN0mHJ yg2A== X-Gm-Message-State: AElRT7FhNjLnnRNOzm6q0WmeAcGYHtQoIvs8EM58ctGunbbvJ/mLR1ZH tHypGHzycQmX+6MVl9NCa4RWVZMXV+VuQjp718VnPoq+ X-Received: by 10.237.59.232 with SMTP id s37mr4275941qte.83.1519929142354; Thu, 01 Mar 2018 10:32:22 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.195.80 with HTTP; Thu, 1 Mar 2018 10:32:21 -0800 (PST) In-Reply-To: <20180301163815.30595-3-ard.biesheuvel@linaro.org> References: <20180301163815.30595-1-ard.biesheuvel@linaro.org> <20180301163815.30595-3-ard.biesheuvel@linaro.org> From: Andy Shevchenko Date: Thu, 1 Mar 2018 20:32:21 +0200 Message-ID: Subject: Re: [PATCH v4 2/2] i2c: add support for Socionext SynQuacer I2C controller To: Ard Biesheuvel Cc: Wolfram Sang , Rob Herring , Mark Rutland , linux-i2c , devicetree , Linux Kernel Mailing List , linux-arm Mailing List , Jassi Brar 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 Thu, Mar 1, 2018 at 6:38 PM, Ard Biesheuvel wrote: > This is a cleaned up version of the I2C controller driver for > the Fujitsu F_I2C IP, which was never supported upstream, and > has now been incorporated into the Socionext SynQuacer SoC. > +static int synquacer_i2c_remove(struct platform_device *pdev) > +{ > + struct synquacer_i2c *i2c = platform_get_drvdata(pdev); > + > + platform_set_drvdata(pdev, NULL); Just noticed, this is redundant for many years since driver core does it for every device on removal. It can be fixed by followup though. > + i2c_del_adapter(&i2c->adapter); > + if (!IS_ERR(i2c->pclk)) > + clk_disable_unprepare(i2c->pclk); > + > + return 0; > +}; -- With Best Regards, Andy Shevchenko