Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp3406458imd; Mon, 29 Oct 2018 06:43:31 -0700 (PDT) X-Google-Smtp-Source: AJdET5ezKUOwYcHIEhoPZzscWYYO8r/G7nt4HvKrMUcKlkkgw3jvxtXy8eMQW3IqQalXosyUUQAY X-Received: by 2002:a17:902:63:: with SMTP id 90-v6mr14400176pla.79.1540820611490; Mon, 29 Oct 2018 06:43:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540820611; cv=none; d=google.com; s=arc-20160816; b=v/OZGNJpQMReqT4rxGf6oUDHCuXpCOsSsQ9hr50boUBbGdPLTJ6AENUukT/xmmPBgS kgeAWktTc25j9nbEK2sMMHoXKkYD9JusLFMCPu4KCUnXwc1CAhcsan+mDSphRYhUwK3s 8eSa0ZZbOaG8THn8NXxyLFtspvYeN6J5gVQIY77zCe6jep5weLb9SOrlmagz+7sELSXC aJNRGYcBxKeFKMs3IZp8FGg1vaEae/epRKz8GfzscmxzLiaWMyc18q8gxEQaSoWcqJUD hPYkeBopYfl8W0H9e5jxjL5kew6Ev0jLNk1e2L913XTdid6WyqeJJ/vAtDmfCstRtBAF qSCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=7tOo3mOK1RhCIFMhClp70+XyUYGv1gfIsS6PyLmMgJM=; b=gO69zbPQvrzHq9JbryxbHZcWjB28rio0iogg9VP4a7Gyq1AHH7RTbmu34S6ShvrxaO aJtiMB3pusKDrw/N4ZDAK7iShzpB5KNAN4nuk27TOGTqSjdJrb1OtXLcO9aP4PnDF/9h V5wY8jLl0ccoXmUgKk+UALHovzEfoJmD/sxEl+ZIC6V4Z3SMrsEtbtX84Xp6emzRrHM/ AlE0fH5XAB77SCH6C6fAagZR5vfRz/AsZ60gO4klVVpkRzH1206ehU0jyhfzC6srLYSK JECrteqBOxUGGmvjacz9bkupvJx0JXwPjHce+odCO149HXOzuWLgbRRYa5sh4z/M/o/x zZFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=HnokiOq4; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 134-v6si20599348pfu.273.2018.10.29.06.43.15; Mon, 29 Oct 2018 06:43:31 -0700 (PDT) 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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=HnokiOq4; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726570AbeJ2W3s (ORCPT + 99 others); Mon, 29 Oct 2018 18:29:48 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:45006 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725862AbeJ2W3s (ORCPT ); Mon, 29 Oct 2018 18:29:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Transfer-Encoding :Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Sender:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=7tOo3mOK1RhCIFMhClp70+XyUYGv1gfIsS6PyLmMgJM=; b=HnokiOq4Tly7OCMPlmMDSRKxVp mWbkYnOTCGE3vShL6H50qNxIhL66pqHkzKmPKxKYmcopgoIoevXegcSvdGuvwdswGeBptDP/1DI+G Gt8T2tAAVkrMjRuXeEyo/ckM0VOP7kAQFJgfQPxnD+KM5Y3KcsdKXC2E5yhOdsUDmnqKUN/Fyf+G0 jhggGCjM0mZPMOe2Q1qP+1ljTl+FwlYMjDQtWMnkt9MfGQI/6IR70mj3cwnZxdXt2X396AzN1ThZ1 G4/CBl7keWa+aL1nW+psS9j55MBfHwfHdQ7QY2mC0NH/d0tu8nzNXUfUcl8ptzv02bTO6vmIrlHsW PwTZ+rJA==; Received: from willy by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1gH7mu-0003HR-R5; Mon, 29 Oct 2018 13:41:00 +0000 Date: Mon, 29 Oct 2018 06:41:00 -0700 From: Matthew Wilcox To: Vitor soares Cc: boris.brezillon@bootlin.com, wsa@the-dreams.de, linux-i2c@vger.kernel.org, corbet@lwn.net, linux-doc@vger.kernel.org, gregkh@linuxfoundation.org, arnd@arndb.de, psroka@cadence.com, agolec@cadence.com, adouglas@cadence.com, bfolta@cadence.com, dkos@cadence.com, alicja@cadence.com, cwronka@cadence.com, sureshp@cadence.com, rafalc@cadence.com, thomas.petazzoni@bootlin.com, nm@ti.com, robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, geert@linux-m68k.org, linus.walleij@linaro.org, Xiang.Lin@synaptics.com, linux-gpio@vger.kernel.org, nsekhar@ti.com, pgaj@cadence.com, peda@axentia.se, mshettel@codeaurora.org, swboyd@chromium.org, joao.pinto@synopsys.com, luis.oliveira@synopsys.com, manuel.abreu@synopsys.com, gustavo.pimentel@synopsys.com Subject: Re: [PATCH 1/3] i3c: master: Add driver for Synopsys DesignWare IP Message-ID: <20181029134100.GD28520@bombadil.infradead.org> References: <1540807618-13246-1-git-send-email-soares@synopsys.com> <1540807618-13246-2-git-send-email-soares@synopsys.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1540807618-13246-2-git-send-email-soares@synopsys.com> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 29, 2018 at 10:06:56AM +0000, Vitor soares wrote: > +config DW_I3C_MASTER > + tristate "Synospsys DesignWare I3C master driver" > + depends on I3C > + depends on !(ALPHA || PARISC) why? > + help > + Support?for?Synopsys?DesignWare?MIPI?I3C?Controller. These strange characters (displayed as a centred dot on my terminal) should probably be spaces. > +static struct dw_i3c_xfer * > +dw_i3c_master_alloc_xfer(struct dw_i3c_master *master, unsigned int ncmds) > +{ > + struct dw_i3c_xfer *xfer; > + > + xfer = kzalloc(sizeof(*xfer) + (ncmds * sizeof(*xfer->cmds)), > + GFP_KERNEL); You should be using struct_size() here.