Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp4422103ioa; Wed, 27 Apr 2022 03:36:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx0R5p88clLjMv07Atc85o8YsgHIicegc3KOsPekM4R6aVPuQ/mwCsbGFEkmwKSfqPAl7t2 X-Received: by 2002:a17:902:aa42:b0:15c:f066:3888 with SMTP id c2-20020a170902aa4200b0015cf0663888mr19973953plr.102.1651055808300; Wed, 27 Apr 2022 03:36:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651055808; cv=none; d=google.com; s=arc-20160816; b=z5F6LGxJppKUZZ9cV+OxHnsHVginC3PuMOtv6pTZkRbZKBby2fnNHXc0BP1ol2GVqG wPciRHyga0C0BV+4BU3SM2c7rOfwqbCZcXEsUEuREEFz/DHUbx4UxvxZmlqRmKhKkQlx 5A3nQou1EuMYqnHf26M9Lgd7DaaigMWYXiUnDSxhFXaddnNLRPCZGqeGnYzqNuG7f+fv hrmol0SYqkKQFkOu0v6bTnLvbUhQkh3e7Ruuv0bRFWkn3dtA6VJDFQ9pN4w4NGDhSIy2 AtsJNZNqGHlsbmAsCQ0qaKbatYJWJaCwtRg6uiXTwVjUcanm00CZiUTbcSFeryjv7sMu 5MFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=qBD5lLujX5cO4i2ZmKtsInTQBVmMrUwWL4Z6EFQgtV8=; b=wfBcCVhdZaBmqA3aQrD0cWjzUwHb6H/ik3TRMN8+tGzOD9IaQ9Z1OV4BchvIT+LG8J wUE+vf0wknAAgTsMOnaIs9Q5hsFkeND4sDbe28TGfB8afg0X/H7zHNvfkDmd1qr+Q1Qk 9aojqJtCTJtYkR6+lKroznrafnQFwLO604Bv5zh3vc1T1FqntC7Bg4KC5rWDxLt5Srfk NESLe8HdA4TacDJuMTlZ9FuLpWyNuN1F4+DQGwYeWPSWuaYaBmIarnOuzdliAeniFO7w R/v6Gbd/+zOn+cmzqpLi7rs4C03Qkl4bQjYTSc7paKhUMNeFFKK8vIAuH/QPcQ5iIN1z WMuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dAXHGNPC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id u191-20020a6385c8000000b003aa5155f4e8si1051971pgd.128.2022.04.27.03.36.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 03:36:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dAXHGNPC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 23EDD296C34; Wed, 27 Apr 2022 02:50:27 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350607AbiDZND5 (ORCPT + 99 others); Tue, 26 Apr 2022 09:03:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350641AbiDZNDo (ORCPT ); Tue, 26 Apr 2022 09:03:44 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 85E26178F6B; Tue, 26 Apr 2022 06:00:05 -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 ams.source.kernel.org (Postfix) with ESMTPS id ED309B81F49; Tue, 26 Apr 2022 13:00:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 611DCC385AA; Tue, 26 Apr 2022 12:59:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1650978002; bh=STeOVJbFv0JAM+ZjVWQ3iAdUGzHt/rmNObKdTePC+ME=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=dAXHGNPCaUc4r5pI9MdXUehO2ZvpZkI6GhGX5vezp8eGr2UoCEc0bCH+9AXCGqWbb neaOpOXtSg3rUTweJ7q/HMedbwbwBUQj4XNMVwak2CZLXXspxNlxH8jczgKSuAkUmm 9SZaARj7Fx2kNLuI71CO4AckeK/s39uwJCEhNPV1DzM82JTTDDvHehXrZGKoFtFJNK UUSQIfteZfmRiiI2tkAlMd91iyL+UMviQAyG2sHqH7QjyEERD1gtIXsMVUtBEdAAZ/ bo/3q640ojKAipfL/DtbRwNaqvXVakHJaZZd0/qu8ESpqewv63X9ZAmZ/iWbgs8Yvn 7lh9IFW2RJBxQ== Message-ID: Date: Tue, 26 Apr 2022 14:59:57 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH v4 5/5] usb: host: add xhci-exynos driver Content-Language: en-US To: Daehwan Jung , Mathias Nyman , Greg Kroah-Hartman Cc: "open list:USB XHCI DRIVER" , open list , Howard Yen , Jack Pham , Puma Hsu , "J . Avila" , sc.suh@samsung.com, Krzysztof Kozlowski References: <1650964728-175347-1-git-send-email-dh10.jung@samsung.com> <1650964728-175347-6-git-send-email-dh10.jung@samsung.com> From: Krzysztof Kozlowski In-Reply-To: <1650964728-175347-6-git-send-email-dh10.jung@samsung.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE autolearn=unavailable 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 26/04/2022 11:18, Daehwan Jung wrote: > This driver is for Samsung Exynos xhci host conroller. It uses xhci-plat > driver mainly and extends some functions by xhci hooks and overrides. > > It supports USB Audio offload with Co-processor. It only cares DCBAA, > Device Context, Transfer Ring, Event Ring, and ERST. They are allocated > on specific address with xhci hooks. Co-processor could use them directly > without xhci driver after then. This does not look like developed in current Linux kernel, but something out-of-tree, with some other unknown modifications. This is not how the code should be developed. Please rebase on linux-next and drop any unrelated modifications (these which are not sent with this patchset). (...) > + > +static int xhci_exynos_suspend(struct device *dev) > +{ > + struct usb_hcd *hcd = dev_get_drvdata(dev); > + struct xhci_hcd *xhci = hcd_to_xhci(hcd); > + > + /* TODO: AP sleep scenario*/ Shall the patchset be called RFC? > + > + return xhci_suspend(xhci, device_may_wakeup(dev)); > +} > + > +static int xhci_exynos_resume(struct device *dev) > +{ > + struct usb_hcd *hcd = dev_get_drvdata(dev); > + struct xhci_hcd *xhci = hcd_to_xhci(hcd); > + int ret; > + > + /* TODO: AP resume scenario*/ > + > + ret = xhci_resume(xhci, 0); > + if (ret) > + return ret; > + > + pm_runtime_disable(dev); > + pm_runtime_set_active(dev); > + pm_runtime_enable(dev); > + > + return 0; > +} > + > +static const struct dev_pm_ops xhci_exynos_pm_ops = { > + SET_SYSTEM_SLEEP_PM_OPS(xhci_exynos_suspend, xhci_exynos_resume) > +}; > + > +MODULE_DESCRIPTION("xHCI Exynos Host Controller Driver"); > +MODULE_LICENSE("GPL"); You don't have list of compatibles (and missing bindings), driver definition, driver registration. Entire solution is not used - nothing calls xhci_exynos_vendor_init(), because nothign uses "ops". This does not work and it makes it impossible to test it. Please provide proper XHCI Exynos driver, assuming you need it and it is not part of regular Exynos XHCI drivers (DWC3 and so on). Best regards, Krzysztof