Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp103689imn; Fri, 29 Jul 2022 00:45:51 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sUpO7Ngl9NM1frPWt2TbZI26YqFY2HjveiRxM4xrgIy/SxPCMsgOLL8QdaGD60GQlCn/1G X-Received: by 2002:a05:6402:484:b0:43b:6e02:71af with SMTP id k4-20020a056402048400b0043b6e0271afmr2352941edv.176.1659080751353; Fri, 29 Jul 2022 00:45:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659080751; cv=none; d=google.com; s=arc-20160816; b=EgeGmqXtXc4BzieFyOu8isHDNpMwpbCqzo8dpXDw2W6uZ4A8uQRbfUd6CtWoLnXg1D m5kIp7XJYjs1aLPmO/2scQ2fXUMuXJe4SrwYbIaEDWV2JyBtj9f8+zXel2511PSzXh73 7KhxwdACawcwKj0ZN2/zWetQtrr5H7DLzS1oXTQ7+2aIdXGsifuE0FiJ9BkUzB35qHZi ta9AbT/zJ+QVG2lj/Hz9MKHws0qZFSgJtnslJWK3jkfnmCk2E0LIlK0hlB4Akxs3W9Yc e5IioodmqHTGGtM3XDnoUdf5HUNv5iJzObuqqzlSJ+uIA/tG3Z8X/+PfP1Q1cNO26L93 QUlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=gIZ8qnUanIaRBbvxpl6Ru9YJhW+CjyECAwCzkqsQ+2Y=; b=AyAH8yf0gO3C5kZyvU27koDjx9ZE4bBYkN1cAsc3KKY7JUvy0Lg1NUnZ1G2Tj40X7F zltBtjNZQF18E0kUcd9C73iKXOFqB3hpyeoUqyHf2dcd6erbHnXjntvJd5dv9Tcbcboc rD4HiyOF/Z5LuX74feanA2mMUdTqXf3RTOkRIavdIrf3aOlfrUvYnScVBmgwISVI8Y0a /C34bEqvg7tTWiyeROiXV3zRuONWiutQBynN6FvRmCemdxzTHFmRQ8gN3/aQbHd/0/6U smceVT/U9upBEcAmnzelKQe4KmO0MhhlAVUxlIERc3TF440RLgz9KQUQb+D80P8dGj8R ym8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=L+SxERHi; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o7-20020a170906860700b0072b76566462si2324103ejx.459.2022.07.29.00.45.26; Fri, 29 Jul 2022 00:45:51 -0700 (PDT) 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=@linuxfoundation.org header.s=korg header.b=L+SxERHi; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234818AbiG2Hjs (ORCPT + 99 others); Fri, 29 Jul 2022 03:39:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233940AbiG2Hjr (ORCPT ); Fri, 29 Jul 2022 03:39:47 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54F1D21E04; Fri, 29 Jul 2022 00:39:46 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E50E061B11; Fri, 29 Jul 2022 07:39:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E4586C433D6; Fri, 29 Jul 2022 07:39:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1659080385; bh=CIAxurvW34TFYojlhWRAlU5T6Eu7gc+rEwe+x0Mtino=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=L+SxERHiCrTIjRI9h6fjOj7xS/sldrl1ohbjaawfiy44HBXDn7KRyg/Xa9josPkfl qoeFu7L8pa++aEAyaSA4mAm377895yF/8//fDs2wGyGAasKF841WLb3PDvc9WeGQw1 s1nTqDzGjlZ4AlPBtj/h8WM/8LLMz3Id/1RQapyk= Date: Fri, 29 Jul 2022 09:39:42 +0200 From: Greg KH To: Utkarsh Patel Cc: linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, heikki.krogerus@linux.intel.com, rajmohan.mani@intel.com Subject: Re: [PATCH] usb: typec: intel_pmc_mux: Add new ACPI ID for Meteor Lake IOM device Message-ID: References: <20220729003033.771761-1-utkarsh.h.patel@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220729003033.771761-1-utkarsh.h.patel@intel.com> X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 28, 2022 at 05:30:33PM -0700, Utkarsh Patel wrote: > Intel Meteor Lake IOM uses 64bit IOM BASE address than previous Intel > Generations which use 32bit. I can not parse this sentence, sorry. > Added code to support 64bit IOM BASE address change with necessary ACPI > resource extraction support. Again, I do not understand :( > > Signed-off-by: Utkarsh Patel > Reviewed-by: Heikki Krogerus No need to backport this to stable kernels? > --- > drivers/usb/typec/mux/intel_pmc_mux.c | 9 +++++++-- > 1 file changed, 7 insertions(+), 2 deletions(-) > > diff --git a/drivers/usb/typec/mux/intel_pmc_mux.c b/drivers/usb/typec/mux/intel_pmc_mux.c > index 47b733f78fb0..a8e273fe204a 100644 > --- a/drivers/usb/typec/mux/intel_pmc_mux.c > +++ b/drivers/usb/typec/mux/intel_pmc_mux.c > @@ -571,9 +571,11 @@ static int pmc_usb_register_port(struct pmc_usb *pmc, int index, > > static int is_memory(struct acpi_resource *res, void *data) > { > - struct resource r; > + struct resource_win win = {}; > + struct resource *r = &win.res; > > - return !acpi_dev_resource_memory(res, &r); > + return !(acpi_dev_resource_memory(res, r) || > + acpi_dev_resource_address_space(res, &win)); I don't understand, what is the extra check here doing? Why is that needed and why aren't you triggering off of a platform type? thanks, greg k-h