Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1248731rwi; Wed, 26 Oct 2022 12:42:50 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5BE9PIUyptbGyaKc3xye7O65zlasVmSMU7V0LOxi2RbeXfSWgn9k+Bz6QRv5Zv+YHtFrhV X-Received: by 2002:a17:903:1110:b0:178:9f67:b524 with SMTP id n16-20020a170903111000b001789f67b524mr46411612plh.50.1666813370357; Wed, 26 Oct 2022 12:42:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666813370; cv=none; d=google.com; s=arc-20160816; b=vmlkrSa1J1HYvNf8DMCvnTh0JP0K67ZUhG13xwLm+N97RVtlCMHAYtGyM60FP1fAQn Dz3XsN4adXpV6swppFbqtt9pRlgSG/b/Guk6InqoVm3YrWBj9euqzwgDy9MX5EIFjeT9 H8f2rI0hnfwnoDl9603++Fg55qciNIMT3wIuYP2tiO8PGMxheLxKGz49XJUegKkgdLGj mD9jbkWL3w8Wh3/tdIjXsKiNzNasyLNtoadZkmL+IixKU/cwd0brQAaiSaRE4ImFrNmG ZAorsxGgA3dGK6MVjXQkkHqvrwOWQ3+Bn104E1uGe8Ui7UuFj1ANlPGonXm83kG5mYZY 73YA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=6ZrvLSXvvv0uDdPE3lr/VF7GjcvkIC96qj205SXc2VE=; b=hdSmbUQ5Z2xokfjjn+afmzPIkRLWz6oRTFhwUIctq1QNypdCkhgyu+wIi9ssl0yZQc ka4mKZ2zWZ14nCdQHgTOWdE7lJbtnykyfLwkWfblDlvIZQhW8B5UI9Rx6qhtPVCBssGD 5u4WPl+BQe3lMRog/N20UVY29FhEJQIjAMptGOf5jJcBADK5NCEgKeLiQbgVqtSGJAmr WA6BTKX1YAlIpC63LxEdGPb8lnvFOCId2VS+8UjSd7m+rgMD8eF8fTCtyE0Pv3Z948rU 1G0g8bupOn2X2sbpx+yfGidQxrnuiqLgTPxuNm/+TAnBEZE1Ewt1qNPLSoX0dI4DJ0Ui kWJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@crapouillou.net header.s=mail header.b=jMcF1UB8; 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=crapouillou.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t70-20020a638149000000b0046eecbac47esi7038114pgd.28.2022.10.26.12.42.38; Wed, 26 Oct 2022 12:42:50 -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=@crapouillou.net header.s=mail header.b=jMcF1UB8; 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=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234247AbiJZS1J (ORCPT + 99 others); Wed, 26 Oct 2022 14:27:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234225AbiJZS1H (ORCPT ); Wed, 26 Oct 2022 14:27:07 -0400 Received: from aposti.net (aposti.net [89.234.176.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4475683204; Wed, 26 Oct 2022 11:27:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1666808824; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references; bh=6ZrvLSXvvv0uDdPE3lr/VF7GjcvkIC96qj205SXc2VE=; b=jMcF1UB8949J3O4a8DVl4zkjAfc9KqPBxp1GDZdxK5/5CPiTTRyWy64PDStj0DZUSXZANm w0Aty9OmKQ/VXCkoAmsZhKMaGrE60K2M0/3HPVbflmOARUaX4/+OUoMzaJ5JaGQJRUQhN0 AuZJQ0AW3A7VdDu3d/toHOz31MCf0i0= From: Paul Cercueil To: Bin Liu , Greg Kroah-Hartman , Felipe Balbi Cc: linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, linux-mips@vger.kernel.org, od@opendingux.net, Paul Cercueil Subject: [PATCH v2 0/7] musb: Update to use generic PHY Date: Wed, 26 Oct 2022 19:26:50 +0100 Message-Id: <20221026182657.146630-1-paul@crapouillou.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam: Yes X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, URIBL_BLOCKED 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 Hi, This patchset updates the musb core to add support for the generic PHY framework. It also updates the jz4740 driver to use the generic PHY driver (drivers/phy/ingenic/phy-ingenic-usb.c) instead of the USB PHY one (drivers/usb/phy/phy-jz4770.c) which is then removed. If you are looking for the V1, it was sent two years ago [1] and received zero feedback. Anyway, V1 had only patches 1-4 and if I'm not mistaken the V2 patches are exactly the same. Patches 5-7 are new, and update the jz4740 driver to support generic PHYs, and ultimately remove the old phy-jz4770 USB PHY driver which has been replaced. Cheers, -Paul [1]: https://lore.kernel.org/all/20201207130332.120681-1-paul@crapouillou.net/ Paul Cercueil (7): usb: musb: Add and use inline functions musb_{get,set}_state usb: musb: Add and use inline function musb_otg_state_string usb: musb: Allow running without CONFIG_USB_PHY usb: musb: Support setting OTG mode using generic PHY usb: musb: jz4740: Don't disable external hubs usb: musb: jz4740: Support the generic PHY framework usb: phy: jz4770: Remove driver drivers/usb/musb/Kconfig | 1 - drivers/usb/musb/jz4740.c | 62 +++++- drivers/usb/musb/musb_core.c | 107 +++++----- drivers/usb/musb/musb_core.h | 24 +++ drivers/usb/musb/musb_debugfs.c | 6 +- drivers/usb/musb/musb_gadget.c | 61 +++--- drivers/usb/musb/musb_host.c | 18 +- drivers/usb/musb/musb_virthub.c | 33 ++- drivers/usb/phy/Kconfig | 8 - drivers/usb/phy/Makefile | 1 - drivers/usb/phy/phy-jz4770.c | 353 -------------------------------- 11 files changed, 195 insertions(+), 479 deletions(-) delete mode 100644 drivers/usb/phy/phy-jz4770.c -- 2.35.1