Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3790093ybc; Thu, 21 Nov 2019 13:51:47 -0800 (PST) X-Google-Smtp-Source: APXvYqxMzTr00bcIzReGguyq00GAlVrshzyYdtzVZ4yI1cu6TxhtBRR+JMtZqOmKq7eirL3IfFfN X-Received: by 2002:a17:906:1d19:: with SMTP id n25mr16238236ejh.151.1574373107639; Thu, 21 Nov 2019 13:51:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574373107; cv=none; d=google.com; s=arc-20160816; b=eD23+ohmlw0sGITgsbFEYdtqrjV9n9uOes/dsP7Royy0weIDj7Vyz24A9qUiBoDy7c HCsTd8jUC5d1VooJQTmqCuTNPYMOan5kjbp6knNd82VPLVeNNW64n1pH7chraRM0YCaS HfzCTD4oYbzaHrsuOVV0HMaoQrBp99QUStAOmprA1IyvkHWuNKfqhjhS4wZUeVhh5a5U wIC3Jw4neLvXIDuHJcFRwhmHz+T3JFyN22WZVrUazj8fJ1WOpMpEpUoZK8OmVAMiSJXp L99PJstzJko/hcwQl6HioiZd+Cl6tddUvv/PHaFYSqhM20WYuSCewINQuqy0h9+7T/hc vMnw== 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=441CDEY7r+jAiyFqGWKYoN/In8wLFWAjU8LoG44hNKs=; b=JOVWZIIlGJtjO73C0KsvC1h7bgYxIEd/NOGbmYSCIloP8q3xfmsX6dkg1HEH5t/dDa NIoF9CB+dxtyUT7mEycRPrDXIwPOPwNPpkAZ74jpX7FoKmX2yKgGAbiD+rn6kPs1VnIy TOXfD99OTtcI4vwp7lXpcugcK524XMPj8IkSdkKld4Y3uTDedmpRCOn9aFQJF6Z0xl9K zYjndrbNCZAygKUesVsEoFuHDH94RmEMIKPZuBO8fiCqGQgmG6mqnALZ+J+bUI5NED4X 2tKravm0VdPM+bbeZGhDbesf1bdecZ3zIOHBqKdjDy1QucA+RFOzXsRZdGzo/lsLYvdG STZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ewatgbtJ; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b15si1389098eju.362.2019.11.21.13.51.22; Thu, 21 Nov 2019 13:51:47 -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=@chromium.org header.s=google header.b=ewatgbtJ; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726541AbfKUVuI (ORCPT + 99 others); Thu, 21 Nov 2019 16:50:08 -0500 Received: from mail-ed1-f68.google.com ([209.85.208.68]:36850 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726329AbfKUVuI (ORCPT ); Thu, 21 Nov 2019 16:50:08 -0500 Received: by mail-ed1-f68.google.com with SMTP id f7so4191084edq.3 for ; Thu, 21 Nov 2019 13:50:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=441CDEY7r+jAiyFqGWKYoN/In8wLFWAjU8LoG44hNKs=; b=ewatgbtJd/GVsBazwuLbhDVy3ondBBL6YXn7+xys4ddOWJgSkvQyUhlZBIt3D9xmGY fvdvmkQS0NxDmjkrips5s3HdM7Jb0R/3Ge4SW9aEdseDuGeFkoxsMgIp8pBLWPw2uC/E n6lyziC2b0Cntk9mU4KbVq1dLXGcgZJfUOhXA= 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=441CDEY7r+jAiyFqGWKYoN/In8wLFWAjU8LoG44hNKs=; b=EBPlQ5wid3PcGqLks1wgUrzHUougQnmB+dop+Y6NPys9vjCQPBD1m/XP00ApCok681 fm+ypnR0CLWIsu/LmAkq157qyedEetW4m1XQ/9Hr3TfhCl5f3U+yBouwg/ut5WecXJnT M+X9CtwKj8Fn+Fe+JL/RFrb8YTXF5VTPZjP3RuGEcmtUZnolAh8hmExiGQ6uzKD+gGXE +U6zCFLshidhakwr59W7CF5+EiT8nMGpR/p67oWA4QPwVAzDyuLvLOd+cpZWqWGyh9T9 2Fibjc6mXBm3Zb3JcVXv5JFSls1jlK4xCB1uvUKCRsO+VFTxaNh3PjIo29DFoqf8i3Os yXBA== X-Gm-Message-State: APjAAAU/a/Te9rZQzwgfwHPpAdn3Mmanjh6uUAKrRhg74Ggn0MLf+/4Y sGpnE5Ux51G/c+VWvCPsPZvjMT4oP8k= X-Received: by 2002:a17:906:1d02:: with SMTP id n2mr16484794ejh.219.1574373004406; Thu, 21 Nov 2019 13:50:04 -0800 (PST) Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com. [209.85.221.54]) by smtp.gmail.com with ESMTPSA id y2sm170518edd.2.2019.11.21.13.50.03 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 21 Nov 2019 13:50:03 -0800 (PST) Received: by mail-wr1-f54.google.com with SMTP id i12so6216233wrn.11 for ; Thu, 21 Nov 2019 13:50:03 -0800 (PST) X-Received: by 2002:adf:db8e:: with SMTP id u14mr4763385wri.274.1574373002609; Thu, 21 Nov 2019 13:50:02 -0800 (PST) MIME-Version: 1.0 References: <20191121211053.48861-1-rrangel@chromium.org> <20191121140830.4.Iddc7dd74f893297cb932e9825d413e7890633b3d@changeid> In-Reply-To: From: Raul Rangel Date: Thu, 21 Nov 2019 14:49:51 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 4/4] platform/chrome: i2c: i2c-cros-ec-tunnel: Convert i2c tunnel to MFD Cell To: Guenter Roeck Cc: Enric Balletbo i Serra , Wolfram Sang , Akshu Agrawal , Guenter Roeck , Chanwoo Choi , linux-kernel , Alexandre Belloni , "open list:I2C SUBSYSTEM HOST DRIVERS" , Lee Jones , Benson Leung 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, Nov 21, 2019 at 2:40 PM Guenter Roeck wrote: > > On Thu, Nov 21, 2019 at 1:11 PM Raul E Rangel wrote: > > > > If the i2c-cros-ec-tunnel driver is compiled into the kernel, it is > > possible that i2c-cros-ec-tunnel could be probed before cros_ec_XXX > > has finished initializing and setting the drvdata. This would cause a > > NULL pointer panic. > > > > Converting this driver over to an MFD solves the problem and aligns with > > where the cros_ec is going. > > > > I thought the mfd maintainer objects to the use of the mfd API outside > drivers/mfd. Did that change recently ? The MFD apis are only used in drivers/mfd/cros_ec_dev.c. drivers/i2c/busses/i2c-cros-ec-tunnel.c just registers as a simple driver. Raul