Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3238621imu; Wed, 7 Nov 2018 07:16:32 -0800 (PST) X-Google-Smtp-Source: AJdET5cWLr1I3nOSShoM+tId8W6116bjM9nWzpqfDDQPumSUVRWnux7iv0MAKCxhnflLIpPoC1Ay X-Received: by 2002:a17:902:64c1:: with SMTP id y1-v6mr634330pli.210.1541603792003; Wed, 07 Nov 2018 07:16:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541603791; cv=none; d=google.com; s=arc-20160816; b=h13Inp+zgG9IrU1qFY1Ol3vB8CcHgxpaLUkmHb/MT2aI9h5vUqkTU1cYWj4LWJc0Ro 0hog43J59epbzczMZB7vsFQ1pleefJ9RFOZybd0PF5o/anZj6y3G4lZg8lR8BdyuW39s sYKMVO2xuDcF/UCTbETVfkRcUEDlwRM6N4HVqNi2EsJbxu0fpwf4aTdkcJt9jSGEb3Dm N2qEQHukhtEjXiBuErbXKfyOaDx2SvVJR1Bp3L5HfDzBNNSTI/BS6G1rh9gx4i6MlHnm iANccQuQ/LfAXBXrbuHZmxcifInpzzQ8kVVFLgJlc0pD7ryc+2SinfcWhL8LxJzLmxQm ZkxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=n0pZtwBtARfrw3k/zFJJJhyyiGl27v9GEIKtCH4LMME=; b=kfFDndc3G8meyEotqsN8eUr1JTy1wH7wBBfg/xBxTAiPioHUl6NpCrpDhsW8yjNpEy usYHOq8MfNoqqGPwuvzpmak/TB8EKabkRxIlPAZ+SnKnUe47t+mYVOu9NslRnghYoQFE rZz5Ju0t07arVCmi33FqZbFOGMP9ajyhCvyLbou59aP6yK6irkWW4XAd80OqbEMxCUAh AtUkpVtkkVy4SQQ+DBtKf2aJT2vQ7gNKz642OaWw0GLnoGyyEmpviaJ4jfXDjYhAgG3a sUe2eorJ/ROdizXRJAqhR6SVWC0kPzhWqHg83AY51gPC2thk98T8oAbB7mChAaYo9bmG cdmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=Z6NnUd76; 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=synopsys.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bj11-v6si943402plb.55.2018.11.07.07.16.16; Wed, 07 Nov 2018 07:16:31 -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=@synopsys.com header.s=mail header.b=Z6NnUd76; 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=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727955AbeKHAqb (ORCPT + 99 others); Wed, 7 Nov 2018 19:46:31 -0500 Received: from smtprelay.synopsys.com ([198.182.47.9]:44734 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726670AbeKHAqa (ORCPT ); Wed, 7 Nov 2018 19:46:30 -0500 Received: from mailhost.synopsys.com (mailhost2.synopsys.com [10.13.184.66]) by smtprelay.synopsys.com (Postfix) with ESMTP id 46A1224E140B; Wed, 7 Nov 2018 07:15:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1541603743; bh=sARyqm8mFbJsXoUIRJKZUkkhpVFyUXiE4oe8QDgg4zs=; h=Subject:To:CC:References:From:Date:In-Reply-To:From; b=Z6NnUd765KzIFMTF6aZ9O22BePy+fW5NdBJwaMACEjBOLH36wVr9WMCH7wEp95ilr Z81DgDGYtyU2BkeBkF7lAEMClQnV7tQX74OGt9stN08OaF7ElPFllIdx7Ejh0AhbO4 5TjPYbfv/8swLKl9qSw88flLa9LGyyVOWcX4RXRroIeXGTHR8z2ns1aVw9tLtvt9eC znlHUK9v6hB53TQJiKouwnAKcaeR/4V7istaa+Bfn76SiWTUMc1DJraBoeVJrvOJZy 8ZAw3q3gWlE959kOMJxdszYfqeyoqF65cPlFY7t5GV5cvbRHmBRCUViU+3Ab9qHGkr 8/lOsfBRP62og== Received: from US01WEHTC3.internal.synopsys.com (us01wehtc3.internal.synopsys.com [10.15.84.232]) by mailhost.synopsys.com (Postfix) with ESMTP id 52ECE393A; Wed, 7 Nov 2018 07:15:39 -0800 (PST) Received: from DE02WEHTCA.internal.synopsys.com (10.225.19.92) by US01WEHTC3.internal.synopsys.com (10.15.84.232) with Microsoft SMTP Server (TLS) id 14.3.408.0; Wed, 7 Nov 2018 07:15:39 -0800 Received: from DE02WEHTCB.internal.synopsys.com (10.225.19.94) by DE02WEHTCA.internal.synopsys.com (10.225.19.92) with Microsoft SMTP Server (TLS) id 14.3.408.0; Wed, 7 Nov 2018 16:15:37 +0100 Received: from [10.0.2.15] (10.107.19.141) by DE02WEHTCB.internal.synopsys.com (10.225.19.80) with Microsoft SMTP Server (TLS) id 14.3.408.0; Wed, 7 Nov 2018 16:15:36 +0100 Subject: Re: [PATCH 1/3] i3c: master: Add driver for Synopsys DesignWare IP To: Matthew Wilcox , Vitor soares CC: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , References: <1540807618-13246-1-git-send-email-soares@synopsys.com> <1540807618-13246-2-git-send-email-soares@synopsys.com> <20181029134100.GD28520@bombadil.infradead.org> From: vitor Message-ID: <8a71cb94-ccf5-8ec0-446a-37a29405f585@synopsys.com> Date: Wed, 7 Nov 2018 15:15:17 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <20181029134100.GD28520@bombadil.infradead.org> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Originating-IP: [10.107.19.141] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Matthew, Thank for your feedback. On 29/10/18 13:41, Matthew Wilcox wrote: > 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? Please check this email thread: https://lkml.org/lkml/2018/10/8/393 > >> + help >> + Support·for·Synopsys·DesignWare·MIPI·I3C·Controller. > These strange characters (displayed as a centred dot on my terminal) > should probably be spaces. Something went wrong here. I need to check it. > >> +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. This seem to be recent. I will use it next version :D Best regards, Vitor Soares