From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 351A3C433DF for ; Thu, 20 Aug 2020 16:47:58 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0191E2072D for ; Thu, 20 Aug 2020 16:47:57 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Zu9h2OSn"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=pobox.com header.i=@pobox.com header.b="XIDWJakE"; dkim=fail reason="key not found in DNS" (0-bit key) header.d=fluxnic.net header.i=@fluxnic.net header.b="x+Vwvn51" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0191E2072D Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=fluxnic.net Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-i3c-bounces+linux-i3c=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:Message-ID:In-Reply-To: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=KrJw4PYsUX7fIjiGv6C31ZlxHAbkel26agGIak/C72g=; b=Zu9h2OSnFuDjxT/SDF7QuZW78 hFQ44359GwkCX9Q6YnEzdpvtB27B8SE77y911/PceUka9GJAytMOaOLYyWnOa51bage0C1HkMdnCC QgJCuEM+Gz9+jmOMrvau/Dl652EoLAB2WUUNC64exUBCrwaaTIeU7o++rfwPDUKCB+4LKUHjV/e4N icQHaMzaK3k1voalViZoCPBWzM9Tbu4DZdG7Y35xoKxOmeXabhNE1T64tbyDsyPtZAYn4Hfu9NtY4 C6uOEl/exB5CYwWgKpOb/WP5PpHgMC+RR/nPX1cBaTPyhiia+o4qD1jgpodvYeiHfQ8yTAM005rGp dX7LBJuhw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1k8njJ-0001xj-6I for linux-i3c@archiver.kernel.org; Thu, 20 Aug 2020 16:47:57 +0000 Received: from pb-smtp1.pobox.com ([64.147.108.70]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1k8njG-0001wx-Af for linux-i3c@lists.infradead.org; Thu, 20 Aug 2020 16:47:55 +0000 Received: from pb-smtp1.pobox.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id 0FCE5703AD; Thu, 20 Aug 2020 12:47:51 -0400 (EDT) (envelope-from nico@fluxnic.net) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=date:from:to :cc:subject:in-reply-to:message-id:references:mime-version :content-type; s=sasl; bh=wdYMeq/iDAON7u+9mXSY99qFs4k=; b=XIDWJa kEw7CeDy7zd0SDNL0htjjJKv8u8OBYZXARTYRHkGaPvCXUppkVMhax4fwVBTaPp/ treDWuolzDcJVZCettbvDjnwIEGgcxXzXsFFm68nUGS+J0uqaH5ZxbcwJ0EKOIDl XS+2xhk2CVup/JtltMGKYxeX49djMv1yviUIM= Received: from pb-smtp1.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id 07303703AA; Thu, 20 Aug 2020 12:47:51 -0400 (EDT) (envelope-from nico@fluxnic.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=fluxnic.net; h=date:from:to:cc:subject:in-reply-to:message-id:references:mime-version:content-type; s=2016-12.pbsmtp; bh=/uQeyO134Kmg5f7MnrjYjAxh3mJEe6OJ1sddWo90uaE=; b=x+Vwvn514Ck719+vrI+/Oyh0c5IIrOvS49aACx7Ud5WZUquD2z1IIeM0gPeCoKUypzFADzZ0uY5SUCK47KngiZ6ZEySkhJoe7h5YIDw/+9BRrN9XR9Y/FP2cU/dePxF61+sqsZBad9frW/UuwAWFxcY1KoHbq9WdEhkYw2EwNlA= Received: from yoda.home (unknown [24.203.50.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp1.pobox.com (Postfix) with ESMTPSA id 71C82703A9; Thu, 20 Aug 2020 12:47:50 -0400 (EDT) (envelope-from nico@fluxnic.net) Received: from xanadu.home (xanadu.home [192.168.2.2]) by yoda.home (Postfix) with ESMTPSA id 848E22DA01C4; Thu, 20 Aug 2020 12:47:49 -0400 (EDT) Date: Thu, 20 Aug 2020 12:47:49 -0400 (EDT) From: Nicolas Pitre To: Boris Brezillon Subject: Re: [PATCH 2/2] i3c/master: add the mipi-i3c-hci driver In-Reply-To: <20200820103944.08a55ba4@collabora.com> Message-ID: References: <20200814034854.460830-1-nico@fluxnic.net> <20200814034854.460830-3-nico@fluxnic.net> <20200820100829.0e44200a@xps13> <20200820103944.08a55ba4@collabora.com> MIME-Version: 1.0 X-Pobox-Relay-ID: E2555116-E304-11EA-9AE0-01D9BED8090B-78420484!pb-smtp1.pobox.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200820_124754_432684_A23D1624 X-CRM114-Status: GOOD ( 18.56 ) X-BeenThere: linux-i3c@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Laura Nixon , Rob Herring , Robert Gough , Matthew Schnoor , Miquel Raynal , linux-i3c@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-i3c" Errors-To: linux-i3c-bounces+linux-i3c=archiver.kernel.org@lists.infradead.org On Thu, 20 Aug 2020, Boris Brezillon wrote: > On Thu, 20 Aug 2020 10:08:29 +0200 > Miquel Raynal wrote: > > > > + /* > > > + * TODO: Extend the subsystem layer to allow for registering > > > + * new device and provide BCR/DCR/PID at the same time. > > > > Not sure this is needed if you don't use it directly as the core will > > anyway (in its current form) send the relevant CCC to read these > > registers. > > We considered optimizing that in the past but that means making the DAA > and SETDASA registration different. I'm not sure it's worth it to be > honest, PID/DCR/BCR only happens when initializing devices and I > suspect the overhead of querying those DATA twice in case of DAA is > negligible anyway. Wellllll... I know some people who do feel strongly about this particular issue for some reasons. So I'd prefer giving them some hope and leave the door open to some i3c_master_add_i3c_dev_and_info() interface. In the end, it's just a matter of pre-filling the info struct and skipping the PID retrieval in i3c_master_getpid_locked() if already available, etc. Nicolas -- linux-i3c mailing list linux-i3c@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-i3c