From patchwork Sat Feb 2 23:59:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 157354 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp2213822jaa; Sat, 2 Feb 2019 15:59:20 -0800 (PST) X-Google-Smtp-Source: ALg8bN51lyDn8VlgCkEMUKdGjsF/KdhPvAt2W22xxb7tsqjS3A5u8D+J9sx1p/TXTMymdB9azO6M X-Received: by 2002:a62:2a4b:: with SMTP id q72mr44758482pfq.61.1549151960901; Sat, 02 Feb 2019 15:59:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549151960; cv=none; d=google.com; s=arc-20160816; b=PbCc3VwbtHQCkF7IPDMrMZ4uf2N7qe+CW9Y7pHmBme9JOfrRCUG5U6Urg3hCtp7BvF 8b2+scM8ArSqqbcBpYzQbiSipgr+sBcFNQIE+VTLSwU+fCe/BQD5rPrqhCaaS1TDd0kD 97BT/f5zfvgwDOA+uLWWLGbm8/gx8EN/yhzvL8aTDEd/cD3jT5aV/QAnJWooPIKuF1O/ Sf5frKefAGgKWU42jKjSmtoLIyb7wrCu4hwjHjIBO5XRrGuI/dWzzscMaZkMvnO8vGvX jTlC8uGzP2+IUPeYpzkKtA1eJtMq3BYrlVXKD3nHJ2svp9yq12dU9kBcFJdPy3iJl3bd JChw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=zfjPCn0ENRw4L2SfyojKs80PT5r00usqAqi61XRIz/0=; b=VNRvFtvBTPhrepfNoxeQ0XKX9kjhAmpKzshoXXc8iDu+JTjNpEcpEPBcq3G7EL270e 6aQxDzwuYxUFymCLVHNclKqRIXwyOSRvM3GrSUSNLHT0mVzT0gQSnN3RGvZNcBf4xkN3 3GJaYCqHzxBb6dVpqjMH6KzBBIZTjuAHJhHhDt1yh9RfFE3yGl1DubWNWB9k7LJc8dhP yt69/yaCOhzVkYynfWfyP8JVn6UDwqFai1RyuXOCG6IkQLrVDx71941Gyvt8wQ9s2Wrt MbhakiNTgT47Px2krLOseHs9LRV/3blL+eEUlFDloFP/2K8YmhMUkfKy7ORXD+V2qYwd 3HMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dt2WTdrp; spf=pass (google.com: best guess record for domain of linux-usb-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j7si12715718plb.91.2019.02.02.15.59.20; Sat, 02 Feb 2019 15:59:20 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-usb-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dt2WTdrp; spf=pass (google.com: best guess record for domain of linux-usb-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726975AbfBBX7T (ORCPT + 5 others); Sat, 2 Feb 2019 18:59:19 -0500 Received: from mail-lj1-f195.google.com ([209.85.208.195]:35889 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726710AbfBBX7T (ORCPT ); Sat, 2 Feb 2019 18:59:19 -0500 Received: by mail-lj1-f195.google.com with SMTP id g11-v6so8855323ljk.3 for ; Sat, 02 Feb 2019 15:59:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=zfjPCn0ENRw4L2SfyojKs80PT5r00usqAqi61XRIz/0=; b=dt2WTdrpkSnMhsqaacx4rVHnFPSxR7xVviYfQF6oHnNN+21EyuLrhfUtW8CO7aWcrx RTG+bw0B6NkKAgO9bH6QBrCyRrbFSemV2bE/2aJGWGn6I6Ja8lY/M3xKehkRKtJBEu67 jO5TLZ9q0gJs46xnQhvAO8QPV9c+i0ZR+EJA4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=zfjPCn0ENRw4L2SfyojKs80PT5r00usqAqi61XRIz/0=; b=OOPNDwnGKeWkpgiDBuYSCQ5Tm2xB3t3WLn1hMbmxAWFequG2qsY1GDTmxY7gmqbPbq XFnIBf1YygrZP1im/eRgPWwsIiamwyI5gGm0yxFiUplZYvp1ZNJSzPBYKXT1IjeUtMJw C5jrc+o/8h8u+zN9Eapddefb/+5uqQTJoS5iANCRIU06aCzWOs6KmMtkRAznu9naP9zG vRvGtQNMH/nGr/eWrXSY92ANIXvM5eNjDGVhbz07lVxjHksmxPIhXTfTvQpcEH2ZuM6m HEhcqpZMheORPERWLHvbqGnhQpKQUo96uHEupiG9S7VcDfv1sX1emgF+Aifpwf29ebM2 ztoA== X-Gm-Message-State: AJcUukfM9EVqbVAQfXBNzIvWmnz8W26A/FMNN0WWK+Y8igSok45MhWlm 4m46pX/z/l6W1VXrp+rQDyjN0g== X-Received: by 2002:a2e:7011:: with SMTP id l17-v6mr35004785ljc.147.1549151957446; Sat, 02 Feb 2019 15:59:17 -0800 (PST) Received: from linux.local (c-ae7b71d5.014-348-6c756e10.bbcust.telenor.se. [213.113.123.174]) by smtp.gmail.com with ESMTPSA id o25sm2195724lfd.29.2019.02.02.15.59.16 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 02 Feb 2019 15:59:16 -0800 (PST) From: Linus Walleij To: Greg Kroah-Hartman , Felipe Balbi Cc: linux-usb@vger.kernel.org, Linus Walleij , Robert Jarzmik Subject: [PATCH 2/2] USB: gadget: pxa25x: Add DT probing Date: Sun, 3 Feb 2019 00:59:08 +0100 Message-Id: <20190202235908.30751-2-linus.walleij@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190202235908.30751-1-linus.walleij@linaro.org> References: <20190202235908.30751-1-linus.walleij@linaro.org> MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org This makes it possible to instantiate the PXA25x UDC driver from the device tree. Cc: Robert Jarzmik Signed-off-by: Linus Walleij --- drivers/usb/gadget/udc/pxa25x_udc.c | 11 +++++++++++ 1 file changed, 11 insertions(+) -- 2.20.1 diff --git a/drivers/usb/gadget/udc/pxa25x_udc.c b/drivers/usb/gadget/udc/pxa25x_udc.c index d4be53559f2e..480828b76059 100644 --- a/drivers/usb/gadget/udc/pxa25x_udc.c +++ b/drivers/usb/gadget/udc/pxa25x_udc.c @@ -2529,6 +2529,16 @@ static int pxa25x_udc_resume(struct platform_device *dev) /*-------------------------------------------------------------------------*/ +static const struct of_device_id udc_of_match[] = { + { + .compatible = "intel,ixp4xx-udc", + }, + { + .compatible = "marvell,pxa25x-udc", + }, + {}, +}; + static struct platform_driver udc_driver = { .shutdown = pxa25x_udc_shutdown, .probe = pxa25x_udc_probe, @@ -2537,6 +2547,7 @@ static struct platform_driver udc_driver = { .resume = pxa25x_udc_resume, .driver = { .name = "pxa25x-udc", + .of_match_table = of_match_ptr(udc_of_match), }, };