From patchwork Sat Jun 12 09:13:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= X-Patchwork-Id: 74999 X-Patchwork-Delegate: sean@mess.org Received: from vger.kernel.org ([23.128.96.18]) by www.linuxtv.org with esmtp (Exim 4.92) (envelope-from ) id 1lrziN-00D64L-Tq; Sat, 12 Jun 2021 09:14:04 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230427AbhFLJQA (ORCPT + 1 other); Sat, 12 Jun 2021 05:16:00 -0400 Received: from antares.kleine-koenig.org ([94.130.110.236]:43880 "EHLO antares.kleine-koenig.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229819AbhFLJQA (ORCPT ); Sat, 12 Jun 2021 05:16:00 -0400 Received: by antares.kleine-koenig.org (Postfix, from userid 1000) id 77C09BC9B1A; Sat, 12 Jun 2021 11:13:59 +0200 (CEST) From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Antti Palosaari , Mauro Carvalho Chehab Cc: Tomasz Maciej Nowak , Sean Young , Gon Solo , Andreas Kemnade , linux-media@vger.kernel.org Subject: [PATCH 1/2] media: usb: dvb-usb-v2: af9035: report if i2c client isn't bound Date: Sat, 12 Jun 2021 11:13:50 +0200 Message-Id: <20210612091351.7169-1-uwe@kleine-koenig.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-LSpam-Score: -3.1 (---) X-LSpam-Report: No, score=-3.1 required=5.0 tests=BAYES_00=-1.9,HEADER_FROM_DIFFERENT_DOMAINS=0.5,MAILING_LIST_MULTI=-1,RCVD_IN_DNSWL_LOW=-0.7 autolearn=ham autolearn_force=no If a sub device doesn't immediately bind after it was added, emit an error indication to the kernel log to help debugging. This happens for example if the needed driver isn't available at all. Signed-off-by: Uwe Kleine-König --- drivers/media/usb/dvb-usb-v2/af9035.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/usb/dvb-usb-v2/af9035.c b/drivers/media/usb/dvb-usb-v2/af9035.c index 22fda53e219a..6b7db903a365 100644 --- a/drivers/media/usb/dvb-usb-v2/af9035.c +++ b/drivers/media/usb/dvb-usb-v2/af9035.c @@ -210,6 +210,7 @@ static int af9035_add_i2c_dev(struct dvb_usb_device *d, const char *type, /* register I2C device */ client = i2c_new_client_device(adapter, &board_info); if (!i2c_client_has_driver(client)) { + dev_err(&intf->dev, "failed to bind i2c device to %s driver\n", type); ret = -ENODEV; goto err; }