Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2007439pxb; Wed, 2 Feb 2022 18:38:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJxRcolt+yaJ9eNuOHmYIvB2Ic3J9386gfdXW0zacqFRVfeMSQb6vGi2hjJGlpusSnob9Lge X-Received: by 2002:a05:6a00:acd:: with SMTP id c13mr29199320pfl.80.1643855894607; Wed, 02 Feb 2022 18:38:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643855894; cv=none; d=google.com; s=arc-20160816; b=UCdlcEJEPL5eTDa4jETqP89kf4DdfIim6r/hex9POV0WH1VxyG5jKyVjE0UBinSlUe WkXsETZTLrrkfSgy/KHW/efSXCViGEoZdqA4MHHf9s+g1IPs1ay8xR0pQ1a0edKZb9iq hV9NLgPlLawaNkoS4muEmhV+408H5LoiPXHsjESJEP46ehgTl7agSt3NTW47dJ6bGQp5 sVIjLybC4CFFcxSXcYQrDAplkwK8Cqh9P2ZLRpV4jmPTKwCTfullerD4GvHyodSVGeAF BzI4THPnDngxCKSijtXWy4Dblwc+MNZsWk55JJPTKNCzrTbNYHo+BCFW33NYe/HPOdT+ mXIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=co0UxehcT10KvKeO2HMl27sRQGzVzaRaaBVplxip7qw=; b=mn1Hug7bvjP82qWitO55pQctTJalKmGWuXpOs+nyqQW7lMjdYKz0S1A996LFOnXORA xVwCD4rlYd9jUM2KcqVNeUD1COmvIW5c9K+4CSm62voG3wgIgmvF7qtbKHxJIjFjHfzw a/5TN7kA2FwPr5xDUSq0x7xcGVUACMLY+IUBh2rbZzndzgHVIrkXwSyTkxPOsgzbaBp1 Q7bb9Ni/+Gj4C7UgqQxVtj18OuJ2N4f2sta0ShNWatkUbbr6VQ+XWcULW5vzjPiFtRjt HkDGv8y7q6mpJvPp4TSub+KpI3w5zG4riY8kGMZEjbMnMNILBR1EupwNMqFsLC59/FBm lmLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=SLaoGd8d; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p19si6024646pjo.120.2022.02.02.18.38.02; Wed, 02 Feb 2022 18:38:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=SLaoGd8d; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S240580AbiBBTrc (ORCPT + 99 others); Wed, 2 Feb 2022 14:47:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239991AbiBBTra (ORCPT ); Wed, 2 Feb 2022 14:47:30 -0500 Received: from mail-yb1-xb29.google.com (mail-yb1-xb29.google.com [IPv6:2607:f8b0:4864:20::b29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 12F61C06173E for ; Wed, 2 Feb 2022 11:47:29 -0800 (PST) Received: by mail-yb1-xb29.google.com with SMTP id v186so2004573ybg.1 for ; Wed, 02 Feb 2022 11:47:29 -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=co0UxehcT10KvKeO2HMl27sRQGzVzaRaaBVplxip7qw=; b=SLaoGd8dLroMo5YxyBi9jnv5iD6ziKqemavNXtbhEP97AYJ3eyFPP49FNWfveLhMox zQBZhH1z59850/KS+1pgUI5iBxZkDZCrmXt6l0T+Evp/is5lkdF8MVzUYsmMfFyGVFNY K3SuKfccY94QuyCApGmUtWgq4hGMPNHRXjShw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=co0UxehcT10KvKeO2HMl27sRQGzVzaRaaBVplxip7qw=; b=a3sAe3gLaS8RqiozwmHrJvR7uOtin30ciJRa8+i9JtHbZNLvm13R87LFk4Exl4b+E0 qvVXeV5zevz9+hj63mvMqVyWbu9+8C3oYPzGKTe9SAYXrmVfQPzHaG10k92Eh+7gpSjM 1VauhURVElnsoALpwOjR6931sHs6fBOgo1WnIQFhUDs6kw0ahFtk5jDy92h0Jr9Uc3hd IeMCpCM0+HLeISxXnDARC+y1D+wUYGfMx11//thPf4O6BlrHpe47CvKurJtFJBzFrWNw iai3EyqfgMtXFHVDcE7lfZMorsiuFKr+qP717wMb1doqDZ7CC19BAy1RHMuwIxfXyjzt 8Q+w== X-Gm-Message-State: AOAM532g2Lq0IQLJSly5jbkdOBpGtrZqqQ/5bCSjgJFfm7wjRseIVRb2 /MDRaD+jenLJIGRwx6kWNvkfiDRkBhWmOEJYO8+8cA== X-Received: by 2002:a0d:ca8f:: with SMTP id m137mr2154641ywd.5.1643831248225; Wed, 02 Feb 2022 11:47:28 -0800 (PST) MIME-Version: 1.0 References: <20220126180020.15873-1-dustin@howett.net> <20220126180020.15873-3-dustin@howett.net> In-Reply-To: From: Prashant Malani Date: Wed, 2 Feb 2022 11:47:17 -0800 Message-ID: Subject: Re: [PATCH v2 2/2] platform/chrome: cros_ec_lpcs: reserve the MEC LPC I/O ports first To: Aseda Aboagye Cc: Dustin Howett , linux-kernel@vger.kernel.org, Benson Leung , Guenter Roeck , Tzung-Bi Shih , Michael Niksa , Aseda Aboagye Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Fri, Jan 28, 2022 at 9:57 AM Aseda Aboagye wrote: > > Generally ec_commands.h is to be kept in sync with the copies in other projects. Periodically when someone modifies it, we should update the copies as well. > -- > Aseda Aboagye > > > On Thu, Jan 27, 2022 at 9:16 PM Dustin Howett wrote: >> >> On Thu, Jan 27, 2022 at 1:25 PM Prashant Malani wrote: >> > >> > What source do Framework laptop ECs (MECs?) compile their EC firmware >> > from? >> >> They just released their source here: >> https://github.com/FrameworkComputer/EmbeddedController >> >> FWIW, this series was written before they went open, and you're not >> likely to see a similar construct >> over there. >> >> > Yeah, I wasn't thinking about userland i/o port access, but just having >> > this behaviour/different I/O port mapping described in the EC code base >> > too. >> >> Happy to submit this over there as well. Are cros_ec_commands.h (here) >> and ec_commands.h (there) >> intended to be kept in 1:1 sync? It's not auto-generated, but FWIW cros_ec_commands.h is a subset of ec_commands.h (only the parts of ec_commands.h which are relevant to the kernel drivers are brought over) >> >> As well, is this a blocking concern? I'd prefer it to be first documented in the EC sources via a header update before we make changes to the kernel here. This ensures that the authors and maintainers of the various EC sources (Chromium EC, framework EC etc) are aware of this change and sign-off on it. I think making this update to the Chromium OS platform/ec code base will be sufficient (it can flow down to framework when/if they chose to sync to Chromium platform/ec); but happy to be corrected here by Aseda or other EC experts. Thanks,